/*
  Anima — official landing. Noir system mirroring the app: black base,
  Libre Baskerville display + Inter body (the app's own faces), crimson/
  champagne spot colors, glass surfaces. The whole page floats over a
  living WebGL liquid (#bgCanvas). No frameworks, no build step.
*/

:root {
  --bg: #0a0a0a;
  --bg-deep: #000000;
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.55);
  --text-muted: rgba(255, 255, 255, 0.32);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-border: rgba(255, 255, 255, 0.10);
  --spot-crimson: #c4455a;
  --spot-gold: #d8a75b;
  --radius-lg: 20px;
  --radius-md: 14px;
  --gutter: clamp(20px, 5vw, 48px);
  --nav-h: 56px;
  --display: "Libre Baskerville", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; background: var(--bg); }

body {
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(196, 69, 90, 0.35); }

a { color: inherit; }

/* The living liquid — fixed behind everything. */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  display: block;
}

/* ---------- Nav bar ---------- */

.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 var(--gutter);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-side.right { justify-content: flex-end; }

.nav-link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--text); }

.nav-brand {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: 19px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
}

.lang-toggle {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.lang-toggle:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }

@media (max-width: 680px) {
  .nav-link { display: none; }
}

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

.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 48px) var(--gutter) 64px;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero-title {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(56px, 10vw, 110px);
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: 0 0 60px rgba(196, 69, 90, 0.25);
}

.hero-tagline {
  margin-top: 24px;
  max-width: 30em;
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-secondary);
}

/* ---------- App Store badge (classic) ---------- */

.store-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 46px;
  text-decoration: none;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 9px 20px 10px 16px;
  color: #fff;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.store-cta:hover .store-badge {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.85);
}

.store-badge svg { width: 26px; height: 26px; fill: #fff; flex: none; }

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
.store-badge-small { font-size: 11px; font-weight: 400; letter-spacing: 0.01em; }
.store-badge-big { font-size: 21px; font-weight: 500; letter-spacing: 0.01em; }

.store-note {
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

section { padding: clamp(72px, 11vh, 130px) var(--gutter); }

.section-inner { max-width: 1060px; margin: 0 auto; }

.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--spot-gold);
  opacity: 0.8;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.2vw, 42px);
  line-height: 1.18;
  max-width: 20em;
  text-wrap: balance;
}

/* Manifesto */

.manifesto { text-align: center; }
.manifesto .section-inner { max-width: 720px; }
.manifesto-text {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.55;
}
.manifesto-sub {
  margin-top: 26px;
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Feature wheel ---------- */

.features { text-align: center; }

.wheel-stage {
  position: relative;
  width: clamp(300px, 72vw, 520px);
  height: clamp(300px, 72vw, 520px);
  margin: 56px auto 0;
}

/* Pointer notch at 12 o'clock — the app dial's selection marker. */
.wheel-notch {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid var(--spot-gold);
  opacity: 0.9;
}

.wheel-track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

#wheelRing {
  position: absolute;
  inset: 0;
}

.wheel-item {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -30px 0 0 -30px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.wheel-item svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.wheel-item:hover { color: var(--text); }
.wheel-item.is-active {
  color: var(--spot-gold);
  border-color: rgba(216, 167, 91, 0.55);
  box-shadow: 0 0 26px rgba(216, 167, 91, 0.18);
}

.wheel-center {
  position: absolute;
  inset: 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
}

.wheel-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8%;
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.wheel-panel.is-active { opacity: 1; transform: none; }

.wheel-panel h3 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(19px, 2.6vw, 25px);
  margin-bottom: 10px;
}
.wheel-panel p {
  font-size: clamp(12px, 1.6vw, 14px);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 30em;
}

/* Privacy */

.privacy-band {
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
.privacy-band .section-inner { max-width: 760px; }
.privacy-band .section-title { margin: 0 auto 18px; }
.privacy-lead { color: var(--text-secondary); font-size: 15px; max-width: 36em; margin: 0 auto; }

.privacy-marks {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 14px;
}

.privacy-mark {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

/* Closing CTA */

.closing { text-align: center; }
.closing .section-title { margin: 0 auto 8px; }
.closing .store-cta { margin-top: 34px; }

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

.site-footer {
  padding: 44px var(--gutter) 56px;
  border-top: 1px solid var(--surface-border);
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer-links a:hover { color: var(--text); }

.footer-copy { font-size: 12px; color: var(--text-muted); }

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wheel-item { transition: none; }
}

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

body.legal { background: var(--bg); }

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 84px) var(--gutter) 90px;
}

.legal-title {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 44px);
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.legal-intro {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 44px;
  line-height: 1.7;
}

.legal-wrap section { padding: 0 0 36px; }

.legal-wrap h2 {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 23px;
  margin-bottom: 12px;
}

.legal-wrap p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.legal-wrap ul { padding-left: 20px; }
.legal-wrap li {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.legal-wrap li::marker { color: var(--spot-crimson); }

.legal-wrap a { color: var(--spot-gold); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }
