:root {
  --bg0: #0f1412;
  --bg1: #1a2420;
  --ink: #f4f1ea;
  --muted: #a8b0aa;
  --accent: #c8f062;
  --accent-ink: #13200f;
  --line: rgba(244, 241, 234, 0.14);
  --danger: #ff8f8f;
  --ok: #9be7a8;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --radius: 14px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(200, 240, 98, 0.18), transparent 55%),
    radial-gradient(700px 420px at -10% 30%, rgba(120, 180, 160, 0.16), transparent 50%),
    linear-gradient(165deg, var(--bg0), var(--bg1) 55%, #121816);
}

a { color: inherit; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.top-nav { display: flex; gap: 1.1rem; }
.top-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.top-nav a:hover { color: var(--ink); }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem 3rem; }

.hero {
  min-height: min(78vh, 640px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0 3rem;
}
.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 700;
}
.lede {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}
.lede.narrow { max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.hero-visual { position: relative; min-height: 280px; }
.hero-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at 40% 40%, rgba(200, 240, 98, 0.35), transparent 65%);
  filter: blur(8px);
}
.hero-frame {
  position: relative;
  margin: 2rem auto;
  width: min(100%, 320px);
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
    rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 1.4rem;
  animation: floaty 5.5s ease-in-out infinite;
}
.hero-frame span {
  align-self: flex-start;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(200, 240, 98, 0.12);
  border: 1px solid rgba(200, 240, 98, 0.28);
  font-size: 0.85rem;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.auth, .download {
  margin-top: 1rem;
  padding: 2rem 0 1rem;
  border-top: 1px solid var(--line);
}
.auth-tabs {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 1.25rem;
  background: rgba(0,0,0,0.2);
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}
.tab.active {
  background: rgba(200, 240, 98, 0.16);
  color: var(--ink);
}
.auth-form, .session {
  max-width: 420px;
  display: grid;
  gap: 0.85rem;
}
.auth-form h2, .download h2 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
}
label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  background: rgba(0,0,0,0.28);
  color: var(--ink);
  font: inherit;
}
input:focus {
  outline: 2px solid rgba(200, 240, 98, 0.45);
  outline-offset: 1px;
}
.hint { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.form-msg { min-height: 1.25rem; margin: 0; font-size: 0.92rem; }
.form-msg.error { color: var(--danger); }
.form-msg.ok { color: var(--ok); }
.session-ok { margin: 0; font-size: 1.05rem; }

.dl-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.dl {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  text-decoration: none;
  background: rgba(0,0,0,0.22);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.dl.android:hover {
  border-color: rgba(200, 240, 98, 0.45);
  transform: translateY(-2px);
}
.dl.ios.disabled {
  opacity: 0.72;
  cursor: not-allowed;
}
.dl-os {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.dl-title { font-size: 1.2rem; font-weight: 700; }
.dl-note { color: var(--muted); font-size: 0.88rem; line-height: 1.4; }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--line);
}
.foot a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-visual { order: -1; min-height: 220px; }
  .hero-frame { width: min(100%, 240px); margin: 0.5rem auto; }
  .dl-row { grid-template-columns: 1fr; }
}
