:root {
  --bg: #070b06;
  --bg-soft: #0b1109;
  --card: #0d150c;
  --card-2: #101a0e;
  --lime: #a6ff3f;
  --lime-2: #79d92c;
  --lime-soft: #d2ffab;
  --text: #f1f8ec;
  --muted: #94a68d;
  --muted-2: #687a62;
  --line: rgba(166, 255, 63, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --danger: #ff7b74;
  --warning: #ffcf66;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 8% -10%, rgba(120, 220, 50, 0.09), transparent 65%),
    radial-gradient(800px 500px at 100% 0%, rgba(70, 130, 35, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

/* ---------- Header ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 15px clamp(18px, 4vw, 56px);
  background: #070b06;
  border-bottom: 1px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2.2px;
}

.brand-text b {
  color: var(--lime);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-user {
  color: var(--lime-soft);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: var(--lime);
  color: #0a1306;
}

.btn-primary:hover {
  background: var(--lime-soft);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.btn-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12.5px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 13px;
  font-size: 14.5px;
}

.btn-block {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 8vh, 90px) clamp(18px, 4vw, 56px) clamp(40px, 6vh, 64px);
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 70px);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -1.4px;
  text-transform: uppercase;
}

.accent {
  color: var(--lime);
}

.hero h1 .accent {
  white-space: nowrap;
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-visual {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.logo-stage {
  width: clamp(220px, 24vw, 300px);
  height: clamp(220px, 24vw, 300px);
  padding: 7px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(166, 255, 63, 0.55), rgba(166, 255, 63, 0.05) 60%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.logo-stage img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.status-plaque {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
}

.status-plaque strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
}

.status-plaque small {
  display: block;
  margin-top: 1px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted-2);
}

.status-dot.online {
  background: var(--lime);
  box-shadow: 0 0 10px rgba(166, 255, 63, 0.55);
}

/* ---------- Stats ---------- */

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(18px, 4vw, 56px);
}

.stat {
  padding: 18px 16px;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.015);
}

.stat:last-child {
  border-right: 1px solid var(--line-soft);
}

.stat b {
  display: block;
  color: var(--lime-soft);
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.4px;
}

.stat span {
  color: var(--muted-2);
  font-size: 10.5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

/* ---------- Sections ---------- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(52px, 8vh, 90px) clamp(18px, 4vw, 56px) 0;
}

.section-head {
  max-width: 620px;
  margin-bottom: 30px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2,
.download-card h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.6px;
  text-transform: uppercase;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.step {
  position: relative;
  padding: 28px 24px 24px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
}

.step-number {
  display: block;
  margin-bottom: 18px;
  color: rgba(166, 255, 63, 0.38);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.step-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--lime);
  font-size: 12.5px;
  font-weight: 700;
}

.step-link:hover {
  color: var(--lime-soft);
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(500px 220px at 100% 0%, rgba(166, 255, 63, 0.12), transparent 70%),
    var(--card);
}

.download-card h2 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.6vw, 34px);
}

.download-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.cta-section {
  padding-bottom: clamp(56px, 9vh, 96px);
}

.cta-card {
  padding: clamp(34px, 6vw, 58px) 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(600px 260px at 50% 120%, rgba(166, 255, 63, 0.16), transparent 70%),
    var(--card);
}

.cta-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  text-transform: uppercase;
}

.cta-card p {
  max-width: 480px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 13.5px;
}

.center-cta {
  justify-content: center;
}

/* ---------- Footer ---------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 24px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line-soft);
  background: #060a05;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand b {
  display: block;
  font-size: 11.5px;
  letter-spacing: 1.8px;
}

.footer-brand small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-copy {
  width: 100%;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted-2);
  font-size: 10.5px;
}

/* ---------- Auth ---------- */

.auth-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 22px clamp(18px, 4vw, 48px) 36px;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-back {
  color: var(--muted);
  font-size: 12.5px;
}

.auth-back:hover {
  color: var(--lime);
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  width: 100%;
  max-width: 1080px;
  margin: auto;
  padding: 36px 0;
}

.auth-info h1 {
  margin: 14px 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.auth-info > p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.simple-list {
  display: grid;
  gap: 9px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12.5px;
}

.simple-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.simple-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(166, 255, 63, 0.12);
  color: var(--lime);
  font-size: 10px;
}

.auth-card {
  padding: clamp(24px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.auth-card-head h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.3px;
}

.auth-card-head p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12.5px;
}

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: block;
}

.field > span {
  display: block;
  margin: 0 0 6px 2px;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.field input::placeholder {
  color: var(--muted-2);
}

.field input:focus {
  border-color: rgba(166, 255, 63, 0.5);
  background: rgba(166, 255, 63, 0.04);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-error {
  min-height: 16px;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.45;
}

.auth-switch {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.auth-switch a {
  color: var(--lime);
  font-weight: 600;
}

.auth-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 10.5px;
  line-height: 1.55;
  text-align: center;
}

/* ---------- Dashboard ---------- */

.dashboard-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(32px, 5vh, 56px) clamp(18px, 4vw, 48px) 64px;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.dash-head h1 {
  margin: 10px 0 7px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.7px;
}

.dash-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dash-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: radial-gradient(circle at 30% 20%, rgba(166, 255, 63, 0.3), transparent 65%), var(--card-2);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.panel {
  padding: 22px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.badge-lime {
  border-color: rgba(166, 255, 63, 0.35);
  background: rgba(166, 255, 63, 0.08);
  color: var(--lime);
}

.badge-warn {
  border-color: rgba(255, 207, 102, 0.35);
  background: rgba(255, 207, 102, 0.08);
  color: var(--warning);
}

.info-list {
  display: grid;
  gap: 2px;
  margin: 0;
}

.info-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list dt {
  color: var(--muted);
  font-size: 12px;
}

.info-list dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.server-mini,
.launch-visual,
.security-state {
  display: flex;
  align-items: center;
  gap: 13px;
}

.launch-visual {
  margin-bottom: 16px;
}

.launch-logo,
.server-mini img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
}

.server-mini strong,
.launch-visual strong,
.security-state strong {
  display: block;
  font-size: 13px;
}

.server-mini p,
.launch-visual p,
.security-state p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.server-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 16px;
}

.server-mini-stats > div {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.server-mini-stats b {
  display: block;
  color: var(--lime-soft);
  font-size: 14px;
}

.server-mini-stats span {
  color: var(--muted-2);
  font-size: 8.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.mini-steps {
  display: grid;
  gap: 7px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 11.5px;
}

.mini-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-steps span {
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(166, 255, 63, 0.1);
  color: var(--lime);
  font-size: 9px;
  font-weight: 700;
}

.security-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(166, 255, 63, 0.25);
  border-radius: 12px;
  background: rgba(166, 255, 63, 0.09);
  color: var(--lime);
  font-size: 16px;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 14px;
  background:
    radial-gradient(500px 200px at 88% 20%, rgba(166, 255, 63, 0.1), transparent 70%),
    var(--card);
}

.download-copy h2 {
  margin: 8px 0 7px;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.4px;
}

.download-copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  transform: translate(-50%, 10px);
  padding: 10px 16px;
  border: 1px solid rgba(166, 255, 63, 0.4);
  border-radius: 10px;
  background: #0a1208;
  color: var(--text);
  font-size: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    margin-bottom: 6px;
  }

  .logo-stage {
    width: 200px;
    height: 200px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    margin-left: auto;
  }

  .auth-shell {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .auth-info {
    display: none;
  }

  .auth-card {
    width: min(100%, 470px);
    margin: 0 auto;
  }

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

  .download-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .download-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 1px solid var(--line-soft);
    border-top: 0;
  }

  .stat:first-child {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 560px) {
  .site-nav {
    gap: 10px;
    padding: 12px 16px;
  }

  .brand-text {
    font-size: 13px;
    letter-spacing: 1.5px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
  }

  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-user {
    display: none;
  }

  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero h1 {
    letter-spacing: -0.9px;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .stats-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dashboard-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .dash-head {
    align-items: flex-start;
  }

  .dash-avatar {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    font-size: 24px;
  }

  .footer-links {
    margin-left: 0;
  }
}

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