:root {
  --purple: #7C6AFF;
  --purple-light: #9B8DFF;
  --purple-dim: rgba(124,106,255,0.15);
  --purple-glow: rgba(124,106,255,0.35);
  --cream: #F0EDE8;
  --cream-dim: rgba(240,237,232,0.6);
  --cream-faint: rgba(240,237,232,0.08);
  --dark: #0B0B0E;
  --dark-2: #111116;
  --dark-3: #18181F;
  --dark-4: #1E1E27;
  --dark-5: #252530;
  --border: rgba(240,237,232,0.08);
  --border-purple: rgba(124,106,255,0.3);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- NOISE OVERLAY --- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
}

/* --- NAVBAR --- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(11,11,14,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  color: var(--cream);
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-logo svg {
  display: block;
  height: 2rem;
  width: auto;
}

.nav-logo-mark {
  width: 28px; height: 28px;
  background: var(--purple);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}

.nav-logo-mark svg { width: 16px; height: 16px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  justify-content: center;
}

.nav-cta-wrap {
  display: flex;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--cream); }

.btn-nav {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav svg { flex-shrink: 0; }

.btn-nav:hover { background: var(--purple-light); transform: translateY(-1px); }

/* --- MOBILE NAV TOGGLE --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

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

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

/* --- HERO --- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 163px 24px 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center top, rgba(124,106,255,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,237,232,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,237,232,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, black 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 0%, transparent 65%);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dim);
  border: 1px solid var(--border-purple);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
  animation: fadeUp 0.8s ease both;
}

.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--purple);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-h1 {
  font-family: var(--serif);
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--cream);
  max-width: 840px;
  margin-bottom: 24px;
  position: relative;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero-h1 em {
  font-style: italic;
  color: var(--purple-light);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  color: var(--cream-dim);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 48px;
  position: relative;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  animation: fadeUp 0.8s 0.3s ease both;
}
.btn-primary {
  background: var(--purple);
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 0 0 var(--purple-glow);
}

.btn-primary:hover {
  background: var(--purple-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--purple-glow);
}

.btn-secondary {
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 15px 28px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  color: var(--cream);
  border-color: rgba(240,237,232,0.2);
  transform: translateY(-2px);
}

/* --- HERO MOCK WINDOW --- */
.hero-window {
  margin-top: 80px;
  width: min(1100px, 90vw);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--dark-3);
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.6), 0 0 0 1px var(--border);
  position: relative;
  animation: fadeUp 0.9s 0.4s ease both;
}

.window-bar {
  height: 44px;
  background: var(--dark-4);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FFBD2E; }
.dot-g { background: #28C840; }

.window-url {
  margin-left: 16px;
  background: var(--dark-5);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--cream-dim);
  font-family: var(--sans);
  flex: 1;
  max-width: 300px;
}

.window-body {
  padding: 0;
  min-height: 300px;
}
.window-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 16px 16px;
}

.window-sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(240,237,232,0.3);
  margin-bottom: 8px;
  margin-top: 16px;
}

.sidebar-label:first-child { margin-top: 0; }

.sidebar-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--cream-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s;
}

.sidebar-item.active {
  background: var(--purple-dim);
  color: var(--purple-light);
  border: 1px solid var(--border-purple);
}

.sidebar-item svg { opacity: 0.6; flex-shrink: 0; }
.sidebar-item.active svg { opacity: 1; }

.window-main { display: flex; flex-direction: column; gap: 16px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.gallery-thumb {
  aspect-ratio: 4/3;
  border-radius: 8px;
  background: var(--dark-5);
  position: relative;
  overflow: hidden;
}

.gallery-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-4) 0%, var(--dark-5) 100%);
}

