@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Aeonik";
  src: url("../fonts/Aeonik-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #060510;
  --text: #f7f7f7;
  --muted: rgba(209, 216, 255, 0.6);
  --heading: #eaedff;
  --logo: #cbd0eb;
  --blue: #5b8cff;
  --btn: #6d74f2;
  --line: rgba(255, 255, 255, 0.1);
  --card: #10121c;
  --header: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Aeonik", ui-sans-serif, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.4;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, .btn {
  font-family: inherit;
  cursor: pointer;
  border: 0;
}

.space {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1180px;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 0;
  background: linear-gradient(to bottom, rgba(6, 5, 16, 0.72), rgba(6, 5, 16, 0));
}

.site-header.is-stuck {
  background: rgba(6, 5, 16, 0.86);
  backdrop-filter: blur(16px);
  padding-top: 0;
}

.logo {
  display: block;
  height: 24px;
  width: auto;
}

.logo path { fill: var(--logo); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.store {
  display: block;
  height: 40px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  line-height: 0;
}

.store img {
  display: block;
  height: 40px;
  width: auto;
}

.store:hover {
  opacity: 0.9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 8px;
  background: #12111a;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(203, 208, 235, 0.1);
}

.login:hover { background: rgba(18, 17, 26, 0.8); }

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 24px 0;
}

.wordmark {
  width: min(360px, 78vw);
  height: auto;
}

.wordmark path { fill: var(--logo); }

