/* ── Design tokens ─────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --bg: #0b0d14;
  --bg-alt: #10131d;
  --surface: #151826;
  --surface-2: #1a1e2e;
  --border: rgba(255,255,255,0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-soft: rgba(99,102,241,0.15);
  --accent-fill: #4f46e5;
  --accent-fill-2: #6d28d9;
  --on-accent: #ffffff;
  --success: #34d399;
  --success-bg: rgba(34,197,94,0.15);
  --warning: #fbbf24;
  --warning-bg: rgba(245,158,11,0.15);
  --danger: #f87171;
  --danger-bg: rgba(239,68,68,0.15);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 60px rgba(0,0,0,0.5);
  --surface-gradient: linear-gradient(180deg, var(--surface), var(--surface-2));
}

/* System-preference light mode — only applies if the visitor hasn't made an
   explicit choice with the toggle button (no data-theme attribute set yet). */
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-alt: #ffffff;
    --surface: #ffffff;
    --surface-2: #f1f5f9;
    --border: rgba(15,23,42,0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --accent-soft: rgba(79,70,229,0.1);
    --accent-fill: #4f46e5;
    --accent-fill-2: #6d28d9;
    --on-accent: #ffffff;
    --success: #047857;
    --success-bg: rgba(4,120,87,0.1);
    --warning: #a16207;
    --warning-bg: rgba(161,98,7,0.1);
    --danger: #b91c1c;
    --danger-bg: rgba(185,28,28,0.1);
    --shadow-glow: 0 1px 2px rgba(15,23,42,0.04), 0 20px 60px rgba(15,23,42,0.08);
  }
}

/* Explicit toggle-button choice — wins over system preference either way. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(15,23,42,0.08);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --accent-soft: rgba(79,70,229,0.1);
  --accent-fill: #4f46e5;
  --accent-fill-2: #6d28d9;
  --on-accent: #ffffff;
  --success: #047857;
  --success-bg: rgba(4,120,87,0.1);
  --warning: #a16207;
  --warning-bg: rgba(161,98,7,0.1);
  --danger: #b91c1c;
  --danger-bg: rgba(185,28,28,0.1);
  --shadow-glow: 0 1px 2px rgba(15,23,42,0.04), 0 20px 60px rgba(15,23,42,0.08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d14;
  --bg-alt: #10131d;
  --surface: #151826;
  --surface-2: #1a1e2e;
  --border: rgba(255,255,255,0.08);
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #818cf8;
  --accent-2: #a78bfa;
  --accent-soft: rgba(99,102,241,0.15);
  --accent-fill: #4f46e5;
  --accent-fill-2: #6d28d9;
  --on-accent: #ffffff;
  --success: #34d399;
  --success-bg: rgba(34,197,94,0.15);
  --warning: #fbbf24;
  --warning-bg: rgba(245,158,11,0.15);
  --danger: #f87171;
  --danger-bg: rgba(239,68,68,0.15);
  --shadow-glow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 60px rgba(0,0,0,0.5);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Scroll reveal ─────────────────────────────────────────────────────── */
/* script.js adds .is-visible via IntersectionObserver the first time each
   element scrolls into view. Staggered per grid below so cards in the same
   row don't all animate in lockstep. */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

.problem-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.problem-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }
.problem-grid > .reveal:nth-child(4) { transition-delay: 0.24s; }
.flow > .reveal:nth-child(2) { transition-delay: 0.06s; }
.flow > .reveal:nth-child(3) { transition-delay: 0.12s; }
.flow > .reveal:nth-child(4) { transition-delay: 0.18s; }
.flow > .reveal:nth-child(5) { transition-delay: 0.24s; }
.flow > .reveal:nth-child(6) { transition-delay: 0.3s; }
.features-grid > .reveal:nth-child(2) { transition-delay: 0.05s; }
.features-grid > .reveal:nth-child(3) { transition-delay: 0.1s; }
.features-grid > .reveal:nth-child(4) { transition-delay: 0.15s; }
.features-grid > .reveal:nth-child(5) { transition-delay: 0.2s; }
.features-grid > .reveal:nth-child(6) { transition-delay: 0.25s; }
.features-grid > .reveal:nth-child(7) { transition-delay: 0.3s; }
.features-grid > .reveal:nth-child(8) { transition-delay: 0.35s; }
.trust-badges > .reveal:nth-child(2) { transition-delay: 0.05s; }
.trust-badges > .reveal:nth-child(3) { transition-delay: 0.1s; }
.trust-badges > .reveal:nth-child(4) { transition-delay: 0.15s; }
.trust-badges > .reveal:nth-child(5) { transition-delay: 0.2s; }
.trust-badges > .reveal:nth-child(6) { transition-delay: 0.25s; }
.pricing-grid > .reveal:nth-child(2) { transition-delay: 0.08s; }
.pricing-grid > .reveal:nth-child(3) { transition-delay: 0.16s; }

