/* Vertigo — marketing site. Brand tokens mirror VertigoTheme.swift. */
:root {
  --ink: #1C1658;
  --purple: #7E62EA;
  --purple-deep: #7560DC;
  --lavender: #B8A6FF;
  --mist: #F9F7FF;
  --blue-mist: #DBF0FF;
  --rose-mist: #FFE7EE;
  --success: #34C77B;
  --stop: #CC4057;
  --shadow-card: 0 10px 18px rgba(87, 69, 163, 0.14);
  --shadow-cta: 0 8px 22px rgba(126, 98, 234, 0.40);
  --radius: 26px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", -apple-system, "SF Pro Rounded", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: #FFFEFF;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Layered drifting gradient atmosphere */
.atmosphere {
  position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(160deg, #FFFEFF 0%, #F7F2FF 55%, #EDEFFF 100%);
}
.atmosphere::before, .atmosphere::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.55;
}
.atmosphere::before {
  width: 60vw; height: 60vw; top: -22vw; right: -18vw;
  background: radial-gradient(circle, var(--lavender), transparent 65%);
  animation: drift 26s ease-in-out infinite alternate;
}
.atmosphere::after {
  width: 52vw; height: 52vw; bottom: -20vw; left: -16vw;
  background: radial-gradient(circle, var(--blue-mist) 0%, var(--rose-mist) 55%, transparent 75%);
  animation: drift 32s ease-in-out infinite alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-6vw, 5vw, 0) scale(1.12); }
}

/* Fine grain so the gradients don't band */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.7rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.wordmark .dot { color: var(--purple); }
nav .links { display: flex; gap: 26px; align-items: center; }
nav .links a {
  color: rgba(28, 22, 88, 0.62); text-decoration: none;
  font-weight: 700; font-size: 0.92rem;
}
nav .links a:hover { color: var(--purple); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px;
  align-items: center; padding: 64px 0 96px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 999px; padding: 7px 16px;
  font-size: 0.82rem; font-weight: 800; color: rgba(28,22,88,0.66);
  box-shadow: 0 5px 10px rgba(87, 69, 163, 0.10);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.hero h1 {
  font-family: var(--serif); font-weight: 560; font-size: clamp(2.6rem, 5.4vw, 4rem);
  line-height: 1.06; letter-spacing: -0.02em; margin: 22px 0 20px;
}
.hero h1 em { font-style: italic; color: var(--purple); }
.hero .sub {
  font-size: 1.12rem; color: rgba(28, 22, 88, 0.66); max-width: 34rem;
  margin-bottom: 30px;
}
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cta {
  display: inline-block; background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  color: #fff; text-decoration: none; font-weight: 800; font-size: 1rem;
  padding: 15px 30px; border-radius: 999px; box-shadow: var(--shadow-cta);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(126, 98, 234, 0.5); }
.cta.ghost {
  background: rgba(255,255,255,0.65); color: var(--purple);
  border: 1px solid rgba(126, 98, 234, 0.35); box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.boundary-note {
  margin-top: 26px; font-size: 0.9rem; font-weight: 700; color: rgba(28,22,88,0.55);
  display: flex; align-items: center; gap: 8px;
}
.boundary-note svg { flex: none; }

/* Hero load choreography */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.18s; }
.rise.d3 { animation-delay: 0.30s; } .rise.d4 { animation-delay: 0.44s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- CSS phone mock ---------- */
.phone-col { display: flex; justify-content: center; }
.phone {
  width: 300px; border-radius: 48px; padding: 14px;
  background: linear-gradient(160deg, #2a2350, #14102e);
  box-shadow: 0 30px 60px rgba(28, 22, 88, 0.35), inset 0 1px 1px rgba(255,255,255,0.25);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0) rotate(1.2deg); } 50% { transform: translateY(-14px) rotate(-0.6deg); } }
.screen {
  border-radius: 36px; overflow: hidden;
  background: linear-gradient(160deg, #FFFEFF, #F7F2FF 55%, #EDEFFF);
  padding: 26px 18px 22px;
}
.screen .app-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.screen .app-sub { font-size: 0.62rem; font-weight: 700; color: rgba(28,22,88,0.5); margin-bottom: 14px; }
.mini-card {
  background: rgba(255,255,255,0.72); border: 1px solid rgba(255,255,255,0.9);
  border-radius: 20px; padding: 14px; box-shadow: var(--shadow-card); margin-bottom: 12px;
}
.mini-card .k { font-size: 0.6rem; font-weight: 800; color: var(--purple); letter-spacing: 0.06em; text-transform: uppercase; }
.mini-card .v { font-size: 1.05rem; font-weight: 800; }
.mini-btn {
  margin-top: 10px; text-align: center; color: #fff; font-weight: 800; font-size: 0.8rem;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  border-radius: 999px; padding: 10px; box-shadow: 0 6px 14px rgba(126,98,234,0.35);
}
.dial { display: flex; justify-content: center; padding: 8px 0 4px; }
.dial svg { display: block; }
.dial .needle { transform-origin: 60px 60px; animation: sweep 2.4s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-38deg); } to { transform: rotate(38deg); } }
.dial-label { text-align: center; font-size: 0.62rem; font-weight: 800; color: rgba(28,22,88,0.55); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-eyebrow {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple); margin-bottom: 12px;
}
h2 {
  font-family: var(--serif); font-weight: 560; font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  letter-spacing: -0.015em; line-height: 1.12; margin-bottom: 16px; max-width: 30ch;
}
.lede { color: rgba(28,22,88,0.64); font-size: 1.05rem; max-width: 40rem; margin-bottom: 40px; }

