:root {
  --bg: #050806;
  --panel: #0d1412;
  --panel-2: #111b22;
  --line: #1e332d;
  --text: #f4fbf7;
  --muted: #9fb5ad;
  --green: #47ff8a;
  --blue: #2fb7ff;
  --warning: #f7d774;
  --danger: #ff6b6b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background-color: #030604;
  background-image:
    linear-gradient(180deg, rgba(3, 6, 4, 0.48), rgba(3, 6, 4, 0.76)),
    url("/assets/circuit-board-bg.svg"),
    linear-gradient(135deg, rgba(71, 255, 138, 0.05), transparent 34%),
    linear-gradient(315deg, rgba(47, 183, 255, 0.06), transparent 38%);
  background-size:
    auto,
    240px 240px,
    auto,
    auto;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(71, 255, 138, 0.18);
  background: rgba(5, 8, 6, 0.92);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 50px;
  height: 50px;
  padding: 5px;
  object-fit: contain;
  border: 1px solid rgba(71, 255, 138, 0.2);
  border-radius: 6px;
  background: rgba(3, 10, 8, 0.74);
}

.brand span {
  font-size: 1.1rem;
}

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

.nav-links a {
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  border-color: rgba(71, 255, 138, 0.32);
  background: rgba(71, 255, 138, 0.08);
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(13, 20, 18, 0.92);
  font-size: 0;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(71, 255, 138, 0.05);
}

.nav-toggle::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  box-shadow:
    0 -6px 0 var(--green),
    0 6px 0 var(--green);
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(47, 183, 255, 0.15);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 6, 4, 0.02), rgba(3, 6, 4, 0.36)),
    linear-gradient(90deg, rgba(132, 212, 20, 0.12), transparent 34%, rgba(12, 127, 186, 0.1));
  filter: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18vh;
  background:
    linear-gradient(transparent, var(--bg)),
    linear-gradient(90deg, transparent 0 42px, rgba(132, 212, 20, 0.22) 43px, transparent 44px 82px, rgba(12, 127, 186, 0.2) 83px, transparent 84px);
  background-size: auto, 84px 84px;
  opacity: 0.62;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0 116px;
}

.eyebrow {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 790px;
  margin-top: 14px;
  font-size: clamp(3rem, 8vw, 6.8rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.7rem);
}

h3 {
  font-size: 1.35rem;
}

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

.hero-copy {
  max-width: 680px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(71, 255, 138, 0.58);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(71, 255, 138, 0.18), rgba(47, 183, 255, 0.08)),
    rgba(7, 13, 11, 0.94);
  color: var(--text);
  font-weight: 850;
  box-shadow:
    0 0 0 1px rgba(47, 183, 255, 0.08) inset,
    0 12px 32px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(71, 255, 138, 0.12);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  border-color: rgba(71, 255, 138, 0.88);
  background:
    linear-gradient(180deg, rgba(71, 255, 138, 0.26), rgba(47, 183, 255, 0.12)),
    rgba(7, 13, 11, 0.98);
  transform: translateY(-1px);
}

.button.secondary {
  background: rgba(5, 8, 6, 0.72);
  color: var(--text);
  border-color: rgba(47, 183, 255, 0.48);
  box-shadow: inset 0 0 0 1px rgba(47, 183, 255, 0.08);
}

.button.secondary:hover {
  border-color: rgba(47, 183, 255, 0.82);
  background: rgba(10, 20, 22, 0.86);
}

.quote-note {
  margin-top: 18px;
  font-weight: 700;
}

.quote-note a,
.page-hero a,
.section-header a,
.card a,
.timeline-item a {
  color: var(--green);
  font-weight: 800;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 82px 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

.card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 27, 34, 0.86), rgba(13, 20, 18, 0.86));
  box-shadow: var(--shadow);
}

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

.card h2 {
  font-size: 1.45rem;
}

.cta-card {
  min-height: auto;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -44px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(71, 255, 138, 0.18);
  background: var(--line);
}

