/* Ravu site — night theme, tokens mirror the mobile app. Mobile-first. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/Fraunces-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/DMSans-Variable.ttf") format("truetype");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0B0E1A;
  --surface: #141829;
  --elevated: #1C2138;
  --border-subtle: #262B45;
  --border-strong: #3B4166;
  --text: #F4F1EA;
  --text-secondary: #B8B3C4;
  --text-muted: #7A7690;
  --gold: #E8B54D;
  --on-gold: #0B0E1A;
  --violet: #8B7CF6;
  --coral: #F2694B;
  --zodiac-fire: #F2694B;
  --zodiac-earth: #7CB56E;
  --zodiac-air: #7FC8F0;
  --zodiac-water: #6D8EF0;
  --glow: rgba(232, 181, 77, 0.35);
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 40px;
  --s-7: 48px;
  --s-8: 64px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold); text-underline-offset: 0.18em; }
a:hover { color: var(--text); }
p { margin: 0 0 var(--s-3); }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: var(--r-sm); }
.icon { width: 24px; height: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* layout */
.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.section { padding: var(--s-8) 0; }
.section-head { max-width: 40rem; margin-bottom: var(--s-6); }
.section-intro { color: var(--text-secondary); font-size: 1.0625rem; margin: var(--s-3) 0 0; }
@media (min-width: 900px) { .section { padding: calc(var(--s-8) + var(--s-4)) 0; } }

.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  background: var(--gold); color: var(--on-gold); padding: var(--s-2) var(--s-3);
  border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-3); }

/* star field: a few tiny dots, three tile sizes so no grid shows */
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.9;
  background-image:
    radial-gradient(1.5px 1.5px at 40px 60px, rgba(244, 241, 234, 0.75) 50%, transparent 100%),
    radial-gradient(1px 1px at 300px 180px, rgba(244, 241, 234, 0.55) 50%, transparent 100%),
    radial-gradient(1px 1px at 520px 420px, rgba(244, 241, 234, 0.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 130px 460px, rgba(127, 200, 240, 0.5) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 640px 90px, rgba(244, 241, 234, 0.6) 50%, transparent 100%),
    radial-gradient(1px 1px at 220px 640px, rgba(244, 241, 234, 0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 90px 260px, rgba(232, 181, 77, 0.55) 50%, transparent 100%),
    radial-gradient(1px 1px at 410px 330px, rgba(244, 241, 234, 0.4) 50%, transparent 100%);
  background-size: 700px 700px, 700px 700px, 700px 700px, 530px 530px, 830px 830px, 830px 830px, 470px 470px, 470px 470px;
}

/* typography */
.eyebrow {
  font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s-3);
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; color: var(--text); text-wrap: balance; }
h1.display {
  font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.04; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144;
}
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.01em; font-variation-settings: "opsz" 72; }
h3 { font-size: 1.25rem; line-height: 1.3; font-variation-settings: "opsz" 20; }
.lead { font-size: 1.125rem; line-height: 1.6; color: var(--text-secondary); max-width: 34rem; margin: var(--s-4) 0 var(--s-5); }
.caption { font-size: 13px; line-height: 18px; color: var(--text-secondary); }

