/* HERO */
.hero {
  position: relative;
  padding: clamp(4rem, 4rem + 2vw, 7rem) 0 var(--space-section);
  overflow: hidden;
  isolation: isolate;
}

.hero-glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60vh;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(255, 122, 69, 0.18), transparent 70%),
    radial-gradient(50% 50% at 80% 20%, rgba(92, 140, 224, 0.12), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 5rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.2rem 0 0;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem 2rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.hero-meta > div {
  display: block;
  white-space: nowrap;
}

.hero-meta-num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.5rem + 1vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline;
}

.hero-meta-label {
  display: block;
  white-space: normal;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Mock product card */
.hero-mock {
  position: relative;
  display: grid;
  gap: 1.2rem;
  perspective: 1400px;
}

.mock-card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
    var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow:
    0 30px 60px -30px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 122, 69, 0.05);
  transform-style: preserve-3d;
  transform: rotateY(-3deg) rotateX(2deg);
  animation: cardFloat 7s ease-in-out infinite alternate;
}

.mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.mock-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--good);
}

.mock-dot-live {
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulseDot 1.6s ease-out infinite;
}

.mock-time {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mock-prospect {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.4rem;
}

.mock-avatar {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff7a45, #ffb66c);
  color: var(--bg);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mock-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.1;
}

.mock-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.mock-waveform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 56px;
  padding: 0.6rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.mock-waveform span {
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 122, 69, 0.4));
  animation: wave 1.2s ease-in-out infinite;
}

.mock-waveform span:nth-child(2n)  { animation-delay: 0.1s; }
.mock-waveform span:nth-child(3n)  { animation-delay: 0.2s; }
.mock-waveform span:nth-child(4n)  { animation-delay: 0.3s; }
.mock-waveform span:nth-child(5n)  { animation-delay: 0.4s; }
.mock-waveform span:nth-child(6n)  { animation-delay: 0.5s; }
.mock-waveform span:nth-child(7n)  { animation-delay: 0.6s; }

.mock-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.mock-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 0.55rem 0.6rem;
  font-size: 0.8rem;
  border-radius: 10px;
  transition: background var(--duration-fast) ease, border-color var(--duration-fast) ease;
}

.mock-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.mock-btn-warm {
  background: rgba(255, 182, 108, 0.1);
  border-color: rgba(255, 182, 108, 0.3);
  color: var(--warm);
}

.mock-btn-end {
  background: rgba(255, 99, 99, 0.12);
  border-color: rgba(255, 99, 99, 0.3);
  color: #ffa3a3;
}

.mock-divider {
  height: 1px;
  margin: 1.2rem 0;
  background: var(--line);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.86rem;
  color: var(--text);
  padding: 0.25rem 0;
}

.mock-row-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-quiet);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mock-row-value { color: var(--accent); font-weight: 500; }

.mock-card-secondary {
  background: var(--bg-elev-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  transform: translateX(2.4rem);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  animation: cardFloat 8s ease-in-out 0.4s infinite alternate-reverse;
}

.mock-secondary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-quiet);
  margin-bottom: 0.9rem;
}

.mock-pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(92, 224, 168, 0.18);
  animation: pulseDot 2.4s infinite ease-out;
}

.mock-agent-list {
  display: grid;
  gap: 0.55rem;
}

.mock-agent-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.mock-status {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.mock-status-on { background: var(--good); }
.mock-status-away { background: var(--warm); }

/* TRUST BAR */
.trustbar {
  padding: var(--space-block) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.trust-label {
  margin: 0 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-quiet);
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  align-items: center;
  justify-items: center;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--text-muted);
  letter-spacing: -0.01em;
}

.trust-grid li {
  opacity: 0.55;
  transition: opacity var(--duration-base) ease, color var(--duration-base) ease;
}

.trust-grid li:hover {
  opacity: 1;
  color: var(--text);
}

@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(6, 1fr); }
}

/* HOW IT WORKS / BENTO */
.how {
  padding: var(--space-section) 0;
  position: relative;
}

.section-head {
  max-width: 64ch;
  margin: 0 auto 4rem;
  text-align: center;
}

.section-head .section-lede { margin: 0 auto; }

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.2rem;
  }
  .bento-card-tall { grid-row: span 2; }
  .bento-card-wide { grid-column: span 2; }
}

.bento-card {
  position: relative;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 100% at 0% 0%, rgba(255, 122, 69, 0.05), transparent 50%),
    var(--bg-elev);
  border: 1px solid var(--line);
  transition: border-color var(--duration-base) ease,
              transform var(--duration-base) var(--ease-out-soft);
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 0%),
    rgba(255, 122, 69, 0.16),
    transparent 60%
  );
  opacity: 0;
  transition: opacity var(--duration-base) ease;
  pointer-events: none;
}

.bento-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.bento-card:hover::before { opacity: 1; }

.bento-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bento-icon svg { width: 20px; height: 20px; }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}

.bento-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 38ch;
}

