:root {
  --color-bg: #050505;
  --color-panel: #0D0D0D;
  --color-panel-raised: #141414;
  --color-border: #262626;
  --color-accent: #8CE8A0;
  --color-accent-deep: #3E9B63;
  --color-text: #EDEDED;
  --color-text-muted: #969696;
  --color-success: #7BD88F;
  --color-warn: #D9B36A;
  --color-error: #DB7061;
  --color-shadow: rgba(0, 0, 0, 0.68);
  --color-shadow-soft: rgba(0, 0, 0, 0.5);
  --color-surface-highlight: rgba(255, 255, 255, 0.05);
  --color-accent-clear: rgba(140, 232, 160, 0);
  --color-accent-haze: rgba(140, 232, 160, 0.12);
  --color-accent-edge: rgba(140, 232, 160, 0.5);
  --color-accent-glow: rgba(140, 232, 160, 0.35);
  --color-veil: rgba(0, 0, 0, 0.72);
  --color-flag-red: #C04A43;
  --color-flag-blue: #46618F;
  --color-flag-white: #E9E9E9;
  --font-display: Georgia, 'Times New Roman', 'Songti SC', 'Noto Serif SC', SimSun, serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Courier New', monospace;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-round: 999px;
  --shadow-card: 0 34px 80px var(--color-shadow), 0 10px 26px var(--color-shadow-soft);
  --shadow-float: 0 12px 30px var(--color-shadow-soft);
  --edge-highlight: inset 0 1px 0 var(--color-surface-highlight);
  --wrap-max: 1320px;
  --content-max: 820px;
  --gutter: 48px;
  --header-height: 68px;
  --section-space: 104px;
  --transition-fast: 150ms ease;
  --transition-standard: 420ms cubic-bezier(0.22, 1, 0.36, 1);
  --toc-offset: 84px;
  --focus-ring: 0 0 0 3px var(--color-accent-haze);
}

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

