/* Mythex landing */

*, *::before, *::after { box-sizing: border-box; }
a[href], button { cursor: pointer; }

:root {
  color-scheme: dark;
  --bg: #060912;
  --surface: #0e1422;
  --surface-2: #131b2e;
  --border: rgba(255, 255, 255, 0.11);
  --border-light: rgba(255, 255, 255, 0.16);
  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --secondary: #4b6bfb;
  --brand-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary) 50%, var(--secondary) 100%);
  --brand-gradient-h: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  --text: #f0f3ff;
  --text-soft: #c8d0e4;
  --muted: #8b96ae;
  --nav-bg: rgba(6, 9, 18, 0.6);
  --nav-bg-scrolled: rgba(6, 9, 18, 0.92);
  --nav-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --mobile-nav-bg: rgba(6, 9, 18, 0.98);
  --card-bg: rgba(14, 20, 34, 0.55);
  --card-bg-soft: rgba(14, 20, 34, 0.45);
  --card-bg-solid: rgba(14, 20, 34, 0.85);
  --card-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  --compose-bg: rgba(19, 27, 46, 0.85);
  --overlay-faint: rgba(255, 255, 255, 0.03);
  --overlay-muted: rgba(255, 255, 255, 0.06);
  --overlay-strong: rgba(255, 255, 255, 0.1);
  --grid-line: rgba(255, 255, 255, 0.05);
  --grid-opacity: 0.55;
  --glow-strength: 1;
  --footer-fade: linear-gradient(180deg, transparent, rgba(6, 9, 18, 0.5));
  --cta-bg: rgba(14, 20, 34, 0.7);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --nav-h: 4rem;
  --container: 75rem;
  --page-gutter: clamp(2rem, 8vw, 5rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-light: rgba(15, 23, 42, 0.12);
  --text: #0f1423;
  --text-soft: #3a4258;
  --muted: #6b7389;
  --nav-bg: rgba(244, 246, 251, 0.82);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.94);
  --nav-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  --card-bg: rgba(255, 255, 255, 0.92);
  --card-bg-soft: rgba(255, 255, 255, 0.78);
  --card-bg-solid: #ffffff;
  --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --compose-bg: rgba(255, 255, 255, 0.96);
  --overlay-faint: rgba(15, 23, 42, 0.03);
  --overlay-muted: rgba(15, 23, 42, 0.05);
  --overlay-strong: rgba(15, 23, 42, 0.08);
  --grid-line: rgba(15, 23, 42, 0.055);
  --grid-opacity: 0.42;
  --glow-strength: 0.42;
  --footer-fade: linear-gradient(180deg, transparent, rgba(238, 242, 249, 0.95));
  --cta-bg: rgba(255, 255, 255, 0.88);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 1rem;
  overflow-x: hidden;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.container {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--page-gutter);
  z-index: 200;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Background */
@keyframes aurora-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(4%, 3%) scale(1.06); }
  66% { transform: translate(-3%, 2%) scale(0.96); }
}

@keyframes aurora-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.bg-glow {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-glow span {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  animation: aurora-drift 22s var(--ease-out) infinite;
}

.bg-glow .g1 {
  top: -8rem; left: -4rem;
  width: 32rem; height: 32rem;
  background: rgba(124, 58, 237, 0.16);
  animation-duration: 24s;
  opacity: var(--glow-strength);
}

.bg-glow .g2 {
  top: 30%; right: -6rem;
  width: 28rem; height: 28rem;
  background: rgba(75, 107, 251, 0.12);
  animation-delay: -8s;
  animation-duration: 28s;
  opacity: var(--glow-strength);
}

.bg-glow .g3 {
  bottom: -4rem; left: 35%;
  width: 24rem; height: 24rem;
  background: rgba(75, 107, 251, 0.08);
  animation-delay: -14s;
  animation-duration: 26s;
  opacity: var(--glow-strength);
}

.bg-glow .g4 {
  top: 55%; left: 10%;
  width: 20rem; height: 20rem;
  background: rgba(75, 107, 251, 0.06);
  animation-delay: -5s;
  animation-duration: 30s;
  opacity: var(--glow-strength);
}

.bg-grid {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 75% at 50% 0%, #000 10%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 100% 75% at 50% 0%, #000 10%, transparent 85%);
  transition: opacity 0.25s var(--ease-out);
}

.page-content {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--brand-gradient);
  background-size: 200% 200%;
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
  transition: background 0.3s, transform 0.15s, box-shadow 0.2s;
}

