/* ============================================
   FibiTrips — Design Tokens & Component Styles
   ============================================ */

/* --- Type Scale --- */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* --- Spacing --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* --- Radius --- */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* --- Transitions --- */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* --- Content widths --- */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* --- Fonts --- */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* ============================
   LIGHT MODE (default)
   ============================ */
:root,
[data-theme='light'] {
  --color-bg: #FFFFFF;
  --color-surface: #F9FAFB;
  --color-surface-2: #F3F4F6;
  --color-surface-offset: #E5E7EB;
  --color-border: #E5E7EB;
  --color-divider: #F3F4F6;

  --color-text: #111827;
  --color-text-muted: #6B7280;
  --color-text-faint: #9CA3AF;
  --color-text-inverse: #F9FAFB;

  /* Primary — Fibi Brand Purple */
  --color-primary: #9333EA;
  --color-primary-hover: #7C3AED;
  --color-primary-active: #6D28D9;
  --color-primary-light: #F3E8FF;

  /* Secondary — Deeper Purple */
  --color-secondary: #6D28D9;
  --color-secondary-hover: #5B21B6;
  --color-secondary-light: #EDE9FE;

  /* Accent — Bright Purple */
  --color-accent: #A855F7;
  --color-accent-hover: #9333EA;

  /* Button gradient — purple to blue (matches app Sign In button) */
  --btn-gradient: linear-gradient(90deg, #9333EA 0%, #7C3AED 50%, #3B82F6 100%);
  --btn-gradient-hover: linear-gradient(90deg, #7C3AED 0%, #6D28D9 50%, #2563EB 100%);

  /* Success */
  --color-success: #16A34A;

  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 4px 16px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 12px 40px rgba(17, 24, 39, 0.12);
  --shadow-xl: 0 20px 60px rgba(17, 24, 39, 0.16);
}

/* ============================
   DARK MODE
   ============================ */
[data-theme='dark'] {
  --color-bg: #0A0118;
  --color-surface: #111827;
  --color-surface-2: #1F2937;
  --color-surface-offset: #1A0B2E;
  --color-border: #1F2937;
  --color-divider: #111827;

  --color-text: #F0E6FF;
  --color-text-muted: #9CA3AF;
  --color-text-faint: #6B7280;
  --color-text-inverse: #0A0118;

  --color-primary: #7C3AED;
  --color-primary-hover: #6D28D9;
  --color-primary-active: #5B21B6;
  --color-primary-light: #1A0B2E;

  --color-secondary: #A855F7;
  --color-secondary-hover: #9333EA;
  --color-secondary-light: #2D1B4E;

  --color-accent: #C084FC;
  --color-accent-hover: #A855F7;

  --btn-gradient: linear-gradient(90deg, #9333EA 0%, #7C3AED 50%, #3B82F6 100%);
  --btn-gradient-hover: linear-gradient(90deg, #A855F7 0%, #9333EA 50%, #4F46E5 100%);

  --color-success: #22C55E;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0A0118;
    --color-surface: #111827;
    --color-surface-2: #1F2937;
    --color-surface-offset: #1A0B2E;
    --color-border: #1F2937;
    --color-divider: #111827;
    --color-text: #F0E6FF;
    --color-text-muted: #9CA3AF;
    --color-text-faint: #6B7280;
    --color-text-inverse: #0A0118;
    --color-primary: #7C3AED;
    --color-primary-hover: #6D28D9;
    --color-primary-active: #5B21B6;
    --color-primary-light: #1A0B2E;
    --color-secondary: #A855F7;
    --color-secondary-hover: #9333EA;
    --color-secondary-light: #2D1B4E;
    --color-accent: #C084FC;
    --color-accent-hover: #A855F7;
    --color-success: #22C55E;
    --btn-gradient: linear-gradient(90deg, #9333EA 0%, #7C3AED 50%, #3B82F6 100%);
    --btn-gradient-hover: linear-gradient(90deg, #A855F7 0%, #9333EA 50%, #4F46E5 100%);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
  }
}

/* ============================
   GLOBAL LAYOUT
   ============================ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

section {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* ============================
   HEADER / NAV
   ============================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .header__inner {
    height: 96px;
    padding-inline: var(--space-8);
  }
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.header__logo-text span {
  color: var(--color-primary);
}

.header__logo-img {
  height: 64px;
  width: auto;
  display: block;
}

@media (min-width: 768px) {
  .header__logo-img {
    height: 76px;
  }
}

.header__logo-img--footer {
  height: 56px;
}

.header__nav {
  display: none;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }
}

.header__nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

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

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.btn-theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

.mobile-menu-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text);
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: 80px var(--space-6) var(--space-8);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  display: block;
}

/* ============================
   BUTTONS
   ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-full);
  padding: 14px 28px;
  cursor: pointer;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--btn-gradient);
  color: #fff;
}

.btn--primary:hover {
  background: var(--btn-gradient-hover);
  box-shadow: 0 8px 24px oklch(from #7C3AED l c h / 0.35);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-surface-2);
  border-color: var(--color-text-faint);
}

.btn--large {
  padding: 18px 36px;
  font-size: var(--text-base);
}

.btn--nav {
  padding: 10px 20px;
  font-size: var(--text-xs);
}

/* ============================
   HERO
   ============================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 19, 17, 0.3) 0%,
    rgba(20, 19, 17, 0.55) 50%,
    rgba(20, 19, 17, 0.85) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-8) var(--space-4);
}

@media (min-width: 768px) {
  .hero__content {
    padding: var(--space-16) var(--space-8);
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: oklch(from #7C3AED l c h / 0.2);
  backdrop-filter: blur(8px);
  color: #E9D5FF;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid oklch(from #7C3AED l c h / 0.35);
  margin-bottom: var(--space-6);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  line-height: 1.05;
}

.hero__heading em {
  font-style: normal;
  color: #E9D5FF;
  position: relative;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.4);
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero__stats {
  display: flex;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__stat {
  text-align: left;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-1);
}

/* ============================
   SECTION HEADERS
   ============================ */

.section-header {
  max-width: 640px;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.7;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

/* ============================
   HOW IT WORKS
   ============================ */

.how-it-works {
  background: var(--color-surface-2);
}

.steps-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.step-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-divider);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-faint);
    z-index: 1;
  }
}

/* ============================
   FEATURES
   ============================ */

.features-grid {
  display: grid;
  gap: var(--space-6);
}

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

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

.feature-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  border: 1px solid var(--color-divider);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.feature-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.feature-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================
   SOCIAL EXPERIENCE (full-bleed image + text)
   ============================ */

.social-section {
  background: var(--color-surface-2);
  overflow: hidden;
}

.social-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .social-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.social-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.social-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait product shot variant — phone screenshot aspect */
.social-image--product {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.social-image--product img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 640px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(124, 58, 237, 0.15);
}

@media (max-width: 640px) {
  .social-image--product img {
    max-height: 500px;
  }
}

.social-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.social-feature {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.social-feature__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.social-feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.social-feature__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ============================
   AI SECTION
   ============================ */

.ai-section {
  position: relative;
  overflow: hidden;
}

.ai-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .ai-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.ai-image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 16/9;
  order: -1;
}

@media (min-width: 768px) {
  .ai-image {
    order: 1;
  }
}

.ai-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portrait product shot variant — no aspect-ratio cropping, centered phone */
.ai-image--product {
  aspect-ratio: auto;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ai-image--product img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 600px;
  object-fit: contain;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(124, 58, 237, 0.15);
}

@media (max-width: 640px) {
  .ai-image--product img {
    max-height: 480px;
  }
}

.ai-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.ai-feature {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.ai-feature__check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.ai-feature__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.ai-feature__text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ============================
   LIVE ACTIVITY FEED MOCKUP
   ============================ */

.activity-feed {
  background: var(--color-surface-2);
  overflow: hidden;
}

.feed-container {
  position: relative;
  max-width: 600px;
  margin-inline: auto;
}

.feed-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin-bottom: var(--space-4);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.feed-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xs);
  color: #fff;
}

.feed-body {
  flex: 1;
  min-width: 0;
}

.feed-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.feed-action {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
  line-height: 1.5;
}

.feed-action strong {
  color: var(--color-text);
}

.feed-time {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-top: var(--space-2);
}

.feed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.feed-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.feed-thumb {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-md);
  align-self: stretch;
}