.features-roadmap-cta {
  text-align: center;
  margin-top: 2.5rem;
  font-size: 0.95rem;
  opacity: 0.8;
}
.features-roadmap-cta a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.features-roadmap-cta a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}
.eyebrow-center { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0.9rem auto 0;
}

.content-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--border);
}
.content-hub-link {
  min-width: 0;
  padding: 1.35rem;
  color: var(--text-primary);
  background: var(--surface);
  text-decoration: none;
}
.content-hub-link strong,
.content-hub-link span { display: block; }
.content-hub-link span {
  margin-top: 0.45rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.content-hub-link:hover,
.content-hub-link:focus-visible { background: var(--surface-2); }

@media (max-width: 900px) {
  .content-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .content-hub-grid { grid-template-columns: 1fr; }
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-2));
  color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.42);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface); }
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; padding: 0.75rem 1rem; }
.btn:focus-visible,
.nav-links a:focus-visible,
.nav-submenu-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.btn:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

/* ── Nav ───────────────────────────────────────────────────────────────── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  text-decoration: none;
}
.brand-mark {
  height: 32px;
  width: 32px;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  flex-shrink: 0;
}
.brand-mark-sm {
  height: 24px;
  width: 24px;
  border-radius: 3px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.brand-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}
.brand-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  line-height: 1;
}
.brand-footer {
  gap: 0.5rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a:not(.btn):not(.nav-signin) {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:not(.btn):not(.nav-signin):hover { color: var(--text-primary); }
.nav-links a[aria-current="page"],
.nav-menu-link.nav-parent-current { color: var(--text-primary); }
.nav-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-submenu-toggle {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-submenu-toggle span {
  display: block;
  font-size: 1rem;
  transition: transform 0.15s ease;
}
.nav-submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
.nav-submenu {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: -0.75rem;
  z-index: 120;
  display: none;
  min-width: 240px;
  padding: 0.55rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.nav-submenu-end { right: -0.75rem; left: auto; }
.nav-submenu a:not(.btn):not(.nav-signin) {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: calc(var(--radius-sm) - 2px);
  font-size: 0.86rem;
  white-space: nowrap;
}
.nav-submenu a:hover,
.nav-submenu a:focus-visible { background: var(--surface-2); }
.nav-submenu-toggle[aria-expanded="true"] + .nav-submenu { display: block; }
.nav-signin {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: inherit;
  color: var(--text-primary);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
/* Firefox adds its own inner border/padding to <button>, which anchors
   don't have — strip it so the button matches the surrounding nav links. */
.nav-signin::-moz-focus-inner { border: 0; padding: 0; }
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle-icon-moon { display: none; }
/* Dark mode (the default, or an explicit toggle choice): show the sun —
   clicking it means "switch to light." */
:root[data-theme="light"] .theme-toggle-icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle-icon-moon { display: inline; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle-icon-sun { display: none; }
  :root:not([data-theme]) .theme-toggle-icon-moon { display: inline; }
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 1.5rem 5rem;
}
/* Decorative glow layer, separate from the content so it can drift slightly
   slower than scroll (set via --parallax-shift in script.js) for a subtle
   sense of depth without any 3D library. */
.hero-bg {
  position: absolute;
  inset: -10% -10%;
  background:
    radial-gradient(ellipse 800px 400px at 15% -10%, var(--accent-soft), transparent),
    radial-gradient(ellipse 600px 400px at 100% 0%, rgba(139,92,246,0.12), transparent);
  transform: translateY(var(--parallax-shift, 0px));
  will-change: transform;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.25fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); }