.btn--primary:hover {
  background-position: 100% 0;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
}

.btn--sm { padding: 0.4375rem 0.875rem; }
.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  border-radius: 0.875rem;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.nav--scrolled {
  border-bottom-color: var(--border);
  background: var(--nav-bg-scrolled);
  box-shadow: var(--nav-shadow);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
}

/* Ghost CTA button when nav is transparent (top of page) */
.nav:not(.nav--scrolled) .nav__actions .btn--primary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
  color: var(--text);
}

.nav:not(.nav--scrolled) .nav__actions .btn--primary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.nav__logo {
  flex-shrink: 0;
  color: var(--text);
}

.nav__logo img { height: 2.25rem; width: auto; display: block; }

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  margin-right: auto;
}

.nav__links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--text); }

.nav__links a.is-active {
  color: var(--text);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav__login {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.15s;
}

.nav__login:hover { color: var(--text); }

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  margin-right: 0.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--overlay-faint);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.theme-toggle:hover {
  background: var(--overlay-muted);
  color: var(--text);
}

.theme-toggle__icon {
  position: absolute;
  opacity: 0;
  transform: scale(0.85) rotate(-20deg);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: none;
}

[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: scale(0.85) rotate(20deg);
}

[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: none;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--overlay-faint);
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--page-gutter) 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--mobile-nav-bg);
}

.nav__mobile.is-open { display: flex; }

.nav__mobile a {
  padding: 0.625rem 0;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.15s;
}

.nav__mobile a.is-active {
  color: var(--text);
}

.nav__mobile .btn { margin-top: 0.5rem; width: 100%; }

@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__actions { display: flex; }
  .nav__toggle { display: none; }
  .theme-toggle { margin-left: 0; margin-right: 0; }
}

/* Hero — chat only, centered with side breathing room */
@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

.chat-hero {
  position: relative;
  padding-block: clamp(3rem, 8vh, 5.5rem) clamp(3.5rem, 10vh, 6rem);
  padding-inline: var(--page-gutter);
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-margin-top: var(--nav-h);
}

.chat-hero__glow {
  pointer-events: none;
  position: absolute;
  top: 30%;
  left: 50%;
  width: min(36rem, 90vw);
  height: 16rem;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(124, 58, 237, 0.18) 0%, rgba(75, 107, 251, 0.08) 45%, transparent 70%);
  filter: blur(40px);
  animation: aurora-pulse 6s ease-in-out infinite;
}

.hero-in {
  opacity: 0;
  animation: hero-fade-up 0.9s var(--ease-out) forwards;
}

.hero-in--1 { animation-delay: 0.15s; }
.hero-in--2 { animation-delay: 0.3s; }
.hero-in--3 { animation-delay: 0.42s; }
.hero-in--4 { animation-delay: 0.54s; }
.hero-in--5 { animation-delay: 0.66s; }

.chat-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.375rem 0.875rem 0.375rem 0.625rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  animation-delay: 0.05s;
}

.chat-hero__badge-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.55);
}

.chat-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.chat-hero__brand {
  margin-bottom: 1.75rem;
}

.chat-hero__brand .mythex-host {
  width: min(16rem, 62vw);
  margin-inline: auto;
  aspect-ratio: 818.71 / 367.34;
}

.mythex-host { width: 100%; }
.mythex-wordmark { display: block; width: 100%; height: auto; --mythex-speed: 0.6; }