html {
  min-width: 0;
  background: var(--color-bg);
  color-scheme: dark;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

html.nav-open {
  overflow: hidden;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: clip;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

main,
section,
article,
aside,
header,
footer,
nav,
div {
  min-width: 0;
}

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

img {
  height: auto;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  margin: 0;
}

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

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

ul,
ol {
  padding-left: 0;
}

ul[role='list'],
ol[role='list'],
.site-nav-list,
.footer-links,
.trust-row {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

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

code {
  overflow-wrap: anywhere;
}

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

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

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

:focus-visible {
  outline: 1px solid var(--color-accent);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.wrap {
  width: 100%;
  max-width: var(--wrap-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section-compact {
  padding-top: 64px;
  padding-bottom: 64px;
}

.no-break {
  white-space: nowrap;
}

.mono {
  font-family: var(--font-mono);
}

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

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

.eyebrow {
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.display-title,
.hero-title,
h1 {
  max-width: 100%;
  margin-bottom: 24px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(52px, 5.1vw, 72px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  text-wrap: balance;
}

h2 {
  margin-bottom: 20px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.18;
  text-wrap: balance;
}

h3 {
  margin-bottom: 12px;
  color: var(--color-text);
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

h4 {
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
}

p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.lead {
  max-width: 760px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.65;
}

.prose {
  max-width: var(--content-max);
  color: var(--color-text-muted);
}

.prose h2 {
  margin-top: 72px;
}

.prose h3 {
  margin-top: 42px;
}

.prose p,
.prose li {
  font-size: 16px;
  line-height: 1.82;
}

.prose ul,
.prose ol {
  margin: 18px 0 28px;
  padding-left: 24px;
}

.prose li + li {
  margin-top: 10px;
}

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

.prose strong {
  color: var(--color-text);
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-login {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-primary {
  padding: 13px 30px;
  background: var(--color-text);
  color: var(--color-bg);
  font-size: 15px;
}

.btn-secondary,
.btn-ghost {
  padding: 12px 26px;
  border-color: var(--color-border);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 15px;
}

.btn-login {
  min-height: 38px;
  padding: 8px 20px;
  border-color: var(--color-border);
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 13.5px;
}

.btn-primary:hover {
  opacity: 0.86;
}

.btn-secondary:hover,
.btn-ghost:hover,
.btn-login:hover {
  border-color: var(--color-text-muted);
  background: var(--color-panel-raised);
}

.btn:active,
.btn-primary:active,
.btn-secondary:active,
.btn-ghost:active,
.btn-login:active {
  transform: translateY(1px);
}

.btn[disabled],
button[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
}

.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.badge,
.status-badge,
.tag {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  padding: 5px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-round);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-success);
}

.card,
.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--edge-highlight);
}

.card {
  padding: 26px;
}

.panel {
  padding: 32px;
}

.card-title {
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 600;
}

.card-copy {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.site-head {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.head-inner {
  display: flex;
  height: var(--header-height);
  align-items: center;
  gap: 36px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.brand-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  color: var(--color-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-local {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 400;
}

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

.desktop-nav > a,
.nav-more > button {
  color: var(--color-text-muted);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.desktop-nav > a {
  display: inline-flex;
  align-items: center;
}

.desktop-nav > a:hover,
.desktop-nav > a.is-active,
.nav-more > button:hover,
.nav-more.is-active > button {
  color: var(--color-text);
}

.nav-more {
  position: relative;
}

.nav-more > button {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-caret {
  color: var(--color-text-muted);
  font-size: 10px;
}

.more-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -14px;
  z-index: 120;
  display: none;
  min-width: 166px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.more-menu::before {
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 12px;
  content: '';
}

.more-menu a {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 13.5px;
}

.more-menu a:hover,
.more-menu a.is-active {
  background: var(--color-panel-raised);
  color: var(--color-text);
}

.nav-more:hover .more-menu,
.nav-more:focus-within .more-menu {
  display: block;
}

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

.language-picker {
  position: relative;
}

.language-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 13px;
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 122;
  display: none;
  min-width: 154px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.language-picker.is-open .language-menu {
  display: block;
}

.language-menu a {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 13px;
}

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

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  color: var(--color-text);
  cursor: pointer;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-menu {
  position: absolute;
  top: var(--header-height);
  right: 0;
  left: 0;
  z-index: 130;
  display: none;
  max-height: calc(100dvh - var(--header-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
  -webkit-overflow-scrolling: touch;
}

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

.mobile-menu-inner {
  padding-top: 10px;
  padding-bottom: 18px;
}

.mobile-menu a {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--color-text);
}

.mobile-language-label {
  margin: 18px 12px 8px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

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

.nav-veil.is-visible {
  display: block;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-panel);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(3, minmax(150px, 1fr));
  gap: 54px;
  padding-top: 68px;
  padding-bottom: 54px;
}

.footer-brand {
  max-width: 330px;
}

.footer-brand .brand {
  margin-bottom: 18px;
}

.footer-brand p {
  margin-bottom: 0;
  font-size: 14px;
}

.footer-heading {
  margin-bottom: 16px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.footer-links {
  margin: 0;
}

.footer-links li + li {
  margin-top: 9px;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 13.5px;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 28px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

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

.hero {
  position: relative;
  display: flex;
  min-height: calc(100svh - 150px);
  align-items: center;
  overflow-x: clip;
  padding-top: 40px;
  padding-bottom: 28px;
}

.hero > .wrap {
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 72px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hero-kicker {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 6px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-round);
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-kicker .status-dot {
  flex-shrink: 0;
}

.hero-title {
  margin-bottom: 20px;
}

.hero-copy-text {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 15.5px;
}

.hero-copy-text strong {
  color: var(--color-text);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.trust-row li::before {
  width: 3px;
  height: 3px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--color-text-muted);
  content: '';
}

.reveal {
  transition: opacity var(--transition-standard), transform var(--transition-standard);
}

.reveal.pending {
  opacity: 0;
  transform: translateY(16px);
}

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

.tilt {
  transform: perspective(1500px) rotateY(-5deg) rotateX(1.6deg);
  transform-origin: 60% center;
}

@media (max-width: 1100px) {
  :root {
    --gutter: 24px;
    --section-space: 84px;
  }

  .desktop-nav {
    display: none;
  }

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

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

  .language-picker {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
    padding-bottom: 54px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .tilt {
    transform: none;
  }

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

@media (max-width: 768px) {
  :root {
    --section-space: 72px;
  }

  .display-title,
  .hero-title,
  h1 {
    font-size: clamp(28px, 9.5vw, 40px);
    line-height: 1.14;
  }

  h2 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .brand-local {
    display: none;
  }

  .head-inner {
    gap: 12px;
  }

  .header-tools {
    gap: 8px;
  }

  .btn-login {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero-kicker {
    font-size: 10.5px;
  }

  .footer-grid {
    gap: 36px 26px;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
    --section-space: 62px;
  }

  body {
    font-size: 14px;
  }

  .wrap,
  .content-wrap {
    padding-inline: var(--gutter);
  }

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

  .section-compact {
    padding-top: 46px;
    padding-bottom: 46px;
  }

  .card,
  .panel {
    padding: 20px;
  }

  .cta-row {
    align-items: stretch;
    flex-direction: column;
  }

  .cta-row .btn-primary,
  .cta-row .btn-secondary,
  .cta-row .btn-ghost {
    width: 100%;
  }

  .trust-row {
    gap: 8px 15px;
  }

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

  .tilt,
  [class*='tilt'] {
    transform: none;
  }

  .hero,
  .site-footer,
  .section,
  .section-compact {
    overflow-x: clip;
  }
}

@media (max-width: 360px) {
  .brand-logo {
    width: 25px;
    height: 25px;
  }

  .brand-name {
    font-size: 15px;
  }

  .btn-login {
    padding-inline: 11px;
  }

  .head-inner {
    gap: 7px;
  }
}

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

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

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