:root {
  color-scheme: dark;
  --bg: #050b08;
  --panel: #0c1712;
  --soft: #12221a;
  --line: rgba(211, 255, 225, 0.14);
  --text: #f1f7f3;
  --muted: #96aa9d;
  --accent: #b8ff42;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(111, 185, 72, .16), transparent 28rem),
    radial-gradient(circle at 88% 85%, rgba(49, 141, 104, .13), transparent 34rem),
    var(--bg);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .25;
  background-image: linear-gradient(rgba(184, 255, 66, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(184, 255, 66, .035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 88%);
}

.site-header, main, footer { width: min(1160px, calc(100% - 36px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid rgba(184, 255, 66, .34); border-radius: 15px; color: var(--accent); background: rgba(184, 255, 66, .08); font: 800 14px ui-monospace, monospace; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 19px; }
.brand small { margin-top: 3px; color: var(--muted); }

.welcome { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: clamp(40px, 8vw, 100px); align-items: center; min-height: calc(100vh - 170px); padding: 48px 0 80px; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font: 700 12px/1.2 ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(42px, 7vw, 82px); line-height: .98; letter-spacing: -.055em; }
.lead { max-width: 660px; margin: 28px 0 36px; color: #c8d4cc; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.principles { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; color: #c8d4cc; }
.principles li { display: flex; gap: 14px; align-items: center; }
.principles span { color: var(--accent); font: 700 12px ui-monospace, monospace; }

.account-card, .cabinet { border: 1px solid var(--line); border-radius: 26px; background: rgba(12, 23, 18, .94); box-shadow: 0 32px 90px rgba(0, 0, 0, .38); }
.account-card { padding: 26px; }
.switcher { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; margin-bottom: 24px; border-radius: 14px; background: #07100c; }
.switch, .ghost-button { border: 1px solid transparent; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; }
.switch { padding: 11px; }
.switch.is-active { color: var(--text); background: var(--soft); }
.ghost-button { padding: 10px 16px; border-color: var(--line); color: var(--text); }
.ghost-button:hover { border-color: rgba(184, 255, 66, .42); }
.form { display: grid; gap: 10px; }
.form label { margin-top: 4px; color: #dce7e0; font-size: 13px; font-weight: 650; }
input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #07100c; color: var(--text); }
input:focus { border-color: rgba(184, 255, 66, .48); box-shadow: 0 0 0 3px rgba(184, 255, 66, .08); }
.handle { display: grid; grid-template-columns: auto 1fr; align-items: center; border: 1px solid var(--line); border-radius: 11px; background: #07100c; }
.handle span { padding-left: 14px; color: var(--muted); }
.handle input { border: 0; background: transparent; box-shadow: none; }
.hint, .verification p, .form-message { min-height: 18px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.verification { display: grid; gap: 10px; margin-top: 8px; padding: 15px; border: 1px solid rgba(184, 255, 66, .25); border-radius: 13px; background: rgba(184, 255, 66, .05); }
.verification strong, .form-message.success { color: var(--accent); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; padding: 0 18px; border: 0; border-radius: 11px; background: var(--accent); color: #0b1707; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.form-message { color: #ff9188; }

.cabinet { margin: 44px 0 80px; padding: clamp(24px, 5vw, 58px); }
.cabinet-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; }
.cabinet h1 { font-size: clamp(38px, 6vw, 70px); }
.cabinet-heading p:last-child, .download-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 38px 0 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--line); }
.facts div { display: grid; gap: 8px; padding: 20px; background: var(--panel); }
.facts span { color: var(--muted); font-size: 12px; }
.facts strong { overflow-wrap: anywhere; }
.station-fact { grid-column: 1 / -1; }
.download-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.download-card { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.download-card h3 { margin: 2px 0 6px; font-size: 22px; }
.download-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.download-card .primary-button { grid-column: 1 / -1; }
.platform-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: rgba(184, 255, 66, .1); color: var(--accent); font-size: 25px; font-weight: 800; }
.platform-icon.android { font-size: 17px; }
.invite-note { margin-top: 28px; padding: 20px; border: 1px solid rgba(184, 255, 66, .28); border-radius: 16px; background: rgba(184, 255, 66, .05); }
.invite-note p { color: var(--muted); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

@media (max-width: 820px) {
  .welcome { grid-template-columns: 1fr; min-height: 0; padding-top: 36px; }
  .downloads { grid-template-columns: 1fr; }
  h1 { font-size: clamp(42px, 14vw, 66px); }
}

@media (max-width: 540px) {
  .site-header, main, footer { width: min(100% - 24px, 1160px); }
  .site-header { min-height: 76px; }
  .brand small { display: none; }
  .account-card, .cabinet { border-radius: 20px; }
  .account-card { padding: 18px; }
  .cabinet-heading, footer { flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .station-fact { grid-column: auto; }
}
