:root {
  color-scheme: dark;
  --bg: #050706;
  --bg-2: #0a0f0e;
  --surface: #0e1514;
  --surface-2: #121c1a;
  --line: #243330;
  --line-strong: #35514a;
  --text: #f2f7f4;
  --muted: #a8b8b1;
  --soft: #6f827b;
  --green: #19d875;
  --green-soft: rgba(25, 216, 117, 0.16);
  --red: #ff4c4c;
  --red-soft: rgba(255, 76, 76, 0.16);
  --amber: #f6b84b;
  --amber-soft: rgba(246, 184, 75, 0.16);
  --blue: #8cc7ff;
  --max: 1180px;
  --header-h: 76px;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

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

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

.skip-link {
  position: fixed;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--green);
  color: #03100a;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 5vw;
  background: rgba(5, 7, 6, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.header-actions {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand {
  order: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  font-weight: 900;
  letter-spacing: 0;
}

.brand img {
  width: 118px;
  height: auto;
  object-fit: contain;
}

.brand span {
  color: var(--green);
  font-size: 0.9rem;
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-left: auto;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

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

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.language-switcher button {
  min-width: 34px;
  height: 30px;
  padding: 0 0.45rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 900;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: #03100a;
  background: var(--green);
}

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 4rem) 5vw 6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero-brand.png") center / cover no-repeat;
  opacity: 0.56;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
}

.hero-inner {
  position: relative;
  width: min(760px, 100%);
  z-index: 1;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

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

h1 {
  margin-bottom: 1.1rem;
  font-size: 6.5rem;
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 1rem;
  font-size: 3.65rem;
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  color: var(--text);
  font-size: 1.35rem;
}

.hero-support {
  max-width: 720px;
  margin-top: 1rem;
  color: var(--soft);
  font-weight: 750;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  border-color: var(--green);
}

.button.primary {
  background: var(--green);
  color: #03100a;
  border-color: var(--green);
}

.button.secondary {
  background: rgba(14, 21, 20, 0.72);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 3rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.08);
}

.safety-boundary {
  max-width: 760px;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-left: 4px solid var(--amber);
  border-radius: 6px;
  background: rgba(16, 23, 28, 0.82);
}

.safety-boundary strong {
  color: var(--amber);
}

.safety-boundary p {
  margin: 0.35rem 0 0;
  color: var(--soft);
}

.proof-strip div {
  padding: 1rem;
  background: rgba(5, 7, 6, 0.68);
}

.proof-strip dt {
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 900;
}

.proof-strip dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  position: relative;
  padding: 6rem 5vw;
  border-bottom: 1px solid var(--line);
}

.section > * {
  width: min(var(--max), 100%);
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  max-width: 860px;
  margin-bottom: 2.4rem;
}

.section-header p,
.split-copy p,
.case-copy p,
.about-section p {
  color: var(--muted);
}

.three-col,
.four-col,
.method-grid,
.ecosystem-grid,
.evidence-grid,
.value-loop,
.pricing-grid,
.metric-grid {
  display: grid;
  gap: 1rem;
}

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

.four-col,
.method-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.three-col article,
.four-col article,
.method-grid article,
.ecosystem-grid article,
.value-loop article,
.pricing-grid article {
  min-height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.three-col article p,
.four-col article p,
.method-grid article p,
.ecosystem-grid article p,
.value-loop article p,
.pricing-grid article p {
  margin-bottom: 0;
  color: var(--muted);
}

.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 22px var(--green);
}

.status-dot.amber {
  background: var(--amber);
  box-shadow: 0 0 22px var(--amber);
}

.status-dot.red {
  background: var(--red);
  box-shadow: 0 0 22px var(--red);
}

.split-section,
.case-section,
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.flow-panel,
.contact-panel {
  padding: 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.flow-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 800;
}

.flow-list span,
.method-grid span {
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-weight: 900;
}

.experience-section {
  background: var(--bg-2);
}

.acquisition-section {
  background: var(--bg-2);
}

.acquisition-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) repeat(2, minmax(220px, 0.9fr));
  gap: 1rem;
}

