:root {
  color-scheme: dark;
  --ink: #eef3f8;
  --muted: #a7b1bd;
  --line: #2a3441;
  --surface: #0b1017;
  --surface-raised: #111923;
  --soft: #151f2b;
  --soft-hover: #1a2633;
  --accent: #55d6de;
  --accent-strong: #8be9ee;
  --accent-ink: #061316;
  --warn: #ffbd66;
  --warn-bg: #241a0f;
  --warn-line: #5c4120;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--surface);
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--surface);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #c3f7f9;
}

code,
pre {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

code {
  color: #d9f6f8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 16, 23, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgba(85, 214, 222, 0.12), transparent 34%),
    #080c12;
  color: #fff;
}

.hero-media {
  min-height: 520px;
  overflow: hidden;
  background: #05080c;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.92) contrast(1.04) brightness(0.84);
}

.hero-content {
  padding: 72px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-strong);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: 54px;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-copy {
  max-width: 660px;
  margin: 24px 0 0;
  color: #c7d0db;
  font-size: 18px;
}

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

.button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button.primary:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.03);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.status-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.status-band div {
  border-left: 3px solid var(--accent);
  padding: 10px 0 10px 14px;
}

.status-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.status-band strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 16px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section h2 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.text-block {
  max-width: 860px;
  color: var(--muted);
  font-size: 17px;
}

.text-block p {
  margin: 0 0 18px;
}

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

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-raised);
  overflow: hidden;
  box-shadow: var(--shadow);
}

figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: var(--soft);
}

figcaption {
  padding: 16px;
  color: var(--muted);
  font-size: 15px;
}

figcaption strong {
  color: var(--ink);
}

.technical,
.repair {
  border-top: 1px solid var(--line);
}

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

.panel,
.code-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
  background: var(--soft);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.13);
}

.panel h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
  background: #070b10;
  color: #e7edf5;
  border: 1px solid #202a36;
  border-radius: 7px;
  font-size: 13px;
}

.code-panel {
  margin-top: 18px;
  background: var(--surface-raised);
}

.code-title {
  margin: 0 0 12px;
  color: var(--ink);
  font-weight: 800;
}

.warning-section {
  max-width: none;
  background: var(--warn-bg);
  border-top: 1px solid var(--warn-line);
  border-bottom: 1px solid var(--warn-line);
}

.warning-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.warning-section .eyebrow,
.warning-section h2 {
  color: var(--warn);
}

.warning-section .text-block {
  color: #d9c6aa;
}

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

.repair-list div {
  border-top: 3px solid var(--accent);
  padding-top: 14px;
}

.step {
  color: var(--accent);
  font-weight: 900;
}

.repair-list p {
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.link-row a {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: var(--surface-raised);
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
  transition: background 160ms ease, border-color 160ms ease;
}

.link-row a:hover {
  background: var(--soft-hover);
  border-color: #445162;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.timeline span {
  color: var(--accent);
  font-weight: 900;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  justify-content: center;
  gap: 24px;
  background: #080c12;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

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

  .hero-media {
    min-height: 280px;
  }

  .hero-content {
    padding: 42px 24px 56px;
  }

  h1 {
    font-size: 40px;
  }

  .section h2 {
    font-size: 30px;
  }

  .status-band,
  .evidence-grid,
  .technical-grid,
  .repair-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
    text-align: center;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .nav-links {
    gap: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .hero-copy,
  .text-block {
    font-size: 16px;
  }
}