@keyframes mythex-letter-reveal {
  0% { opacity: 0; transform: translateY(20px) scale(0.92); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.mythex-speed-normal { --mythex-speed: 0.6; }
.mythex-speed-fast { --mythex-speed: 0.45; }
.mythex-wordmark .mythex-letter { transform-box: fill-box; transform-origin: center; }
.mythex-wordmark .mythex-animate-reveal {
  opacity: 0;
  animation: mythex-letter-reveal calc(0.6s * var(--mythex-speed)) cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc((var(--letter-index) * 0.07s + 0.12s) * var(--mythex-speed));
}

.chat-hero__greeting {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--text);
}

.chat-hero__sub {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Composer */
.chat-compose {
  position: relative;
  margin-top: 2rem;
  width: 100%;
}

.chat-compose__box {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border-light);
  background: var(--compose-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(124, 58, 237, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.chat-compose__box:focus-within {
  border-color: rgba(124, 58, 237, 0.5);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 3px rgba(124, 58, 237, 0.15),
    0 0 60px rgba(124, 58, 237, 0.12);
}

.chat-compose__input {
  flex: 1;
  min-width: 0;
  min-height: 3.5rem;
  max-height: 8rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.5;
  resize: none;
  outline: none;
}

.chat-compose__input::placeholder { color: var(--muted); }

.chat-compose__send {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--overlay-strong);
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.chat-compose__send:not(:disabled) {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45);
}

.chat-compose__send:not(:disabled):hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.55);
}

@keyframes send-ready-pop {
  0% { transform: scale(1); box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45); }
  50% { transform: scale(1.12); box-shadow: 0 8px 28px rgba(124, 58, 237, 0.6); }
  100% { transform: scale(1); box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45); }
}

.chat-compose__send--ready:not(:disabled) {
  animation: send-ready-pop 0.45s var(--ease-spring);
}

.chat-compose__send:disabled { cursor: not-allowed; }

.chat-compose__hint {
  margin-top: 0.875rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Starters */
.chat-hero__starters {
  margin-top: 1.75rem;
}

.chat-hero__starters-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.chat-hero__starters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.chat-starter {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--overlay-faint);
  color: var(--text-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.chat-starter:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.chat-starter--active {
  background: rgba(124, 58, 237, 0.15) !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  color: var(--text) !important;
  transform: scale(0.95) !important;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--ease-out),
    transform 0.75s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* Trust strip */
.trust-strip {
  padding-block: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem 1.5rem;
}

@media (min-width: 768px) {
  .trust-strip__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg-soft);
}

.trust-strip__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(124, 58, 237, 0.12);
  color: var(--primary);
}

.trust-strip__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-soft);
  line-height: 1.3;
}

/* Use cases */
.use-cases {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .use-cases { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .use-cases { grid-template-columns: repeat(3, 1fr); }
}

.use-case-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.use-case-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.use-case-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(75, 107, 251, 0.2);
  background: rgba(75, 107, 251, 0.08);
  color: var(--secondary);
}

.use-case-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.use-case-card__text {
  flex: 1;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.55;
  margin-bottom: 1rem;
}

.use-case-card__try {
  align-self: flex-start;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.use-case-card__try:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text);
}

/* Product showcase */
.showcase-panels {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .showcase-panels {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
  }
}

.showcase-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  background: var(--card-bg-solid);
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35);
}

@media (min-width: 900px) and (hover: hover) {
  .showcase-panel {
    transform-style: preserve-3d;
    will-change: transform;
  }
}