/* Hero visual mock card */
.hero-visual { display: flex; justify-content: center; padding: 1rem 0 1rem; }
.hero-stack { position: relative; width: 100%; max-width: 100%; }
.hero-product-shot { position: relative; z-index: 1; }
.hero-blob {
  position: absolute;
  inset: -20% -15%;
  background:
    radial-gradient(circle at 30% 30%, rgba(139,92,246,0.35), transparent 60%),
    radial-gradient(circle at 75% 65%, rgba(99,102,241,0.3), transparent 55%);
  filter: blur(36px);
  z-index: 0;
}
.mock-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(99, 102, 241, 0.15);
  padding: 1.25rem;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}
/* Second, dimmer card peeking out behind the main one — suggests a stack of
   real meetings rather than a single flat screenshot. */
.mock-card-back {
  position: absolute;
  top: 34px;
  left: -26px;
  width: 82%;
  max-width: none;
  z-index: 1;
  opacity: 0.55;
  filter: saturate(0.75);
  transform: perspective(1000px) rotateY(-9deg) rotateX(5deg) scale(0.94);
  pointer-events: none;
}
/* Small floating toast in front of the main card, for depth + a sense of
   live activity. */
.hero-toast {
  position: absolute;
  bottom: -16px;
  right: -14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  padding: 0.65rem 1rem;
  font-size: 0.78rem;
  animation: hero-toast-float 4s ease-in-out infinite;
}
.hero-toast-icon { font-size: 1.1rem; }
.hero-toast strong { display: block; color: var(--text-primary); }
.hero-toast span { color: var(--text-muted); font-size: 0.7rem; }

@keyframes hero-toast-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-toast { animation: none; }
}
@media (max-width: 900px) {
  .mock-card-back { display: none; }
  .hero-toast { right: 4px; }
}

/* Tilt cards: base tilt above is the resting state; script.js updates
   --rx/--ry on mousemove so the card tracks the cursor like a physical
   object, then eases back to rest on mouseleave via this transition. */
.tilt-card {
  transition: transform 0.4s ease;
}
.tilt-card.is-tilting {
  transition: transform 0.08s linear;
}
.mock-card.tilt-card {
  transform: perspective(1000px) rotateY(var(--ry, -4deg)) rotateX(var(--rx, 2deg));
}
.mock-card-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.mock-title { margin-left: 0.5rem; font-size: 0.85rem; font-weight: 700; color: var(--text-secondary); }
.mock-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
}
.mock-chip {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  flex-shrink: 0;
}
.mock-chip-decision { background: var(--accent-soft); color: var(--accent); }
.mock-chip-task { background: rgba(59,130,246,0.15); color: #60a5fa; }
.mock-chip-risk { background: var(--danger-bg); color: #f87171; }
.mock-text { font-size: 0.85rem; color: var(--text-primary); flex: 1; min-width: 140px; }
.mock-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.mock-badge-confirmed { background: var(--success-bg); color: var(--success); }
.mock-badge-inferred { background: var(--accent-soft); color: var(--accent); }
.mock-badge-review { background: var(--warning-bg); color: var(--warning); }
.mock-quote {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  margin: 0.2rem 0 0.4rem;
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.mock-footer {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Problem ───────────────────────────────────────────────────────────── */
.problem {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.problem::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(139,92,246,0.08), transparent 70%);
  pointer-events: none;
}
.problem h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.problem-card {
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  transform: perspective(1000px) rotateY(0deg);
}
.problem-card:hover {
  transform: perspective(1000px) rotateY(-1.5deg) rotateX(1.5deg) translateY(-4px);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.1), 0 12px 32px rgba(0, 0, 0, 0.15);
}
.problem-icon { font-size: 1.6rem; }
.problem-card h3 { font-size: 1.05rem; margin: 0.9rem 0 0.5rem; }
.problem-card p { color: var(--text-secondary); font-size: 0.92rem; }

/* ── Value proposition ─────────────────────────────────────────────────── */
.value-prop {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.value-prop::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(99,102,241,0.1), transparent 70%);
  pointer-events: none;
}
.value-prop h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.value-prop .section-sub { text-align: center; max-width: 640px; }
.value-prop-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.value-prop-card {
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: perspective(1000px) rotateY(0deg);
}
.value-prop-card:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15), 0 16px 48px rgba(0, 0, 0, 0.2);
}
.value-prop-icon { font-size: 1.7rem; }
.value-prop-card h3 { font-size: 1.08rem; margin: 0.9rem 0 0.6rem; }
.value-prop-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.55; }
.value-prop-footnote {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── How it works ──────────────────────────────────────────────────────── */
.how { padding: 5rem 0; background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.how h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; margin-top: 0; }
.how .section-sub { text-align: center; }
.flow {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
}
.flow-step { text-align: left; }
.flow-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-2));
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.flow-step h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.flow-step p { color: var(--text-secondary); font-size: 0.86rem; }