.gallery-thumb:nth-child(1)::before { background: linear-gradient(135deg, #1a1a2e, #2d1b4e); }
.gallery-thumb:nth-child(2)::before { background: linear-gradient(135deg, #1e2a1e, #2a3d2a); }
.gallery-thumb:nth-child(3)::before { background: linear-gradient(135deg, #2a1e1e, #3d2a2a); }
.gallery-thumb:nth-child(4)::before { background: linear-gradient(135deg, #1e2030, #2a2d45); }
.gallery-thumb:nth-child(5)::before { background: linear-gradient(135deg, #2d1b1b, #4a2a2a); }
.gallery-thumb:nth-child(6)::before { background: linear-gradient(135deg, #1b2d2d, #2a4545); }
.gallery-thumb:nth-child(7)::before { background: linear-gradient(135deg, #2d2d1b, #45452a); }
.gallery-thumb:nth-child(8)::before { background: linear-gradient(135deg, #1b1b2d, #2a2a45); }

.thumb-wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 11px;
  color: rgba(255,255,255,0.18);
  transform: rotate(-25deg);
  letter-spacing: 0.05em;
  pointer-events: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.stat-card {
  background: var(--dark-4);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.stat-val {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-lbl {
  font-size: 11px;
  color: rgba(240,237,232,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- SECTION SHARED --- */
section { padding: 120px 24px; }

.container { max-width: 1100px; margin: 0 auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 20px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--purple);
}

.section-h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: 16px;
}

.section-h2 em {
  font-style: italic;
  color: var(--purple-light);
}

.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--cream-dim);
  max-width: 520px;
  line-height: 1.7;
}

/* --- FEATURES --- */
#features {
  background: var(--dark);
  position: relative;
  z-index: 1;
  margin-top: -80px;
  padding-top: 140px;
}

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

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

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.feature-card {
  background: var(--dark-2);
  padding: 40px 36px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-dim), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover { background: var(--dark-3); }

.feature-icon {
  width: 44px; height: 44px;
  background: var(--purple-dim);
  border: 1px solid var(--border-purple);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg { color: var(--purple-light); }

.feature-card h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--cream);
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* --- HOW IT WORKS --- */
#how {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
}

.step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  position: relative;
  transition: all 0.2s;
}

.step:last-child { border-bottom: 1px solid var(--border); }

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 42px;
  font-weight: 300;
  color: var(--purple-light);
  line-height: 1;
  min-width: 40px;
  transition: color 0.2s;
}

.step:hover .step-num { color: var(--purple); }

.step-content h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--cream);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.step-content p {
  font-size: 14px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.65;
}

.how-visual {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.flow-card {
  background: linear-gradient(135deg, var(--dark-3) 0%, var(--dark-2) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.flow-card::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--purple) 0%, var(--purple-light) 100%);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.45s ease;
}

.flow-card:hover::before { transform: scaleY(1); }

.flow-card::after {
  content: attr(data-step);
  position: absolute;
  top: 12px;
  right: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--purple-light);
  opacity: 0.42;
  transition: opacity 0.3s ease;
}

.flow-card:hover::after { opacity: 0.9; }

.flow-card:hover {
  border-color: var(--border-purple);
  transform: translateX(4px);
  box-shadow: 0 16px 40px rgba(124,106,255,0.10);
}

.flow-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, rgba(124,106,255,0.28) 0%, rgba(124,106,255,0.08) 100%);
  border: 1px solid var(--border-purple);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flow-card:hover .flow-icon {
  transform: scale(1.06);
  box-shadow: 0 0 0 6px rgba(124,106,255,0.06);
}

.flow-card-text { flex: 1; min-width: 0; }

.flow-card-text strong {
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  display: block;
  margin-bottom: 2px;
}

.flow-card-text span {
  font-size: 12px;
  color: rgba(240,237,232,0.45);
}

.flow-connector {
  width: 2px;
  height: 22px;
  margin: 4px 0 4px 43px;
  background: linear-gradient(180deg, rgba(124,106,255,0.45) 0%, rgba(124,106,255,0.08) 100%);
  border-radius: 2px;
  flex-shrink: 0;
}

.flow-card--complete {
  background: linear-gradient(135deg, rgba(124,106,255,0.16) 0%, rgba(124,106,255,0.04) 100%);
  border-color: var(--border-purple);
  box-shadow: 0 10px 30px rgba(124,106,255,0.10);
}

.flow-card--complete::before {
  transform: scaleY(1);
}

.flow-card--complete .flow-icon {
  background: linear-gradient(135deg, rgba(124,106,255,0.38) 0%, rgba(155,141,255,0.18) 100%);
  box-shadow: 0 0 0 4px rgba(124,106,255,0.08);
}

.flow-card--complete::after {
  opacity: 0.7;
}

/* --- PRICING --- */
#pricing { background: var(--dark); }

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

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

.pricing-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin: 32px auto 0;
  width: fit-content;
}

.toggle-btn {
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  border: none;
  background: transparent;
  color: var(--cream-dim);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.toggle-btn.active {
  background: var(--purple);
  color: #fff;
}

.toggle-save {
  font-size: 11px;
  color: var(--purple-light);
  font-weight: 500;
  padding: 2px 8px;
  background: var(--purple-dim);
  border-radius: 100px;
  border: 1px solid var(--border-purple);
  line-height: 1.4;
}

.toggle-btn.active .toggle-save {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

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

.pricing-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

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

.pricing-card.featured {
  background: var(--dark-3);
  border-color: var(--border-purple);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
}

.pricing-card.dimmed {
  opacity: 0.5;
  filter: grayscale(0.75);
  cursor: not-allowed;
}
.pricing-card.dimmed:hover {
  transform: none;
  opacity: 0.65;
}
.pricing-card.dimmed .btn-plan {
  cursor: not-allowed;
  pointer-events: none;
}

.plan-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.plan-name {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 16px;
}

.plan-price {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 300;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.plan-price sup {
  font-size: 24px;
  vertical-align: super;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0;
}

.plan-price-sub {
  font-size: 13px;
  color: rgba(240,237,232,0.35);
  margin-bottom: 32px;
}

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

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  margin-bottom: 32px;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--cream-dim);
  font-weight: 300;
}

.feat-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(124,106,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-check svg { color: var(--purple-light); }

.feat-x {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(240,237,232,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.feat-x svg { color: rgba(240,237,232,0.2); }

.plan-features li.disabled { opacity: 0.4; }

.btn-plan {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--cream-dim);
  transition: all 0.2s;
  display: block;
}

.btn-plan:hover {
  color: var(--cream);
  border-color: rgba(240,237,232,0.2);
}

.btn-plan.purple {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}

.btn-plan.purple:hover { background: var(--purple-light); }

/* --- FAQ --- */
#faq { background: var(--dark-2); border-top: 1px solid var(--border); }

.faq-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.faq-left { position: sticky; top: 100px; }

.faq-list { display: flex; flex-direction: column; gap: 1px; }

.faq-item {
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--cream);
  cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--purple-light); }

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
  color: var(--cream-dim);
}

.faq-item.open .faq-icon {
  background: var(--purple-dim);
  border-color: var(--border-purple);
  color: var(--purple-light);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  font-size: 14px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding-bottom: 20px;
}

/* --- CTA --- */
#cta {
  background: var(--dark);
  border-top: 1px solid var(--border);
  text-align: center;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 80px 40px;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 28px;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
}

.cta-glow {
  position: absolute;
  bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(124,106,255,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box .section-h2 { margin-bottom: 12px; }

.cta-box .section-sub {
  margin: 0 auto 40px;
  text-align: center;
}

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(240,237,232,0.3);
}

/* --- FOOTER --- */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 60px 48px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.footer-logo {
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer-logo-svg {
  height: 28px;
  width: auto;
  display: block;
}

.footer-page-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 0;
  margin: 0;
}

.footer-page-links a {
  font-size: 14px;
  color: rgba(240,237,232,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-page-links a:hover { color: var(--cream); }

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

.footer-copy {
  font-size: 13px;
  color: rgba(240,237,232,0.4);
}

.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.footer-legal a {
  font-size: 13px;
  color: rgba(240,237,232,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* --- INTRO BADGE --- */
.plan-price-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.intro-badge {
  display: inline-block;
  font-size: 11px;
  color: var(--purple-light);
  background: var(--purple-dim);
  border: 1px solid var(--border-purple);
  border-radius: 6px;
  padding: 5px 10px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* --- FLOATING HERO PHOTOS --- */
.floating-photos {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-photo {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(240,237,232,0.06);
  opacity: 0;
  animation: floatPhotoIn 1s ease forwards;
  will-change: transform;
}

.float-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fp-1 {
  width: 130px; height: 170px;
  top: 14%; left: 4%;
  transform: rotate(-6deg);
  animation: floatPhotoIn 1s 0.3s ease forwards, floatDrift1 14s 1.3s ease-in-out infinite;
}
.fp-2 {
  width: 110px; height: 140px;
  top: 52%; left: 6%;
  transform: rotate(4deg);
  animation: floatPhotoIn 1s 0.5s ease forwards, floatDrift2 16s 1.5s ease-in-out infinite;
}
.fp-3 {
  width: 100px; height: 130px;
  bottom: 10%; left: 12%;
  transform: rotate(-3deg);
  animation: floatPhotoIn 1s 0.7s ease forwards, floatDrift3 18s 1.7s ease-in-out infinite;
}
.fp-4 {
  width: 120px; height: 160px;
  top: 16%; right: 4%;
  transform: rotate(5deg);
  animation: floatPhotoIn 1s 0.4s ease forwards, floatDrift4 15s 1.4s ease-in-out infinite;
}
.fp-5 {
  width: 110px; height: 140px;
  top: 50%; right: 7%;
  transform: rotate(-4deg);
  animation: floatPhotoIn 1s 0.6s ease forwards, floatDrift5 17s 1.6s ease-in-out infinite;
}
.fp-6 {
  width: 100px; height: 130px;
  bottom: 8%; right: 10%;
  transform: rotate(3deg);
  animation: floatPhotoIn 1s 0.8s ease forwards, floatDrift6 19s 1.8s ease-in-out infinite;
}

@keyframes floatPhotoIn {
  from { opacity: 0; transform: translateY(30px) rotate(var(--r, 0deg)) scale(0.85); }
  to   { opacity: 0.55; transform: translateY(0) rotate(var(--r, 0deg)) scale(1); }
}

@keyframes floatDrift1 {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50%      { transform: translate(8px, -18px) rotate(-3deg); }
}
@keyframes floatDrift2 {
  0%, 100% { transform: translate(0, 0) rotate(4deg); }
  50%      { transform: translate(-10px, 14px) rotate(6deg); }
}
@keyframes floatDrift3 {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50%      { transform: translate(12px, -10px) rotate(-1deg); }
}
@keyframes floatDrift4 {
  0%, 100% { transform: translate(0, 0) rotate(5deg); }
  50%      { transform: translate(-8px, -16px) rotate(2deg); }
}
@keyframes floatDrift5 {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50%      { transform: translate(10px, 12px) rotate(-2deg); }
}
@keyframes floatDrift6 {
  0%, 100% { transform: translate(0, 0) rotate(3deg); }
  50%      { transform: translate(-12px, -14px) rotate(6deg); }
}

@media (max-width: 1100px) {
  .float-photo { opacity: 0 !important; animation: none !important; display: none; }
}

/* --- RICH ANIMATIONS --- */

/* Floating parallax orbs behind hero */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,106,255,0.18) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation: floatOrb1 18s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(124,106,255,0.12) 0%, transparent 70%);
  top: 100px; right: -80px;
  animation: floatOrb2 22s ease-in-out infinite;
}
.orb-3 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(155,141,255,0.1) 0%, transparent 70%);
  bottom: 60px; left: 40%;
  animation: floatOrb3 16s ease-in-out infinite;
}
@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, 40px) scale(1.05); }
  66%       { transform: translate(-30px, 70px) scale(0.97); }
}
@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(-50px, 60px) scale(1.08); }
  70%       { transform: translate(30px, -40px) scale(0.95); }
}
@keyframes floatOrb3 {
  0%, 100% { transform: translate(0, 0); }
  50%       { transform: translate(-40px, -30px); }
}

/* Hero window shimmer scan line */
.window-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(124,106,255,0.04) 50%, transparent 100%);
  background-size: 100% 200%;
  animation: shimmerScan 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
@keyframes shimmerScan {
  0%   { background-position: 0 -100%; }
  100% { background-position: 0 200%; }
}

/* Staggered reveal for feature cards */
.features-grid .feature-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, background 0.3s;
}
.features-grid.revealed .feature-card:nth-child(1) { opacity:1; transform:none; transition-delay: 0s; }
.features-grid.revealed .feature-card:nth-child(2) { opacity:1; transform:none; transition-delay: 0.08s; }
.features-grid.revealed .feature-card:nth-child(3) { opacity:1; transform:none; transition-delay: 0.16s; }
.features-grid.revealed .feature-card:nth-child(4) { opacity:1; transform:none; transition-delay: 0.24s; }
.features-grid.revealed .feature-card:nth-child(5) { opacity:1; transform:none; transition-delay: 0.32s; }
.features-grid.revealed .feature-card:nth-child(6) { opacity:1; transform:none; transition-delay: 0.40s; }

/* Staggered reveal for pricing cards */
.pricing-grid .pricing-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.3s;
}
.pricing-grid.revealed .pricing-card:nth-child(1) { opacity:1; transform:none; transition-delay: 0s; }
.pricing-grid.revealed .pricing-card:nth-child(2) { opacity:1; transform:none; transition-delay: 0.1s; }
.pricing-grid.revealed .pricing-card:nth-child(3) { opacity:1; transform:none; transition-delay: 0.2s; }

/* Step hover slide-in indicator */
.step::after {
  content: '';
  position: absolute;
  left: -24px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--purple);
  border-radius: 2px;
  transition: transform 0.3s ease;
  transform-origin: center;
}
.step:hover::after { transform: translateY(-50%) scaleY(1); }