@media (max-width: 640px) {
  .feed-thumb {
    width: 120px;
    height: 120px;
  }
}

.feed-join-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--btn-gradient);
  color: #fff;
  font-family: inherit;
  user-select: none;
}

/* ============================
   TESTIMONIALS
   ============================ */

.testimonials-section {
  background: var(--color-bg);
}

.testimonials-grid {
  display: grid;
  gap: var(--space-6);
}

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

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
}

.testimonial-quote {
  font-size: var(--text-base);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: #fff;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
}

.testimonial-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================
   CTA
   ============================ */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  position: relative;
  background: linear-gradient(135deg, #1A0B2E 0%, #2D1B4E 100%);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-2xl);
  padding: clamp(var(--space-10), 5vw, var(--space-20));
  text-align: center;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(168, 85, 247, 0.25), transparent 60%),
              radial-gradient(ellipse at bottom left, rgba(124, 58, 237, 0.2), transparent 60%);
  pointer-events: none;
}

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

.cta-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}

.cta-title em {
  font-style: normal;
  color: #E9D5FF;
  text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.cta-desc {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  max-width: 500px;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.cta-note {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--space-6);
}

/* ============================
   FOOTER
   ============================ */

.footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
  }
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.6;
  max-width: 300px;
}

.footer__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}

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

.footer__bottom {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* ============================
   SCROLL ANIMATIONS
   ============================ */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  .fade-in.is-visible {
    opacity: 1;
  }
}

/* ============================
   FULL-BLEED IMAGE BREAK
   ============================ */

.image-break {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.image-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================
   UTILITY
   ============================ */

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-2);
}

/* ============================
   WAITLIST SECTION
   ============================ */

.waitlist-section {
  padding: var(--space-20) 0;
  scroll-margin-top: 100px;
}

.waitlist-inner {
  max-width: none;
  margin: 0 auto;
  padding: clamp(var(--space-8), 5vw, var(--space-16)) clamp(var(--space-6), 5vw, var(--space-20));
  background: linear-gradient(180deg, #1A0B2E 0%, #0F0620 100%);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(124, 58, 237, 0.08);
}

.waitlist-form,
.waitlist-success {
  max-width: 520px;
  margin-inline: auto;
}

.waitlist-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.waitlist-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: #E9D5FF;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-3);
}

.waitlist-desc {
  font-size: var(--text-base);
  color: rgba(240, 230, 255, 0.7);
  line-height: 1.6;
  max-width: 440px;
  margin-inline: auto;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.waitlist-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 500px) {
  .waitlist-row {
    grid-template-columns: 1fr;
  }
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.waitlist-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: #C4B5FD;
}

.waitlist-optional {
  color: rgba(196, 181, 253, 0.55);
  font-weight: 400;
  font-size: var(--text-xs);
}

.waitlist-input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(10, 1, 24, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: var(--radius-md);
  color: #F0E6FF;
  font-size: var(--text-base);
  font-family: inherit;
  transition: border-color var(--transition-interactive), background var(--transition-interactive), box-shadow var(--transition-interactive);
}

.waitlist-input::placeholder {
  color: rgba(240, 230, 255, 0.3);
}

.waitlist-input:hover {
  border-color: rgba(168, 85, 247, 0.4);
}

.waitlist-input:focus {
  outline: none;
  border-color: #A855F7;
  background: rgba(10, 1, 24, 0.85);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.waitlist-input:invalid:not(:placeholder-shown) {
  border-color: rgba(239, 68, 68, 0.5);
}

/* Honeypot — hidden from humans but accessible to bots that auto-fill */
.waitlist-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-submit {
  width: 100%;
  margin-top: var(--space-2);
  position: relative;
}

.waitlist-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.waitlist-submit-text,
.waitlist-submit-loading {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.waitlist-spin {
  animation: waitlist-spin 0.8s linear infinite;
}

@keyframes waitlist-spin {
  to { transform: rotate(360deg); }
}

.waitlist-privacy {
  text-align: center;
  font-size: var(--text-xs);
  color: rgba(240, 230, 255, 0.45);
  margin-top: var(--space-3);
}

/* Ensure hidden attribute wins over display rules */
.waitlist-section [hidden] {
  display: none !important;
}

/* Success state */
.waitlist-success {
  text-align: center;
  padding: var(--space-6) 0;
  animation: waitlist-fade-in 0.4s ease-out;
}

@keyframes waitlist-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.waitlist-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: var(--radius-full);
  color: #4ADE80;
  margin-bottom: var(--space-4);
}

.waitlist-success-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--space-3);
}

.waitlist-success-desc {
  font-size: var(--text-base);
  color: rgba(240, 230, 255, 0.7);
  line-height: 1.6;
  max-width: 380px;
  margin-inline: auto;
}

/* Error state */
.waitlist-error {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  max-width: 520px;
  margin: var(--space-3) auto 0;
  padding: var(--space-3) var(--space-4);
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: #FCA5A5;
  font-size: var(--text-sm);
}

/* Light mode tweaks */
[data-theme='light'] .waitlist-inner {
  background: linear-gradient(180deg, #FAF5FF 0%, #F3E8FF 100%);
  border-color: rgba(124, 58, 237, 0.15);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.08);
}

[data-theme='light'] .waitlist-title,
[data-theme='light'] .waitlist-success-title {
  color: #1A0B2E;
}

[data-theme='light'] .waitlist-desc,
[data-theme='light'] .waitlist-success-desc {
  color: #4B5563;
}

[data-theme='light'] .waitlist-eyebrow {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  color: #6D28D9;
}

[data-theme='light'] .waitlist-label {
  color: #4B5563;
}

[data-theme='light'] .waitlist-input {
  background: #fff;
  border-color: #E5E7EB;
  color: #111827;
}

[data-theme='light'] .waitlist-input::placeholder {
  color: #9CA3AF;
}

[data-theme='light'] .waitlist-input:hover {
  border-color: #C4B5FD;
}

[data-theme='light'] .waitlist-input:focus {
  background: #fff;
  border-color: #7C3AED;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

[data-theme='light'] .waitlist-privacy {
  color: #6B7280;
}
