/* ============================================================
   TARS — Design System & Styles
   Tools for Adaptive Relationship Support
   Individual Coaching & Relationship Mediation
   Dark Mode · Calm Tech · Premium Aesthetic
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Backgrounds — exact app dark stack */
  --bg-primary: #0A0A0B;
  --bg-secondary: #121214;
  --bg-tertiary: #1A1A1E;
  --bg-input: #1E2A3D;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-hover: rgba(255, 255, 255, 0.06);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* Text — exact app palette */
  --text-primary: #EDEDED;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --text-accent: #A78BFA;

  /* Accents — exact app brand colors */
  --accent-primary: #F43F5E;        /* Rose — main brand / primary buttons */
  --accent-primary-hover: #E11D48;  /* Rose hover / pressed */
  --accent-glow: #A78BFA;           /* Purple — Oracle / AI insight */
  --accent-agent: #6366F1;          /* Indigo — agent orb ambient glow */
  --accent-rose: #F43F5E;
  --accent-rose-glow: rgba(244, 63, 94, 0.15);
  --accent-purple: #A78BFA;
  --accent-purple-glow: rgba(167, 139, 250, 0.15);
  --accent-indigo: #6366F1;
  --accent-indigo-glow: rgba(99, 102, 241, 0.15);

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #F43F5E 0%, #A78BFA 50%, #6366F1 100%);
  --gradient-text: linear-gradient(135deg, #F43F5E 0%, #A78BFA 60%, #6366F1 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  --gradient-cta: linear-gradient(135deg, #F43F5E 0%, #E11D48 100%);
  --gradient-cta-hover: linear-gradient(135deg, #fb5272 0%, #F43F5E 100%);

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 60px rgba(244, 63, 94, 0.15);
  --shadow-glow-purple: 0 0 60px rgba(167, 139, 250, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 500ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index */
  --z-nav: 1000;
  --z-overlay: 900;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ---------- Utility Classes ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-glow);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.section-label svg {
  width: 14px;
  height: 14px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

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

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.35),
              0 0 0 1px rgba(244, 63, 94, 0.2);
}

.btn-primary:hover {
  background: var(--gradient-cta-hover);
  box-shadow: 0 8px 32px rgba(244, 63, 94, 0.5),
              0 0 0 1px rgba(244, 63, 94, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 16px 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  padding: 10px 0;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--bg-glass-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(244, 63, 94, 0.3);
}

.nav-logo-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-rose);
  border-radius: 2px;
  transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 11, 0.97);
  backdrop-filter: blur(24px);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-mobile a:hover {
  color: var(--text-primary);
}

/* ============================================================
   VIDEO BANNER
   ============================================================ */
.video-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  background: var(--bg-primary);
  /* Prevent any gap caused by inline / default sizing of child video */
  display: block;
  line-height: 0;
}

/*
  Robust cover technique:
  - Absolutely positioned and centred with translate trick
  - min-width/min-height 100% ensures it always fills the container
    even before video metadata (dimensions) have loaded,
    which is what caused the partial-fill flash.
  - width/height auto preserves the video's natural aspect ratio
    so object-fit: cover can scale it correctly.
*/
.video-banner-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  display: block;
}

/* Subtle dark overlay to keep brand colours readable */
.video-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.38);
  pointer-events: none;
}

/* Gradient fade at the bottom blending into the hero/page */
.video-banner-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  /* No longer needs 100vh — the video banner above already creates visual
     space. Using auto height removes the large black gap between the banner
     and the headline content. */
  min-height: auto;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  padding-bottom: 80px;
}

/* Ambient gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(244, 63, 94, 0.18);   /* Rose — primary brand */
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(99, 102, 241, 0.14);  /* Indigo — agent glow */
  bottom: -200px;
  left: -150px;
  animation-delay: -7s;
}

.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: rgba(167, 139, 250, 0.1);  /* Purple — Oracle/insight */
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(40px, 30px) scale(1.03); }
}

