:root {
  --paper: #f4f1e8;
  --panel: #fbfaf4;
  --panel-2: #ece7dc;
  --ink: #101a17;
  --muted: #4d5a52;
  --rule: #cec8ba;
  --night: #0a1218;
  --night-2: #111d28;
  --optic: #05b8c8;
  --optic-soft: rgba(5, 184, 200, 0.18);
  --field: #40624e;
  --amber: #c79a4f;
  --clay: #9e6040;
  --white: #fffdf8;
  --shadow: rgba(12, 20, 18, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.62;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16, 26, 23, 0.052) 1px, transparent 1px),
    linear-gradient(rgba(16, 26, 23, 0.04) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

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

button,
input,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--optic);
  outline-offset: 4px;
}

::selection {
  color: var(--night);
  background: rgba(5, 184, 200, 0.34);
}

.shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(16, 26, 23, 0.12);
  background: rgba(244, 241, 232, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 214px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  box-shadow: 0 8px 20px rgba(23, 59, 99, 0.18);
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.15;
}

.brand strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.84);
  cursor: pointer;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #39473f;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--optic);
  transition: transform 180ms ease;
}

.nav-links a:hover {
  color: #0b5d55;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.lang-link {
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: #07554b;
  background: rgba(255, 253, 248, 0.8);
  font-size: 12px;
  font-weight: 800;
}

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

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

.button.primary {
  border-color: #07554b;
  color: #ffffff;
  background: #07554b;
}

.button.primary:hover {
  background: #0b6b62;
}

.button.ghost {
  border-color: rgba(16, 26, 23, 0.38);
  background: rgba(255, 253, 248, 0.46);
}

.hero {
  padding: 54px 0 42px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 0.82fr);
  gap: 34px;
  align-items: stretch;
}

.hero-copy {
  min-height: 600px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.92), rgba(244, 241, 232, 0.72)),
    radial-gradient(circle at 14% 18%, rgba(5, 184, 200, 0.14), transparent 28%);
}

.kicker {
  margin: 0 0 16px;
  color: #07554b;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Noto Serif SC", Georgia, "Times New Roman", serif;
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(44px, 5.5vw, 78px);
  line-height: 0.99;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4.5vw, 62px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.24;
}

.subtitle,
.lead,
.text-block p,
.demo-heading p {
  color: #344138;
  font-size: clamp(16px, 1.55vw, 20px);
  text-wrap: pretty;
}

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

.mission-card,
.media-console,
.demo-embed {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--night);
  box-shadow: 0 28px 70px rgba(10, 18, 24, 0.28);
}

.mission-card {
  min-height: 600px;
  padding: 18px;
  color: #e7f8f7;
}

.card-topline,
.console-caption,
.telemetry,
.demo-label {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 14px;
  color: #9db3b3;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.card-topline b {
  color: #3ee0a7;
}

.scope {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(5, 184, 200, 0.36);
  background: #081014;
}

.scope img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08) brightness(0.9);
}

.scope::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 184, 200, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 184, 200, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, transparent 58%, rgba(8, 16, 20, 0.42));
  background-size: 42px 42px, 42px 42px, 100% 100%;
}

.axis {
  position: absolute;
  z-index: 2;
  background: rgba(5, 184, 200, 0.86);
}

.axis-x {
  top: 50%;
  right: 18%;
  left: 18%;
  height: 1px;
}

.axis-y {
  top: 20%;
  bottom: 20%;
  left: 50%;
  width: 1px;
}

.reticle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 92px;
  height: 92px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(5, 184, 200, 0.8);
  border-radius: 50%;
}

.reticle::before,
.reticle::after {
  content: "";
  position: absolute;
  background: rgba(199, 154, 79, 0.86);
}

.reticle::before {
  top: 50%;
  right: 20px;
  left: 20px;
  height: 1px;
}

.reticle::after {
  top: 20px;
  bottom: 20px;
  left: 50%;
  width: 1px;
}

.telemetry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.12);
}

.telemetry div {
  padding: 14px;
  background: #101c26;
}

.telemetry span,
.signal-grid span {
  display: block;
  color: #9dacaa;
  font-size: 12px;
  text-transform: uppercase;
}

.telemetry b,
.signal-grid b {
  display: block;
  margin-top: 6px;
  color: #f4f7f3;
  font-size: 14px;
}

.signal-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #121d23;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.signal-grid div {
  padding: 20px;
  background: #101a20;
}

.section {
  padding: 82px 0;
}

.section-head {
  max-width: 880px;
  margin-bottom: 36px;
}

.section-head.narrow {
  max-width: 760px;
}

.stack-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--rule);
  background: var(--rule);
  gap: 1px;
}