.metric {
  min-height: 126px;
  padding: 22px;
  background: rgba(7, 13, 11, 0.84);
}

.metric b {
  display: block;
  color: var(--green);
  font-size: 1.6rem;
}

.band {
  border-top: 1px solid rgba(47, 183, 255, 0.15);
  border-bottom: 1px solid rgba(71, 255, 138, 0.15);
  background: rgba(13, 20, 18, 0.52);
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0 42px;
}

.page-hero p {
  max-width: 760px;
  font-size: 1.14rem;
}

.form-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.form {
  padding: 24px;
  border: 1px solid rgba(71, 255, 138, 0.24);
  border-radius: 8px;
  background: rgba(13, 20, 18, 0.86);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #25463e;
  border-radius: 6px;
  background: #07100d;
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(47, 183, 255, 0.8);
  outline-offset: 2px;
}

.full {
  grid-column: 1 / -1;
}

.checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  font-weight: 600;
  color: var(--muted);
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--green);
  font-weight: 750;
}

.status.error {
  color: var(--danger);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.story-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding-left: 22px;
  border-left: 3px solid var(--green);
}

.process-list {
  max-width: 900px;
}

.process-list .timeline-item {
  padding-bottom: 20px;
}

.blog-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 20, 18, 0.8);
  color: var(--muted);
  padding: 8px 13px;
  font-weight: 750;
  cursor: pointer;
}

.filter-button.active {
  border-color: rgba(71, 255, 138, 0.55);
  color: var(--text);
}

.article-card {
  overflow: hidden;
  padding: 0;
}

.article-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(3, 6, 4, 0.58), rgba(3, 6, 4, 0.86)),
    url("/assets/circuit-board-bg.svg") center/180px 180px;
  border-bottom: 1px solid rgba(71, 255, 138, 0.16);
}

.article-card .article-body {
  padding: 20px;
}

.article-card button {
  color: var(--green);
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.article-view {
  display: none;
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(47, 183, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 13, 11, 0.88);
}

.article-view.open {
  display: block;
}

.article-view img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(3, 6, 4, 0.58), rgba(3, 6, 4, 0.86)),
    url("/assets/circuit-board-bg.svg") center/180px 180px;
}

.site-footer {
  border-top: 1px solid rgba(71, 255, 138, 0.18);
  background: #030604;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header,
  .band,
  .site-footer {
    background: rgba(3, 6, 4, 0.9);
  }

  .nav {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 42px;
    line-height: 1;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    display: none;
    padding: 12px 16px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 8, 6, 0.98);
  }

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

  .nav-links a {
    min-height: 44px;
  }

  .hero {
    min-height: auto;
    overflow: visible;
    border-bottom-color: rgba(71, 255, 138, 0.2);
    background: transparent;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(3, 6, 4, 0.18), rgba(3, 6, 4, 0.62)),
      linear-gradient(90deg, rgba(132, 212, 20, 0.12), transparent 34%, rgba(12, 127, 186, 0.1));
    filter: none;
  }

  .hero-inner {
    padding: 74px 0 110px;
  }

  .hero::after {
    height: 100%;
    background:
      linear-gradient(transparent 74%, rgba(3, 6, 4, 0.48)),
      linear-gradient(90deg, transparent 0 42px, rgba(132, 212, 20, 0.24) 43px, transparent 44px 82px, rgba(12, 127, 186, 0.22) 83px, transparent 84px);
    background-size: auto, 84px 84px;
    opacity: 0.45;
    pointer-events: none;
  }

  .metric,
  .card,
  .form,
  .article-view {
    background: rgba(7, 13, 11, 0.78);
    backdrop-filter: blur(4px);
  }

  .grid.three,
  .grid.two,
  .metric-row,
  .form-shell,
  .field-grid,
  .story-layout {
    grid-template-columns: 1fr;
  }

  .metric-row {
    margin-top: 0;
  }

  .section,
  .page-hero {
    padding: 54px 0;
  }

  .footer-inner {
    display: grid;
  }
}