.showcase-panel__chrome {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 0.875rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.showcase-panel__chrome > span:nth-child(1) { background: #ff5f57; }
.showcase-panel__chrome > span:nth-child(2) { background: #febc2e; }
.showcase-panel__chrome > span:nth-child(3) { background: #28c840; }

.showcase-panel__chrome > span:not(.showcase-panel__title) {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.showcase-panel__title {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  margin-right: 1.5rem;
}

.showcase-panel__body {
  padding: 1rem;
  min-height: 11rem;
}

.showcase-msg {
  max-width: 92%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.showcase-panel--chat .showcase-msg {
  opacity: 0;
  transform: translateY(8px);
}

.showcase-panel--chat.is-visible .showcase-msg {
  animation: showcase-msg-in 0.55s var(--ease-out) forwards;
}

.showcase-panel--chat.is-visible .showcase-msg--user { animation-delay: 0.15s; }
.showcase-panel--chat.is-visible .showcase-msg--ai { animation-delay: 0.45s; }
.showcase-panel--chat.is-visible .showcase-msg--building { animation-delay: 0.75s; }

@keyframes showcase-msg-in {
  to { opacity: 1; transform: none; }
}

.showcase-panel--builder .showcase-block--hero,
.showcase-panel--builder .showcase-block--form,
.showcase-panel--builder .showcase-block--row span {
  opacity: 0;
  transform: scale(0.96);
}

.showcase-panel--builder.is-visible .showcase-block--hero {
  animation: showcase-block-in 0.5s var(--ease-out) 0.2s forwards;
}

.showcase-panel--builder.is-visible .showcase-block--row span:nth-child(1) {
  animation: showcase-block-in 0.45s var(--ease-out) 0.35s forwards;
}

.showcase-panel--builder.is-visible .showcase-block--row span:nth-child(2) {
  animation: showcase-block-in 0.45s var(--ease-out) 0.45s forwards;
}

.showcase-panel--builder.is-visible .showcase-block--row span:nth-child(3) {
  animation: showcase-block-in 0.45s var(--ease-out) 0.55s forwards;
}

.showcase-panel--builder.is-visible .showcase-block--form {
  animation: showcase-block-in 0.5s var(--ease-out) 0.65s forwards;
}

@keyframes showcase-block-in {
  to { opacity: 1; transform: none; }
}

.showcase-panel--preview .showcase-preview__nav,
.showcase-panel--preview .showcase-preview__hero,
.showcase-panel--preview .showcase-preview__fields {
  opacity: 0;
  transform: translateY(6px);
}

.showcase-panel--preview.is-visible .showcase-preview__nav {
  animation: showcase-msg-in 0.45s var(--ease-out) 0.2s forwards;
}

.showcase-panel--preview.is-visible .showcase-preview__hero {
  animation: showcase-msg-in 0.55s var(--ease-out) 0.35s forwards;
}

.showcase-panel--preview.is-visible .showcase-preview__fields {
  animation: showcase-msg-in 0.5s var(--ease-out) 0.55s forwards;
}

.showcase-msg--user {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 0.25rem;
}

.showcase-msg--ai {
  background: var(--overlay-muted);
  color: var(--text-soft);
  border-bottom-left-radius: 0.25rem;
}

.showcase-msg--building {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.75rem;
}

@keyframes showcase-dot-pulse {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.showcase-dots {
  display: inline-flex;
  gap: 3px;
}

.showcase-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  animation: showcase-dot-pulse 1.2s ease-in-out infinite;
}

.showcase-dots span:nth-child(2) { animation-delay: 0.15s; }
.showcase-dots span:nth-child(3) { animation-delay: 0.3s; }

.showcase-builder {
  display: flex;
  gap: 0.625rem;
  min-height: 10rem;
}

.showcase-builder__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  width: 2.5rem;
  flex-shrink: 0;
}

.showcase-builder__sidebar span {
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
}

.showcase-builder__sidebar .sidebar-active {
  height: 1.25rem;
  background: rgba(124, 58, 237, 0.35);
  border: 1px solid rgba(124, 58, 237, 0.4);
}

.showcase-builder__canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.showcase-block {
  border-radius: 0.375rem;
  background: var(--overlay-faint);
}

.showcase-block--hero {
  height: 2.75rem;
  background: rgba(124, 58, 237, 0.28);
  border: 1px solid rgba(124, 58, 237, 0.35);
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.builder-label {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.showcase-block--row {
  display: flex;
  gap: 0.375rem;
  padding: 0;
  background: transparent;
}

.showcase-block--row span {
  flex: 1;
  height: 2rem;
  border-radius: 0.25rem;
  background: rgba(75, 107, 251, 0.18);
  border: 1px solid rgba(75, 107, 251, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.showcase-block--row span em {
  font-style: normal;
  font-size: 0.45rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.showcase-block--form {
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
}

.builder-input-row {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  width: 100%;
}

.builder-input-label {
  height: 0.375rem;
  width: 2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.builder-input-field {
  flex: 1;
  height: 0.875rem;
  border-radius: 0.2rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Preview panel */
.showcase-preview__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 1.75rem;
  padding: 0 0.375rem;
  margin-bottom: 0.75rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-nav-logo {
  width: 2rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.35);
}

.preview-nav-links {
  display: flex;
  gap: 0.375rem;
}

.preview-nav-links span {
  width: 1.25rem;
  height: 0.3rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}

.showcase-preview__hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.875rem;
  margin-bottom: 0.625rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(75, 107, 251, 0.12) 100%);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.showcase-preview__hero strong {
  font-size: 0.75rem;
  color: var(--text);
}

.showcase-preview__hero em {
  font-size: 0.625rem;
  font-style: normal;
  color: rgba(255, 255, 255, 0.55);
}

.showcase-preview__btn {
  margin-top: 0.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 0.3rem;
  background: var(--primary);
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
}

.showcase-preview__fields {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.preview-field-label {
  height: 0.3rem;
  width: 2.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.2);
}

.preview-field-input {
  height: 0.875rem;
  border-radius: 0.25rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.preview-field-input--short { width: 65%; }

/* Status message in chat panel */
.showcase-msg--status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  color: rgba(52, 211, 153, 0.9);
  font-size: 0.7rem;
  font-weight: 500;
}

.showcase-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.7);
}

.showcase-panel--chat.is-visible .showcase-msg--status { animation-delay: 1.1s; }

/* Sections — full width, left-aligned headers */
.section {
  position: relative;
  padding-block: clamp(4rem, 8vw, 6rem);
  border-top: 1px solid var(--border);
}

.section--alt {
  background:
    linear-gradient(180deg, rgba(124, 58, 237, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(75, 107, 251, 0.06), transparent);
}

.section-head {
  max-width: 32rem;
  margin-bottom: 3rem;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.625rem, 3vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.15;
}

.section-desc {
  margin-top: 0.875rem;
  font-size: 1.0625rem;
  color: var(--text-soft);
  line-height: 1.65;
}

/* How it works — sticky 2-col layout */
.how-layout {
  display: block;
}

@media (min-width: 900px) {
  .how-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 5rem;
    align-items: start;
  }

  .how-layout__left {
    position: sticky;
    top: calc(var(--nav-h) + 5rem);
    align-self: start;
  }

  .how-layout__left .section-head {
    margin-bottom: 0;
    max-width: none;
  }
}

/* Steps — single column inside how-layout */
.steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .steps {
    gap: 1.5rem;
    padding-block: 1rem;
  }
}

.step-card {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.step-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.06), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.step-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35), 0 0 40px rgba(124, 58, 237, 0.08);
}

.step-card:hover::before { opacity: 1; }

.step-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.625rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.step-card__num {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--secondary);
  margin-bottom: 0.625rem;
}

.step-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step-card__text {
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* Features — 4 col on desktop */
.features {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
}

.feature-card {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-gradient-h);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--card-shadow);
}

.feature-card:hover::after { opacity: 1; }

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: rgba(75, 107, 251, 0.08);
  border: 1px solid rgba(75, 107, 251, 0.2);
  color: var(--secondary);
}

.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* FAQ — side by side on desktop */
.faq-layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
    gap: 4rem;
    align-items: start;
  }

  .faq-layout__head { margin-bottom: 0; }
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.faq__item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  transition: border-color 0.25s, background 0.25s;
}

