:root {
  --bg-1: #050b1b;
  --bg-2: #0a1a3b;
  --panel: rgba(9, 24, 56, 0.78);
  --panel-border: rgba(118, 164, 242, 0.24);
  --text: #eaf2ff;
  --muted: #a9bfeb;
  --headline: #f8fbff;
  --accent: #23d7bf;
  --accent-soft: #84ebde;
  --btn: rgba(23, 46, 94, 0.84);
  --btn-hover: rgba(33, 63, 126, 0.92);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(84rem 42rem at 88% -10%, rgba(39, 211, 192, 0.19), transparent 62%),
    radial-gradient(74rem 36rem at -14% 20%, rgba(44, 123, 255, 0.24), transparent 58%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 52%, #050a17 100%);
}

.site-wrap {
  width: min(1180px, 94vw);
  margin: 0 auto;
  padding: 44px 0 86px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 40px;
}

.brand {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-soft);
  font-weight: 700;
}

.top-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.top-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.93rem;
  border: 1px solid rgba(125, 160, 221, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(11, 27, 61, 0.63);
}

.top-links a:hover {
  color: var(--text);
  border-color: rgba(125, 160, 221, 0.38);
}

.hero {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 44px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--headline);
  font-weight: 800;
}

.hero p {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

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

.card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  min-height: 390px;
  border-radius: 22px;
  padding: 22px;
  border: 1px solid var(--panel-border);
  background: linear-gradient(160deg, var(--panel), rgba(7, 17, 42, 0.9));
  box-shadow: 0 24px 56px rgba(2, 9, 26, 0.42);
}

.icon {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #9be9dd;
}

.card h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.cta,
.sub-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(112, 149, 221, 0.34);
  background: var(--btn);
  color: #ecf3ff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0 14px;
  width: 100%;
}

.cta:hover,
.sub-link:hover {
  background: var(--btn-hover);
}

.sub-link {
  margin-top: 6px;
  font-weight: 600;
}

.code-box {
  border: 1px solid rgba(88, 128, 205, 0.35);
  border-radius: 14px;
  padding: 12px;
  color: #dbe8ff;
  background: rgba(3, 12, 32, 0.84);
  font-family: "IBM Plex Mono", "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-line;
}

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

.checklist li {
  color: var(--muted);
  line-height: 1.4;
}

.checklist li::before {
  content: "+ ";
  color: var(--accent);
  font-weight: 700;
}

.settings-grid {
  display: grid;
  gap: 8px;
}

.settings-row {
  border: 1px solid rgba(112, 149, 221, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(8, 21, 50, 0.62);
}

.settings-row .k {
  color: #dbedff;
  font-weight: 700;
  display: block;
  font-size: 0.9rem;
}

.settings-row .v {
  color: var(--muted);
  font-size: 0.85rem;
}

.points {
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  color: #c7d6f1;
  font-size: 0.98rem;
}

.points span {
  color: var(--accent);
  margin-right: 8px;
}

@media (max-width: 1100px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-wrap {
    width: min(680px, 92vw);
    padding: 28px 0 58px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 22px;
  }

  .hero {
    text-align: left;
    margin-bottom: 26px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card {
    min-height: 0;
    border-radius: 18px;
    padding: 18px 16px;
  }

  .cta-row {
    justify-content: flex-start;
  }

  .points {
    justify-content: flex-start;
    margin-top: 24px;
    font-size: 0.96rem;
  }
}