/* Grid pattern overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeInUp 0.8s ease forwards;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-rose);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(244, 63, 94, 0); }
}

.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.1s forwards;
  opacity: 0;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 44px;
  animation: fadeInUp 0.8s ease 0.2s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--bg-glass-border);
  animation: fadeInUp 0.8s ease 0.4s forwards;
  opacity: 0;
}

.hero-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.hero-stat-label {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: 4px;
}

/* ============================================================
   PROBLEM SECTION
   ============================================================ */
.problem {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.problem-card {
  padding: 36px 32px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.problem-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.problem-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-card-icon svg {
  width: 24px;
  height: 24px;
}

.problem-card-icon.external {
  background: var(--accent-rose-glow);
  color: var(--accent-rose);
}

.problem-card-icon.internal {
  background: var(--accent-warm-glow);
  color: var(--accent-warm);
}

.problem-card-icon.philosophical {
  background: var(--accent-teal-glow);
  color: var(--accent-teal);
}

.problem-card-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.problem-card-type.external { color: var(--accent-rose); }
.problem-card-type.internal { color: var(--accent-warm); }
.problem-card-type.philosophical { color: var(--accent-teal); }

.problem-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.problem-card-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   FEATURES (GUIDE) SECTION
   ============================================================ */
.features {
  position: relative;
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-header .section-subtitle {
  margin: 0 auto;
}

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

.feature-card {
  padding: 40px 36px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-hero);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.feature-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent-glow);
  transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
  background: rgba(167, 139, 250, 0.18);
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.2);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.teal {
  background: var(--accent-indigo-glow);
  border-color: rgba(99, 102, 241, 0.18);
  color: var(--accent-indigo);
}

.feature-icon.warm {
  background: var(--accent-rose-glow);
  border-color: rgba(244, 63, 94, 0.18);
  color: var(--accent-rose);
}

.feature-card:hover .feature-icon.teal {
  background: rgba(99, 102, 241, 0.2);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.18);
}

.feature-card:hover .feature-icon.warm {
  background: rgba(244, 63, 94, 0.2);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.15);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.feature-tag {
  padding: 5px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-accent);
}

/* Oracle preview mock */
.oracle-preview {
  background: var(--bg-primary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
}

.oracle-preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-glass-border);
}

.oracle-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-glow);  /* Purple — Oracle */
  animation: pulse-dot 2s ease-in-out infinite;
}

.oracle-preview-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.oracle-msg {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.oracle-msg:last-child {
  margin-bottom: 0;
}

.oracle-msg.speaker-a {
  background: rgba(244, 63, 94, 0.07);   /* Rose tint for Speaker A */
  border-left: 3px solid var(--accent-rose);
  color: var(--text-secondary);
}

.oracle-msg.speaker-b {
  background: rgba(99, 102, 241, 0.07);  /* Indigo tint for Speaker B */
  border-left: 3px solid var(--accent-indigo);
  color: var(--text-secondary);
}

.oracle-msg.ai {
  background: rgba(167, 139, 250, 0.08); /* Purple tint for Oracle */
  border-left: 3px solid var(--accent-purple);
  color: var(--text-secondary);
}

.oracle-msg-name {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.oracle-msg.speaker-a .oracle-msg-name { color: var(--accent-rose); }
.oracle-msg.speaker-b .oracle-msg-name { color: var(--accent-indigo); }
.oracle-msg.ai .oracle-msg-name { color: var(--accent-glow); }

/* ============================================================
   INDIVIDUAL GROWTH SECTION
   ============================================================ */
.individual {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.individual-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.6;
}

.individual-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(167, 139, 250, 0.08);
  top: -100px;
  left: -150px;
}

.individual-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(244, 63, 94, 0.06);
  bottom: -80px;
  right: -100px;
}

.individual-header {
  text-align: center;
  margin-bottom: 48px;
}

