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

:root {
  --ink:    #0e0e0e;
  --muted:  #6b6b6b;
  --faint:  #e8e4df;
  --cream:  #f9f6f2;
  --white:  #ffffff;
  --accent: #6a4bff;
  --accent-light: #ede9ff;
  --radius: 20px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

/* ─────────────────────────────────────────────
   Nav
───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(249,246,242,0.8);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-weight: 500;
  transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.8; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s;
}

/* ─────────────────────────────────────────────
   Buttons
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: var(--font-body);
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { opacity: 0.82; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(0,0,0,0.18);
}
.btn-ghost:hover { background: var(--faint); }

.btn-orange {
  background: #f97316;
  color: #fff;
  margin-top: 0.5rem;
  width: fit-content;
}
.btn-orange:hover { background: #ea6c0a; transform: translateY(-1px); }

/* ─────────────────────────────────────────────
   Section labels / shared
───────────────────────────────────────────── */
.section-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--accent); }

.section-sub {
  max-width: 480px;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 3.5rem;
}

/* ─────────────────────────────────────────────
   Orbs (ambient blobs)
───────────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.55;
}

.orb-1 { width: 420px; height: 420px; background: #c2b5ff; top: -80px; left: -60px; }
.orb-2 { width: 320px; height: 320px; background: #ffc5e1; top: 120px; right: -40px; }
.orb-3 { width: 260px; height: 260px; background: #b5d8ff; bottom: 60px; left: 40%; }

/* ─────────────────────────────────────────────
   Hero
───────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  max-width: 1140px;
  margin: 0 auto;
  padding: 100px 2rem 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-inner, .hero-visual {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-light);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.8rem;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 2.4rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.8rem;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.avatars {
  display: flex;
}
.avatars img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  margin-left: -10px;
  background: var(--faint);
}
.avatars img:first-child { margin-left: 0; }

.hero-social-proof strong { color: var(--ink); }

/* Card stack */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-stack {
  position: relative;
  width: 320px;
  height: 420px;
}

.discovery-card {
  position: absolute;
  inset: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 40px rgba(0,0,0,0.10);
  transition: transform 0.3s ease;
}

.card-back-2 {
  transform: rotate(-6deg) translateY(14px) scale(0.93);
  background: #ede9ff;
  z-index: 1;
}
.card-back-1 {
  transform: rotate(-2deg) translateY(6px) scale(0.97);
  background: #fff0f6;
  z-index: 2;
}
.card-front {
  transform: rotate(1deg);
  z-index: 3;
}

.card-stack:hover .card-back-2 { transform: rotate(-8deg) translateY(22px) scale(0.91); }
.card-stack:hover .card-back-1 { transform: rotate(-3deg) translateY(10px) scale(0.96); }
.card-stack:hover .card-front  { transform: rotate(0deg) translateY(-4px); }

.card-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
}

.discovery-card p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.4;
  flex: 1;
}