.hero h1 {
  margin: 10px 0 0;
  max-width: 760px;
  color: var(--heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.hero .lede {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 22px);
  letter-spacing: -0.02em;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 54px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid rgba(203, 208, 235, 0.1);
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.btn-primary { background: rgba(96, 106, 247, 0.5); }

.btn-primary:hover { background: rgba(96, 106, 247, 0.8); }

.btn-ghost { background: rgba(255, 255, 255, 0.12); }

.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.astronaut {
  width: min(460px, 58vw);
  height: auto;
  margin-top: -16px;
  object-fit: contain;
  animation: float-astro 10s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.web {
  position: relative;
  z-index: 1;
  padding: 10px 20px 40px;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.web h2, .features h2, .legends h2 {
  margin: 14px 0 0;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.web h2 {
  font-size: clamp(40px, 5.4vw, 72px);
}

.web .sub, .features .sub, .legends .sub {
  margin: 16px auto 0;
  max-width: 640px;
  color: #c5c8df;
  font-size: clamp(16px, 1.5vw, 20px);
}

.stage {
  position: relative;
  width: min(980px, 92vw);
  margin: 48px auto 0;
}

.monitor {
  width: 100%;
  filter: drop-shadow(0 40px 90px rgba(36, 58, 180, 0.28));
}

.phone {
  position: absolute;
  width: 34%;
  right: -6%;
  bottom: 8%;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.45));
}

.phone-only { display: none; }

.features {
  position: relative;
  z-index: 1;
  padding: 90px 0 40px;
}

.features h2 {
  font-size: clamp(36px, 4.6vw, 64px);
}

.features .sub {
  margin-top: 8px;
  color: #9ea3c4;
  text-align: left;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 28px 26px 0;
  border-radius: 28px;
  background: linear-gradient(180deg, #16182a 0%, #0d0f1a 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.kicker {
  margin: 0;
  color: #7ea2ff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card h3 {
  margin: 12px 0 0;
  font-size: clamp(26px, 2vw, 32px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.card-art {
  margin-top: auto;
  height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.card-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transition: transform 0.35s ease;
}

.card:hover .card-art img { transform: scale(1.04); }

.sign-in-art { position: relative; }

.sign-in-hit {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 6%;
  height: 46%;
  padding: 0;
  background: transparent;
}

.legends {
  position: relative;
  z-index: 1;
  min-height: 820px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.legends-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  pointer-events: none;
  user-select: none;
}

.ring-inner {
  width: min(420px, 34vw);
  animation: spin 30s linear infinite;
}

.ring-outer {
  width: min(760px, 58vw);
  animation: spin 45s linear infinite;
}

.legends-copy {
  position: relative;
  z-index: 2;
  width: min(640px, calc(100% - 32px));
}

.legends h2 {
  font-size: clamp(40px, 5vw, 68px);
}

.legends .sub { color: #d5d8ea; }

.legends .cta-row { justify-content: center; }

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 28px 48px 56px;
  background: linear-gradient(to bottom, rgba(6, 5, 16, 0), #060510 28%);
}

.footer-brand .logo { height: 36px; }

.footer-brand p {
  margin: 10px 0 0;
  color: #d7d9ea;
}

.footer-brand small {
  display: block;
  margin-top: 14px;
  color: #8d90a8;
}

.footer-nav {
  display: flex;
  gap: 72px;
}

.footer-nav h4 {
  margin: 0 0 14px;
  color: #8d90a8;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.footer-nav a,
.footer-nav span {
  display: block;
  margin: 8px 0;
  color: #f3f4fb;
  font-size: 15px;
}

.footer-nav a:hover { color: #fff; }

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 12, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: #141626;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-card h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.modal-card p { color: var(--muted); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 20px;
}

.store-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.store-col .store { width: fit-content; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes float-astro {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 980px) {
  .header-actions .store { display: none; }
  .store-col .store { display: inline-flex; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .card-art { height: 280px; }
  .phone { display: none; }
  .monitor { display: none; }
  .phone-only {
    display: block;
    width: min(420px, 88vw);
    margin: 28px auto 0;
  }
  .site-footer, .footer-nav { flex-direction: column; gap: 28px; }
  .ring-inner { width: 46vw; }
  .ring-outer { width: 88vw; }
  .legends { min-height: 720px; }
  .astronaut {
    width: min(640px, 100vw);
    height: auto;
    margin-top: 8px;
  }
  .btn { width: auto; min-width: 0; flex: 1; }
}

.legal {
  position: relative;
  z-index: 1;
  width: min(820px, calc(100% - 48px));
  margin: 36px auto 72px;
}

.legal h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.legal .dated,
.legal h2 {
  margin: 8px 0 28px;
  color: #9ea3c4;
  font-size: 18px;
  font-weight: 500;
}

.legal h2 dd { margin: 0; }

.legal p,
.legal li {
  color: #d7dbeb;
  font-size: 16px;
  line-height: 1.65;
}

.legal p { margin: 0 0 16px; }

.legal strong { color: #f7f7f7; }

.legal a { color: #9eb0ff; }

.legal ol,
.legal ul { margin: 0 0 16px; padding-left: 22px; }

.legal li { margin: 6px 0; }

.login-card {
  position: relative;
  width: min(400px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 18px 22px 20px;
  border-radius: 16px;
  background: #1a1c27;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.login-head {
  position: relative;
  margin-bottom: 18px;
}

.login-head h3 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.login-x {
  position: absolute;
  top: -2px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  color: #f4f5fb;
}

.login-form { display: flex; flex-direction: column; }

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  color: #c5c8d8;
  font-size: 13px;
}

.login-field input {
  width: 100%;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(210, 216, 240, 0.22);
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.login-pass input { padding-right: 44px; }

.login-field input::placeholder { color: #8d92a8; }

.login-field input:focus { border-color: rgba(110, 132, 255, 0.85); }

.login-pass { position: relative; display: block; }

.login-eye {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  transform: translateY(-50%);
  background: transparent;
  color: #9aa0b6;
}

.login-forgot {
  align-self: flex-end;
  margin: -4px 2px 14px;
  padding: 0;
  background: transparent;
  color: #6d8cff;
  font: inherit;
  font-size: 14px;
}

.login-submit,
.login-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
}

.login-submit {
  margin-bottom: 16px;
  background: #5b6cf6;
  color: #fff;
  font-weight: 700;
}

.login-submit:hover { background: #6b7bff; }

.login-status {
  margin: -8px 0 12px;
  color: #ff8d8d;
  font-size: 13px;
  text-align: center;
}

.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: #8d91a6;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.login-oauth {
  margin-bottom: 10px;
  background: #2c2e3c;
  color: #f4f5fb;
}

.login-oauth:hover { background: #363848; }

.login-switch {
  margin: 8px 0 0;
  color: #b7bbcc;
  font-size: 14px;
  text-align: center;
}

.login-switch button {
  padding: 0;
  background: transparent;
  color: #6d8cff;
  font: inherit;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  .astronaut, .phone, .ring-inner, .ring-outer { animation: none; }
}