.individual-header .section-subtitle {
  margin: 0 auto;
  max-width: 680px;
}

/* Session mode tab switcher */
.session-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 64px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  padding: 6px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.session-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.session-tab svg {
  width: 16px;
  height: 16px;
}

.session-tab.active {
  background: var(--gradient-cta);
  color: #fff;
  box-shadow: 0 2px 12px rgba(244, 63, 94, 0.3);
}

.session-tab:hover:not(.active) {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.04);
}

/* Screenshots grid — alternating layout */
.screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.screenshot-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 64px;
  align-items: center;
}

.screenshot-item--reverse {
  grid-template-columns: 1fr 320px;
}

.screenshot-item--reverse .screenshot-phone {
  order: 2;
}

.screenshot-item--reverse .screenshot-copy {
  order: 1;
}

/* Phone frame */
.screenshot-phone {
  display: flex;
  justify-content: center;
}

.screenshot-phone-frame {
  position: relative;
  width: 240px;
  border-radius: 40px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.10);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.05),
    0 20px 60px rgba(0,0,0,0.5),
    0 0 80px rgba(167, 139, 250, 0.12);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}

.screenshot-phone-frame:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 100px rgba(167, 139, 250, 0.18);
}

.screenshot-phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Copy side */
.screenshot-copy {
  max-width: 520px;
}

.screenshot-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-glow);
  margin-bottom: 16px;
}

.screenshot-eyebrow svg {
  width: 14px;
  height: 14px;
}

.screenshot-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.screenshot-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.screenshot-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.screenshot-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screenshot-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.screenshot-bullets li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-rose);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   HOW IT WORKS (PLAN) SECTION
   ============================================================ */
.how-it-works {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  position: relative;
}

/* Connecting line between steps */
.steps-container::before {
  content: '';
  position: absolute;
  top: 44px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent-rose),
    var(--accent-purple),
    var(--accent-indigo),
    var(--accent-purple)
  );
  opacity: 0.3;
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.1rem;
  font-weight: 800;
  transition: all var(--transition-base);
}

.step:nth-child(1) .step-number {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 2px solid rgba(244, 63, 94, 0.25);
}

.step:nth-child(2) .step-number {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-purple);
  border: 2px solid rgba(167, 139, 250, 0.25);
}

.step:nth-child(3) .step-number {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-indigo);
  border: 2px solid rgba(99, 102, 241, 0.25);
}

.step:nth-child(4) .step-number {
  background: rgba(167, 139, 250, 0.12);
  color: var(--accent-purple);
  border: 2px solid rgba(167, 139, 250, 0.25);
}

.step-icon {
  width: 28px;
  height: 28px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.step-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 220px;
  margin: 0 auto;
}

/* ============================================================
   SUCCESS SECTION
   ============================================================ */
.success {
  position: relative;
  overflow: hidden;
}

.success-orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(167, 139, 250, 0.07);
  filter: blur(100px);
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.success-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 56px;
}

.success-outcomes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.success-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}

.success-item:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(8px);
}

.success-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-rose);
}

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

.success-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.success-item-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.success-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-chart {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  position: relative;
}

.success-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-ring-outer {
  width: 100%;
  height: 100%;
  border-color: rgba(244, 63, 94, 0.18);
  animation: spin-slow 30s linear infinite;
}

.success-ring-mid {
  width: 72%;
  height: 72%;
  top: 14%;
  left: 14%;
  border-color: rgba(167, 139, 250, 0.18);
  animation: spin-slow 20s linear infinite reverse;
}

.success-ring-inner {
  width: 44%;
  height: 44%;
  top: 28%;
  left: 28%;
  border-color: rgba(99, 102, 241, 0.18);
  animation: spin-slow 15s linear infinite;
}