.card-author {
  font-size: 0.82rem;
  color: var(--muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-reactions {
  display: flex;
  gap: 0.9rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.card-label {
  font-size: 0.75rem;
  background: #f0f0f0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  color: var(--muted);
}

/* ─────────────────────────────────────────────
   Discover
───────────────────────────────────────────── */
.discover {
  padding: 7rem 0;
  background: var(--white);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.feature-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
}

.feature-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Package card */
.pkg-card {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--cream) 60%);
  border: 1px solid rgba(106,75,255,0.12);
  padding: 2.8rem;
  gap: 3rem;
  align-items: center;
}
.pkg-card-dark {
  background: linear-gradient(135deg, #1a1040 0%, #0e0e0e 70%);
  border: 1px solid rgba(106,75,255,0.25);
}
.pkg-card-dark .pkg-header h3,
.pkg-card-dark .pkg-includes-label { color: var(--white); }
.pkg-card-dark .pkg-header p { color: rgba(255,255,255,0.6); }
.pkg-card-dark .feature-list li { color: var(--white); }
.pkg-card-dark .feature-list li::before { color: var(--accent-light); }
.pkg-badge-dark {
  background: rgba(255,255,255,0.12);
  color: var(--accent-light);
}
.pkg-card-premium {
  background: linear-gradient(135deg, #2d1f5e 0%, #1a0e3a 100%);
  border: 1px solid rgba(180,150,255,0.3);
  position: relative;
  overflow: hidden;
}
.pkg-card-premium::before {
  content: '✦ Most popular';
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
}
.pkg-card-premium .pkg-header h3,
.pkg-card-premium .pkg-includes-label { color: var(--white); }
.pkg-card-premium .pkg-header p { color: rgba(255,255,255,0.6); }
.pkg-card-premium .feature-list li { color: var(--white); }
.pkg-card-premium .feature-list li::before { color: #b49cff; }
.pkg-badge-premium {
  background: linear-gradient(90deg, #8b5cf6, #6a4bff);
  color: #fff;
  box-shadow: 0 2px 12px rgba(106,75,255,0.4);
}
.pkg-header { display: flex; flex-direction: column; gap: 0.75rem; }
.pkg-badge {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  width: fit-content;
}
.pkg-header h3 { font-size: 1.6rem; margin-bottom: 0; }
.pkg-includes { display: flex; flex-direction: column; gap: 1rem; }
.pkg-includes-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.55;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 0.05em;
}
.feature-list li.sub-item {
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.feature-list li.sub-item::before {
  content: '→';
  color: var(--muted);
  font-weight: 400;
}

.feature-dark {
  background: var(--ink);
  color: var(--white);
}
.feature-dark h3 { color: var(--white); }
.feature-dark p  { color: rgba(255,255,255,0.65); }
.feature-dark .feature-icon { color: var(--accent-light); }

.feature-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.feature-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* Resonance bars */
.resonance-visual { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 1.5rem; }

.resonance-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.resonance-bar::before {
  content: '';
  display: block;
  height: 6px;
  width: var(--w);
  max-width: 100%;
  background: linear-gradient(90deg, var(--accent), #a78bfa);
  border-radius: 999px;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   How it works
───────────────────────────────────────────── */
.how {
  padding: 7rem 0;
  background: var(--cream);
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 768px) {
  .guides-grid { grid-template-columns: 1fr; }
}

.guide-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 36px rgba(0,0,0,0.08);
}
.guide-tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  width: fit-content;
}
.guide-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.guide-desc {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
  flex: 1;
}
.guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: gap 0.2s;
}
.guide-link:hover { gap: 0.55rem; }

.steps {
  display: flex;
  gap: 0;
  align-items: flex-start;
}

.step {
  flex: 1;
  padding: 0 1.5rem;
}

.step-divider {
  width: 1px;
  height: 120px;
  background: var(--faint);
  align-self: flex-start;
  margin-top: 2rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--faint);
  line-height: 1;
  margin-bottom: 1.2rem;
  letter-spacing: -0.04em;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
}

.step-content p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; }

/* ─────────────────────────────────────────────
   Stories
───────────────────────────────────────────── */
.stories {
  padding: 7rem 0;
  background: var(--white);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2.2rem;
}

.testimonial-accent {
  background: var(--ink);
  color: var(--white);
}
.testimonial-accent .testimonial-quote { color: rgba(255,255,255,0.9); }
.testimonial-accent strong { color: var(--white); }
.testimonial-accent span   { color: rgba(255,255,255,0.5); }

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 1.8rem;
  color: var(--ink);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.testimonial-author img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--faint);
}

.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span   { font-size: 0.82rem; color: var(--muted); }

/* ─────────────────────────────────────────────
   Join / CTA
───────────────────────────────────────────── */
.join {
  padding: 7rem 2rem;
  position: relative;
  overflow: hidden;
  background: var(--cream);
  text-align: center;
}

