/* Cyfer — showcase / landing page
   Visual language inherited from the app: pure-black canvas, Geist + Geist
   Mono, off-white #f5f5f7 text, a single warm amber accent (the app's
   "TONIGHT" dot / rating star), 14px radii, soft cinematic glows. */

:root {
  --bg: #000000;
  --bg-1: #0a0a0b;
  --bg-2: #141416;
  --bg-3: #1c1c1f;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --text: #f5f5f7;
  --text-dim: rgba(245,245,247,0.62);
  --text-faint: rgba(245,245,247,0.40);
  --amber: #f5c451;
  --amber-deep: #e0992f;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: 'Geist Mono', ui-monospace, monospace; }
img { max-width: 100%; display: block; }
section { position: relative; }

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

/* Eyebrow label — monospace, tracked-out, dim. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(245,196,81,0.75);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: #f5f5f7;
  color: #0a0a0b;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(245,245,247,0.45); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); transform: translateY(-2px); }
.btn-amber {
  background: linear-gradient(180deg, var(--amber), var(--amber-deep));
  color: #1a1206;
  font-weight: 600;
}
.btn-amber:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(224,153,47,0.5); }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }

/* ── Top nav ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 66px;
  display: flex;
  align-items: center;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0,0,0,0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}
.nav .wrap { display: flex; align-items: center; width: 100%; }
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 600; font-size: 20px; letter-spacing: -0.03em;
}
.brand .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #f5f5f7;
  box-shadow: 0 0 0 4px rgba(245,245,247,0.08);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  margin-left: 40px;
}
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 14px; color: var(--text-dim);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 200px 0 90px;
  overflow: hidden;
  text-align: center;
}
/* Ambient cinematic glow + faint film-grain vignette. */
.hero::before {
  content: "";
  position: absolute; inset: -10% -20% auto -20%;
  height: 720px;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(245,196,81,0.14) 0%, rgba(245,196,81,0.04) 38%, transparent 68%),
    radial-gradient(40% 50% at 78% 14%, rgba(90,120,255,0.10) 0%, transparent 60%);
  filter: blur(8px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 {
  font-weight: 300;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 22px auto 0;
  max-width: 16ch;
  text-wrap: balance;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 400;
  background: linear-gradient(100deg, var(--amber), #ffe3a3 60%, var(--amber-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin: 26px auto 0;
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}
.hero-cta {
  margin-top: 38px;
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
.hero-sub {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-faint);
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.hero-sub .tick { color: var(--amber); }

/* ── Poster marquee (faux catalog) ───────────────────────── */
.marquee {
  position: relative;
  margin-top: 76px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-row {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: scrollX 60s linear infinite;
}
.marquee-row.rev { animation-direction: reverse; animation-duration: 72s; margin-top: 18px; }
.marquee:hover .marquee-row { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }

.poster {
  position: relative;
  width: 168px; height: 252px;
  flex: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.8);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.poster::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: var(--pg, linear-gradient(160deg, #2a2a30, #101013));
}
.poster::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.78) 100%);
}
.poster .meta {
  position: relative; z-index: 2;
  padding: 12px 13px;
  width: 100%;
}
.poster .meta .t {
  font-size: 14px; font-weight: 500; letter-spacing: -0.02em;
  line-height: 1.15;
}
.poster .meta .s {
  margin-top: 4px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  display: flex; align-items: center; gap: 6px;
}
.poster .meta .s .star { color: var(--amber); }
.poster .badge {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(10,10,12,0.62);
  backdrop-filter: blur(6px);
  color: #fff;
}

/* ── Section scaffolding ─────────────────────────────────── */
.section { padding: 110px 0; }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head h2 {
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 50px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 16px 0 0;
  text-wrap: balance;
}
.section-head p {
  margin: 18px 0 0;
  font-size: 17px; line-height: 1.55;
  color: var(--text-dim);
  text-wrap: pretty;
}

/* ── Features grid ───────────────────────────────────────── */
.features {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  min-height: 210px;
  display: flex; flex-direction: column;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
}
.feature.wide { grid-column: span 2; }
.feature .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(245,196,81,0.10);
  border: 1px solid rgba(245,196,81,0.22);
  color: var(--amber);
  margin-bottom: 18px;
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 {
  margin: 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em;
}
.feature p {
  margin: 9px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--text-dim);
  text-wrap: pretty;
}
.feature .tag-row { margin-top: auto; padding-top: 16px; display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.05em;
  padding: 4px 9px; border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-dim);
}

/* ── Download ────────────────────────────────────────────── */
.platforms {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.platform {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.platform:hover { transform: translateY(-3px); border-color: var(--line-2); }
.platform .glyph {
  width: 40px; height: 40px; color: var(--text);
  margin-bottom: 20px;
}
.platform .glyph svg { width: 100%; height: 100%; }
.platform h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.platform .ver {
  margin: 6px 0 22px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px; letter-spacing: 0.04em; color: var(--text-faint);
}
.platform .dl-row { margin-top: auto; display: flex; flex-direction: column; gap: 9px; }
.platform .dl {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 15px; border-radius: 11px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
  font-size: 13.5px; font-weight: 500;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.platform .dl:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.24); }
.platform .dl .sz { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11px; color: var(--text-faint); }

/* ── Community (Discord) ─────────────────────────────────── */
.community {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  padding: 64px 56px;
  background:
    radial-gradient(80% 120% at 12% 0%, rgba(88,101,242,0.18), transparent 55%),
    linear-gradient(180deg, var(--bg-1), #060608);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.community h2 {
  font-weight: 300; font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em; line-height: 1.05; margin: 16px 0 0;
}
.community p { margin: 18px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--text-dim); max-width: 44ch; }
.community .eyebrow .dot { background: #5865f2; box-shadow: 0 0 10px rgba(88,101,242,0.8); }
.community-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4954e0; transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(88,101,242,0.55); }
.community-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.cstat {
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
}
.cstat .n {
  font-size: 30px; font-weight: 300; letter-spacing: -0.03em;
}
.cstat .l {
  margin-top: 5px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-faint);
}

/* ── Donations ───────────────────────────────────────────── */
.donate {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.donate-card {
  border-radius: 28px;
  border: 1px solid rgba(245,196,81,0.22);
  background:
    radial-gradient(90% 130% at 90% 10%, rgba(245,196,81,0.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  padding: 36px;
}
.donate-tiers { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0; }
.tier {
  flex: 1; min-width: 90px;
  padding: 16px 12px; text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.tier:hover, .tier.on {
  border-color: rgba(245,196,81,0.5);
  background: rgba(245,196,81,0.08);
  transform: translateY(-2px);
}
.tier .amt { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; }
.tier .per { font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.donate-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────────────────────── */
.foot {
  margin-top: 120px;
  border-top: 1px solid var(--line);
  padding: 54px 0 64px;
}
.foot .wrap { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot .brand { font-size: 18px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 {
  margin: 0 0 14px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 500;
}
.foot-col a {
  display: block; padding: 5px 0;
  font-size: 14px; color: var(--text-dim);
  transition: color .2s var(--ease);
}
.foot-col a:hover { color: var(--text); }
.foot-legal {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-faint);
}
.foot-legal .mono { letter-spacing: 0.04em; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 920px) {
  .features, .platforms { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .community, .donate { grid-template-columns: 1fr; }
  .community { padding: 44px 32px; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 20px; }
  .features, .platforms { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .hero { padding: 150px 0 60px; }
  .community-stats { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-ghost { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-row { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