/* Price number flip on toggle */
.plan-price.flipping {
  animation: priceFlip 0.3s ease;
}
@keyframes priceFlip {
  0%   { opacity: 1; transform: translateY(0); }
  40%  { opacity: 0; transform: translateY(-10px); }
  60%  { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Eyebrow pulse ring */
.hero-eyebrow::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 100px;
  border: 1px solid var(--border-purple);
  opacity: 0;
  animation: eyebrowRing 3s ease-in-out 1.5s infinite;
}
@keyframes eyebrowRing {
  0%   { opacity: 0; transform: scale(1); }
  30%  { opacity: 0.6; }
  100% { opacity: 0; transform: scale(1.08); }
}

/* FAQ item reveal */
.faq-item {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.2s;
}
.faq-list.revealed .faq-item {
  opacity: 1;
  transform: none;
}
.faq-list.revealed .faq-item:nth-child(1) { transition-delay: 0s; }
.faq-list.revealed .faq-item:nth-child(2) { transition-delay: 0.06s; }
.faq-list.revealed .faq-item:nth-child(3) { transition-delay: 0.12s; }
.faq-list.revealed .faq-item:nth-child(4) { transition-delay: 0.18s; }
.faq-list.revealed .faq-item:nth-child(5) { transition-delay: 0.24s; }
.faq-list.revealed .faq-item:nth-child(6) { transition-delay: 0.30s; }
.faq-list.revealed .faq-item:nth-child(7) { transition-delay: 0.36s; }

/* Stat counter animation */
.stat-val { transition: opacity 0.3s; }

/* Flow card stagger on section enter */
.how-visual .flow-card, .how-visual .flow-connector {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
}
.how-visual.revealed .flow-card:nth-child(1) { opacity:1; transform:none; transition-delay: 0s; }
.how-visual.revealed .flow-connector:nth-child(2) { opacity:1; transform:none; transition-delay: 0.1s; }
.how-visual.revealed .flow-card:nth-child(3) { opacity:1; transform:none; transition-delay: 0.18s; }
.how-visual.revealed .flow-connector:nth-child(4) { opacity:1; transform:none; transition-delay: 0.26s; }
.how-visual.revealed .flow-card:nth-child(5) { opacity:1; transform:none; transition-delay: 0.34s; }
.how-visual.revealed .flow-connector:nth-child(6) { opacity:1; transform:none; transition-delay: 0.42s; }
.how-visual.revealed .flow-card:nth-child(7) { opacity:1; transform:none; transition-delay: 0.5s; }

/* Navbar link underline animation */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--purple-light);
  transition: width 0.25s ease;
}
.nav-links a:hover::after { width: 100%; }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- LEGAL PAGES --- */
.legal-page {
  padding: 128px 24px 80px;
  background: var(--dark);
  min-height: 100vh;
  position: relative;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
}

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

