[hidden] { display: none !important; }
:root {
  --bg: #05070d;
  --panel: rgba(14, 20, 34, 0.72);
  --line: rgba(120, 200, 255, 0.18);
  --text: #e8f1ff;
  --muted: #9fb0c8;
  --cyan: #4fe3ff;
  --pink: #ff4fa3;
  --gold: #ffc94d;
  --lime: #9dff6b;
  --display: "Orbitron", system-ui, sans-serif;
  --body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at top, #0c1426 0%, var(--bg) 60%);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
#stars { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(5, 7, 13, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: 2px; }
.brand img { width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 0 12px rgba(79, 227, 255, 0.5); }
.nav nav { display: flex; align-items: center; gap: 22px; font-weight: 600; }
.nav nav a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav nav a:not(.btn):hover { color: var(--cyan); }

/* BUTTONS */
.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 600; letter-spacing: 1px;
  padding: 14px 30px; border-radius: 999px;
  color: #04121a;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  box-shadow: 0 0 24px rgba(79, 227, 255, 0.45);
  transition: transform .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 36px rgba(255, 201, 77, 0.6); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--cyan); box-shadow: none; }
.btn-ghost:hover { box-shadow: 0 0 20px rgba(79, 227, 255, 0.4); }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-pink { background: linear-gradient(90deg, var(--pink), #ff8a5c); color: #1a0410; box-shadow: 0 0 24px rgba(255, 79, 163, 0.45); }
.btn-pink:hover { box-shadow: 0 0 36px rgba(255, 79, 163, 0.65); }
button.btn { border: 0; cursor: pointer; font-size: 16px; }
.text-link { color: var(--cyan); font-weight: 600; }
.text-link:hover { text-decoration: underline; }
.learn-more { margin-top: 18px; font-size: 15px; }

/* DOWNLOAD */
.download-box {
  display: flex; gap: 36px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 0 60px rgba(79, 227, 255, 0.08);
}
.app-icon { width: 150px; height: 150px; border-radius: 34px; flex-shrink: 0; box-shadow: 0 0 40px rgba(255, 79, 163, 0.35); }
.download-text h2 { font-family: var(--display); font-size: clamp(22px, 3.2vw, 32px); margin: 8px 0 12px; }
.download-text > p { color: var(--muted); margin-bottom: 22px; }
.install-help { margin-top: 14px; color: var(--gold); font-size: 15px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.store {
  display: inline-flex; flex-direction: column; line-height: 1.2;
  padding: 10px 18px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
  opacity: 0.7; cursor: default;
}
.store small { font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.store b { font-family: var(--display); font-size: 15px; letter-spacing: .5px; }

/* HERO */
.hero {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) 20px 60px;
  max-width: 900px; margin: 0 auto;
}
.emblem-wrap { position: relative; width: min(300px, 70vw); aspect-ratio: 1; margin: 0 auto; }
.emblem-core { position: absolute; inset: 0; animation: float 5s ease-in-out infinite; }
.emblem {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 60px rgba(255, 79, 163, 0.35), 0 0 120px rgba(79, 227, 255, 0.2);
  animation: neural 2.8s ease-in-out infinite;
}
.brain-fx {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
}
.ring {
  position: absolute; inset: -14px; border-radius: 50%;
  border: 2px dashed rgba(255, 201, 77, 0.5);
  animation: spin 30s linear infinite;
}
/* 3D ADWENE title: the span is the extruded body, ::after is the chrome face */
.wordmark3d { margin: 34px auto 10px; line-height: 1; }
.w3d {
  position: relative; display: inline-block;
  font-family: "Press Start 2P", var(--display); font-weight: 400;
  font-size: clamp(30px, 9vw, 70px); letter-spacing: .02em; line-height: 1.2;
  padding-left: .02em; /* balances the trailing letter-spacing */
  color: #0e3a5c;
  text-shadow:
    0 1px 0 #1a5a86, 0 2px 0 #175380, 0 3px 0 #144b75, 0 4px 0 #11436a,
    0 5px 0 #0e3b5f, 0 6px 0 #0b3354, 0 7px 0 #092b48, 0 8px 0 #07233c,
    0 9px 0 #051b30, 0 12px 10px rgba(0, 0, 0, .85),
    0 0 28px rgba(79, 227, 255, .45), 0 0 60px rgba(255, 79, 163, .3);
}
.w3d::after {
  content: attr(data-text);
  position: absolute; left: .02em; top: 0;
  background:
    linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) 0 0 / 300% 100% no-repeat,
    linear-gradient(180deg, #ffffff 0%, #e6faff 30%, #8ff0ff 48%, #2b9ad0 52%, #a66bff 76%, #ff4fa3 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85);
  text-shadow: none;
  animation: sheen 5s ease-in-out infinite;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .w3d::after { color: #e6faff; }
}
.tag { font-family: var(--display); letter-spacing: 6px; font-size: 13px; color: var(--gold); text-transform: uppercase; }
h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(26px, 4.5vw, 44px); line-height: 1.2;
  margin: 22px 0 16px;
}
h1 span { background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); max-width: 620px; margin: 0 auto; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.loader { max-width: 420px; margin: 48px auto 0; }
.bar {
  height: 14px; border-radius: 999px; padding: 3px;
  border: 1.5px solid rgba(255, 201, 77, 0.6);
  box-shadow: 0 0 14px rgba(255, 201, 77, 0.25);
}
.bar i {
  display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #fff3c4);
  box-shadow: 0 0 12px var(--gold);
  transition: width .1s linear;
}
.loader-meta { display: flex; justify-content: space-between; margin-top: 8px; font-family: var(--display); font-size: 12px; letter-spacing: 2px; color: var(--cyan); }
.loader-meta b { color: var(--gold); }

/* SECTIONS */
.section { max-width: 1100px; margin: 0 auto; padding: 70px 20px; }
.section-title { font-family: var(--display); text-align: center; font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 40px; }
.grid { display: grid; gap: 22px; }
.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--c);
  border-radius: 18px;
  padding: 28px;
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 0 30px color-mix(in srgb, var(--c) 35%, transparent); }
.card .icon { font-size: 34px; margin-bottom: 10px; }
.card h3 { font-family: var(--display); font-size: 19px; margin-bottom: 8px; color: var(--c); }
.card p { color: var(--muted); }

/* ABOUT */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-family: var(--display); color: var(--gold); letter-spacing: 3px; font-size: 13px; text-transform: uppercase; }
.about h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); margin: 10px 0 16px; }
.about h2 em { font-style: normal; color: var(--cyan); }
.about-text p { color: var(--muted); margin-bottom: 12px; }
.mv { display: grid; gap: 16px; }
.mv-box { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--pink); border-radius: 14px; padding: 20px 22px; }
.mv-box span { font-family: var(--display); font-size: 13px; letter-spacing: 2px; color: var(--pink); text-transform: uppercase; }
.mv-box p { margin-top: 6px; }