.faq__item[open] {
  border-color: var(--border-light);
  background: var(--card-bg-solid);
}

.faq__item summary {
  position: relative;
  padding: 1.125rem 2.75rem 1.125rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq__item summary:hover { color: var(--text-soft); }

.faq__item summary::after {
  content: '';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-60%) rotate(45deg);
  transition: transform 0.3s var(--ease-out), border-color 0.2s;
}

.faq__item[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
  border-color: var(--text-soft);
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item p {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.65;
  animation: faq-open 0.35s var(--ease-out);
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* CTA band */
.cta-band {
  padding-block: clamp(4rem, 8vw, 5rem);
  border-top: 1px solid var(--border);
}

.cta-band__inner {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--cta-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.cta-band__glow {
  pointer-events: none;
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.08), transparent 55%);
  animation: aurora-pulse 5s ease-in-out infinite;
}

.cta-band__title {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.cta-band__desc {
  position: relative;
  margin-top: 0.75rem;
  font-size: 1.0625rem;
  color: var(--text-soft);
  max-width: 28rem;
  margin-inline: auto;
}

.cta-band__inner .btn {
  position: relative;
  margin-top: 1.75rem;
}

.cta-band__note {
  position: relative;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.cta-band__alt {
  position: relative;
  margin-top: 0.75rem;
  font-size: 0.875rem;
}

.cta-band__alt a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.cta-band__alt a:hover { color: var(--text-soft); }

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
  background: var(--footer-fade);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.5fr repeat(3, 1fr); }
}

.footer__brand img {
  height: 2rem;
  width: auto;
  margin-bottom: 0.875rem;
  display: block;
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 14rem;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer__col h3 {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer__col a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.15s;
}

.footer__col a:hover { color: var(--text-soft); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__bottom a:hover { color: var(--text-soft); }

/* ============================================================
   WOW UPGRADES
   ============================================================ */

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  background-repeat: repeat;
}

/* Enhanced aurora orbs */
.bg-glow .g1 {
  width: 42rem;
  height: 42rem;
  background: rgba(124, 58, 237, 0.14);
}
.bg-glow .g2 {
  width: 34rem;
  height: 34rem;
  background: rgba(75, 107, 251, 0.16);
}
.bg-glow .g5 {
  top: 68%;
  right: 4%;
  width: 24rem;
  height: 24rem;
  background: rgba(192, 38, 211, 0.08);
  animation-delay: -19s;
  animation-duration: 31s;
  opacity: var(--glow-strength);
}

/* Cursor glow */
#cursor-glow {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 700px;
  height: 700px;
  margin-left: -350px;
  margin-top: -350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.055) 0%, rgba(75, 107, 251, 0.03) 45%, transparent 70%);
  z-index: 1;
  will-change: transform;
  transition: opacity 0.6s;
  opacity: 0;
}

/* Hero subheadline — static, no phrase cycler */
.chat-hero__sub {
  opacity: 1;
}

/* ---- Stats section ---- */
.section--social-proof {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
    max-width: 22rem;
    margin-inline: auto;
  }
}

.stat-item {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}

.stat-item:hover {
  border-color: rgba(124, 58, 237, 0.25);
  box-shadow: var(--card-shadow);
  transform: translateY(-3px);
}

.stat-num {
  display: block;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Marquee ---- */
.marquee-wrap {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 0.625rem;
  width: max-content;
  user-select: none;
}

.marquee-track--fwd {
  animation: marquee-fwd 30s linear infinite;
}

.marquee-track--rev {
  animation: marquee-rev 34s linear infinite;
}

@keyframes marquee-fwd {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marquee-rev {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.marquee-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.125rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card-bg-soft);
  color: var(--text-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.marquee-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.marquee-pill__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

/* ---- Enhanced use-case card hover ---- */
.use-case-card {
  transform-style: preserve-3d;
  will-change: transform;
}

@keyframes use-card-border-glow {
  0%, 100% { border-color: rgba(124, 58, 237, 0.45); box-shadow: var(--card-shadow), 0 0 0 1px rgba(124, 58, 237, 0.2), 0 0 32px rgba(124, 58, 237, 0.1); }
  50% { border-color: rgba(75, 107, 251, 0.55); box-shadow: var(--card-shadow), 0 0 0 1px rgba(75, 107, 251, 0.25), 0 0 40px rgba(75, 107, 251, 0.14); }
}

.use-case-card:hover {
  animation: use-card-border-glow 2s ease-in-out infinite;
  transform: translateY(-3px);
}

/* ---- FAQ smooth accordion ---- */
.faq__body {
  overflow: hidden;
  transition: height 0.38s var(--ease-out);
}

.faq__item:not([open]) .faq__body {
  height: 0 !important;
}

.faq__item p {
  animation: none;
}

.faq__item[open] {
  border-color: var(--border-light);
  background: var(--card-bg-solid);
}

.faq__item[open] summary {
  color: var(--text);
}

/* Left accent glow on open FAQ */
.faq__item[open]::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: var(--brand-gradient);
  opacity: 0.9;
}

.faq__item {
  position: relative;
  overflow: hidden;
}

/* ---- CTA Galaxy ---- */
.cta-band {
  position: relative;
  padding-block: clamp(5.5rem, 14vw, 9rem);
  overflow: hidden;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
}

/* Pulse rings around galaxy CTA button */
.btn--galaxy {
  position: relative;
  overflow: visible; /* let rings extend beyond button bounds */
}

.btn--galaxy::before {
  content: '';
  position: absolute;
  border-radius: 0.9375rem;
  pointer-events: none;
  inset: -6px;
  border: 1.5px solid rgba(124, 58, 237, 0.45);
  animation: ring-pulse 2.5s ease-out infinite;
}

@keyframes ring-pulse {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.18); }
}

