/* ============================================================================
   Evdenk pre-landing — Warm-Luxury (matches the app's brand tokens)
   Deep charcoal-green canvas, cream ink, brass accent.
   Bodoni Moda display + Hanken Grotesk body. Fully static, no framework.
   ========================================================================== */

:root {
  --bg: #0e1210;
  --bg2: #141a16;
  --bg3: #1a211c;
  --ink: #f1e9da;
  --ink2: rgba(241, 233, 218, 0.74);
  --ink3: rgba(241, 233, 218, 0.5);
  --gold: #c6a15b;
  --gold-hi: #e6cf95;
  --gold-soft: rgba(198, 161, 91, 0.12);
  --glass: rgba(241, 233, 218, 0.035);
  --line: rgba(241, 233, 218, 0.13);
  --line-gold: rgba(198, 161, 91, 0.28);
  --serif: 'Bodoni Moda', 'Didot', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --shadow-gold: 0 10px 34px -10px rgba(198, 161, 91, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 90% 60% at 50% -10%, rgba(198, 161, 91, 0.08), transparent 60%),
    radial-gradient(70% 50% at 100% 100%, rgba(111, 168, 136, 0.05), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
}

::selection { background: var(--gold); color: #14100a; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(198, 161, 91, 0.22); border-radius: 6px; }

/* Film grain over everything, very faint */
.grain {
  position: fixed; inset: -50%; z-index: 40; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%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)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-6%, 4%); }
  40% { transform: translate(4%, -7%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(5%, 6%); }
}

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(rgba(14, 18, 16, 0.85), rgba(14, 18, 16, 0));
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-name {
  font-family: var(--serif); font-size: 1.35rem; color: var(--ink); letter-spacing: 0.02em;
}
.nav-right { display: flex; align-items: center; gap: 1rem; }