.final { text-align: center; }
.final h2 { font-family: var(--display); font-size: clamp(22px, 3.2vw, 32px); margin-bottom: 24px; }

footer { text-align: center; padding: 40px 20px; border-top: 1px solid var(--line); color: var(--muted); }
footer .small { font-size: 14px; margin-top: 4px; }

/* PLAY (coming soon) */
.play-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.play-page .emblem-wrap { width: min(220px, 60vw); }
.play-page h1 { font-size: clamp(22px, 4vw, 34px); }

@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes neural { 50% { filter: brightness(1.12) saturate(1.15); } }
@keyframes sheen { 0%, 55% { background-position: 130% 0, 0 0; } 100% { background-position: -30% 0, 0 0; } }

@media (max-width: 760px) {
  .nav nav a:not(.btn) { display: none; }
  .nav nav { gap: 10px; }
  .about { grid-template-columns: 1fr; }
  .download-box { flex-direction: column; text-align: center; }
  .stores { justify-content: center; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
  .btn-sm { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .emblem, .emblem-core, .ring, .w3d::after { animation: none; }
  .brain-fx { display: none; }
  html { scroll-behavior: auto; }
}

/* ---------- ACCOUNT PAGES (sign up, log in, account) ---------- */
.auth-main { max-width: 560px; margin: 0 auto; padding: 48px 20px 80px; }
.auth-main.wide { max-width: 860px; }
.auth-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  padding: clamp(22px, 4vw, 36px); box-shadow: 0 0 60px rgba(79, 227, 255, 0.07);
}
.auth-card + .auth-card { margin-top: 24px; }
.auth-card h1 { font-size: clamp(24px, 4vw, 32px); margin: 6px 0 8px; }
.auth-card h2 { font-family: var(--display); font-size: 20px; margin-bottom: 14px; }
.auth-sub { color: var(--muted); margin-bottom: 24px; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 15px; }
.field .hint { color: var(--muted); font-size: 13px; }
.field input, .field select {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(5, 7, 13, 0.7); border: 1px solid rgba(120, 200, 255, 0.28);
  border-radius: 12px; padding: 12px 14px; min-height: 48px;
}
.field input:focus, .field select:focus { outline: 2px solid var(--cyan); outline-offset: 1px; border-color: transparent; }
.field select option { background: #0c1426; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  display: flex; gap: 10px; align-items: center; cursor: pointer;
  border: 1px solid rgba(120, 200, 255, 0.28); border-radius: 12px; padding: 12px 14px;
}
.choice:has(input:checked) { border-color: var(--cyan); background: rgba(79, 227, 255, 0.08); }
.choice input { accent-color: var(--cyan); width: 18px; height: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { accent-color: var(--cyan); width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.check a, .auth-foot a, .link-btn { color: var(--cyan); font-weight: 600; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.form .btn { width: 100%; text-align: center; font-size: 16px; }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.captcha { min-height: 66px; }
.form-msg { border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.form-msg.error { background: rgba(255, 79, 120, 0.12); border: 1px solid rgba(255, 79, 120, 0.5); color: #ffd1dc; }
.form-msg.ok { background: rgba(157, 255, 107, 0.1); border: 1px solid rgba(157, 255, 107, 0.45); color: #e3ffd6; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--muted); }
.done { text-align: center; }
.done .big { font-size: 46px; margin-bottom: 8px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.pill { display: inline-block; font-family: var(--display); font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); }
.learners { display: grid; gap: 12px; margin-bottom: 20px; }
.learner {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-left: 3px solid var(--lime); border-radius: 14px; padding: 14px 16px;
}
.learner b { font-family: var(--display); font-size: 16px; }
.learner small { color: var(--muted); display: block; }
.learner .actions { display: flex; gap: 14px; }
.danger { color: #ff8fa8 !important; }
.empty { color: var(--muted); font-style: italic; }
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-family: var(--display); font-size: clamp(24px, 4vw, 34px); margin-bottom: 8px; }
.legal h2 { font-family: var(--display); font-size: 18px; margin: 28px 0 8px; color: var(--cyan); }
.legal p, .legal li { color: var(--muted); margin-bottom: 8px; }
.legal ul { padding-left: 22px; }
.draft-note { border: 1px dashed var(--gold); color: var(--gold); border-radius: 12px; padding: 10px 14px; margin: 12px 0 20px; font-size: 14px; }
footer .small a { color: var(--muted); text-decoration: underline; }
@media (max-width: 560px) {
  .row-2, .choice-row { grid-template-columns: 1fr; }
}
.hint { color: var(--muted); font-size: 13px; }
button.btn-sm { font-size: 13px; }
.nav nav a[hidden] { display: none; }
button.btn.btn-ghost { border: 1.5px solid var(--cyan); }