/* CTA title ready for GSAP blur reveal */
.cta-band__title,
.cta-band__desc {
  will-change: filter, opacity, transform;
}

/* ---- Shimmer sweep on primary buttons ---- */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg);
  transition: left 0.45s var(--ease-out);
  pointer-events: none;
}

.btn--primary:hover::before {
  left: 160%;
}

/* Ripple */
@keyframes btn-ripple {
  from { opacity: 0.45; transform: scale(0); }
  to { opacity: 0; transform: scale(2.8); }
}

.btn__ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  width: 80px;
  height: 80px;
  margin-left: -40px;
  margin-top: -40px;
  animation: btn-ripple 0.55s ease-out forwards;
  pointer-events: none;
}

/* ---- Nav improvements ---- */
.nav__links {
  position: relative;
}

.nav__indicator {
  position: absolute;
  bottom: -7px;
  left: 0;
  height: 2px;
  background: var(--brand-gradient-h);
  border-radius: 1px;
  transition: transform 0.38s var(--ease-out), width 0.38s var(--ease-out), opacity 0.25s;
  opacity: 0;
  pointer-events: none;
}

/* ---- Mobile nav overlay ---- */
.nav__mobile {
  display: flex;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  backdrop-filter: blur(28px) saturate(1.8);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  background: var(--mobile-nav-bg);
  border-bottom: none;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.32s var(--ease-out), transform 0.32s var(--ease-out);
  pointer-events: none;
  overflow-y: auto;
  padding: 2rem var(--page-gutter);
  align-items: flex-start;
}

.nav__mobile.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav__mobile a {
  opacity: 0;
  transform: translateX(-14px);
  transition: color 0.15s, opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.nav__mobile.is-open a {
  opacity: 1;
  transform: none;
}

.nav__mobile.is-open a:nth-child(1) { transition-delay: 0.06s; }
.nav__mobile.is-open a:nth-child(2) { transition-delay: 0.12s; }
.nav__mobile.is-open a:nth-child(3) { transition-delay: 0.18s; }
.nav__mobile.is-open a:nth-child(4) { transition-delay: 0.24s; }
.nav__mobile.is-open a:nth-child(5) { transition-delay: 0.30s; }
.nav__mobile.is-open a:nth-child(6) { transition-delay: 0.36s; }

/* Section title ready for GSAP + SplitText */
.section-title {
  will-change: filter, opacity, transform;
  overflow: visible;
}

/* SplitText word wrappers — must be inline-block to flow as text */
.st-word {
  display: inline-block;
}

/* ── Global ambient canvas (wave mesh + bokeh orbs) ── */
#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: var(--scroll-pct, 0%);
  background: var(--brand-gradient-h);
  z-index: 200;
  pointer-events: none;
  transform-origin: left;
}

/* ── Rotating gradient border on galaxy CTA ── */
@property --cta-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn--galaxy::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(
    from var(--cta-angle),
    transparent 15%,
    rgba(124, 58, 237, 0.65) 35%,
    rgba(75, 107, 251, 0.65) 52%,
    transparent 68%
  );
  z-index: -1;
  animation: cta-border-spin 4s linear infinite;
}

@keyframes cta-border-spin {
  to { --cta-angle: 360deg; }
}

/* ── Particle canvas ── */
#particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  width: 100%;
  height: 100%;
}

/* ── Card glare (cursor-reactive radial highlight) ── */
.use-case-card,
.step-card,
.feature-card {
  --mx: 50%;
  --my: 50%;
  overflow: hidden;
}

