:root {
  --bg: #0d0c0a;
  --panel: #12100d;
  --panel-2: #171410;
  --ink: #ece7dc;
  --muted: #b3ac9e;
  --subtle: #8d8577;
  --line: #2a2721;
  --line-strong: #3d3931;
  --accent: #e8a33d;
  --accent-2: #f2b653;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "PingFang TC",
    "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", Menlo, Monaco, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background:
    linear-gradient(rgba(232, 163, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 163, 61, 0.026) 1px, transparent 1px),
    var(--bg);
  background-size: 76px 76px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(232, 163, 61, 0.42);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  transform: translateY(-140%);
  border-radius: 4px;
  background: var(--accent);
  color: var(--bg);
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  min-height: 72px;
  padding: 16px 56px;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 12, 10, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: auto;
  height: 30px;
  display: block;
}

.brand span {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.nav-cta,
.button {
  text-decoration: none;
}

.site-nav a {
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.lang-switcher {
  display: inline-flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
}

.lang-switcher button {
  min-width: 34px;
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.lang-switcher button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.nav-cta,
.button-primary {
  background: var(--accent);
  color: var(--bg);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--accent-2);
  color: var(--bg);
  transform: translateY(-1px);
}

.button-secondary {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  width: min(1328px, calc(100% - 112px));
  margin: 0 auto;
  padding: 108px 0 0;
}

.eyebrow,
.section-label {
  margin: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}

.pulse {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 999px;
  background: var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}

.hero-title {
  max-width: 1260px;
  margin: 0;
  font-family: var(--serif);
  font-size: 108px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-title.is-cjk {
  max-width: 1180px;
  font-size: 92px;
  line-height: 1.14;
}

.hero-title em {
  color: var(--accent);
}

.hero-copy {
  max-width: 680px;
  margin: 44px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 44px 0 0;
}

.hero-actions .button {
  min-width: 150px;
  min-height: 52px;
  padding-inline: 34px;
}

.ticker {
  position: relative;
  height: 49px;
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  contain: paint;
}

.ticker-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: max-content;
  padding: 14px 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
  animation: ticker 55s linear infinite;
}

.ticker-item {
  display: inline-flex;
  padding-left: 26px;
}

.ticker-item strong {
  color: var(--accent);
  font-weight: 500;
}

.ticker-item span {
  margin: 0 14px;
  color: var(--line-strong);
}

.section,
.api-pricing-section {
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) minmax(0, 1fr);
  gap: 72px;
  width: min(1328px, calc(100% - 112px));
  margin: 0 auto;
  padding: 64px 0 108px;
}

.section-copy h2,
.api-panel h2,
.pricing-panel h2,
.cta-panel h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-copy p,
.api-panel p,
.pricing-panel p {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.coverage-ledger {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.group-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px 20px;
  margin-bottom: 18px;
}

.group-heading span,
.group-heading small {
  font-family: var(--mono);
}

.group-heading span {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0;
}

.group-heading small {
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--panel);
  padding: 9px 16px 9px 10px;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease;
}

.platform-chip:hover {
  border-color: var(--accent);
}

.platform-logo {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(236, 231, 220, 0.12);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(13, 12, 10, 0.04);
}

.platform-logo img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.platform-fallback {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.coverage-note {
  margin: 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
}

.data-section {
  width: min(1328px, calc(100% - 112px));
  margin: 0 auto;
  padding: 96px 0;
}

.why-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 30px;
  border: 1px solid var(--line);
  background: var(--line);
}

.why-card,
.stat-card {
  background: var(--bg);
}

.why-card {
  padding: 40px 36px;
}

.why-card h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.16;
}

.why-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
  text-wrap: pretty;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
  border-top: 0;
}

.stat-card {
  padding: 30px 36px;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 10px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.api-pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.api-panel,
.pricing-panel {
  padding: 88px 56px;
}

.api-panel {
  border-right: 1px solid var(--line);
}

.code-window {
  margin-top: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.code-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11px;
}

.code-bar span:first-child {
  color: var(--accent);
}

.code-window pre {
  margin: 0;
  overflow-x: auto;
  padding: 20px 18px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  white-space: pre;
}

.price-rows {
  margin-top: 34px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 16px;
}

.price-row:last-child {
  border-bottom: 1px solid var(--line);
}

.price-row span:first-child {
  color: var(--muted);
}

.price-row span:last-child {
  font-family: var(--mono);
  text-align: right;
}

.pricing-panel .button {
  margin-top: 36px;
  padding-inline: 32px;
}

.compliance-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 56px;
  width: min(1328px, calc(100% - 112px));
  margin: 0 auto;
  padding: 88px 0 72px;
}

.compliance-copy {
  max-width: 620px;
}

.compliance-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.compliance-item {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.compliance-item span {
  flex: none;
  color: var(--accent);
}

.cta-panel {
  max-width: 520px;
  text-align: right;
}

.cta-panel h2 {
  margin-bottom: 24px;
  font-size: 42px;
  line-height: 1.15;
}

.cta-panel p {
  margin: 16px 0 0;
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1328px, calc(100% - 112px));
  margin: 0 auto;
  padding: 20px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-family: var(--mono);
  font-size: 11.5px;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 16px;
    padding-inline: 32px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero-inner,
  .section-grid,
  .data-section,
  .compliance-section,
  .site-footer {
    width: min(100% - 64px, 1328px);
  }

  .hero-title {
    font-size: 82px;
  }

  .hero-title.is-cjk {
    font-size: 72px;
  }

  .section-copy h2,
  .api-panel h2,
  .pricing-panel h2 {
    font-size: 48px;
  }

  .cta-panel h2 {
    font-size: 38px;
  }

  .section-grid,
  .api-pricing-section {
    grid-template-columns: 1fr;
  }

  .api-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body {
    background-size: 48px 48px;
  }

  .site-header {
    min-height: auto;
    padding: 14px 18px;
  }

  .brand span {
    font-size: 21px;
  }

  .header-actions {
    justify-self: end;
    gap: 10px;
  }

  .nav-cta {
    display: none;
  }

  .site-nav {
    gap: 18px;
    font-size: 13px;
  }

  .hero-inner,
  .section-grid,
  .data-section,
  .compliance-section,
  .site-footer {
    width: calc(100% - 36px);
  }

  .hero-inner {
    padding-top: 48px;
  }

  .eyebrow {
    margin-bottom: 24px;
  }

  .hero-title,
  .hero-title.is-cjk {
    font-size: 48px;
    line-height: 1.1;
  }

  .hero-copy {
    margin-top: 28px;
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

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

  .ticker {
    margin-top: 40px;
  }

  .section-grid,
  .data-section,
  .api-panel,
  .pricing-panel,
  .compliance-section {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .section-copy h2,
  .api-panel h2,
  .pricing-panel h2 {
    font-size: 40px;
  }

  .cta-panel h2 {
    font-size: 34px;
  }

  .why-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .api-panel,
  .pricing-panel {
    padding-inline: 18px;
  }

  .code-window pre {
    font-size: 12.5px;
  }

  .compliance-section {
    flex-direction: column;
  }

  .cta-panel {
    max-width: none;
    text-align: left;
  }

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

@media (max-width: 430px) {
  .brand img {
    height: 26px;
  }

  .brand span {
    font-size: 19px;
    letter-spacing: 0;
  }

  .hero-title,
  .hero-title.is-cjk {
    font-size: 44px;
  }

  .lang-switcher button {
    min-width: 30px;
  }

  .platform-chip {
    width: 100%;
  }
}
