@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;700&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap');

:root {
  --bg-ink: #081017;
  --bg-deep: #0e1c2b;
  --bg-card: rgba(13, 32, 49, 0.72);
  --line: rgba(142, 201, 255, 0.2);
  --text: #e9f2ff;
  --muted: #a7bbd4;
  --mint: #34d399;
  --sun: #ffb84d;
  --sky: #4cc9f0;
  --rose: #ff7b74;
  --radius: 20px;
  --shadow: 0 24px 50px rgba(4, 10, 19, 0.45);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: radial-gradient(1000px 600px at 12% -10%, #1f3954 0%, transparent 65%),
    radial-gradient(900px 500px at 92% -30%, #3c2e34 0%, transparent 70%),
    linear-gradient(165deg, var(--bg-ink) 0%, var(--bg-deep) 65%, #09131f 100%);
  font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 0.6px, transparent 0.6px);
  background-size: 20px 20px;
}

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

.shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  margin: 14px auto 0;
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 24, 37, 0.8);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--mint), var(--sky), var(--sun));
  box-shadow: 0 0 26px rgba(76, 201, 240, 0.35);
}

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

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 500;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(76, 201, 240, 0.12);
}

.nav-cta {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(8, 18, 29, 0.8);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}

main {
  padding: 52px 0 72px;
}

.hero {
  display: grid;
  gap: 24px;
  padding: 34px;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(19, 46, 71, 0.72), rgba(38, 28, 41, 0.7));
  box-shadow: var(--shadow);
  overflow: clip;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  right: -60px;
  top: -60px;
  background: radial-gradient(circle, rgba(255, 184, 77, 0.22), transparent 65%);
}

.eyebrow {
  font-size: 0.8rem;
  color: var(--mint);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  font-family: 'Fraunces', Georgia, serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 900px;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 16px;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--mint), #24c1df);
  color: #02131f;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(45, 204, 194, 0.32);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(10, 22, 35, 0.58);
}

.btn-ghost:hover {
  background: rgba(76, 201, 240, 0.14);
}

.section {
  margin-top: 38px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  grid-column: span 4;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.card p,
.list li,
.body-copy p {
  color: var(--muted);
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.band {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.1), rgba(255, 123, 116, 0.08));
  padding: 20px;
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.kpi div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(8, 17, 27, 0.6);
}

.kpi strong {
  display: block;
  font-size: 1.4rem;
  color: #d9f8ef;
}

.table-of-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.table-of-contents a {
  border: 1px solid var(--line);
  background: rgba(8, 19, 30, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 500;
}

.guide {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 22, 35, 0.65);
  padding: 18px;
}

.guide h3 {
  margin-bottom: 10px;
}

pre {
  background: #050d15;
  border: 1px solid rgba(120, 174, 228, 0.25);
  border-radius: 12px;
  padding: 12px;
  overflow-x: auto;
  color: #d8f1ff;
  font-size: 0.9rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.footer {
  margin: 42px 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.6s ease;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.notice {
  border: 1px dashed rgba(255, 184, 77, 0.45);
  background: rgba(255, 184, 77, 0.08);
  color: #ffd9a3;
  border-radius: 14px;
  padding: 12px;
}

@media (max-width: 980px) {
  .card {
    grid-column: span 6;
  }

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

@media (max-width: 760px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-header.open .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    padding: 0 12px 12px;
    gap: 4px;
  }

  .site-header.open .nav-cta {
    display: grid;
    width: 100%;
    gap: 8px;
    padding: 0 12px 14px;
  }

  .nav-row {
    flex-wrap: wrap;
  }

  .hero {
    padding: 24px;
  }

  .card {
    grid-column: span 12;
  }
}