.lang {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  backdrop-filter: blur(10px); background: var(--glass);
}
.lang button {
  appearance: none; border: 0; background: transparent; color: var(--ink3);
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.12em; padding: 0.5rem 0.8rem; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.lang button.active { color: #14100a; background: var(--gold); }
.lang button:not(.active):hover { color: var(--ink); }

.nav-cta {
  font: 600 0.8rem/1 var(--sans); letter-spacing: 0.06em; color: var(--gold-hi);
  text-decoration: none; border: 1px solid var(--line-gold); border-radius: 999px;
  padding: 0.55rem 1.1rem; backdrop-filter: blur(10px); background: var(--glass);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}
.nav-cta:hover { background: var(--gold); color: #14100a; box-shadow: var(--shadow-gold); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; /* the oversized nebula layers must never widen the page */
}
#sky { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Drifting warm mist behind the constellation — cinematic depth. */
.nebula { position: absolute; inset: -22%; pointer-events: none; filter: blur(70px); }
.n1 {
  background:
    radial-gradient(38% 30% at 30% 58%, rgba(198, 161, 91, 0.2), transparent 70%),
    radial-gradient(30% 26% at 74% 36%, rgba(111, 168, 136, 0.14), transparent 70%);
  animation: neb1 53s ease-in-out infinite alternate;
}
.n2 {
  background:
    radial-gradient(30% 24% at 62% 68%, rgba(230, 207, 149, 0.14), transparent 70%),
    radial-gradient(26% 22% at 20% 28%, rgba(198, 161, 91, 0.12), transparent 70%);
  animation: neb2 71s ease-in-out infinite alternate;
}
@keyframes neb1 {
  to { transform: translate(4%, -3%) scale(1.14) rotate(2deg); }
}
@keyframes neb2 {
  from { transform: translate(-3%, 2%) scale(1.04); }
  to { transform: translate(3%, -3%) scale(1.16); }
}
.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 52% at 50% 46%, rgba(14, 18, 16, 0.48), transparent 74%),
    linear-gradient(rgba(14, 18, 16, 0.35), transparent 30%, transparent 70%, var(--bg));
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  padding: 6rem 1.4rem 4rem; max-width: 60rem;
}
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1.6rem;
  font: 600 0.72rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold-hi); border: 1px solid var(--line-gold); border-radius: 999px;
  padding: 0.55rem 1.05rem; background: var(--gold-soft); backdrop-filter: blur(8px);
}
.chip-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-hi);
  box-shadow: 0 0 12px 2px rgba(230, 207, 149, 0.7);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  margin: 0 0 1.4rem;
  text-shadow: 0 0 70px rgba(198, 161, 91, 0.28);
}
/* Movie-title entrance: blur-to-sharp. */
.hero h1.reveal { animation-name: titleIn; animation-duration: 1.6s; }
@keyframes titleIn {
  from { opacity: 0; filter: blur(18px); transform: translateY(30px) scale(1.06); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* Letterbox bars that part as the city ignites. */
.bar { position: absolute; left: 0; right: 0; height: 13%; background: #090c0a; z-index: 4; }
.bar-t { top: 0; animation: barT 2s cubic-bezier(0.6, 0, 0.2, 1) 0.9s forwards; }
.bar-b { bottom: 0; animation: barB 2s cubic-bezier(0.6, 0, 0.2, 1) 0.9s forwards; }
@keyframes barT { to { transform: translateY(-101%); } }
@keyframes barB { to { transform: translateY(101%); } }
.hero h1 em {
  font-style: italic; color: transparent;
  background: linear-gradient(135deg, #e6cf95 0%, #c6a15b 55%, #9b7b3f 100%);
  -webkit-background-clip: text; background-clip: text;
}
.lede {
  font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 300; color: var(--ink2);
  max-width: 40rem; margin: 0 auto 2.4rem;
}
.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.btn-gold {
  display: inline-block; font: 600 0.92rem/1 var(--sans); letter-spacing: 0.03em;
  color: #14100a; background: linear-gradient(135deg, var(--gold-hi), var(--gold));
  border: 0; border-radius: 999px; padding: 1rem 1.9rem; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-gold); transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 44px -10px rgba(198, 161, 91, 0.5); }
.btn-ghost {
  display: inline-block; font: 500 0.92rem/1 var(--sans); color: var(--ink2);
  border: 1px solid var(--line); border-radius: 999px; padding: 1rem 1.7rem;
  text-decoration: none; background: var(--glass); backdrop-filter: blur(8px);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--line-gold); }

.sky-caption {
  position: absolute; bottom: 1.4rem; left: 0; right: 0; z-index: 2;
  text-align: center; font-size: 0.74rem; letter-spacing: 0.05em; color: var(--ink3);
  padding: 0 1.4rem; margin: 0;
}

/* ---------------- Stats ---------------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 72rem; margin: 0 auto; padding: 4.5rem 1.4rem 1rem;
}
.stat {
  text-align: center; padding: 1.6rem 1rem; position: relative;
}
.stat + .stat::before {
  content: ''; position: absolute; left: 0; top: 22%; bottom: 22%;
  width: 1px; background: var(--line);
}
.stat-num {
  display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  color: var(--gold-hi); line-height: 1;
}
.stat-unit { font-size: 0.55em; color: var(--gold); margin-left: 0.1em; }
.stat-label {
  display: block; margin-top: 0.55rem; font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink3);
}
.stats-note {
  grid-column: 1 / -1; text-align: center; margin: 1.4rem 0 0;
  font-size: 0.76rem; font-style: italic; color: var(--ink3);
}

/* ---------------- Features ---------------- */
.features { max-width: 72rem; margin: 0 auto; padding: 6rem 1.4rem 2rem; }
.eyebrow {
  font: 600 0.7rem/1 var(--sans); letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 1rem;
}
.features h2, .waitlist h2 {
  font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 3rem; max-width: 34rem;
}
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.feat {
  border: 1px solid var(--line); border-radius: 18px; padding: 1.7rem 1.5rem 1.5rem;
  background: var(--glass); backdrop-filter: blur(14px);
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.feat:hover { border-color: var(--line-gold); transform: translateY(-4px); background: rgba(198, 161, 91, 0.05); }
.feat svg {
  width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem;
}
.feat h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.feat p { margin: 0; font-size: 0.88rem; font-weight: 300; color: var(--ink2); }

/* ---------------- Split ---------------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem;
  max-width: 72rem; margin: 0 auto; padding: 4rem 1.4rem;
}
.split-col {
  border: 1px solid var(--line); border-radius: 22px; padding: 2.4rem 2.2rem;
  background: var(--glass); backdrop-filter: blur(14px);
}
.split-agent { border-color: var(--line-gold); background: linear-gradient(160deg, rgba(198, 161, 91, 0.08), rgba(198, 161, 91, 0.02)); }
.split-col h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 1.2rem; }
.split-col ul { margin: 0; padding: 0; list-style: none; }
.split-col li {
  position: relative; padding: 0.5rem 0 0.5rem 1.6rem;
  font-size: 0.92rem; font-weight: 300; color: var(--ink2);
}
.split-col li::before {
  content: ''; position: absolute; left: 0; top: 1.05rem;
  width: 0.75rem; height: 1px; background: var(--gold);
}

/* ---------------- Waitlist ---------------- */
.waitlist { padding: 4rem 1.4rem 6rem; }
.waitlist-card {
  max-width: 44rem; margin: 0 auto; text-align: center;
  border: 1px solid var(--line-gold); border-radius: 26px;
  padding: 3.2rem clamp(1.4rem, 5vw, 3.4rem);
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(198, 161, 91, 0.13), transparent 60%),
    var(--bg2);
  box-shadow: 0 28px 60px -16px rgba(0, 0, 0, 0.8);
}
.waitlist h2 { margin-bottom: 0.7rem; }
.waitlist p { font-weight: 300; color: var(--ink2); margin: 0 0 1.8rem; }

.role { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.role label { cursor: pointer; }
.role input { position: absolute; opacity: 0; pointer-events: none; }
.role span {
  display: inline-block; font: 500 0.82rem/1 var(--sans); letter-spacing: 0.04em;
  color: var(--ink3); border: 1px solid var(--line); border-radius: 999px; padding: 0.6rem 1.2rem;
  transition: all 0.2s;
}
.role input:checked + span { color: var(--gold-hi); border-color: var(--gold); background: var(--gold-soft); }
.role input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.row { display: flex; gap: 0.6rem; }
.row input {
  flex: 1; min-width: 0; font: 400 0.95rem/1.2 var(--sans); color: var(--ink);
  background: rgba(14, 18, 16, 0.7); border: 1px solid var(--line); border-radius: 999px;
  padding: 1rem 1.4rem; outline: none; transition: border-color 0.2s;
}
.row input::placeholder { color: var(--ink3); }
.row input:focus { border-color: var(--gold); }

.consent {
  display: flex; gap: 0.55rem; align-items: flex-start; text-align: left;
  margin: 1.1rem auto 0; max-width: 34rem; cursor: pointer;
  font-size: 0.74rem; color: var(--ink3); line-height: 1.5;
}
.consent input { margin-top: 0.2rem; accent-color: var(--gold); }
.hp { display: none; }
.form-msg { min-height: 1.4em; margin: 0.9rem 0 0; font-size: 0.85rem; }
.form-msg.ok { color: #6fa888; }
.form-msg.err { color: #e0654a; }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--line); text-align: center;
  padding: 2.6rem 1.4rem 3rem; color: var(--ink3); font-size: 0.82rem;
}
.footer p { margin: 0.7rem 0 0; }
.fineprint { font-size: 0.7rem; opacity: 0.75; }

/* ---------------- Motion ---------------- */
.reveal {
  opacity: 0; transform: translateY(26px);
  animation: rise 0.9s cubic-bezier(0.2, 0.65, 0.25, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes rise { to { opacity: 1; transform: none; } }

.io { opacity: 0; transform: translateY(30px); transition: opacity 0.9s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.9s cubic-bezier(0.2, 0.65, 0.25, 1); transition-delay: var(--d, 0s); }
.io.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .io { opacity: 1; transform: none; animation: none; transition: none; }
  .grain, .nebula { animation: none; }
  .bar { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .row { flex-direction: column; }
  .nav-cta { display: none; }
  .stats { grid-template-columns: 1fr 1fr; gap: 0; padding-top: 3rem; }
  .stat { padding: 1.2rem 0.5rem; }
}
