:root {
  --bg: #07131f;
  --bg-soft: #0d1d2b;
  --panel: rgba(10, 25, 40, 0.82);
  --panel-strong: rgba(8, 18, 30, 0.94);
  --line: rgba(120, 255, 206, 0.2);
  --accent: #78ffce;
  --accent-strong: #35d6ff;
  --text: #e6f3ff;
  --muted: #95adc0;
  --max-width: 1180px;
  --glow: 0 0 0 1px rgba(120, 255, 206, 0.12), 0 20px 60px rgba(0, 0, 0, 0.34);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(53, 214, 255, 0.2), transparent 28%),
    radial-gradient(circle at bottom right, rgba(120, 255, 206, 0.14), transparent 24%),
    linear-gradient(180deg, #06111a 0%, #091725 48%, #07131f 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 255, 206, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 255, 206, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 100%);
}

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

.shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 17, 26, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(120, 255, 206, 0.08);
}

.solid-header {
  background: rgba(7, 19, 31, 0.92);
}

.header-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 0.2rem;
}

.brand-name {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-meta,
.eyebrow,
.console-label,
.chip {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.96rem;
}

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

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 42px;
  height: 42px;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  padding: 6rem 0 4rem;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 2rem;
  align-items: stretch;
}

.hero-copy h1,
.section-heading h2,
.article-hero h1,
.resource-card h2,
.protocol-copy h2,
.article-panel h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-copy h1 {
  max-width: 11ch;
}

.hero-intro {
  max-width: 60ch;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions,
.toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: transform 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #031019;
  font-weight: 700;
}

.button-secondary {
  border-color: rgba(120, 255, 206, 0.2);
  background: rgba(8, 18, 30, 0.85);
  color: var(--text);
}

.hero-console,
.topic-panel,
.protocol-item,
.resource-card,
.article-panel,
.contact-form {
  position: relative;
  background: linear-gradient(180deg, rgba(9, 25, 40, 0.86), rgba(6, 17, 26, 0.92));
  border: 1px solid rgba(120, 255, 206, 0.14);
  box-shadow: var(--glow);
}

.hero-console {
  padding: 1.3rem;
  display: grid;
  gap: 0.9rem;
  overflow: hidden;
}

.hero-console::before,
.topic-panel::before,
.resource-card::before,
.article-panel::before,
.contact-form::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(120, 255, 206, 0.06);
  transform: translate(8px, 8px);
  pointer-events: none;
}

.console-line {
  padding: 1rem;
  background: rgba(6, 17, 26, 0.88);
  border: 1px solid rgba(120, 255, 206, 0.08);
}

.console-line strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 1rem;
  line-height: 1.7;
}

.signal-strip,
.topics,
.protocols,
.resources,
.faq {
  padding: 0 0 4rem;
}

.strip-shell {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.strip-shell p {
  margin: 0;
  padding: 1rem 1.2rem;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.7;
  color: var(--muted);
  border-top: 1px solid rgba(120, 255, 206, 0.16);
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.75rem;
}

.topic-grid,
.resource-grid,
.contact-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.topic-panel,
.resource-card,
.article-panel,
.contact-form {
  padding: 1.5rem;
}

.topic-panel h3,
.protocol-item h3,
.article-panel h2,
.resource-card h2 {
  margin: 0.8rem 0;
}

.article-panel h3 {
  margin: 0.8rem 0 0.55rem;
}

.topic-panel p,
.protocol-item p,
.resource-card p,
.article-panel p,
.footer-copy,
.footer-meta {
  color: var(--muted);
  line-height: 1.8;
}

.topic-panel a,
.resource-card a,
.article-panel a {
  color: var(--accent);
  font-weight: 700;
}

.chip {
  display: inline-flex;
  padding: 0.35rem 0.5rem;
  border: 1px solid rgba(120, 255, 206, 0.16);
}

.protocol-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.2rem;
}

.protocol-list {
  display: grid;
  gap: 1rem;
}

.protocol-item {
  padding: 1.4rem;
}

.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card a {
  color: var(--accent);
  font-weight: 700;
}

.faq-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list-single {
  grid-template-columns: 1fr;
}

.faq-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(120, 255, 206, 0.12);
}

.faq-trigger {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  padding: 0;
}

.faq-answer {
  display: none;
  padding-top: 0.75rem;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.page-body .article-shell {
  padding: 3rem 0 5rem;
}

.article-hero {
  padding: 1rem 0 1.75rem;
  border-bottom: 1px solid rgba(120, 255, 206, 0.12);
  margin-bottom: 1.75rem;
}

.article-panel + .article-panel {
  margin-top: 1rem;
}

.mono-list {
  margin: 0;
  padding-left: 1.2rem;
  font-family: "IBM Plex Mono", monospace;
  line-height: 1.9;
  color: var(--muted);
}

.dense-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  line-height: 1.9;
  color: var(--muted);
}

.contact-layout {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.84rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(120, 255, 206, 0.18);
  background: rgba(5, 12, 19, 0.92);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(120, 255, 206, 0.12);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.5rem;
  align-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.consent-toast {
  position: fixed;
  inset: auto 1rem 1rem auto;
  z-index: 30;
  width: min(420px, calc(100% - 2rem));
  padding: 1.1rem;
  background: rgba(6, 17, 26, 0.95);
  border: 1px solid rgba(120, 255, 206, 0.18);
  box-shadow: var(--glow);
}

.consent-toast p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-shell,
  .strip-shell,
  .topic-grid,
  .protocol-grid,
  .resource-grid,
  .faq-shell,
  .contact-layout,
  .footer-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 78px;
    right: 1rem;
    left: 1rem;
    padding: 1rem;
    flex-direction: column;
    background: rgba(6, 17, 26, 0.96);
    border: 1px solid rgba(120, 255, 206, 0.16);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .hero {
    padding-top: 4rem;
  }
}
