:root {
  color-scheme: dark;
  --black: #080808;
  --panel: #111111;
  --panel-soft: #171717;
  --panel-glow: rgba(200, 245, 58, 0.08);
  --border: #272727;
  --text: #f5f4f0;
  --muted: #989898;
  --muted-soft: #6f6f6f;
  --acid: #d6ff4d;
  --acid-soft: rgba(214, 255, 77, 0.16);
  --danger: #ff9b9b;
  --ok: #b9ff84;
  --radius: 24px;
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(214, 255, 77, 0.12), transparent 28%),
    radial-gradient(circle at 0% 0%, rgba(214, 255, 77, 0.06), transparent 24%),
    #090909;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 40px;
}

.topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  background: rgba(12, 12, 12, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--acid);
  box-shadow: 0 0 16px rgba(214, 255, 77, 0.45);
}

.brand-text {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  font-size: 2rem;
  line-height: 1;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topnav a {
  text-decoration: none;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.top-cta,
#auth-submit,
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  background: var(--acid);
  color: #111111;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.auth-layout {
  display: grid;
  gap: 22px;
  margin-top: 26px;
}

.hero-panel,
.access-grid,
.auth-shell {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%),
    var(--panel);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  padding: 28px;
}

.hero-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.hero-chip {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-chip-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--acid-soft);
  color: var(--acid);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.hero-copy h1,
.access-copy h2,
.auth-head h2 {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
}

.hero-copy h1 {
  font-size: clamp(4.2rem, 10vw, 7rem);
  max-width: 8ch;
}

.hero-description,
.access-copy p,
.auth-subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cta-secondary,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.hero-footnote {
  margin: 0;
  color: var(--muted-soft);
  font-size: 0.95rem;
}

.hero-system {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, var(--panel-glow), transparent 48%),
    rgba(214, 255, 77, 0.06);
  border: 1px solid rgba(214, 255, 77, 0.14);
}

.system-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.system-kicker,
.section-kicker,
.auth-kicker {
  margin: 0 0 8px;
  color: var(--acid);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.system-head h2 {
  margin: 0;
  font-size: 1.65rem;
}

.system-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(214, 255, 77, 0.18);
  color: var(--acid);
  font-size: 0.88rem;
  font-weight: 700;
}

.system-card,
.metric-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  background: rgba(10, 10, 10, 0.45);
}

.system-label {
  margin: 0;
  color: var(--muted-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.system-card strong,
.metric-card strong {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.system-card span,
.metric-card span {
  color: var(--muted);
  line-height: 1.55;
}

.system-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-grid article {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.system-grid strong {
  font-size: 1rem;
}

.system-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.metrics-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  min-height: 138px;
}

.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 24px;
  padding: 28px;
}

.access-copy {
  display: grid;
  align-content: start;
  gap: 18px;
}

.access-copy h2 {
  font-size: clamp(3rem, 7vw, 5rem);
  max-width: 8ch;
}

.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.feature-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--acid);
  font-weight: 700;
}

.auth-shell {
  padding: 22px;
}

.auth-head {
  display: grid;
  gap: 10px;
}

.auth-head h2 {
  font-size: clamp(2.3rem, 5vw, 3.2rem);
}

.auth-tabs {
  margin-top: 18px;
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--acid);
  color: #101010;
}

.auth-form {
  margin-top: 18px;
}

.stack {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0c0c0c;
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: rgba(214, 255, 77, 0.38);
  box-shadow: 0 0 0 4px rgba(214, 255, 77, 0.08);
}

#auth-submit:disabled,
.secondary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.msg {
  margin: 0;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.auth-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--acid);
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .hero-panel,
  .access-grid {
    grid-template-columns: 1fr;
  }

  .metrics-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 14px;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .topnav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-panel,
  .access-grid,
  .auth-shell {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-copy h1,
  .access-copy h2,
  .auth-head h2 {
    max-width: none;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .verify-actions,
  .auth-switch {
    flex-direction: column;
    align-items: stretch;
  }

  .top-cta,
  .cta-primary,
  .cta-secondary,
  #auth-submit,
  .secondary-btn {
    width: 100%;
  }
}