/* buttons, pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 12px 20px; border-radius: var(--r-pill); font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold); color: var(--on-gold); filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.lang-pill {
  display: inline-flex; align-self: flex-start; padding: 3px;
  border: 1px solid var(--border-strong); border-radius: var(--r-pill); background: var(--surface);
}
.lang-pill a {
  padding: 6px 12px; border-radius: var(--r-pill); font-size: 13px; line-height: 18px;
  font-weight: 600; letter-spacing: 0.06em; text-decoration: none; color: var(--text-secondary);
}
.lang-pill a:hover { color: var(--text); }
.lang-pill a[aria-current] { background: var(--elevated); color: var(--gold); }

.pill {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-pill);
  background: rgba(232, 181, 77, 0.14); color: var(--gold);
  font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  margin: 0 0 var(--s-3);
}

/* header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 26, 0.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 40px; height: 40px; }
.brand-word { font-family: var(--font-display); font-variation-settings: "opsz" 72; font-weight: 600; font-size: 1.5rem; letter-spacing: -0.01em; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--border-strong); border-radius: var(--r-sm); color: var(--text); cursor: pointer;
}
.nav-toggle .icon-close, .site-header.is-open .nav-toggle .icon-open { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: block; }
.site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: var(--s-4); padding: var(--s-3) 0 var(--s-4); }
.site-header.is-open .site-nav { display: flex; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.site-nav ul a { display: block; padding: var(--s-2) 0; color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.site-nav ul a:hover { color: var(--text); }
@media (min-width: 880px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-basis: auto; flex-direction: row; align-items: center; gap: var(--s-4); padding: 0; }
  .site-nav ul { flex-direction: row; gap: var(--s-4); }
}

/* hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: var(--s-7) 0 var(--s-8); }
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  inset: -10% -20% auto; height: 120%;
  background: radial-gradient(ellipse 45% 55% at 70% 45%, var(--glow), transparent 70%);
}
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero-phone { display: flex; justify-content: center; }
.hero-phone .phone { width: min(300px, 78vw); }
@media (min-width: 900px) {
  .hero { padding: var(--s-8) 0 calc(var(--s-8) + var(--s-4)); }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
  .hero-phone { justify-content: flex-end; }
  .hero-phone .phone { width: 340px; }
}

/* phone mockup */
.phone {
  position: relative; aspect-ratio: 390 / 844; width: 100%;
  padding: 10px; border-radius: 48px; background: #05070F;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.phone::after {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 27%; height: 24px; border-radius: var(--r-pill); background: #05070F;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: var(--surface); }
.phone-glow { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 90px -10px var(--glow); }

/* features */
.card { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: var(--s-4); }
.card-elevated { background: var(--elevated); border-color: var(--border-strong); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.feature-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: var(--r-md); background: var(--elevated); color: var(--gold); margin-bottom: var(--s-3);
}
.feature h3 { margin-bottom: var(--s-2); }
.feature p { margin: 0; color: var(--text-secondary); }
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .card { padding: var(--s-5); }
}

/* screens strip */
.screens .section-head { margin-bottom: var(--s-5); }
.screens-row {
  list-style: none; margin: 0; padding: var(--s-3) var(--gutter);
  display: flex; gap: var(--s-4); overflow-x: auto; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.screens-row::-webkit-scrollbar { display: none; }
.screen { flex: 0 0 min(72%, 280px); scroll-snap-align: center; }
.screen .caption { margin: var(--s-3) 0 0; text-align: center; }
@media (min-width: 900px) {
  .screens-row {
    width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); overflow: visible;
  }
  .screen { flex: auto; }
  .screen .phone { width: min(100%, 300px); margin-inline: auto; }
}

/* premium */
.premium { position: relative; box-shadow: 0 0 100px -30px var(--glow); }
.premium-head { max-width: 38rem; }
.check-list { list-style: none; margin: var(--s-5) 0; padding: 0; display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.check {
  flex: 0 0 28px; height: 28px; margin-top: -2px; border-radius: 50%;
  background: var(--gold); color: var(--on-gold); display: inline-flex; align-items: center; justify-content: center;
}
.check .icon { width: 16px; height: 16px; }
.note { margin: 0; padding-top: var(--s-4); border-top: 1px solid var(--border-strong); color: var(--text-secondary); font-size: 0.9375rem; }
@media (min-width: 720px) {
  .check-list { grid-template-columns: 1fr 1fr; gap: var(--s-3) var(--s-5); }
  .premium { padding: var(--s-7); }
}

/* trust strip */
.trust h2 { margin-bottom: var(--s-5); }
.trust-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }
.trust-grid li { display: grid; gap: var(--s-2); align-content: start; }
.trust-grid h3 { font-size: 1.125rem; }
.trust-grid p { margin: 0; color: var(--text-secondary); }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--surface); border: 1px solid var(--border-subtle); color: var(--gold); margin-bottom: var(--s-1);
}
.trust-link { margin: var(--s-5) 0 0; font-weight: 600; }
@media (min-width: 720px) { .trust-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }

/* download band */
.cta { padding-top: 0; }
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  padding: var(--s-7) var(--s-4); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-subtle);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 80% at 50% 115%, var(--glow), transparent 70%);
}
.cta-band p { color: var(--text-secondary); max-width: 30rem; margin: var(--s-3) auto var(--s-5); }
.cta-band .badges { justify-content: center; }
@media (min-width: 720px) { .cta-band { padding: var(--s-8) var(--s-6); } }

/* store badges */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.badge { position: relative; display: inline-flex; align-items: center; border-radius: var(--r-sm); }
.badge-appstore img { height: 48px; width: auto; }
.badge-play { cursor: default; }
.badge-play img { height: 66px; width: auto; margin: -9px -10px; opacity: 0.5; filter: grayscale(0.6); }
.badge-play .soon {
  position: absolute; top: -9px; right: -8px; padding: 1px 8px;
  background: var(--elevated); border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  color: var(--text); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 0.04em;
}

/* footer */
.site-footer { margin-top: var(--s-6); padding: var(--s-6) 0 var(--s-7); border-top: 1px solid var(--border-subtle); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.footer-brand { display: inline-flex; align-items: center; gap: var(--s-2); margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 18px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-4); }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* legal article */
.article { width: min(100% - 2 * var(--gutter), 760px); margin-inline: auto; padding: var(--s-6) 0 var(--s-8); }
.article h1 {
  font-size: clamp(2.25rem, 6vw, 3.25rem); line-height: 1.08; letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144; margin: var(--s-3) 0 var(--s-2);
}
.updated { color: var(--text-secondary); font-size: 0.9375rem; margin: 0 0 var(--s-5); }
.article .intro { font-size: 1.0625rem; line-height: 1.65; color: var(--text-secondary); }
.toc { background: var(--surface); border: 1px solid var(--border-subtle); border-radius: var(--r-md); padding: var(--s-4); margin: var(--s-5) 0 var(--s-6); }
.toc h2 {
  font-family: var(--font-body); font-variation-settings: normal; font-size: 13px; line-height: 18px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-secondary); font-weight: 600; margin: 0 0 var(--s-3);
}
.toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 6px; }
.toc li { padding-left: 4px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }
.article section { margin-top: var(--s-6); scroll-margin-top: 96px; }
.article h2 { font-size: 1.5rem; line-height: 1.25; margin-bottom: var(--s-3); }
.article h2 .num { color: var(--gold); margin-right: 0.3em; }
.article p, .article li { line-height: 1.7; color: var(--text-secondary); }
.article strong { color: var(--text); font-weight: 600; }
.article ul { padding-left: 1.25rem; margin: var(--s-3) 0; }
.article li + li { margin-top: var(--s-2); }
.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; padding: 1px 6px;
  background: var(--surface); border: 1px solid var(--border-subtle); border-radius: 4px; color: var(--text);
}
.back { margin: 0; }
.back a { color: var(--text-secondary); text-decoration: none; font-size: 0.9375rem; }
.back a:hover { color: var(--gold); }
.article .back:last-child { margin-top: var(--s-7); }
@media (min-width: 600px) { .toc ol { grid-template-columns: 1fr 1fr; column-gap: var(--s-4); } }

/* root chooser + 404 */
.simple { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: var(--s-6) var(--gutter); }
.simple .brand-mark { width: 64px; height: 64px; margin: 0 auto var(--s-4); }
.simple h1 { font-size: clamp(2rem, 6vw, 3rem); font-variation-settings: "opsz" 144; margin-bottom: var(--s-2); }
.simple p { color: var(--text-secondary); margin: 0 0 var(--s-2); }
.simple .en-title { color: var(--text); font-weight: 600; }
.simple .choices { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-4); }