.success-ring-center {
  position: absolute;
  width: 28%;
  height: 28%;
  top: 36%;
  left: 36%;
  background: rgba(244, 63, 94, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.success-ring-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
}

.success-ring-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Dots on the rings */
.ring-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

.ring-dot-1 {
  top: -5px;
  left: 50%;
  color: var(--accent-rose);
  background: var(--accent-rose);
}

.ring-dot-2 {
  bottom: 15%;
  right: -5px;
  color: var(--accent-purple);
  background: var(--accent-purple);
}

.ring-dot-3 {
  top: 30%;
  left: -5px;
  color: var(--accent-indigo);
  background: var(--accent-indigo);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   SAFETY SECTION
   ============================================================ */
.safety {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.safety-card {
  padding: 36px 32px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-slow);
}

.safety-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.safety-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.safety-card-icon svg {
  width: 24px;
  height: 24px;
}

.safety-card-icon.shield {
  background: rgba(167, 139, 250, 0.1);
  color: var(--accent-purple);
}

.safety-card-icon.globe {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
}

.safety-card-icon.lock {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

.safety-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.safety-card-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  position: relative;
  overflow: hidden;
}

.pricing-orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.06);
  filter: blur(120px);
  left: -200px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.pricing-header {
  text-align: center;
  margin-bottom: 20px;
}

.pricing-header .section-subtitle {
  margin: 0 auto;
}

.pricing-philosophy {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
  padding: 24px 32px;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
}

.pricing-philosophy strong {
  color: var(--accent-purple);
  font-style: normal;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
}

.pricing-card {
  padding: 44px 36px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-slow);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
}

.pricing-card.featured {
  border-color: rgba(244, 63, 94, 0.4);
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, rgba(244, 63, 94, 0.13) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(99, 102, 241, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
  box-shadow:
    0 0 0 1px rgba(244, 63, 94, 0.25),
    0 8px 48px rgba(244, 63, 94, 0.18),
    0 24px 80px rgba(99, 102, 241, 0.10),
    inset 0 1px 0 rgba(244, 63, 94, 0.2);
}

.pricing-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-glow);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.pricing-tier {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.88rem;
  color: var(--text-tertiary);
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.65;
}

.pricing-divider {
  height: 1px;
  background: var(--bg-glass-border);
  margin-bottom: 28px;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.pricing-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pricing-feature svg {
  width: 18px;
  height: 18px;
  color: var(--accent-rose);
  flex-shrink: 0;
}

.pricing-cta {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   STAKES (FAILURE) SECTION
   ============================================================ */
.stakes {
  background: var(--bg-secondary);
  border-top: 1px solid var(--bg-glass-border);
  border-bottom: 1px solid var(--bg-glass-border);
  text-align: center;
}

.stakes-content {
  max-width: 700px;
  margin: 0 auto;
}

.stakes-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 24px;
}

.stakes-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
}

.stakes-highlight {
  color: var(--accent-glow);
  font-weight: 600;
}

/* ============================================================
   FINAL CTA SECTION
   ============================================================ */
.final-cta {
  text-align: center;
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

.final-cta-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(244, 63, 94, 0.08) 0%, rgba(99, 102, 241, 0.06) 60%, transparent 100%);
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.final-cta-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  position: relative;
}

.final-cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--bg-glass-border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-primary);
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-icon svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  transition: color var(--transition-fast);
}

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

.footer-copy {
  font-size: 0.82rem;
  color: var(--text-tertiary);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .success-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .success-visual {
    order: -1;
  }

  .screenshot-item,
  .screenshot-item--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    justify-items: center;
  }

  .screenshot-item--reverse .screenshot-phone,
  .screenshot-item--reverse .screenshot-copy {
    order: unset;
  }

  .screenshot-copy {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .problem-grid,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .screenshots-grid {
    gap: 64px;
  }

  .screenshot-phone-frame {
    width: 200px;
  }

  .session-tabs {
    flex-wrap: wrap;
  }

  .steps-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }

  .steps-container::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .hero-stats {
    gap: 32px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .steps-container {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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