:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #07161c;
  --panel: #0d2229;
  --panel-soft: #102b32;
  --line: rgba(174, 224, 217, 0.15);
  --text: #eef8f5;
  --muted: #9eb7b3;
  --green: #70e3c1;
  --green-dark: #1e9b7a;
  --yellow: #f1c84b;
  --danger: #ff8f8f;
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 3%, rgba(53, 157, 132, 0.22), transparent 28rem),
    radial-gradient(circle at 92% 14%, rgba(35, 111, 135, 0.2), transparent 32rem),
    var(--bg);
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .8rem 1rem; color: #07161c; background: var(--green); border-radius: 12px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0 5vw;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 22, 28, .88);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .72rem; color: var(--text); text-decoration: none; font-weight: 900; letter-spacing: .16em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #062017; background: var(--green); letter-spacing: 0; }
.main-navigation { justify-self: center; display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.2rem); }
.main-navigation a { color: var(--muted); text-decoration: none; font-size: .83rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.main-navigation a:hover, .main-navigation a[aria-current="page"] { color: var(--green); }
.account-link, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .72rem 1.15rem; border: 1px solid transparent; border-radius: 999px; color: #062017; background: var(--green); text-decoration: none; font-weight: 850; }
.account-link:hover, .button:hover { background: #8cebd0; transform: translateY(-1px); }
.button.secondary { color: var(--text); background: transparent; border-color: var(--line); }
.button.secondary:hover { border-color: rgba(112, 227, 193, .55); background: rgba(112, 227, 193, .08); }
.download-meta { margin: 1.25rem 0 .8rem; color: var(--green); font-size: .86rem; font-weight: 800; }
.download-button { width: 100%; text-align: center; }
.nav-toggle { display: none; }

main { min-height: calc(100vh - 230px); }
.page, .hero { width: min(1180px, 90vw); margin: 0 auto; }
.hero { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr); align-items: center; gap: clamp(3rem, 8vw, 8rem); padding: 7rem 0 6rem; }
.eyebrow { margin: 0 0 1rem; color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 1.5rem; font-size: clamp(3rem, 7.8vw, 7rem); line-height: .95; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.02; letter-spacing: -.035em; }
h3 { font-size: 1.18rem; }
.lead { max-width: 680px; color: #bfd0cd; font-size: clamp(1.05rem, 1.8vw, 1.3rem); line-height: 1.7; }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.world-card { position: relative; min-height: 440px; padding: 2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 36px; background: linear-gradient(145deg, rgba(24, 70, 70, .9), rgba(10, 33, 42, .95)); box-shadow: 0 30px 90px rgba(0, 0, 0, .3); }
.world-orbit { position: absolute; inset: 18% -20% -45%; border: 1px solid rgba(112, 227, 193, .34); border-radius: 50%; transform: rotate(-9deg); }
.world-orbit::before, .world-orbit::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(241, 200, 75, .2); border-radius: 50%; }
.world-orbit::after { inset: 28%; border-color: rgba(112, 227, 193, .16); }
.world-card-copy { position: relative; z-index: 1; max-width: 300px; }
.world-card strong { display: block; margin-bottom: .7rem; font-size: 1.55rem; }
.world-card p { color: #a9c1bd; line-height: 1.65; }
.status-pill { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 5.5rem; padding: .5rem .75rem; border: 1px solid rgba(112, 227, 193, .3); border-radius: 999px; color: var(--green); font-size: .78rem; font-weight: 800; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(112, 227, 193, .1); }

.section { padding: 6rem 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 2.8rem; }
.section-heading p { color: var(--muted); line-height: 1.7; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .form-card, .account-shell { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(16, 43, 50, .86), rgba(9, 29, 36, .92)); }
.card { min-height: 210px; padding: 1.7rem; }
.card-number { display: inline-grid; width: 34px; height: 34px; place-items: center; margin-bottom: 2rem; border-radius: 11px; color: var(--green); background: rgba(112, 227, 193, .1); font-weight: 850; }
.card p { color: var(--muted); line-height: 1.65; }
.platform-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.platform { padding: 1.35rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.025); }
.platform strong, .platform span { display: block; }
.platform span { margin-top: .45rem; color: var(--muted); font-size: .9rem; }
.platform.primary { border-color: rgba(112, 227, 193, .4); }
.platform.primary span { color: var(--green); }

.page { padding: 6rem 0 7rem; }
.page-intro { max-width: 760px; margin-bottom: 3rem; }
.page-intro h1 { font-size: clamp(3rem, 7vw, 6rem); }
.notice { padding: 1rem 1.15rem; border: 1px solid rgba(241, 200, 75, .3); border-radius: 16px; color: #eadcae; background: rgba(241, 200, 75, .07); line-height: 1.55; }
.spaced-notice { margin-top: 2rem; }
.timeline { display: grid; gap: 1rem; }
.timeline-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.timeline-item time { color: var(--green); font-weight: 800; }
.timeline-item p { color: var(--muted); line-height: 1.65; }

.auth-layout { width: min(1040px, 90vw); margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; padding: 6rem 0 8rem; }
.auth-copy { padding-top: 2rem; }
.auth-copy h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.security-form { max-width: 560px; margin-top: 2rem; }
.field { display: grid; gap: .5rem; margin-bottom: 1.15rem; }
.field label { color: #c7d8d4; font-size: .9rem; font-weight: 750; }
.field input { width: 100%; min-height: 50px; padding: .8rem 1rem; color: var(--text); border: 1px solid var(--line); border-radius: 13px; outline: none; background: #071a21; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(112, 227, 193, .12); }
.form-card .button { width: 100%; border: 0; }
.form-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--muted); }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--green); }
.fine-print { margin-top: 1.2rem; color: #829d98; font-size: .82rem; line-height: 1.55; }

.account-layout { width: min(1180px, 90vw); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.5rem; padding: 4rem 0 7rem; }
.account-sidebar { position: sticky; top: 100px; align-self: start; padding: 1.2rem; border: 1px solid var(--line); border-radius: 20px; background: rgba(10, 31, 38, .88); }
.account-user { padding: .6rem .55rem 1.1rem; border-bottom: 1px solid var(--line); }
.account-user span { display: block; margin-top: .3rem; color: var(--muted); font-size: .85rem; }
.account-nav { display: grid; gap: .3rem; padding-top: 1rem; }
.account-nav a, .text-button { padding: .7rem .75rem; border: 0; border-radius: 10px; color: var(--muted); background: transparent; text-align: left; text-decoration: none; }
.account-nav a:hover, .account-nav a[aria-current="page"], .text-button:hover { color: var(--text); background: rgba(112, 227, 193, .1); }
.text-button { width: 100%; margin-top: .7rem; color: #efb1b1; }
.account-shell { min-height: 530px; padding: clamp(1.5rem, 4vw, 3rem); }
.account-shell h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; margin-top: 2rem; }
.detail { min-height: 110px; padding: 1.1rem; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.022); }
.detail span { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.detail strong { overflow-wrap: anywhere; }
.route-loading { min-height: 65vh; display: grid; place-items: center; color: var(--muted); }
.empty-state { padding: 2rem; border: 1px dashed rgba(158, 183, 179, .25); border-radius: 18px; color: var(--muted); text-align: center; line-height: 1.7; }

.site-footer { width: min(1180px, 90vw); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; padding: 2.3rem 0 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer strong, .site-footer span { display: block; }
.site-footer strong { margin-bottom: .35rem; color: var(--text); letter-spacing: .12em; }
.site-footer nav { display: flex; gap: 1.2rem; }
.site-footer a { text-decoration: none; }
.site-footer small { grid-column: 1 / -1; }
noscript { position: fixed; inset: auto 1rem 1rem; padding: 1rem; color: #210b0b; background: #ffadad; border-radius: 12px; }

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto auto; gap: .8rem; }
  .nav-toggle { display: inline-flex; padding: .55rem .7rem; color: var(--text); border: 1px solid var(--line); border-radius: 10px; background: transparent; }
  .main-navigation { position: absolute; top: 76px; left: 5vw; right: 5vw; display: none; align-items: stretch; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #0a2027; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
  .main-navigation.open { display: grid; }
  .main-navigation a { padding: .8rem; }
  .hero, .auth-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 4.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .account-layout { grid-template-columns: 1fr; padding-top: 2rem; }
  .account-sidebar { position: static; }
  .account-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .site-header { padding: 0 1rem; }
  .brand > span:last-child { display: none; }
  .account-link { min-height: 40px; padding: .58rem .8rem; }
  .page, .hero, .site-footer, .auth-layout, .account-layout { width: min(92vw, 1180px); }
  .hero { gap: 2rem; padding-bottom: 4rem; }
  .world-card { min-height: 360px; }
  .platform-grid, .detail-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: .4rem; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer small { grid-column: auto; }
  .account-nav { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