.acquisition-grid article {
  min-height: 100%;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.download-panel {
  border-color: var(--green) !important;
  background: rgba(25, 216, 117, 0.08) !important;
}

.edition-spec {
  display: grid;
  gap: 1px;
  margin: 1.2rem 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.edition-spec div {
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  background: rgba(5, 7, 6, 0.72);
}

.edition-spec dt {
  color: var(--muted);
  font-weight: 800;
}

.edition-spec dd {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.release-note {
  margin: 0.8rem 0 0;
  color: var(--soft);
  font-size: 0.9rem;
}

.value-loop {
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  overflow-x: auto;
  padding-bottom: 0.6rem;
}

.value-loop article {
  min-width: 150px;
}

.tag {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tag.ready {
  color: var(--green);
  background: var(--green-soft);
}

.tag.next {
  color: var(--amber);
  background: var(--amber-soft);
}

.tag.planned {
  color: var(--blue);
  background: rgba(140, 199, 255, 0.12);
}

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

.pricing-grid article {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.pricing-grid .featured-plan {
  border-color: var(--green);
  background: rgba(25, 216, 117, 0.08);
}

.plan-label {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-grid ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.pricing-grid li {
  position: relative;
  padding-left: 1rem;
}

.pricing-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}

.pricing-note {
  width: min(var(--max), 100%);
  margin-top: 1rem;
  color: var(--soft);
  font-size: 0.95rem;
}

.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.5rem;
}

.ecosystem-grid strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.ecosystem-grid span {
  display: inline-flex;
  margin-bottom: 0.8rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.wide-figure,
.case-visual {
  overflow: hidden;
  margin-top: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.wide-figure img,
.case-visual img {
  width: 100%;
}

figcaption {
  padding: 0.85rem 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
}

.pipeline div {
  min-width: 150px;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.pipeline span {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--green);
  font-weight: 900;
}

.pipeline p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.metrics-section {
  background: var(--bg-2);
}

.metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.metric-grid div {
  padding: 1.2rem;
  background: var(--surface);
}

.metric-grid dt {
  color: var(--green);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1;
}

.metric-grid dd {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.case-section {
  align-items: start;
}

.check-list {
  display: grid;
  gap: 0.55rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.check-list.compact {
  margin-top: 1rem;
}

.check-list li {
  padding-left: 1.5rem;
  color: var(--muted);
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.warning-list li::before {
  background: var(--amber);
}

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

.evidence-card {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  color: inherit;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.evidence-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.evidence-card span {
  display: block;
  padding: 0 1rem 1rem;
  color: var(--text);
  font-weight: 900;
}

.docs-table {
  display: grid;
  border: 1px solid var(--line);
}

.docs-table a {
  display: grid;
  grid-template-columns: 190px 1fr 110px;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.docs-table a:last-child {
  border-bottom: 0;
}

.docs-table span {
  color: var(--green);
  font-weight: 900;
}

.docs-table strong {
  color: var(--text);
  font-weight: 650;
}

.docs-table em {
  color: var(--muted);
  font-style: normal;
  text-align: right;
}

.about-section {
  background: var(--bg-2);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 5vw;
  color: var(--soft);
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.donation-block {
  justify-self: end;
  max-width: 760px;
  text-align: right;
}

.donation-block summary {
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.donation-block[open] summary {
  margin-bottom: 0.55rem;
}

.donation-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.donation-actions button {
  max-width: 100%;
  padding: 0.45rem 0.65rem;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.donation-actions button:hover,
.donation-actions button:focus-visible {
  color: var(--text);
  border-color: var(--green);
}

.copy-status {
  display: block;
  min-height: 1.3rem;
  margin-top: 0.35rem;
  color: var(--green);
  font-size: 0.78rem;
}

.lightbox {
  width: min(1120px, calc(100vw - 2rem));
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  background: #000;
}

.lightbox p {
  margin: 0;
  padding: 1rem;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(5, 7, 6, 0.9);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 980px) {
  .site-nav {
    position: absolute;
    top: var(--header-h);
    right: 5vw;
    left: 5vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-left: 0;
  }

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

  .nav-toggle {
    display: block;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.85rem;
  }

  .proof-strip,
  .three-col,
  .four-col,
  .method-grid,
  .ecosystem-grid,
  .evidence-grid,
  .acquisition-grid,
  .pricing-grid,
  .metric-grid,
  .split-section,
  .case-section,
  .about-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .value-loop {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .docs-table a {
    grid-template-columns: 1fr;
  }

  .docs-table em {
    text-align: left;
  }

  .donation-block {
    justify-self: start;
    text-align: left;
  }

  .donation-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 0 1rem;
  }

  .hero,
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero {
    min-height: 88vh;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.15rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .brand img {
    width: 92px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .value-loop {
    grid-template-columns: 1fr;
  }

  .metric-grid dt {
    font-size: 2.1rem;
  }
}
