:root {
  --bg: #0a0a0f;
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --text: #ffffff;
  --muted: #9ca3af;
  --dim: #6b7280;
  --violet: #7c3aed;
  --violet-light: #a78bfa;
  --pink: #ec4899;
  --cyan: #22d3ee;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --gradient-cta: linear-gradient(135deg, #8b5cf6, #d946ef);
  --gradient-text: linear-gradient(90deg, #a78bfa, #f472b6, #67e8f9);
  --nav-height: 64px;
  --section-max: 1100px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-phone: 40px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--text);
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.72);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.nav.nav-scrolled {
  border-bottom-color: var(--border);
  background: rgba(10, 10, 15, 0.92);
}

.nav-container {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark { color: var(--violet-light); }

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-anchor {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
}

.nav-mobile-panel {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.98);
}

.nav-mobile-panel[hidden] { display: none; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9375rem;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

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

.btn-primary {
  background: var(--gradient-cta);
  color: white;
  box-shadow: 0 4px 24px rgba(139, 92, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 6px 32px rgba(139, 92, 246, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--border);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

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

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

.btn-play { width: 100%; margin-top: 1rem; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 3rem 1.5rem 4rem;
  overflow-x: clip;
  overflow-y: visible;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.hero-orb-1 {
  width: 55%;
  height: 45%;
  top: -10%;
  left: 10%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.5), transparent 70%);
  animation: mesh-drift-1 18s ease-in-out infinite alternate;
}

.hero-orb-2 {
  width: 40%;
  height: 35%;
  top: 5%;
  right: 5%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.35), transparent 70%);
  animation: mesh-drift-2 22s ease-in-out infinite alternate;
}

.hero-orb-3 {
  width: 35%;
  height: 30%;
  bottom: 10%;
  left: 30%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 70%);
  animation: mesh-drift-3 20s ease-in-out infinite alternate;
}

@keyframes mesh-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(3%, 5%) scale(1.08); }
}

@keyframes mesh-drift-2 {
  from { transform: translate(0, 0); }
  to { transform: translate(-4%, 3%); }
}

@keyframes mesh-drift-3 {
  from { transform: translate(0, 0); }
  to { transform: translate(2%, -4%); }
}

.hero-container {
  position: relative;
  max-width: var(--section-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 2.5rem 3.5rem;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.hero-copy {
  text-align: left;
  max-width: 32rem;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.hero-sub {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--violet-light);
  font-weight: 600;
  margin: 0 0 1rem;
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-sub {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
  }
}

.hero-desc {
  color: var(--muted);
  font-size: 1.0625rem;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-start;
  width: calc(100% + max(0px, (100vw - var(--section-max)) / 2 - 1.5rem));
  margin-right: calc(-1 * max(0px, (100vw - var(--section-max)) / 2 - 1.5rem));
  max-width: none;
  min-width: 0;
  align-self: center;
  will-change: transform;
}

.showcase-glow {
  position: absolute;
  inset: 5% 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.28), transparent 65%);
  filter: blur(28px);
  animation: showcase-glow-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes showcase-glow-pulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

.welcome-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.5rem 0;
  overflow: hidden;
}

.showcase-row {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.showcase-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
}

.showcase-row-a .showcase-track {
  animation: marquee-left 38s linear infinite;
}

.showcase-row-b .showcase-track {
  animation: marquee-right 44s linear infinite;
}

.showcase-row-c .showcase-track {
  animation: marquee-left 52s linear infinite;
}

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

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

.showcase-tile {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .showcase-tile:hover {
    transform: translateY(-2px);
  }
}

.showcase-tile-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.showcase-tile-icon svg {
  width: 1.625rem;
  height: 1.625rem;
  color: rgba(255, 255, 255, 0.9);
}

.showcase-tile-icon--violet {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.3), rgba(124, 58, 237, 0.05));
}

.showcase-tile-icon--pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0.05));
}

.showcase-tile-icon--cyan {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.3), rgba(34, 211, 238, 0.05));
}

.showcase-tile-icon--mixed {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.25), rgba(236, 72, 153, 0.2), rgba(34, 211, 238, 0.15));
}

.showcase-tile-label {
  max-width: 5.5rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.welcome-showcase--static {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  padding: 0 0.5rem;
}

.welcome-showcase--static .showcase-row {
  display: contents;
  mask-image: none;
  overflow: visible;
}

.welcome-showcase--static .showcase-track {
  display: contents;
  animation: none;
  width: auto;
}

/* ── Social proof ── */
.social-proof {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
}

.social-proof-inner {
  max-width: var(--section-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 2rem;
}

.social-proof-stat {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.social-proof-stat strong {
  color: var(--text);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-chips li {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ── Sections ── */
.section-header {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.625rem;
}

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

/* ── How it works ── */
.how-it-works {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.35);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet-light);
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.step-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Features ── */
.features {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

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

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.feature-card {
  padding: 1.75rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(236, 72, 153, 0.12);
  color: #f472b6;
}

.feature-card:nth-child(2) .feature-icon {
  background: rgba(139, 92, 246, 0.15);
  color: var(--violet-light);
}

.feature-card:nth-child(3) .feature-icon {
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
}

.feature-card:nth-child(4) .feature-icon {
  background: rgba(52, 211, 153, 0.12);
  color: #34d399;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ── Prompts ── */
.prompts {
  max-width: var(--section-max);
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  text-align: center;
}

.prompt-carousel {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.prompt-quote {
  margin: 0;
}

.prompt-quote p {
  margin: 0;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}

.prompt-dots {
  display: flex;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
}

.prompt-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.3s ease, transform 0.3s ease;
}

.prompt-dot.is-active {
  background: var(--pink);
  transform: scale(1.2);
}

.prompt-cta-hint {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.link-gradient {
  color: var(--violet-light);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.link-gradient:hover { opacity: 0.85; }

/* ── FAQ ── */
.faq {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

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

.faq-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.125rem 1.25rem;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.125rem;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
}

.faq-item a { color: var(--violet-light); }

/* ── CTA band ── */
.cta-band {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.cta-band-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(124, 58, 237, 0.2), transparent),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(236, 72, 153, 0.15), transparent);
  pointer-events: none;
}

.cta-band-content {
  position: relative;
  max-width: 32rem;
  margin: 0 auto;
}

.cta-band h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 0.625rem;
}

.cta-band p {
  color: var(--muted);
  margin: 0 0 1.75rem;
  font-size: 1.0625rem;
}

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

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid var(--border);
}

.footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

#hero .reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.12s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    text-align: center;
  }

  .hero-copy {
    text-align: center;
    max-width: none;
    width: 100%;
  }

  .hero-desc { margin-left: auto; margin-right: auto; }

  .hero-cta { justify-content: center; }

  .hero-visual {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    justify-content: center;
    overflow: hidden;
  }

  .showcase-tile-icon {
    width: 3.5rem;
    height: 3.5rem;
  }

  .showcase-tile-icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .showcase-tile {
    padding: 0.75rem;
  }

  .steps-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-center,
  .nav-actions .nav-login {
    display: none;
  }

  .nav-toggle { display: flex; }

  .nav-mobile-panel:not([hidden]) {
    display: flex;
  }

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

  .steps-timeline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero { padding-top: 2rem; }

  .welcome-showcase--static {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav-actions .nav-cta {
    display: none;
  }
}