.legal-header .section-eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
}

.legal-h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--cream);
  margin-bottom: 20px;
}

.legal-h1 em {
  font-style: italic;
  color: var(--purple-light);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--cream-dim);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.legal-meta-sep { opacity: 0.4; }

.legal-intro {
  max-width: 620px;
  margin: 0 auto;
  font-size: 17px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.65;
}

.legal-content article {
  padding: 36px 0;
  border-top: 1px solid var(--border);
}

.legal-content article:first-of-type { border-top: none; padding-top: 0; }

.legal-content h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  line-height: 1.2;
}

.legal-content h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--cream);
  margin-top: 24px;
  margin-bottom: 8px;
  letter-spacing: 0.01em;
  text-transform: none;
}

.legal-content p {
  font-size: 15px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-content p:last-child { margin-bottom: 0; }

.legal-content ul {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}

.legal-content li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 10px;
}

.legal-content li::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 11px;
  width: 5px;
  height: 5px;
  background: var(--purple);
  border-radius: 50%;
  opacity: 0.7;
}

.legal-content strong {
  color: var(--cream);
  font-weight: 500;
}

.legal-content a {
  color: var(--purple-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border-purple);
  transition: color 0.2s, border-color 0.2s;
}

.legal-content a:hover {
  color: var(--purple);
  border-color: var(--purple);
}

