:root {
  color-scheme: dark;
  --bg: #070910;
  --panel: #101522;
  --panel-2: #151c2d;
  --text: #eef3ff;
  --muted: #a9b4c7;
  --line: rgba(255,255,255,.12);
  --accent: #7c5cff;
  --accent-2: #18e0b7;
  --danger: #ffcc66;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 0%, rgba(124,92,255,.24), transparent 32rem),
    radial-gradient(circle at 90% 10%, rgba(24,224,183,.16), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a { color: inherit; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(7,9,16,.82);
  backdrop-filter: blur(18px);
}
.brand {
  font-weight: 900;
  letter-spacing: -.04em;
  text-decoration: none;
  font-size: 1.25rem;
}
nav { display: flex; flex-wrap: wrap; gap: .75rem; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .94rem;
}
nav a:hover { color: var(--text); }
.page-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}
.article-page article { width: min(860px, 100%); margin: 0 auto; }
.hero,
.cta-card,
.cluster-card,
.tool-card,
.article-page article > section,
.related {
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(1.25rem, 4vw, 2.4rem);
  box-shadow: var(--shadow);
}
.hero { padding: clamp(2rem, 7vw, 5rem); }
.eyebrow {
  margin: 0 0 .8rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .13em;
  font-size: .77rem;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -.04em; }
h1 { margin: 0 0 1rem; font-size: clamp(2.25rem, 6vw, 5.2rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.45rem, 3vw, 2.35rem); }
h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.lead { color: #d9e2f4; font-size: clamp(1.08rem, 2vw, 1.35rem); max-width: 76ch; }
.article-page section, .cta-card, .tool-card, .related { margin-top: 1.25rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .8rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid transparent;
}
.button.primary { background: linear-gradient(135deg, var(--accent), #b05cff); color: white; }
.button.secondary { background: rgba(255,255,255,.08); border-color: var(--line); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.cluster-card p, li, td, details p { color: var(--muted); }
.cluster-card a { color: var(--accent-2); font-weight: 800; text-decoration: none; }
.page-list { display: grid; gap: .75rem; padding-left: 1.35rem; }
.page-list li { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.page-list a { color: var(--text); font-weight: 800; text-decoration: none; }
.page-list span { display: block; color: var(--muted); font-size: .9rem; }
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
}
th, td { padding: .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: rgba(124,92,255,.22); color: var(--text); }
tr:last-child td { border-bottom: 0; }
details {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  margin: .7rem 0;
  background: rgba(255,255,255,.04);
}
summary { cursor: pointer; font-weight: 800; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.related li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.related a { font-weight: 800; text-decoration: none; }
.related span { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.tool-card output {
  display: block;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(24,224,183,.12);
  color: var(--text);
  font-size: 1.1rem;
}
.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.site-footer a { color: var(--text); }
@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .related li { display: block; }
  table { font-size: .88rem; }
  th, td { padding: .7rem; }
}
