:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: rgba(9, 13, 18, 0.72);
  --panel-strong: rgba(14, 20, 28, 0.86);
  --ink: #f4f7f4;
  --muted: #99a6a2;
  --line: rgba(177, 255, 232, 0.18);
  --line-hot: rgba(88, 255, 218, 0.54);
  --cyan: #58ffda;
  --green: #9dff5b;
  --amber: #ffd166;
  --red: #ff4d7d;
  --blue: #79a8ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(5, 6, 8, 0.82) 0%, rgba(5, 6, 8, 0.96) 68%, #050608 100%),
    radial-gradient(circle at 22% 8%, rgba(88, 255, 218, 0.12), transparent 34%),
    radial-gradient(circle at 78% 24%, rgba(255, 209, 102, 0.1), transparent 30%),
    var(--bg);
  color: var(--ink);
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", monospace;
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(88, 255, 218, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 255, 218, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255, 255, 255, 0.018) 6px 7px),
    linear-gradient(90deg, rgba(255, 77, 125, 0.08), transparent 20%, transparent 80%, rgba(121, 168, 255, 0.08));
}

a {
  color: var(--cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  display: block;
  background: #050608;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.68);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-hot);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(88, 255, 218, 0.22), rgba(255, 209, 102, 0.12));
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(88, 255, 218, 0.18);
}

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

.nav-links a {
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.nav-links a:hover {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

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

.hero {
  min-height: calc(100vh - 190px);
  padding: 42px 0 36px;
  display: grid;
  align-items: center;
}

.hero-split {
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 44px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.card-label,
.panel-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 920px;
  font-size: clamp(52px, 10vw, 118px);
  font-weight: 950;
}

h2 {
  margin-top: 32px;
  font-size: 24px;
  font-weight: 920;
}

.lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #c6d0cc;
  font-size: 17px;
}

.hero-actions,
.button-row,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 30px;
}

.button-row {
  margin-top: 18px;
}

.meta {
  margin-top: 24px;
}

.button,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
}

.button {
  min-height: 44px;
  padding: 10px 15px;
  background: rgba(88, 255, 218, 0.16);
  color: var(--ink);
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(88, 255, 218, 0.12), 0 0 34px rgba(88, 255, 218, 0.12);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--line-hot);
  background: rgba(88, 255, 218, 0.22);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.045);
  color: #dce5e1;
  box-shadow: none;
}

.pill {
  max-width: 100%;
  padding: 7px 10px;
  color: var(--muted);
  background: rgba(5, 8, 12, 0.58);
  font-size: 12px;
  font-weight: 780;
}

.studio-visual,
.card,
.notice,
.toc,
.document,
.product-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.studio-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  padding: 22px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(145deg, rgba(88, 255, 218, 0.08), rgba(5, 6, 8, 0.78) 46%, rgba(255, 209, 102, 0.08)),
    var(--panel);
}

.studio-visual::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(88, 255, 218, 0.18);
  border-radius: 8px;
  pointer-events: none;
}

.studio-board {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid rgba(88, 255, 218, 0.22);
  border-radius: 8px;
  background: rgba(5, 8, 12, 0.7);
}

.board-header,
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
}

.board-header {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.board-title {
  max-width: 360px;
  margin-top: 54px;
  font-size: 34px;
  line-height: 1.06;
  font-weight: 950;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.board-grid span {
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  color: #d7e3df;
  background: rgba(255, 255, 255, 0.035);
  font-size: 12px;
  font-weight: 850;
}

.board-line {
  height: 1px;
  margin-top: 22px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--amber), transparent);
}

.board-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.signal-stack {
  position: absolute;
  inset: 24px;
  display: grid;
  align-content: start;
  gap: 9px;
  pointer-events: none;
}

.signal-stack span {
  height: 2px;
  width: var(--w, 54%);
  background: linear-gradient(90deg, transparent, rgba(88, 255, 218, 0.9), transparent);
  opacity: 0.5;
}

.signal-stack span:nth-child(2) {
  --w: 76%;
  background: linear-gradient(90deg, transparent, rgba(255, 209, 102, 0.84), transparent);
}

.signal-stack span:nth-child(3) {
  --w: 42%;
  margin-left: auto;
}

.signal-stack span:nth-child(4) {
  --w: 68%;
  margin-left: 16%;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 125, 0.8), transparent);
}

.section-heading {
  margin: 18px 0 14px;
}

.section-heading h2 {
  max-width: 720px;
  margin-top: 0;
  font-size: 32px;
}

.grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

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

.card,
.notice,
.toc,
.document {
  padding: 24px;
}

.card {
  min-height: 230px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--cyan);
}

.card.accent-green::before {
  background: var(--green);
}

.card.accent-amber::before {
  background: var(--amber);
}

.card h2,
.notice h2,
.document section:first-child h2 {
  margin-top: 0;
}

.card p,
.notice p,
.product-strip p {
  margin: 10px 0 0;
  color: var(--muted);
}

.accent-blue .card-label {
  color: var(--cyan);
}

.accent-green .card-label {
  color: var(--green);
}

.accent-amber .card-label {
  color: var(--amber);
}

.notice,
.toc,
.document {
  margin-top: 16px;
  background: var(--panel-strong);
}

.document {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.toc ul,
.document ol,
.document ul {
  padding-left: 1.35em;
}

.toc li,
.document li {
  margin: 6px 0;
}

.document p {
  margin: 12px 0;
}

.document h1 {
  font-size: 30px;
}

.language-nav {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.language-nav a,
.language-nav .pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--cyan);
  text-decoration: none;
  font-size: 12px;
  font-weight: 780;
}

.language-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.language-block:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.language-label {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.78);
  backdrop-filter: blur(18px);
}

.footer-inner,
.site-footer > p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

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

  .studio-visual {
    min-height: 440px;
  }
}

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

  .nav-links {
    justify-content: flex-start;
  }

  .page {
    padding-top: 28px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero,
  .card,
  .notice,
  .toc,
  .document {
    padding: 22px 0;
  }

  .grid.three,
  .grid:not(.two) {
    grid-template-columns: 1fr;
  }

  .studio-visual,
  .card,
  .notice,
  .toc,
  .document {
    padding: 20px;
  }

  .studio-visual {
    min-height: 390px;
  }

  .board-title {
    margin-top: 44px;
    font-size: 28px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

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

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