:root {
  color-scheme: dark;
  --bg: #0d100e;
  --surface: #141814;
  --surface-2: #1a201b;
  --line: #2b342d;
  --text: #f2f5f2;
  --muted: #a5afa7;
  --accent: #55bf7b;
  --accent-strong: #73d794;
  --ink: #071009;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
  letter-spacing: 0;
}

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

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--accent);
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 0 36px;
  background: rgb(13 16 14 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.wordmark {
  justify-self: start;
  font-size: 20px;
  font-weight: 800;
}

.site-header nav {
  display: flex;
  gap: 30px;
  color: var(--muted);
  font-size: 14px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--accent-strong);
}

.header-download {
  justify-self: end;
  min-height: 38px;
  padding: 9px 14px;
  color: var(--ink);
  background: var(--accent);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
}

.hero {
  display: grid;
  min-height: calc(100dvh - 128px);
  max-height: 760px;
  align-items: center;
  padding: 56px max(28px, calc((100vw - 1280px) / 2));
  background-color: rgb(3 6 4 / 58%);
  background-image: url("/assets/warroom-rooms.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode: multiply;
  border-bottom: 1px solid var(--line);
}

.hero-content {
  width: min(690px, 100%);
  padding: 32px 0;
  text-shadow: 0 2px 20px rgb(0 0 0 / 70%);
}

.hero-label,
.section-intro > span,
.product-copy > span,
.network-copy > span,
.download-copy > span {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: 76px;
  line-height: 0.96;
}

.hero-copy {
  max-width: 560px;
  margin: 24px 0 0;
  font-size: 22px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

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

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

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

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

.button.secondary {
  color: var(--text);
  background: rgb(13 16 14 / 72%);
  border-color: #5a675d;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.principles div {
  min-width: 0;
  padding: 8px 24px;
  border-left: 1px solid var(--line);
}

.principles div:first-child {
  border-left: 0;
}

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  font-size: 24px;
}

.principles span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.section,
.product-section,
.network-section,
.safety-section,
.download-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 108px 36px;
}

.section-intro,
.product-copy {
  max-width: 720px;
}

.section-intro h2,
.product-copy h2,
.network-copy h2,
.download-copy h2 {
  margin: 0;
  font-size: 46px;
  line-height: 1.12;
}

.section-intro p,
.product-copy p,
.network-copy > p,
.download-copy p {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.flow-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.flow-list li {
  min-height: 230px;
  padding: 28px 26px;
  border-left: 1px solid var(--line);
}

.flow-list li:first-child {
  border-left: 0;
}

.flow-list b,
.flow-list strong,
.flow-list p {
  display: block;
}

.flow-list b {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-size: 13px;
}

.flow-list strong {
  margin-top: 50px;
  font-size: 19px;
}

.flow-list p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.product-section {
  max-width: none;
  padding-right: 0;
  padding-left: max(36px, calc((100vw - 1280px) / 2));
  overflow: hidden;
}

.product-shot {
  width: min(1180px, calc(100vw - 72px));
  margin: 50px 0 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius) 0 0 var(--radius);
  box-shadow: 0 30px 90px rgb(0 0 0 / 30%);
}

.network-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 74px;
  align-items: center;
}

.network-shot {
  max-height: 720px;
  margin: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.network-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.network-copy dl {
  margin: 38px 0 0;
}

.network-copy dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.network-copy dt,
.network-copy dd {
  margin: 0;
  font-size: 13px;
}

.network-copy dt {
  color: var(--accent-strong);
  font-weight: 700;
}

.network-copy dd {
  color: var(--muted);
  line-height: 1.5;
}

.safety-section {
  border-top: 1px solid var(--line);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.safety-grid article {
  min-height: 190px;
  padding: 30px;
  background: var(--surface);
}

.safety-grid article:nth-child(2),
.safety-grid article:nth-child(3) {
  background: var(--surface-2);
}

.safety-grid h3 {
  margin: 0;
  font-size: 18px;
}

.safety-grid p {
  max-width: 520px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.6fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 88px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.download-action {
  min-width: 0;
}

.download-action .button {
  width: 100%;
}

.download-action p {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.download-action code {
  display: block;
  color: #849086;
  font-family: Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  min-height: 100px;
  padding: 24px max(36px, calc((100vw - 1280px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
}

footer strong {
  color: var(--text);
  font-size: 17px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 20px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: calc(100dvh - 116px);
    padding-right: 28px;
    padding-left: 28px;
    background-position: 34% center;
  }

  .hero h1 {
    font-size: 56px;
  }

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

  .principles div:nth-child(3),
  .flow-list li:nth-child(3) {
    border-left: 0;
  }

  .principles div:nth-child(n + 3) {
    margin-top: 20px;
  }

  .network-section,
  .download-section {
    grid-template-columns: 1fr;
  }

  .network-shot {
    max-height: 520px;
  }

  .download-section {
    gap: 42px;
    margin-right: 24px;
    margin-left: 24px;
  }
}

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

  .header-download {
    font-size: 12px;
  }

  .hero {
    min-height: calc(100dvh - 190px);
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .principles,
  .flow-list,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .principles {
    padding: 18px 20px;
  }

  .principles div,
  .principles div:nth-child(3) {
    margin: 0;
    padding: 16px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .principles div:last-child {
    border-bottom: 0;
  }

  .section,
  .network-section,
  .safety-section {
    padding: 78px 20px;
  }

  .product-section {
    padding: 78px 0 78px 20px;
  }

  .section-intro h2,
  .product-copy h2,
  .network-copy h2,
  .download-copy h2 {
    font-size: 34px;
  }

  .flow-list li,
  .flow-list li:nth-child(3) {
    min-height: 0;
    padding: 24px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-list strong {
    margin-top: 22px;
  }

  .product-shot {
    width: calc(100vw - 20px);
    margin-top: 36px;
  }

  .network-section {
    gap: 42px;
  }

  .network-copy dl div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .safety-grid {
    background: transparent;
    border: 0;
    gap: 1px;
  }

  .safety-grid article,
  .safety-grid article:nth-child(2),
  .safety-grid article:nth-child(3) {
    min-height: 0;
    padding: 26px 0;
    background: transparent;
    border-bottom: 1px solid var(--line);
  }

  .safety-grid p {
    margin-top: 18px;
  }

  .download-section {
    margin: 32px 14px 64px;
    padding: 44px 20px;
  }

  footer {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 28px 20px;
  }

  footer p {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