.legal-content blockquote {
  background: var(--purple-dim);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 22px 0;
  color: var(--cream);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
}

.legal-content blockquote strong {
  color: var(--purple-light);
}

.legal-outro {
  text-align: center;
  font-size: 14px;
  color: var(--cream-dim);
  padding: 40px 0 0;
  margin-top: 40px;
  border-top: 1px solid var(--border);
}

.legal-outro em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
}

.legal-table-wrap {
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
  color: var(--cream-dim);
  font-weight: 300;
  line-height: 1.5;
}

.legal-table thead th {
  background: var(--dark-3);
  color: var(--cream);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-table tbody tr + tr td {
  border-top: 1px solid var(--border);
}

.legal-table tbody tr:hover td { color: var(--cream); }

.legal-content code,
.legal-table code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--purple-dim);
  color: var(--purple-light);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-purple);
  white-space: nowrap;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  nav {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }
  .nav-cta-wrap { display: none; }
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11,11,14,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 4px 20px 20px;
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 16px 0;
    font-size: 16px;
    color: var(--cream);
    border-bottom: 1px solid var(--border);
  }
  .nav-links a::after { display: none; }

  .nav-links-cta { display: block; margin-top: 16px; }
  .nav-links-cta a {
    background: var(--purple);
    color: #fff;
    border-radius: 10px;
    padding: 14px 20px;
    border-bottom: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .nav-links-cta a:hover { background: var(--purple-light); color: #fff; }
  .nav-links-cta a svg { flex-shrink: 0; }

  .features-grid { grid-template-columns: 1fr; }
  .how-inner { grid-template-columns: 1fr; gap: 48px; }
  .how-visual { display: none; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .faq-left { position: static; }
  .window-body { grid-template-columns: 1fr; }
  .window-sidebar { display: none; }
}

@media (max-width: 600px) {
  section { padding: 80px 20px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }
  .toggle-btn { padding: 10px 18px; min-height: 42px; }
  .btn-plan { padding: 16px; min-height: 48px; }
}

@media (max-width: 480px) {
  #hero { padding: 130px 18px 60px; }
  .hero-h1 { font-size: clamp(40px, 11vw, 52px); line-height: 1.05; }
  .hero-sub { font-size: 15px; margin-bottom: 36px; }
  .hero-window { margin-top: 56px; border-radius: 12px; }
  .section-h2 { font-size: clamp(30px, 8.5vw, 44px); }
  .section-sub { font-size: 15px; }
  section { padding: 64px 18px; }
  .feature-card { padding: 28px 22px; }
  .pricing-card { padding: 28px 22px; }
  .plan-price { font-size: 48px; }
  .plan-price sup { font-size: 20px; }
  .flow-card { padding: 16px 18px; }
  .flow-connector { margin-left: 37px; }
  .cta-box { padding: 56px 24px; }
  footer { padding: 48px 20px 20px; }
}