.join-inner {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 0 auto;
}

.orb-cta-1 { width: 500px; height: 500px; background: #c2b5ff; top: -100px; left: -120px; opacity: 0.4; }
.orb-cta-2 { width: 350px; height: 350px; background: #ffc5e1; bottom: -80px; right: -80px; opacity: 0.4; }

.join-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.join-title em { font-style: italic; color: var(--accent); }

.join-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 2.2rem;
}

.join-form {
  display: flex;
  gap: 0.6rem;
  max-width: 420px;
  margin: 0 auto 1rem;
}

.join-input {
  flex: 1;
  padding: 0.75rem 1.2rem;
  border: 1.5px solid var(--faint);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.join-input:focus { border-color: var(--accent); }
.join-input::placeholder { color: var(--muted); }

.join-note {
  font-size: 0.82rem;
  color: var(--muted);
}

.join-success {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent);
  animation: fadeIn 0.4s ease;
}

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

/* ─────────────────────────────────────────────
   Footer
───────────────────────────────────────────── */
.footer {
  padding: 2rem;
  border-top: 1px solid var(--faint);
  background: var(--white);
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

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

/* ─────────────────────────────────────────────
   Theme toggle button
───────────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--faint);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--faint);
  color: var(--ink);
}
.icon-sun { display: none; }

/* ─────────────────────────────────────────────
   Dark mode
───────────────────────────────────────────── */
[data-theme="dark"] {
  --ink:          #ede9e4;
  --muted:        #888;
  --faint:        #2a2a2a;
  --cream:        #111111;
  --white:        #1c1c1c;
  --accent:       #9b7fff;
  --accent-light: #231a4a;
}

[data-theme="dark"] .nav {
  background: rgba(17,17,17,0.85);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .nav-cta {
  background: var(--ink);
  color: #111 !important;
}
[data-theme="dark"] .card-back-2 { background: #2d2060; }
[data-theme="dark"] .card-back-1 { background: #2d1a28; }
[data-theme="dark"] .testimonial-accent { background: #2d2060; }
[data-theme="dark"] .pkg-card {
  background: linear-gradient(135deg, #231a4a 0%, #1c1c1c 60%);
}

/* Keep dark cards' text white — var(--white) flips to dark in dark mode */
[data-theme="dark"] .pkg-card-dark h3,
[data-theme="dark"] .pkg-card-dark .pkg-includes-label,
[data-theme="dark"] .pkg-card-premium h3,
[data-theme="dark"] .pkg-card-premium .pkg-includes-label { color: #fff; }

[data-theme="dark"] .pkg-card-dark .pkg-header p,
[data-theme="dark"] .pkg-card-premium .pkg-header p { color: rgba(255,255,255,0.6); }

[data-theme="dark"] .pkg-card-dark .feature-list li,
[data-theme="dark"] .pkg-card-premium .feature-list li { color: rgba(255,255,255,0.88); }

[data-theme="dark"] .pkg-card-dark .feature-list li::before { color: #c4b5fd; }
[data-theme="dark"] .pkg-card-premium .feature-list li::before { color: #b49cff; }

[data-theme="dark"] .pkg-card-dark .feature-list li.sub-item,
[data-theme="dark"] .pkg-card-premium .feature-list li.sub-item { color: rgba(255,255,255,0.45); }

[data-theme="dark"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun  { display: block; }

/* ─────────────────────────────────────────────
   Responsive
───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 100px 1.5rem 60px;
    gap: 3rem;
  }
  .hero-sub, .hero-title { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-visual { display: flex; justify-content: center; }

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

  .steps { flex-direction: column; gap: 2.5rem; }
  .step-divider { display: none; }
  .step { padding: 0; }

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

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .card-stack { width: 280px; height: 360px; }

  .join-form { flex-direction: column; border-radius: var(--radius); }
  .join-input { border-radius: 999px; }

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