:root {
  color-scheme: dark;
  --bg: #080710;
  --panel: #120d1c;
  --panel-soft: #171123;
  --text: #fff6dc;
  --muted: #b8acc8;
  --dim: #81768f;
  --green: #6effb8;
  --danger: #ff7897;
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 900;
}

.brand img { border-radius: 10px; }

nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 1.35rem);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
}

nav a:hover { color: var(--green); }

.section-wrap {
  width: min(980px, calc(100% - 2rem));
  margin: 0 auto;
}

.development-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 50% 30%, rgba(110, 255, 184, 0.14), transparent 28rem),
    radial-gradient(circle at 55% 62%, rgba(180, 90, 255, 0.16), transparent 24rem),
    var(--bg);
}

.development-card {
  width: min(30rem, 100%);
  display: grid;
  justify-items: center;
  gap: 0.85rem;
  padding: clamp(2rem, 7vw, 4rem);
  text-align: center;
  background: linear-gradient(180deg, rgba(23, 17, 35, 0.92), rgba(18, 13, 28, 0.78));
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.34), 0 0 3rem rgba(110, 255, 184, 0.08);
}

.development-card img {
  width: clamp(9rem, 34vw, 12rem);
  height: clamp(9rem, 34vw, 12rem);
  border-radius: 2rem;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.28);
}

.development-card h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 3.7rem);
}

.development-card .eyebrow {
  margin: 0.2rem 0 0;
}

.compact-download {
  min-height: calc(100vh - 8.5rem);
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(3rem, 8vw, 7rem) 0;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 1rem;
  font-size: clamp(3rem, 9vw, 6.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.9rem, 4.5vw, 3.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

h3 { margin-bottom: 0.55rem; }

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lede {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}


.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.button,
.download-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.button.primary,
.download-pill {
  color: #120b19;
  background: var(--green);
  border-color: transparent;
}

.button.ghost {
  color: var(--text);
  background: var(--panel-soft);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem clamp(1rem, 4vw, 2.5rem);
  color: var(--dim);
  border-top: 1px solid var(--line);
}

.account-hero {
  padding: clamp(3rem, 8vw, 6rem) 0 1.25rem;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.single-panel { grid-template-columns: minmax(280px, 720px); }

.account-panel {
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
}

.owned-panel { background: var(--panel-soft); }

.account-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tab-button {
  flex: 1;
  min-height: 2.45rem;
  color: var(--muted);
  background: #0d0915;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.tab-button.active {
  color: #120b19;
  background: var(--green);
  border-color: transparent;
}

.account-form {
  display: grid;
  gap: 1rem;
}

.account-form label {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-weight: 800;
}

.account-form input,
.account-form select,
.account-form textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.85rem;
  color: var(--text);
  background: #080710;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  font: inherit;
}

.account-form textarea {
  min-height: 12rem;
  resize: vertical;
  line-height: 1.5;
}

.account-form input:focus,
.account-form select:focus,
.account-form textarea:focus {
  outline: 2px solid rgba(110, 255, 184, 0.35);
  border-color: rgba(110, 255, 184, 0.55);
}

.account-message {
  min-height: 1.5rem;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 800;
}

.account-message[data-kind="ok"] { color: var(--green); }
.account-message[data-kind="error"] { color: var(--danger); }

.access-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.2rem;
  margin: 1rem 0;
}

.access-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  color: #120b19;
  background: var(--green);
  border-radius: 999px;
  font-weight: 900;
}

.access-list .missing {
  color: var(--muted);
  background: #0d0915;
  border: 1px solid var(--line);
}

.login-transfer {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.login-transfer p {
  color: var(--muted);
  line-height: 1.55;
}

.login-transfer-url { overflow-wrap: anywhere; }

.login-transfer-url a {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
}

.optional {
  color: var(--dim);
  font-weight: 700;
}

.download-panel {
  display: grid;
  gap: 1rem;
}

.download-version {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.download-note,
.download-secondary {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.download-secondary a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
}

.download-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

code {
  color: var(--green);
  font-weight: 800;
}

@media (max-width: 820px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
