:root {
  --color-bg: #000000;
  --color-panel: #0A0C11;
  --color-panel-raised: #10141C;
  --color-border: #1E2531;
  --color-accent: #2E7DFF;
  --color-accent-dark: #1750B8;
  --color-text: #F4F6FA;
  --color-muted: #8E97A8;
  --color-success: #3DBE8B;
  --color-warn: #D9A441;
  --color-error: #D95757;
  --color-overlay: rgba(0, 0, 0, 0.76);
  --color-accent-soft: rgba(46, 125, 255, 0.12);
  --color-accent-glow: rgba(46, 125, 255, 0.28);
  --color-accent-glow-strong: rgba(46, 125, 255, 0.42);
  --color-accent-clear: rgba(46, 125, 255, 0);
  --font-display: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;
  --gutter: clamp(16px, 4vw, 32px);
  --content-width: 1120px;
  --header-width: 1280px;
  --header-height: 72px;
  --space-section: clamp(76px, 10vw, 144px);
  --shadow-soft: 0 0 18px var(--color-accent-glow);
  --shadow-card: 0 0 60px var(--color-accent-soft), inset 0 0 26px var(--color-accent-soft);
  --shadow-hover: 0 0 40px var(--color-accent-soft);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  min-width: 0;
}

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

html.nav-open {
  overflow: hidden;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main,
section,
header,
footer {
  overflow-wrap: break-word;
}

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

svg[data-background-art] {
  width: 100%;
  height: 100%;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
}

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

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure,
blockquote,
pre {
  margin-top: 0;
}

ul,
ol {
  padding-left: 1.25rem;
}

nav ul,
.site-footer ul,
.platform-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--color-accent-dark);
  color: var(--color-text);
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

.wrap {
  width: 100%;
  max-width: calc(var(--content-width) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wide-wrap {
  width: 100%;
  max-width: min(100%, calc(var(--header-width) + var(--gutter) * 2));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-heading {
  max-width: 740px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
}

h1,
.hero-title {
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: 0.005em;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
}

h3 {
  font-size: clamp(20px, 2vw, 26px);
}

h4 {
  font-size: 18px;
}

.keyword-lock {
  white-space: nowrap;
}

.text-accent {
  color: var(--color-accent);
}

.lede {
  max-width: 680px;
  color: var(--color-muted);
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.75;
}

.lede strong,
.prose strong {
  color: var(--color-text);
  font-weight: 500;
}

.muted {
  color: var(--color-muted);
}

.mono,
code,
pre,
kbd {
  font-family: var(--font-mono);
}

code {
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: 0.92em;
}

pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-overflow-scrolling: touch;
}

pre code {
  overflow-wrap: normal;
  white-space: pre;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: var(--color-text);
}

th,
td {
  padding: 15px 17px;
  border: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-panel-raised);
  color: var(--color-text);
  font-weight: 500;
}

td {
  background: var(--color-panel);
  color: var(--color-text);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 25px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.button svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.button:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-panel-raised), var(--color-panel));
  color: var(--color-text);
  box-shadow: var(--shadow-soft), inset 0 0 12px var(--color-accent-soft);
}

.button-primary:hover {
  box-shadow: 0 0 30px var(--color-accent-glow-strong), inset 0 0 16px var(--color-accent-soft);
}

.button-secondary {
  background: var(--color-bg);
  color: var(--color-muted);
}

.button-secondary:hover {
  color: var(--color-text);
}

.button[aria-disabled="true"],
.button:disabled {
  opacity: 0.48;
  pointer-events: none;
}

.panel,
.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  color: var(--color-text);
}

.card {
  padding: clamp(24px, 4vw, 48px);
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.card:hover {
  border-color: var(--color-accent-dark);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.feature-flow {
  display: grid;
  gap: clamp(52px, 8vw, 96px);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding: clamp(30px, 6vw, 72px);
}

.feature-panel.is-reversed > :first-child {
  order: 2;
}

.feature-panel.is-reversed > :last-child {
  order: 1;
}

.material-window {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text);
}

.material-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding-inline: 15px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-raised);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.material-window__dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent);
}

.material-window__body {
  padding: 20px;
}

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

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

.site-header {
  position: relative;
  z-index: 100;
  background: var(--color-bg);
  color: var(--color-text);
}

.site-header__inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 11px;
  font-size: 16px;
  font-weight: 600;
}

