*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #040d18;
  --surface: #071627;
  --card:    #0a1e33;
  --accent:  #22d3ee;
  --text:    #e2f4fc;
  --muted:   #9cc7dc;
  --line:    rgba(255, 255, 255, 0.08);
  --radius:  16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(4, 13, 24, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(34, 211, 238, 0.08);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-logo span { font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 1.5rem; font-size: 0.9rem; font-weight: 600; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--accent); }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 3rem clamp(1.5rem, 5vw, 2rem) 5rem;
}

.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}

.lede { font-size: 1.1rem; color: var(--text); margin-bottom: 1rem; }
.meta { font-size: 0.85rem; color: var(--muted); padding-bottom: 2rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }

h2 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--accent);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

p { color: var(--muted); margin-bottom: 1rem; }
strong { color: var(--text); font-weight: 650; }
a { color: var(--accent); }

ul, ol { color: var(--muted); margin: 0 0 1rem 1.25rem; }
li { margin-bottom: 0.4rem; padding-left: 0.2rem; }

.callout {
  background: var(--card);
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout p { margin-bottom: 0.5rem; }
.callout p:last-child { margin-bottom: 0; }
.callout .label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }

.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
th, td { text-align: left; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #fff; font-weight: 650; background: var(--surface); }
td { color: var(--muted); }
tr:last-child td { border-bottom: none; }

.cta {
  background: linear-gradient(160deg, #0a1e33, #071627);
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 3rem 0 2rem;
}
.cta h2 { margin-top: 0; font-size: 1.25rem; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.cta-buttons a {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  background: var(--accent);
  color: #04202a;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}
.cta-buttons a:hover { filter: brightness(1.08); }

.related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.related h2 { margin-top: 0; font-size: 1.05rem; }
.related ul { list-style: none; margin-left: 0; }
.related li { padding-left: 0; }

.guide-list { list-style: none; margin: 2rem 0 0; }
.guide-list li { padding: 0; margin-bottom: 1rem; }
.guide-list a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
}
.guide-list a:hover { border-color: rgba(34, 211, 238, 0.4); }
.guide-list strong { display: block; color: #fff; font-size: 1.05rem; margin-bottom: 0.25rem; }
.guide-list span { color: var(--muted); font-size: 0.92rem; }

footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a { color: var(--muted); margin: 0 0.6rem; text-decoration: none; }
footer a:hover { color: var(--accent); }

@media (max-width: 520px) {
  .nav-links { gap: 1rem; font-size: 0.82rem; }
  .nav-logo span { font-size: 1rem; }
}