.card {
  background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(87, 69, 163, 0.18); }

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

.step-num {
  font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--lavender);
  line-height: 1; margin-bottom: 12px;
}
.card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 0.94rem; color: rgba(28,22,88,0.62); }

.drill-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.tag-gaze { background: var(--blue-mist); color: #3568b8; }
.tag-habit { background: var(--rose-mist); color: #b8536b; }
.tag-maneuver { background: #EDE7FF; color: var(--purple-deep); }

/* ---------- Privacy band ---------- */
.privacy-band .card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.privacy-band .card:hover { transform: none; }
.lock {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep)); color: #fff;
  box-shadow: var(--shadow-cta); font-size: 1.6rem;
}

/* ---------- Safety ---------- */
.safety .card { background: rgba(255, 236, 242, 0.55); border-color: rgba(255,255,255,0.9); }
.safety .card:hover { transform: none; }
.flags { list-style: none; margin: 18px 0; display: grid; gap: 10px; }
.flags li { display: flex; gap: 12px; align-items: baseline; font-weight: 700; font-size: 0.97rem; }
.flags li::before { content: "▲"; color: var(--stop); font-size: 0.7rem; flex: none; }
.disclaimer { font-size: 0.9rem; color: rgba(28,22,88,0.6); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid rgba(139, 123, 216, 0.25);
  padding: 40px 0 56px; margin-top: 40px;
  font-size: 0.86rem; color: rgba(28,22,88,0.55);
}
footer .row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer a { color: var(--purple); text-decoration: none; font-weight: 700; }
footer .fine { margin-top: 18px; max-width: 62rem; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Privacy / document page ---------- */
.doc {
  max-width: 760px; margin: 24px auto 80px;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.9);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 56px;
}
.doc h1 { font-family: var(--serif); font-weight: 560; font-size: 2.3rem; letter-spacing: -0.02em; margin-bottom: 6px; }
.doc .meta { color: rgba(28,22,88,0.55); font-size: 0.9rem; margin-bottom: 34px; }
.doc h2 { font-size: 1.35rem; margin: 34px 0 10px; }
.doc p, .doc li { font-size: 0.98rem; color: rgba(28,22,88,0.75); }
.doc ul { padding-left: 22px; margin: 10px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.92rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(139,123,216,0.2); vertical-align: top; }
.doc th { color: var(--purple-deep); font-size: 0.8rem; letter-spacing: 0.05em; text-transform: uppercase; }
.doc strong { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 64px; }
  .phone-col { order: -1; }
  .phone { width: 250px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .privacy-band .card { grid-template-columns: auto 1fr; }
  .privacy-band .cta.ghost { grid-column: 2; justify-self: start; }
  .doc { padding: 34px 24px; }
  nav .links { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere::before, .atmosphere::after, .phone, .dial .needle { animation: none; }
  .rise { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