.site-brand img {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link,
.more-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font-size: 14px;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link:hover,
.more-toggle:hover,
.nav-link.is-active,
.more-toggle.is-active {
  background: var(--color-panel-raised);
  color: var(--color-text);
}

.nav-more,
.language-picker {
  position: relative;
}

.nav-submenu,
.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  z-index: 120;
  min-width: 164px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-submenu {
  left: 0;
}

.language-menu {
  right: 0;
  min-width: 174px;
}

.nav-more:hover .nav-submenu,
.nav-more:focus-within .nav-submenu,
.language-picker.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-submenu a,
.language-menu a {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 14px;
}

.nav-submenu a:hover,
.language-menu a:hover,
.language-menu a[aria-current="true"] {
  background: var(--color-panel-raised);
  color: var(--color-text);
}

.header-tools {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.language-button,
.menu-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-bg);
  color: var(--color-muted);
  cursor: pointer;
}

.language-button {
  padding-inline: 15px;
  white-space: nowrap;
}

.language-button:hover,
.menu-button:hover {
  border-color: var(--color-accent-dark);
  color: var(--color-text);
}

.language-short {
  display: none;
}

.menu-button {
  display: none;
  padding: 0;
}

.menu-button__lines,
.menu-button__lines::before,
.menu-button__lines::after {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button__lines {
  position: relative;
}

.menu-button__lines::before {
  position: absolute;
  top: -6px;
}

.menu-button__lines::after {
  position: absolute;
  top: 6px;
}

.menu-button[aria-expanded="true"] .menu-button__lines {
  background: transparent;
}

.menu-button[aria-expanded="true"] .menu-button__lines::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-button__lines::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-veil {
  position: fixed;
  inset: var(--header-height) 0 0;
  z-index: 90;
  display: none;
  background: var(--color-overlay);
}

.mobile-drawer {
  display: none;
}

.site-footer {
  margin-top: var(--space-section);
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(150px, 1fr));
  gap: clamp(30px, 5vw, 70px);
  padding-top: 64px;
  padding-bottom: 52px;
}

.footer-brand p {
  max-width: 340px;
  margin-top: 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--color-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--color-text);
}

.footer-brand .site-brand {
  color: var(--color-text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.prose {
  max-width: 820px;
}

.prose h2 {
  margin-top: 2.4em;
  scroll-margin-top: 30px;
}

.prose h3 {
  margin-top: 1.8em;
}

.prose p,
.prose li {
  color: var(--color-muted);
}

.prose a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose > .data-table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.decorated-section,
.hero-shell,
.preview-hero {
  position: relative;
  overflow-x: clip;
}

.tilt,
.tilt-card {
  transform: rotate(-0.45deg);
}

@media (max-width: 920px) {
  .desktop-nav {
    display: none;
  }

  .header-tools {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
  }

  .mobile-veil.is-open {
    display: block;
  }

  .mobile-drawer {
    position: fixed;
    inset: var(--header-height) 0 auto;
    z-index: 110;
    display: block;
    max-height: calc(100dvh - var(--header-height));
    padding: 12px var(--gutter) 22px;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-panel);
    color: var(--color-text);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    overscroll-behavior: contain;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-drawer ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .mobile-drawer a {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    padding: 11px 12px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
  }

  .mobile-language-title {
    margin: 20px 12px 8px;
    color: var(--color-muted);
    font-size: 12px;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }

  .feature-panel.is-reversed > :first-child,
  .feature-panel.is-reversed > :last-child {
    order: initial;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 64px;
  }

  h1,
  .hero-title {
    font-size: clamp(24px, 8vw, 30px);
    line-height: 1.16;
    letter-spacing: 0;
  }

  h2 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .site-header__inner {
    min-height: var(--header-height);
    gap: 10px;
  }

  .site-brand span {
    font-size: 14px;
  }

  .site-brand img {
    width: 28px;
    height: 28px;
  }

  .language-full {
    display: none;
  }

  .language-short {
    display: inline;
  }

  .language-button {
    padding-inline: 12px;
  }

  .button-row {
    align-items: stretch;
  }

  .button-row .button {
    flex: 1 1 150px;
  }

  .card,
  .feature-panel {
    padding: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

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

  .tilt,
  .tilt-card,
  [class*="tilt"] {
    transform: none;
  }

  .platform-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

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

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

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