.bento-bullets {
  margin-top: 1.2rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.bento-bullets li {
  position: relative;
  padding-left: 1.1rem;
}

.bento-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* SPLITS */
.split {
  padding: var(--space-section) 0;
  position: relative;
}

.split-grid {
  display: grid;
  gap: 4rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 980px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
  }
  .split-reverse .split-art { order: 2; }
}

.check-list {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.85rem;
  font-size: 0.98rem;
  color: var(--text);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.check {
  display: inline-flex;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.18rem;
  position: relative;
}

.check::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 5px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  border-left: 0;
  transform: translateY(-1.5px) rotate(45deg);
}

.split-art .art-stack {
  position: relative;
  display: grid;
  gap: 1.2rem;
}

.art-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.art-card-shadow {
  background: var(--bg-elev-2);
  padding: 1rem 1.2rem;
}

.art-card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.art-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.art-pill-warm {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: rgba(255, 122, 69, 0.4);
}

.art-list {
  display: grid;
  gap: 0.4rem;
}

.art-list-row {
  display: grid;
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.65rem 0.6rem;
  border-radius: 12px;
}

.art-list-row-active {
  background: rgba(255, 122, 69, 0.07);
  border: 1px solid rgba(255, 122, 69, 0.18);
}

.art-bullet {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.art-bullet-quiet {
  background: var(--text-quiet);
  box-shadow: none;
}

.art-name { font-family: var(--font-display); font-size: 1.15rem; }
.art-sub { font-size: 0.82rem; color: var(--text-muted); }
.art-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-quiet);
}

.art-keys {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0.45rem 0.7rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.art-keys span { font-family: var(--font-mono); font-size: 0.78rem; }

/* CONTROL ROOM */
.control-room {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  display: grid;
  gap: 1.4rem;
}

.cr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-quiet);
}

.cr-now {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent);
}

.cr-now::before {
  content: "";
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: pulseDot 1.6s infinite ease-out;
}

.cr-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cr-stats > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cr-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 0.6vw, 2rem);
  line-height: 1;
}

.cr-stat-suffix { font-size: 0.65em; color: var(--accent); }

.cr-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cr-rows {
  display: grid;
  gap: 0.7rem;
}

.cr-row {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.cr-name { color: var(--text); }
.cr-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 24px;
  text-align: right;
}

.cr-bar {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.cr-bar > span {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--accent), #ffb66c);
  border-radius: inherit;
  width: 0;
  animation: fillBar 1.6s var(--ease-out-expo) forwards;
}

/* INTEGRATIONS */
.integrations {
  padding: var(--space-section) 0;
}

.integration-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) { .integration-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .integration-grid { grid-template-columns: repeat(3, 1fr); } }

.integration-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform var(--duration-base) var(--ease-out-soft),
              border-color var(--duration-base) ease;
}

.integration-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
}

.integration-logo {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.integration-name { font-family: var(--font-display); font-size: 1.2rem; }
.integration-sub { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.1rem; }

/* METRICS */
.metrics {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(255, 122, 69, 0.06), transparent 70%),
    transparent;
}

.metric-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: 1fr;
  text-align: center;
}

@media (min-width: 760px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.8rem;
}

.metric-suffix { color: var(--accent); }

.metric p {
  margin: 0 auto;
  color: var(--text-muted);
  max-width: 28ch;
}

/* CTA */
.cta {
  padding: var(--space-section) 0;
}

.cta-card {
  display: grid;
  gap: 2.4rem;
  align-items: center;
  padding: clamp(2rem, 1.5rem + 2vw, 3.4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 100% at 0% 0%, rgba(255, 122, 69, 0.18), transparent 60%),
    radial-gradient(60% 100% at 100% 100%, rgba(255, 182, 108, 0.12), transparent 70%),
    var(--bg-elev);
  border: 1px solid rgba(255, 122, 69, 0.25);
}

@media (min-width: 880px) {
  .cta-card { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
}

@media (min-width: 880px) {
  .cta-actions { justify-content: flex-end; }
}

/* ─── Mobile responsive (≤639px) ─────────────────────────────────────── */
@media (max-width: 639px) {
  /* Hero mock — remove 3D perspective transforms and overflow-causing offsets */
  .mock-card {
    transform: none;
    animation: none;
  }

  .mock-card-secondary {
    transform: none;
    animation: none;
  }

  /* Hero actions — stack buttons full-width */
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  /* Hero meta stats — reduce column gap on small screens */
  .hero-meta {
    gap: 1rem;
  }

  /* Keyboard shortcut grid — collapse from 8 to 4 columns */
  .art-keys {
    grid-template-columns: auto 1fr auto 1fr;
  }

  /* Bento card title — slightly smaller so text wraps better */
  .bento-card h3 {
    font-size: 1.35rem;
  }

  /* Section head — more breathing room */
  .section-head {
    margin-bottom: 2.4rem;
  }

  /* Control room stats — tighter label text */
  .cr-stat-label {
    font-size: 0.7rem;
  }

  /* CTA actions — stack buttons full-width */
  .cta-actions {
    flex-direction: column;
  }

  .cta-actions .btn {
    justify-content: center;
  }
}