.card-glare-spot {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.13) 0%, transparent 58%);
  opacity: var(--glare-opacity, 0);
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 2;
}

/* Marquee pause on hover */
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

/* Pause compose beam when user is typing */
.chat-compose__box:focus-within {
  animation-play-state: paused;
}

/* Hide mobile nav overlay on desktop */
@media (min-width: 900px) {
  .nav__mobile {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .hero-in { opacity: 1; animation: none; filter: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .bg-glow span { animation: none; }
  .mythex-wordmark [class*='mythex-animate-'] { opacity: 1 !important; animation: none !important; transform: none !important; filter: none !important; }
  .chat-compose__send:not(:disabled):hover,
  .step-card:hover,
  .feature-card:hover,
  .chat-starter:hover,
  .use-case-card:hover,
  .chat-compose__box:focus-within { transform: none; }
  .showcase-dots span { animation: none; opacity: 0.6; }
  .showcase-panel--chat .showcase-msg,
  .showcase-panel--builder .showcase-block--hero,
  .showcase-panel--builder .showcase-block--form,
  .showcase-panel--builder .showcase-block--row span,
  .showcase-panel--preview .showcase-preview__nav,
  .showcase-panel--preview .showcase-preview__hero,
  .showcase-panel--preview .showcase-preview__fields {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .chat-compose__send--ready:not(:disabled) { animation: none; }
  .showcase-panel { transform: none !important; box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35) !important; }
  #particle-canvas { display: none; }
  #ambient-canvas { display: none; }
  .chat-compose__box { animation: none; }
  .marquee-track--fwd, .marquee-track--rev { animation: none; }
  .btn--galaxy::before { animation: none; }
  .btn--galaxy::after { animation: none; opacity: 0; }
  .ring-pulse { animation: none; }
  #scroll-progress { display: none; }
  .use-case-card:hover { animation: none; border-color: rgba(124, 58, 237, 0.35); box-shadow: var(--card-shadow); }
  body::after { display: none; }
  #cursor-glow { display: none; }
  .cursor-trail { display: none; }
  .feature-card__icon svg { animation: none !important; }
  #scroll-top-btn { transition: none; }
}

/* ── Cursor trail sparkles ── */
.cursor-trail {
  position: fixed;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(1);
  animation: trail-fade 0.55s ease-out forwards;
}

@keyframes trail-fade {
  0%   { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(0.2); }
}

/* ── Feature card icon micro-animations ── */
.feature-card:nth-child(1):hover .feature-card__icon svg {
  animation: icon-bounce 0.5s var(--ease-spring) forwards;
}
.feature-card:nth-child(2):hover .feature-card__icon svg {
  animation: icon-scale 0.4s var(--ease-spring) forwards;
}
.feature-card:nth-child(3):hover .feature-card__icon svg {
  animation: icon-pulse-y 0.5s ease-in-out forwards;
}
.feature-card:nth-child(4):hover .feature-card__icon svg {
  animation: icon-nudge-down 0.45s var(--ease-spring) forwards;
}

@keyframes icon-bounce {
  0%   { transform: translateY(0); }
  45%  { transform: translateY(-5px); }
  70%  { transform: translateY(2px); }
  100% { transform: translateY(0); }
}

@keyframes icon-scale {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.22); }
  100% { transform: scale(1); }
}

@keyframes icon-pulse-y {
  0%   { transform: scaleY(1); }
  40%  { transform: scaleY(1.2) scaleX(0.9); }
  70%  { transform: scaleY(0.95) scaleX(1.03); }
  100% { transform: scaleY(1) scaleX(1); }
}

@keyframes icon-nudge-down {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(4px); }
  75%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

/* ── Scroll-to-top button ── */
#scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: rgba(14, 20, 34, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-soft);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), border-color 0.2s, color 0.2s;
  pointer-events: none;
}

#scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#scroll-top-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* ── Button click ripple ── */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  pointer-events: none;
  animation: ripple-spread 0.6s ease-out forwards;
}

@keyframes ripple-spread {
  to { transform: scale(4); opacity: 0; }
}