.stack-flow article {
  position: relative;
  min-height: 310px;
  padding: 28px;
  background: var(--panel);
}

.stack-flow article:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 48px;
  z-index: 2;
  width: 24px;
  height: 1px;
  background: var(--optic);
}

.stack-flow span {
  display: inline-flex;
  margin-bottom: 58px;
  padding: 5px 8px;
  color: #07554b;
  background: rgba(5, 184, 200, 0.12);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.stack-flow p,
.gallery p,
.contact-card span,
.control-list span {
  color: var(--muted);
}

.control-section {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: #e8e2d6;
}

.control-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(340px, 0.78fr);
  gap: 44px;
  align-items: center;
}

.media-console {
  position: relative;
  overflow: hidden;
}

.media-console video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.console-caption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  color: #dcebea;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: #0f1a24;
}

.console-caption span {
  color: var(--optic);
  font-size: 12px;
}

.console-caption b {
  font-size: 13px;
  font-weight: 500;
}

.text-block {
  padding: 18px 0;
}

.control-list {
  display: grid;
  gap: 1px;
  margin-top: 28px;
  border: 1px solid rgba(16, 26, 23, 0.16);
  background: rgba(16, 26, 23, 0.14);
}

.control-list div {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.control-list b {
  color: #07554b;
}

.lab-section,
.contact-section {
  background: var(--paper);
}

.field-section {
  background: #f8f6ef;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

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

.gallery article {
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--panel);
}

.gallery article.wide {
  grid-column: span 2;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery article.wide img {
  aspect-ratio: 16 / 9;
}

.gallery article > div {
  padding: 22px;
}

.demo-section {
  padding: 84px 0;
  color: #f4f7f3;
  background:
    linear-gradient(180deg, rgba(10, 18, 24, 0.95), rgba(8, 14, 18, 0.98)),
    radial-gradient(circle at 80% 16%, rgba(5, 184, 200, 0.16), transparent 30%);
}

.demo-heading {
  max-width: 860px;
  margin-bottom: 28px;
}

.demo-heading .kicker {
  color: var(--amber);
}

.demo-heading p {
  color: rgba(244, 247, 243, 0.8);
}

.demo-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 760px;
  overflow: hidden;
}

.demo-embed.is-live {
  background: #0a1118;
}

.demo-play {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #080d12;
  cursor: pointer;
}

.demo-play img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.demo-play::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(5, 184, 200, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(5, 184, 200, 0.08) 1px, transparent 1px),
    rgba(4, 13, 17, 0.2);
  background-size: 36px 36px, 36px 36px, 100% 100%;
}

.demo-play:hover img {
  transform: scale(1.018);
  filter: brightness(1.08);
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.38);
}

.play-mark::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #07554b;
}

.demo-label {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 3;
  padding: 8px 10px;
  color: #def8f6;
  border: 1px solid rgba(5, 184, 200, 0.38);
  background: rgba(8, 16, 20, 0.72);
  font-size: 12px;
  text-transform: uppercase;
}

.demo-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.58fr);
  gap: 44px;
  align-items: start;
}

.contact-card {
  display: grid;
  gap: 1px;
  border: 1px solid var(--rule);
  background: var(--rule);
  font-style: normal;
}

.contact-card a,
.contact-card div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 18px;
  background: var(--panel);
}

.contact-card b {
  color: #07554b;
}

footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--rule);
  color: #56635b;
  font-size: 13px;
}

.footer-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1020px) {
  .hero-layout,
  .control-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .mission-card {
    min-height: auto;
  }

  .scope,
  .scope img {
    min-height: 420px;
  }

  .stack-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-flow article:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 68px;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    display: none;
    width: 100%;
    padding: 10px 0 4px;
    gap: 10px 16px;
    flex-wrap: wrap;
  }

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

  .hero {
    padding-top: 28px;
  }

  .hero-copy {
    padding: 24px;
  }

  h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .signal-grid,
  .telemetry,
  .stack-flow,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery article.wide {
    grid-column: span 1;
  }

  .gallery article.wide img {
    aspect-ratio: 4 / 3;
  }

  .section {
    padding: 58px 0;
  }

  .demo-section {
    padding: 62px 0;
  }

  .demo-embed {
    aspect-ratio: 9 / 13;
    min-height: 640px;
  }

  .footer-line {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 28px, 1200px);
  }

  .brand {
    min-width: 0;
  }

  .control-list div,
  .contact-card a,
  .contact-card div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .scope,
  .scope img {
    min-height: 360px;
  }

  .play-mark {
    width: 66px;
    height: 66px;
  }

  .play-mark::before {
    left: 28px;
    top: 21px;
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 19px;
  }
}
