/* ------------- Base styles ------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #050712;
  --bg-alt: #0b0f1f;
  --text-main: #f5f7ff;
  --text-muted: #a0a7c4;
  --accent-1: #4f46e5;
  --accent-2: #06b6d4;
  --card-bg: rgba(10, 12, 28, 0.9);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --radius-xl: 1.5rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top, #141b3a 0, var(--bg) 55%);
}

/* ------------- Background motion blobs ------------- */
.background-blob {
  position: fixed;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--accent-1), transparent 60%);
  top: -80px;
  left: -120px;
  animation: float1 18s infinite alternate ease-in-out;
}

.blob-2 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-2), transparent 60%);
  bottom: -120px;
  right: -100px;
  animation: float2 22s infinite alternate ease-in-out;
}

@keyframes float1 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(60px, 80px);
  }
}

@keyframes float2 {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(-80px, -40px);
  }
}

/* ------------- Layout ------------- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ------------- Header ------------- */
.site-header {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(
      135deg,
      rgba(79, 70, 229, 0.25),
      rgba(6, 182, 212, 0.25)
    ),
    rgba(10, 12, 28, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.logo-mark {
  font-size: 1rem;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

/* ------------- Hero ------------- */
.hero {
  padding: 3rem 0 1.5rem;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.gradient-text {
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 36rem;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ------------- Sections ------------- */
.section {
  padding: 2.75rem 0 0;
}

.section-header {
  max-width: 640px;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ------------- Widget playground ------------- */
.widget-playground {
  padding-top: 2.75rem;
}

.playground-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.4rem;
  align-items: stretch;
}

.experience.card {
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
}

.toggle-header h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.toggle-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.widget-meta h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.widget-meta p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.customization-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.customization-item {
  padding: 0.85rem 0.8rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.customization-item h4 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}

.customization-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.playground-hint {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hidden-widget {
  display: none !important;
}

/* ------------- Product cards / general cards grid ------------- */
.cards-grid {
  margin-top: 1.6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.25rem 1.15rem;
  border-radius: 1.25rem;
  background: linear-gradient(
    145deg,
    rgba(15, 18, 40, 0.96),
    rgba(6, 10, 28, 0.96)
  );
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease, background 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  border-color: rgba(79, 70, 229, 0.7);
  background: radial-gradient(
      circle at top left,
      rgba(79, 70, 229, 0.22),
      transparent 65%
    ),
    linear-gradient(
      145deg,
      rgba(15, 18, 40, 0.96),
      rgba(6, 10, 28, 0.96)
    );
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Pills reused from earlier */
.demo-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(22, 163, 255, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
  margin-bottom: 0.75rem;
}

.demo-pill-secondary {
  background: rgba(79, 70, 229, 0.14);
  border-color: rgba(129, 140, 248, 0.55);
  color: #a5b4fc;
}

/* ------------- Phone call demo ------------- */
.call-instructions {
  margin-top: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: rgba(10, 12, 28, 0.65);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

.call-prompt {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.call-number {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #7dd3fc;
  text-decoration: none;
}

.call-number::before {
  content: "📞";
  font-size: 1.1rem;
}

.call-number:hover {
  color: #a5b4fc;
}

.call-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ------------- Agent example icons ------------- */
.card-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(79, 70, 229, 0.35),
    rgba(6, 182, 212, 0.2)
  );
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

/* ------------- Steps (“How it works”) ------------- */
.steps-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.3rem;
}

.step {
  position: relative;
  padding: 1.3rem 1.2rem 1.2rem;
  border-radius: 1.25rem;
  background: rgba(5, 7, 18, 0.94);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.5);
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ------------- Footer ------------- */
.site-footer {
  padding: 1.5rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: radial-gradient(
    circle at top,
    rgba(79, 70, 229, 0.08),
    transparent 60%
  );
}

/* ------------- Fade-in on scroll ------------- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------- Responsive tweaks ------------- */
@media (max-width: 800px) {
  .hero {
    padding-top: 2.25rem;
  }

  .hero-subtitle,
  .hero-note {
    max-width: 100%;
  }

  .playground-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .call-input-row {
    flex-direction: column;
  }

  .call-input-row button {
    width: 100%;
  }
}