/* ── Workflow interactive process flow ──────────────────────────────────── */
.flow-interactive {
  margin-top: 2.5rem;
}

.flow-timeline-header {
  margin-bottom: 2.5rem;
}

.flow-timeline-track {
  position: relative;
  height: 4px;
  background: var(--border);
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.flow-timeline-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-fill), var(--accent-fill-2));
  transition: width 0.4s ease;
}

.flow-timeline-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
}

.flow-process-flow {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
  justify-content: center;
}

.flow-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.2rem 1rem;
  min-width: 110px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  color: var(--text-secondary);
  white-space: nowrap;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(0deg);
}

.flow-process-step:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  background: var(--surface-2);
  transform: perspective(1000px) rotateY(2deg) rotateX(4deg) translateY(-4px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25), 0 12px 40px rgba(0, 0, 0, 0.15);
}

.flow-process-step.active {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 60%);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.flow-process-icon {
  font-size: 1.8rem;
  display: block;
  transition: transform 0.3s ease;
}

.flow-process-step.active .flow-process-icon {
  transform: scale(1.2);
}

.flow-process-name {
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

.flow-process-arrow {
  position: absolute;
  right: -0.7rem;
  color: var(--border);
  font-size: 1.2rem;
  font-weight: 300;
  display: none;
}

.flow-process-step:last-child .flow-process-arrow {
  display: none !important;
}

@media (min-width: 768px) {
  .flow-process-arrow {
    display: block;
  }
}

.flow-description {
  background: linear-gradient(135deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 0;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.08);
}

.flow-description.glow-card {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface-2) 60%);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--border));
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.flow-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.flow-detail-content .flow-process-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  filter: none;
}

.flow-detail-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.flow-detail-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-2));
  color: var(--on-accent);
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.flow-description h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.flow-detail-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 0.8rem 0;
  font-weight: 400;
  max-width: 500px;
}

.flow-detail-content {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  width: 100%;
}

.flow-description.is-visible .flow-detail-content {
  opacity: 1;
  transform: translateY(0);
}

/* Workflow visual elements */
.flow-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  min-height: auto;
  flex-wrap: wrap;
}

.flow-visual-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.04));
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  min-width: 85px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
}

.flow-visual-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
}

.flow-visual-multi {
  position: relative;
  width: 75px;
  height: 75px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  gap: 0;
}

.flow-icon-large {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.15));
}

.flow-mini-icon {
  font-size: 1.2rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(99, 102, 241, 0.1));
}

.flow-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.flow-visual-multi .flow-label {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
}

.flow-arrow {
  font-size: 1.6rem;
  color: var(--accent);
  font-weight: 300;
  animation: flowArrowPulse 2.5s ease-in-out infinite;
  opacity: 0.8;
}

@keyframes flowArrowPulse {
  0%, 100% {
    transform: translateX(0);
    opacity: 0.7;
  }
  50% {
    transform: translateX(3px);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .flow-visual {
    gap: 1rem;
  }

  .flow-visual-item {
    min-width: 75px;
    padding: 0.75rem;
  }

  .flow-icon-large {
    font-size: 1.8rem;
  }

  .flow-arrow {
    font-size: 1.4rem;
  }
}

/* Icon bounce animation on click */
@keyframes iconBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.flow-process-icon {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.flow-process-step.active .flow-process-icon {
  filter: grayscale(0%);
}

@media (max-width: 768px) {
  .flow-process-flow {
    gap: 0.3rem;
    margin-bottom: 2rem;
  }

  .flow-process-step {
    min-width: 85px;
    padding: 0.9rem 0.75rem;
    font-size: 0.75rem;
  }

  .flow-process-icon {
    font-size: 1.5rem;
  }

  .flow-description {
    padding: 1.75rem;
  }
}

/* ── Features ──────────────────────────────────────────────────────────── */
.features {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.features::before {
  content: '';
  position: absolute;
  top: 20%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 60%, rgba(139,92,246,0.09), transparent 70%);
  pointer-events: none;
}
.features h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; max-width: 640px; margin: 0 auto 3rem; position: relative; z-index: 1; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: perspective(1000px) rotateY(0deg);
}
.feature-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.15), 0 20px 50px rgba(0, 0, 0, 0.2);
}
/* Cursor-follow glow — script.js sets --mx/--my (px, relative to the card)
   on mousemove; the glow only becomes visible on hover so it costs nothing
   when idle. */
