:root {
  color-scheme: dark;
  --bg: #020604;
  --bg-soft: #07130d;
  --panel: rgba(10, 24, 16, 0.82);
  --panel-solid: #08170f;
  --terminal: #00ff7f;
  --terminal-soft: #7dffb2;
  --terminal-dim: #42b875;
  --text: #d9ffe8;
  --muted: #91b89f;
  --line: rgba(0, 255, 127, 0.22);
  --line-strong: rgba(0, 255, 127, 0.5);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;

  display: flex;
  flex-direction: column;

  background:
    linear-gradient(rgba(0, 255, 127, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 127, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 80% 10%, rgba(0, 255, 127, 0.14), transparent 34%),
    radial-gradient(circle at 15% 0%, rgba(66, 184, 117, 0.12), transparent 30%),
    var(--bg);

  background-size: 34px 34px, 34px 34px, auto, auto, auto;
  color: var(--text);
  font-family: "Segoe UI", SegoeUI, sans-serif;
  line-height: 1.6;
}

main {
  flex: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 5px);
  opacity: 0.35;
  z-index: -1;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(0, 255, 127, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 14px;
  background: var(--terminal);
  color: #001b0d;
  border-radius: 8px;
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 4, 0.86);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--terminal);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
}

.brand::before {
  content: "> ";
  color: var(--terminal-soft);
}

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

.nav-links a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-color: var(--line);
  color: var(--terminal);
  background: rgba(0, 255, 127, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 255, 127, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--terminal);
}

.hero,
.page-hero {
  padding: clamp(58px, 9vw, 120px) clamp(18px, 5vw, 72px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
  min-height: calc(100vh - 72px);
}

.page-hero.compact {
  padding-bottom: clamp(28px, 5vw, 52px);
}

.eyebrow,
.card-kicker,
.post-meta {
  margin: 0 0 12px;
  color: var(--terminal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 1050px;
  margin-bottom: 22px;
  color: var(--terminal-soft);
  font-size: clamp(2.55rem, 7vw, 6rem);
  line-height: 0.98;
  text-shadow: 0 0 24px rgba(0, 255, 127, 0.18);
}

h2 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.6rem, 3vw, 3rem);
  line-height: 1.08;
}

h3 {
  color: var(--text);
  line-height: 1.2;
}

.hero-text,
.page-hero p,
.feature-grid p,
.blog-card p,
.about-card p,
.placeholder-band p,
.policy-page p,
.cookie-banner p {
  color: var(--muted);
}

.hero-text,
.page-hero p {
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--terminal);
  background: rgba(0, 255, 127, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #001b0d;
  background: var(--terminal);
  box-shadow: 0 0 32px rgba(0, 255, 127, 0.22);
}

.button.secondary:hover,
.button.small:hover {
  background: rgba(0, 255, 127, 0.16);
}

.button.small {
  min-height: 40px;
  padding: 0 14px;
}

.terminal-panel,
.feature-grid article,
.blog-card,
.about-card,
.placeholder-band,
.policy-page section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.terminal-panel {
  overflow: hidden;
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.26);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--terminal);
  box-shadow: 0 0 14px rgba(0, 255, 127, 0.5);
}

.terminal-top span:nth-child(2) {
  opacity: 0.65;
}

.terminal-top span:nth-child(3) {
  opacity: 0.35;
}

.terminal-panel pre {
  margin: 0;
  padding: clamp(22px, 4vw, 34px);
  color: var(--terminal-soft);
  white-space: pre-wrap;
  font: 700 1rem/1.8 "Segoe UI", SegoeUI, sans-serif;
}

.section {
  padding: clamp(54px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.blog-feed {
  display: grid;
  gap: 18px;
  max-height: 980px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: var(--terminal) rgba(0, 255, 127, 0.08);
}

.blog-feed::-webkit-scrollbar {
  width: 10px;
}

.blog-feed::-webkit-scrollbar-track {
  background: rgba(0, 255, 127, 0.08);
  border-radius: 999px;
}

.blog-feed::-webkit-scrollbar-thumb {
  background: var(--terminal-dim);
  border-radius: 999px;
}

.feature-grid article,
.blog-card,
.about-card {
  padding: clamp(20px, 3vw, 30px);
}

.feature-grid a,
.blog-card a {
  color: var(--terminal);
  font-weight: 800;
}

.placeholder-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.55fr);
  gap: 26px;
  align-items: end;
  margin: clamp(20px, 5vw, 54px) clamp(18px, 5vw, 72px) clamp(58px, 8vw, 100px);
  padding: clamp(22px, 4vw, 38px);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 20px;
}

.about-card.large {
  min-height: 360px;
}

.clean-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.clean-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
}

.blog-card h2 {
  font-size: 1.35rem;
}

.read-more {
  margin-top: auto;
  align-self: flex-start;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(0, 255, 127, 0.08);
  color: var(--terminal);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.read-more:hover {
  background: rgba(0, 255, 127, 0.16);
}

.post-full {
  display: none;
  margin: 10px 0 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.blog-card.expanded .post-full {
  display: block;
}

.policy-page {
  max-width: 960px;
  padding: clamp(54px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.policy-page h1 {
  font-size: clamp(2.35rem, 7vw, 4.8rem);
}

.policy-page section {
  margin-top: 24px;
  padding: 24px;
}

.policy-page h2 {
  font-size: 1.35rem;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(2, 6, 4, 0.84);
}

.site-footer {
  /* Clear out any old positioning styles */
  position: relative;
  top: 0;
  left: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer a {
  color: var(--terminal-soft);
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .placeholder-band,
  .about-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-solid);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 46px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.8rem);
  }

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

  .blog-feed {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}
