:root {
  color-scheme: dark;
  --bg: #08080c;
  --text: #f4f4f6;
  --muted: #b8b8c4;
  --faint: #6b6b78;
  --border: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.03);
  --accent: #34d399;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      40rem 40rem at 50% -10%,
      rgba(52, 211, 153, 0.14),
      transparent 60%
    ),
    radial-gradient(
      34rem 34rem at 10% 110%,
      rgba(99, 102, 241, 0.12),
      transparent 60%
    ),
    radial-gradient(
      34rem 34rem at 90% 110%,
      rgba(6, 182, 212, 0.1),
      transparent 60%
    );
}

/* ---------- Brand ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.brand .mark {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #34d399, #06b6d4);
  color: #08080c;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: 0.72rem;
  font-weight: 700;
}

.accent {
  background: linear-gradient(90deg, #6ee7b7, #22d3ee, #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.15rem;
  border-radius: 0.7rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #08080c;
}

.btn-primary:hover {
  background: #6ee7b7;
}

.btn-ghost {
  border-color: var(--border);
  background: var(--card);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Home ---------- */
main.home {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 3rem 1.5rem 5rem;
}

.hero {
  max-width: 46rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
  text-align: center;
  padding: 2.5rem 0 4rem;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9a9b6;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero .tagline {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  color: var(--muted);
  max-width: 34rem;
  text-wrap: balance;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.8rem;
  color: #c7c7d1;
}

.badge .dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

/* ---------- Home sections ---------- */
.band {
  width: 100%;
  max-width: 60rem;
  padding: 3.25rem 0;
  border-top: 1px solid var(--border);
  text-align: left;
}

.band h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-lede {
  margin-top: 0.75rem;
  max-width: 40rem;
  color: var(--muted);
}

.fine {
  margin-top: 1.5rem;
  font-size: 0.92rem;
  color: var(--faint);
}

.fine a {
  color: #6ee7b7;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 183, 0.35);
}

.steps {
  margin-top: 2rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--card);
}

.step-n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

.steps h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.steps p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  padding: 1.35rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--card);
}

.feature h3 {
  font-size: 1.02rem;
  font-weight: 600;
}

.feature p {
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.chip-groups {
  margin-top: 1.75rem;
  display: grid;
  gap: 1.75rem;
}

.chip-groups h3 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.chips {
  margin-top: 0.75rem;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.85rem;
  color: var(--muted);
}

.faq {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--card);
  padding: 0.9rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.faq details a {
  color: #6ee7b7;
}

.notes ul {
  margin-top: 1.1rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.notes li {
  margin-top: 0.45rem;
}

.home .table-wrap {
  margin-top: 1.75rem;
}

.pillar-grid {
  margin-top: 2.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
}

.pillar {
  padding: 1.4rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--card);
}

.pillar h3 {
  font-size: 1.05rem;
  font-weight: 600;
}

.pillar p {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .pillar-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Content pages ---------- */
main.content {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

main.content .eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

main.content h1 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

main.content .updated {
  margin-top: 0.75rem;
  color: var(--faint);
  font-size: 0.9rem;
}

main.content .lede {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: var(--muted);
}

main.content h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

main.content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
}

main.content p {
  margin-top: 0.9rem;
  color: var(--muted);
}

main.content ul {
  margin-top: 0.9rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

main.content li {
  margin-top: 0.4rem;
}

main.content a:not(.brand) {
  color: #6ee7b7;
  text-decoration: none;
  border-bottom: 1px solid rgba(110, 231, 183, 0.35);
}

main.content a:not(.brand):hover {
  border-bottom-color: #6ee7b7;
}

main.content strong {
  color: var(--text);
}

.card {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--card);
}

.card p {
  margin-top: 0.5rem;
}

.card p:first-child {
  margin-top: 0;
}

/* ---------- Table ---------- */
.table-wrap {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: var(--text);
}

td {
  color: var(--muted);
}

tr:last-child td {
  border-bottom: none;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.footer-inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.footer-brand p {
  margin-top: 0.75rem;
  max-width: 20rem;
  font-size: 0.9rem;
  color: var(--faint);
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.footer-col ul {
  margin-top: 0.9rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
}

.footer-bottom .inner {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--faint);
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