.glow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), var(--accent-soft), rgba(99, 102, 241, 0.08) 50%, transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: inherit;
}
.glow-card:hover::before { opacity: 1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-card-highlight {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}
.feature-icon { font-size: 1.5rem; }
.feature-card h3 { font-size: 1rem; margin: 0.85rem 0 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.88rem; }

/* Two "spotlight" tiles span both grid columns and carry a small live-look
   visual, breaking up the otherwise uniform icon+text grid. */
.feature-card-spotlight { grid-column: span 2; }
.feature-mini-visual {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature-mini-visual .mock-row { padding: 0; }
.feature-mini-visual-chips { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
.integration-chip {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  color: var(--text-secondary);
}
@media (max-width: 720px) {
  .feature-card-spotlight { grid-column: span 1; }
}

/* ── Dual-column feature layout ─────────────────────────────────────────── */
.features-dual-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}

.features-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
  color: var(--text-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: perspective(1200px) rotateY(0deg);
}

.feature-icon-btn:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: var(--surface-2);
  transform: perspective(1200px) rotateY(3deg) rotateX(-3deg) translateY(-3px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.2), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon-btn.active {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface) 60%);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  color: var(--accent);
}

.feature-icon-btn .feature-icon {
  font-size: 2rem;
}

.feature-icon-btn .feature-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.feature-detail-card {
  position: sticky;
  top: 120px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  min-height: 300px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 16px 48px rgba(99, 102, 241, 0.1);
  transform: perspective(1200px) rotateY(0deg);
  transition: all 0.4s ease;
}

.feature-detail-card .feature-detail-content {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-detail-card.is-visible .feature-detail-content {
  opacity: 1;
}

.feature-detail-card.glow-card {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 60%);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.feature-detail-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-detail-icon {
  font-size: 3rem;
  line-height: 1;
}

.feature-detail-card h3 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-primary);
}

.feature-detail-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.feature-detail-card .feature-mini-visual {
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .features-dual-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .features-icon-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-detail-card {
    position: static;
    top: auto;
  }
}

@media (max-width: 640px) {
  .features-icon-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .feature-icon-btn {
    padding: 1rem;
  }

  .feature-icon-btn .feature-icon {
    font-size: 1.5rem;
  }

  .feature-detail-card {
    padding: 1.5rem;
    min-height: auto;
  }
}

/* ── Section wave ──────────────────────────────────────────────────────── */
/* A plain block between two sections (not overlapping content), with a
   diagonal top edge — a cheap way to break up straight section seams
   without touching either section's own layout. */
.section-wave {
  height: 44px;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}

/* ── Trust ─────────────────────────────────────────────────────────────── */
.trust {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(99,102,241,0.09), transparent 70%);
  pointer-events: none;
}
.trust-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.trust-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin: 0 0 1.1rem; }
.trust-copy p { color: var(--text-secondary); font-size: 1.02rem; margin-bottom: 1.5rem; }
.trust-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.trust-list li { color: var(--text-secondary); font-size: 0.94rem; padding-left: 1.6rem; position: relative; }
.trust-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.trust-list strong { color: var(--text-primary); }
.trust-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.trust-badge {
  display: flex; align-items: center; gap: 0.6rem;
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: perspective(800px) rotateY(0deg);
}
.trust-badge:hover {
  transform: perspective(800px) rotateY(2deg) rotateX(1deg) translateY(-3px) rotate(-0.75deg);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--border));
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15), 0 12px 28px rgba(0, 0, 0, 0.15);
}
.trust-badge span { font-size: 1.1rem; }

/* ── Product shot ──────────────────────────────────────────────────────── */
/* Framed real-product screenshot, used just below the Hero and in Trust to
   back claims with the actual UI rather than description alone. */
.product-shot {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-gradient);
  box-shadow: var(--shadow-glow);
  padding: 0.5rem;
  overflow: hidden;
}
.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 4px);
}
.product-shot-trust { grid-column: 1 / -1; }

