:root {
  --midnight-deep: #0b0a14;
  --midnight-base: #14121f;
  --midnight-plum: #1c1728;
  --midnight-raised: #241e33;
  --glass-fill: rgba(255, 243, 232, 0.06);
  --glass-border: rgba(240, 201, 160, 0.18);
  --text-primary: #f7efe4;
  --text-secondary: #c7bcc9;
  --text-muted: #766c82;
  --amber: #e8b978;
  --amber-bright: #f2c98c;
  --coral: #d97757;
  --coral-bright: #e89272;
  --lavender: #b9a3d3;
  --success: #8fb89a;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--midnight-deep);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(232, 185, 120, 0.10), transparent 70%),
    radial-gradient(70% 50% at 10% 100%, rgba(46, 31, 61, 0.35), transparent 70%),
    linear-gradient(180deg, #171429 0%, #120f1e 45%, #0a0912 100%);
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 20, 0.72);
  border-bottom: 1px solid rgba(240, 201, 160, 0.08);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
}

.wordmark img { width: 26px; height: 26px; border-radius: 7px; }

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.site-nav a.nav-link {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--coral-bright), var(--coral));
  color: var(--midnight-deep);
}

.btn-ghost {
  background: transparent;
  border-color: var(--glass-border);
  color: var(--text-primary);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate; /* pins this section as its own stacking context, so the
    scene layer's z-index can never leak above page chrome (e.g. the sticky
    header) and always resolves purely against .wrap within this section */
  padding: 120px 0 220px;
  text-align: center;
}

.hero > .wrap {
  position: relative;
  z-index: 10;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 20px;
}

h1.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 auto 22px;
  max-width: 780px;
  color: var(--text-primary);
  text-shadow: 0 2px 28px rgba(11, 10, 20, 0.85), 0 1px 4px rgba(11, 10, 20, 0.7);
}

p.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 12px rgba(11, 10, 20, 0.8);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Full-bleed landscape scene: sun, layered waveform hills, water reflection —
   the site's echo of the app's own LandscapeWaveform/CoverArt illustrations. */
.hero-scene-wrap {
  /* Sits behind .hero's text as a full-bleed background layer — a sibling of
     .wrap (the only element with side padding), not nested inside it, so it
     needs no 100vw/negative-margin trick (that's a classic horizontal-overflow
     bug on mobile) — position:absolute + inset:0 on the already-edge-to-edge
     box is enough. */
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-scene-wrap::after {
  /* A light, even scrim — the scene itself is now kept deliberately low-contrast
     (see hero-scene.svg's own low fill-opacities) so it reads as atmosphere
     behind text at any line-wrap/viewport height, rather than needing to be
     precisely dodged around the headline. */
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 10, 20, 0.5);
}

.hero-scene {
  width: 100%;
  height: 100%;
}

.hero-scene svg { width: 100%; height: 100%; display: block; }

.hero-scene .scene-sun {
  transform-origin: center;
  transform-box: fill-box;
  animation: sun-breathe 7s ease-in-out infinite;
}

@keyframes sun-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scene .scene-sun { animation: none; }
}


/* ---------- Sections ---------- */

section { padding: 88px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }

.section-head .eyebrow { margin-bottom: 14px; }

h2.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.25;
  margin: 0 0 14px;
}

p.section-sub {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Journey rows ---------- */

.journey { display: flex; flex-direction: column; gap: 96px; }

.journey-row {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
}

.journey-row.reverse { grid-template-columns: 340px 1fr; }
.journey-row.reverse .journey-copy { order: 2; }
.journey-row.reverse .journey-shot { order: 1; }

.journey-step {
  font-family: var(--serif);
  font-style: italic;
  color: var(--amber);
  font-size: 15px;
  margin: 0 0 12px;
}

h3.journey-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 14px;
  line-height: 1.3;
}

p.journey-copy-text {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.journey-shot {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--midnight-plum);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.6);
}

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
}

.feature-card .icon-glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(232, 185, 120, 0.25), rgba(217, 119, 87, 0.15));
  border: 1px solid var(--glass-border);
}

.feature-card h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

/* ---------- Quote / privacy teaser ---------- */

.privacy-teaser {
  border-radius: 28px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(180deg, rgba(36, 30, 51, 0.6), rgba(20, 18, 31, 0.6));
  padding: 56px 40px;
  text-align: center;
}

.lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* ---------- Final CTA ---------- */

.cta-final { text-align: center; padding-bottom: 120px; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid rgba(240, 201, 160, 0.08);
  padding: 40px 0;
}

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

footer.site .foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

footer.site a { text-decoration: none; color: var(--text-muted); font-size: 13px; }
footer.site a:hover { color: var(--text-secondary); }

footer.site .foot-brand { color: var(--text-muted); font-size: 13px; }

/* ---------- Legal pages ---------- */

.legal {
  padding: 72px 0 100px;
  max-width: 760px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 42px);
  margin: 0 0 8px;
}

.legal .updated { color: var(--text-muted); font-size: 13px; margin: 0 0 48px; }

.legal h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 21px;
  margin: 40px 0 14px;
  color: var(--text-primary);
}

.legal p, .legal li {
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.8;
}

.legal ul { padding-left: 22px; }
.legal a.inline { color: var(--amber-bright); text-decoration: underline; }

.legal .callout {
  border: 1px solid var(--glass-border);
  background: var(--glass-fill);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 28px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 480px) {
  .wordmark-text { display: none; }
  header.site .btn-primary { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 780px) {
  nav.site-nav .nav-link { display: none; }
  .journey-row, .journey-row.reverse {
    grid-template-columns: 1fr;
  }
  .journey-row.reverse .journey-copy { order: 1; }
  .journey-row.reverse .journey-shot { order: 2; }
  .journey-shot { max-width: 280px; margin: 0 auto; }
  section { padding: 64px 0; }
  .privacy-teaser { padding: 40px 24px; }
}