/* ── Pricing ───────────────────────────────────────────────────────────── */
.pricing {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.pricing::before {
  content: '';
  position: absolute;
  bottom: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(99,102,241,0.08), transparent 70%);
  pointer-events: none;
}
.pricing h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; position: relative; z-index: 1; }
.pricing .section-sub { text-align: center; }
.pricing-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
  perspective: 1200px;
  position: relative;
  z-index: 1;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  transform: perspective(1200px) rotateY(0deg);
}
.price-card:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(3deg) translateY(-6px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.2), 0 20px 60px rgba(0, 0, 0, 0.25);
}
.price-card-popular {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(99, 102, 241, 0.3), 0 12px 40px rgba(99, 102, 241, 0.2), 0 20px 80px rgba(99, 102, 241, 0.15), 0 16px 60px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 2;
}
.price-card-popular::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(139,92,246,0.05));
  border-radius: var(--radius-lg);
  z-index: -1;
  filter: blur(20px);
}
.price-card.tilt-card {
  transform: perspective(1000px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateY(var(--ty, 0px));
}
.price-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-2));
  color: var(--on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 9999px;
}
.price-card h2,
.price-card h3 { font-size: 1.15rem; }
.price { font-size: 2.2rem; font-weight: 800; margin: 0.75rem 0; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.price-desc { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1.25rem; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 1.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.65rem; }
.price-card li { font-size: 0.88rem; color: var(--text-secondary); padding-left: 1.4rem; position: relative; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.pricing-page {
  width: 100%;
  padding: 5rem 0;
}
.pricing-page h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
}
.pricing-note {
  max-width: 820px;
  margin: 3rem auto 0;
  padding: 1.25rem 1.5rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
  line-height: 1.7;
}

/* ── Contact form ─────────────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.7fr);
  gap: 3rem;
  align-items: start;
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 650;
}
.contact-field-wide { grid-column: 1 / -1; }
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.75rem 0.85rem;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 400;
}
.contact-field textarea { min-height: 120px; resize: vertical; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-color: var(--accent);
}
.contact-form-actions { grid-column: 1 / -1; }
.contact-form-status {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--text-secondary);
  background: var(--surface-2);
  border-left: 3px solid var(--accent);
}
.contact-form-status.is-success { color: var(--success); border-left-color: var(--success); }
.contact-form-status.is-error { color: var(--danger); border-left-color: var(--danger); }
.contact-context {
  padding: 1.25rem;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.7;
}
.contact-context h2 { margin-bottom: 0.75rem; color: var(--text-primary); font-size: 1.2rem; }
.contact-context p:last-child { margin-bottom: 0; }

/* ── CTA band ──────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
  background: linear-gradient(135deg, var(--accent-fill), var(--accent-fill-2));
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.2), 0 20px 60px rgba(99, 102, 241, 0.3);
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(139,92,246,0.1), transparent 50%);
  pointer-events: none;
}
/* Soft floating orb behind the copy — drifts slightly on scroll via the same
   --parallax-shift custom property as the hero glow, for a bit of depth. */
.cta-orb {
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  filter: blur(60px);
  transform: translateY(var(--parallax-shift, 0px));
  will-change: transform;
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.4rem); max-width: 640px; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
}
.cta-band .btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  padding: 4rem 0 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 0.75rem; }
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.25rem;
}
.footer-social-link {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.footer-social-link path { fill: currentColor; stroke: none; }
.footer-social-link .footer-social-fill { stroke: none; }
.footer-social-link:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.footer-social-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.25rem; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-col a:hover { color: var(--text-primary); }
.footer-signin {
  font: inherit;
  font-size: 0.9rem;
  line-height: inherit;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}
.footer-signin::-moz-focus-inner { border: 0; padding: 0; }
.footer-signin:hover { color: var(--text-primary); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Sign-up modal ─────────────────────────────────────────────────────── */
button.btn { font: inherit; } /* CTA links converted to <button> should look identical to the <a> ones */

.signup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 1rem;
}
/* Author CSS overrides the browser's built-in [hidden] rule, so without this
   the overlay's own `display: flex` above wins and it never actually hides —
   this rule has to out-specificity it explicitly. */
.signup-overlay[hidden] {
  display: none;
}

.signup-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 2rem;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glow);
}
.signup-modal-wide { max-width: 520px; }

.comingsoon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.9rem;
}

/* Flashy product preview — three mock panels crossfade on a timer (see
   script.js), advanced either automatically or by clicking a dot below.
   script.js starts/stops the timer with the modal open/close so nothing
   runs while it's hidden. */
.comingsoon-gallery {
  position: relative;
  height: 232px;
  margin: 0 0 0.75rem;
}
.comingsoon-slide {
  position: absolute;
  inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.comingsoon-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.comingsoon-slide .mock-row { padding: 0.4rem 0; }
.comingsoon-slide .mock-text { min-width: 0; }

.comingsoon-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
}
.comingsoon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.comingsoon-dot:hover { background: var(--text-secondary); }
.comingsoon-dot.is-active { background: var(--accent); transform: scale(1.3); }

@media (prefers-reduced-motion: reduce) {
  .comingsoon-slide { transition: none; }
}

.signup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
.signup-close:hover { color: var(--text-primary); }

.signup-modal h2 {
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  padding-right: 1.5rem;
}

.signup-sub {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.signup-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.signup-field input,
.signup-field textarea {
  font: inherit;
  font-weight: 400;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-primary);
  resize: vertical;
}
.signup-field input:focus, .signup-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.signup-optional { font-weight: 400; color: var(--text-muted); }

/* Honeypot — present in the DOM for bots to find, invisible and unreachable for real visitors */
.signup-honeypot {
  display: none;
}

.signup-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin: -0.5rem 0 1rem;
}

.signup-success {
  text-align: center;
  padding: 1rem 0;
}
.signup-success-icon { font-size: 2.2rem; }
.signup-success h2 { margin: 1rem 0 0.6rem; font-size: 1.2rem; }
.signup-success p { color: var(--text-secondary); font-size: 0.9rem; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .mock-card { transform: none; max-width: 480px; }
  .trust-inner { grid-template-columns: minmax(0, 1fr); }
  .trust-copy { min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links .btn { width: 100%; }
  .nav-menu { width: 100%; display: grid; grid-template-columns: 1fr auto; }
  .nav-menu-link { align-self: center; }
  .nav-submenu-toggle { width: 44px; height: 44px; }
  .nav-submenu {
    position: static;
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    margin-top: 0.4rem;
    box-shadow: none;
  }
  .nav-submenu-toggle[aria-expanded="true"] + .nav-submenu { display: block; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-field-wide,
  .contact-form-actions,
  .contact-form-status { grid-column: 1; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .trust-badges { grid-template-columns: 1fr; }
  .trust-copy .btn { max-width: 100%; white-space: normal; text-align: center; }
}

/* ── Roadmap (in-page section) ────────────────────────────────────────── */
.roadmap-inline { padding: 5rem 0; }
.roadmap-stats { display: flex; justify-content: center; gap: 2.5rem; margin: 2rem 0 3rem; flex-wrap: wrap; }
.roadmap-stat { display: flex; flex-direction: column; align-items: center; }
.roadmap-stat strong { font-size: 2.25rem; color: var(--text-primary); line-height: 1.1; }
.roadmap-stat span { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }
.roadmap-category { margin-bottom: 2rem; }
.roadmap-category h3 { font-size: 1rem; color: var(--text-primary); margin-bottom: 0.85rem; }
.roadmap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.9rem; }
.roadmap-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.1rem; }
.roadmap-card-name { display: flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.35rem; font-size: 0.92rem; }
.roadmap-card-desc { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.45; }
.roadmap-loading, .roadmap-error, .status-loading, .status-error { text-align: center; color: var(--text-secondary); padding: 2rem 0; }
.roadmap-error, .status-error { color: var(--danger); }

/* ── Status (in-page section) ─────────────────────────────────────────── */
.status-inline { padding: 5rem 0; }
.status-inline .section-sub { text-align: center; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.9rem; margin-top: 2rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.status-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; }
.status-card-name { font-weight: 600; color: var(--text-primary); font-size: 0.92rem; }
.status-badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px; width: fit-content; }
.status-badge-ok { background: var(--success-bg); color: var(--success); }
.status-badge-warn { background: var(--warning-bg); color: var(--warning); }
.status-badge-down { background: var(--danger-bg); color: var(--danger); }
.status-badge-neutral { background: var(--surface-2); color: var(--text-secondary); }
.status-latency { font-size: 0.78rem; color: var(--text-muted); }

/* ── FAQ Section ────────────────────────────────────────────────────────── */
.faq-section {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
}
.faq-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); text-align: center; max-width: 640px; margin: 0 auto; }
.faq-section .section-sub { text-align: center; }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: none;
  border: none;
  padding: 1.5rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  cursor: pointer;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--accent); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  padding: 0 1.5rem 1.5rem;
}
