:root {
  --bg: #07110f;
  --surface: #0d1a17;
  --surface-2: #12231f;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7f5;
  --muted: #9eaaa6;
  --lime: #c7ff52;
  --lime-2: #9ce12d;
  --cyan: #65e6cf;
  --orange: #ffb86b;
  --danger: #ff7d71;
  --max: 1180px;
  --radius: 24px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  --page-gutter: 20px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 3%, rgba(101, 230, 207, 0.12), transparent 28rem),
    radial-gradient(circle at 90% 16%, rgba(199, 255, 82, 0.1), transparent 27rem),
    var(--bg);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

.page-register { --accent: #c7ff52; --accent-soft: rgba(199, 255, 82, 0.1); }
.page-download { --accent: #65e6cf; --accent-soft: rgba(101, 230, 207, 0.1); }
.page-safety { --accent: #ffcf70; --accent-soft: rgba(255, 207, 112, 0.1); }
.page-buy { --accent: #8fb8ff; --accent-soft: rgba(143, 184, 255, 0.1); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #07110f;
  background: var(--lime);
  font-weight: 800;
  transform: translateY(-160%);
}

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

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

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

img,
svg,
video,
canvas {
  max-width: 100%;
  height: auto;
}

pre,
code {
  max-width: 100%;
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
}

p,
li,
td,
th,
a,
h1,
h2,
h3 {
  overflow-wrap: break-word;
}

.container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(7, 17, 15, 0.82);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 8px;
  background: #000 url("/assets/okx-logo.png") center / cover no-repeat;
}

.brand-mark::before {
  content: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.nav-cta,
.button {
  min-width: 0;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-cta,
.button-primary {
  color: #07110f;
  background: var(--lime);
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button-quiet {
  color: var(--muted);
  border-color: var(--line);
  background: transparent;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  font-size: 20px;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 11px;
  border: 1px solid rgba(199, 255, 82, 0.25);
  border-radius: 999px;
  color: var(--lime);
  background: rgba(199, 255, 82, 0.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.9vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

h1 span,
.gradient-text {
  color: transparent;
  background: linear-gradient(115deg, var(--lime), var(--cyan));
  background-clip: text;
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.primary-action-note {
  color: var(--muted);
  font-size: 13px;
}

.primary-action-note a {
  color: var(--cyan);
  font-weight: 750;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
}

.trust-row span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-row span::before {
  content: "✓";
  color: var(--lime);
  font-weight: 900;
}

.hero-panel {
  position: relative;
  min-height: 480px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel::after {
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 310px;
  height: 310px;
  content: "";
  border-radius: 50%;
  background: var(--lime);
  filter: blur(110px);
  opacity: 0.12;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.panel-head strong {
  font-size: 15px;
}

.status-pill {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--lime);
  background: rgba(199, 255, 82, 0.09);
  font-size: 11px;
  font-weight: 800;
}

.journey {
  display: grid;
  gap: 12px;
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(5, 12, 10, 0.62);
}

.journey-step.highlight {
  border-color: rgba(199, 255, 82, 0.34);
  background: rgba(199, 255, 82, 0.07);
}

.step-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(101, 230, 207, 0.1);
  font-size: 18px;
  font-weight: 900;
}

.journey-step strong,
.journey-step small {
  display: block;
}

.journey-step small {
  margin-top: 2px;
  color: var(--muted);
}

.step-state {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
}

.disclosure {
  margin: 0;
  padding: 13px 0;
  border-block: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  font-size: 12px;
  text-align: center;
}

.section {
  padding: 76px 0;
}

.section-tight {
  padding: 42px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.article-header h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-heading p,
.article-header .lead {
  color: var(--muted);
  font-size: 17px;
}

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

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

.card {
  position: relative;
  min-height: 245px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(199, 255, 82, 0.28);
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 35px;
  border-radius: 14px;
  color: #07110f;
  background: var(--lime);
  font-weight: 950;
}

.card h3 {
  margin-bottom: 9px;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.card p {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

.card-link {
  color: var(--lime);
  font-size: 14px;
  font-weight: 800;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.stat {
  padding: 27px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong,
.stat span {
  display: block;
}

.stat strong {
  margin-bottom: 4px;
  color: var(--lime);
  font-size: 28px;
  letter-spacing: -0.04em;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
}

.callout {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  padding: 38px;
  border: 1px solid rgba(199, 255, 82, 0.25);
  border-radius: 28px;
  background:
    linear-gradient(110deg, rgba(199, 255, 82, 0.12), rgba(101, 230, 207, 0.05)),
    var(--surface);
}

.callout h2 {
  margin-bottom: 7px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.callout p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  padding: 46px 0 96px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h3 {
  color: var(--text);
  font-size: 14px;
}

.footer-grid a,
.footer-grid p {
  display: block;
  margin: 0 0 10px;
  font-size: 13px;
}

.article-hero {
  position: relative;
  padding: 64px 0 42px;
  overflow: hidden;
}

.article-hero::after {
  position: absolute;
  top: -12rem;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  content: "";
  border-radius: 50%;
  background: var(--accent, var(--lime));
  filter: blur(150px);
  opacity: 0.1;
  pointer-events: none;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb span {
  opacity: 0.45;
}

.article-header {
  position: relative;
  z-index: 1;
  max-width: none;
}

.article-header h1 {
  max-width: none;
}

.intent-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.intent-strip div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.intent-strip div:last-child {
  border-right: 0;
}

.intent-strip strong,
.intent-strip span {
  display: block;
}

.intent-strip strong {
  margin-bottom: 3px;
  color: var(--text);
  font-size: 13px;
}

.intent-strip span {
  color: var(--muted);
  font-size: 13px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 52px;
  align-items: start;
}

.article-content {
  min-width: 0;
}

.article-content h2 {
  margin: 48px 0 16px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.article-content h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.article-content p,
.article-content li {
  color: #c3cbc8;
}

.article-content a:not(.button) {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.answer-box,
.note-box,
.warning-box {
  margin: 24px 0;
  padding: 22px;
  border-radius: 18px;
}

.answer-box {
  border: 1px solid color-mix(in srgb, var(--accent, var(--lime)) 34%, transparent);
  background: var(--accent-soft, rgba(199, 255, 82, 0.07));
}

.note-box {
  border: 1px solid rgba(101, 230, 207, 0.2);
  background: rgba(101, 230, 207, 0.06);
}

.warning-box {
  border: 1px solid rgba(255, 184, 107, 0.24);
  background: rgba(255, 184, 107, 0.07);
}

.answer-box strong,
.note-box strong,
.warning-box strong {
  display: block;
  margin-bottom: 5px;
}

.steps {
  display: grid;
  gap: 14px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.steps .num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #07110f;
  background: var(--accent, var(--lime));
  font-weight: 900;
}

.steps strong,
.steps span {
  display: block;
}

.steps span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.check-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--accent, var(--lime));
  font-weight: 900;
}

.data-table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}

.data-table th,
.data-table td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: #c3cbc8;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-size: 14px;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.topic-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.topic-summary div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.topic-summary strong,
.topic-summary span {
  display: block;
}

.topic-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.article-cta {
  margin: 34px 0;
  padding: 25px;
  border: 1px solid rgba(199, 255, 82, 0.25);
  border-radius: 21px;
  background: linear-gradient(110deg, rgba(199, 255, 82, 0.11), rgba(101, 230, 207, 0.04));
}

.article-cta h3 {
  margin-top: 0;
}

.sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 15px;
}

.sidebar-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.sidebar-card h3 {
  margin-bottom: 12px;
  font-size: 15px;
}

.sidebar-card a:not(.button) {
  display: block;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.toc a[aria-current="location"] {
  color: var(--text);
}

.editorial-note {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.editorial-note a {
  color: var(--cyan);
}

.button:focus-visible,
.nav-links a:focus-visible,
.brand:focus-visible,
.menu-button:focus-visible,
.faq summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.sidebar-card .button {
  width: 100%;
  margin-top: 8px;
}

.quick-actions {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.quick-actions.simple {
  padding: 0;
  border: 0;
  background: transparent;
}

.quick-actions.simple .button {
  flex: 0 1 auto;
  min-width: 180px;
}

.quick-actions .button {
  flex: 1;
  min-width: 155px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  padding: 20px 0;
  cursor: pointer;
  font-weight: 750;
}

.faq details p {
  padding-bottom: 20px;
}

.mobile-bar {
  position: fixed;
  right: var(--page-gutter);
  bottom: 12px;
  left: var(--page-gutter);
  z-index: 40;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(7, 17, 15, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.mobile-bar .button {
  min-height: 46px;
  padding-inline: 12px;
  font-size: 14px;
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.redirect-card {
  max-width: 520px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
}

.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 22px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--lime);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 1600px) {
  :root {
    --max: 1280px;
  }

  body {
    font-size: 17px;
  }
}

@media (max-width: 1100px) {
  .nav {
    gap: 18px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 34px;
  }
}

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

  .hero-panel {
    min-height: 420px;
  }

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

  .sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  :root {
    --page-gutter: 16px;
  }

  .nav {
    min-height: 66px;
    gap: 12px;
  }

  .nav-links,
  .nav > .nav-cta {
    position: absolute;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
  }

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

  .nav-links a {
    padding: 12px;
  }

  .menu-button {
    display: block;
    flex: 0 0 44px;
  }

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

  h1 {
    font-size: clamp(32px, 9vw, 38px);
    line-height: 1.12;
  }

  .hero-panel {
    min-height: auto;
    padding: 18px;
    border-radius: 25px;
  }

  .journey-step {
    grid-template-columns: 40px 1fr;
  }

  .journey-step .step-state {
    display: none;
  }

  .card-grid,
  .card-grid.core-grid,
  .stats,
  .topic-summary,
  .footer-grid,
  .sidebar {
    grid-template-columns: 1fr;
  }

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

  .stat:last-child {
    border-bottom: 0;
  }

  .callout {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .article-hero {
    padding: 44px 0 34px;
  }

  .article-header .lead {
    font-size: 16px;
  }

  .intent-strip {
    grid-template-columns: 1fr;
  }

  .intent-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .intent-strip div:last-child {
    border-bottom: 0;
  }

  .article-content h2 {
    margin-top: 38px;
    font-size: 26px;
  }

  .steps li {
    grid-template-columns: 36px 1fr;
    gap: 12px;
    padding: 16px;
  }

  .steps .num {
    width: 36px;
    height: 36px;
  }

  .quick-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }

  .quick-actions.simple {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .quick-actions.simple .button {
    width: 100%;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: normal;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  .data-table th,
  .data-table td {
    min-width: 130px;
    padding: 13px 14px;
    font-size: 14px;
  }

  .primary-action-row {
    display: grid;
  }

  .quick-actions .button {
    width: 100%;
    min-width: 0;
    padding-inline: 10px;
    font-size: 13px;
    overflow-wrap: anywhere;
  }

  .mobile-bar {
    display: grid;
  }

  .site-footer {
    padding-bottom: 116px;
  }
}

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

@media (max-width: 420px) {
  :root {
    --page-gutter: 14px;
  }

  .brand {
    gap: 8px;
    font-size: 17px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  h1 {
    font-size: clamp(30px, 8.8vw, 36px);
    line-height: 1.14;
  }

  .hero-actions {
    display: grid;
  }

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

  .mobile-bar {
    bottom: 8px;
    gap: 8px;
    padding: 8px;
  }
}

@media (max-width: 340px) {
  :root {
    --page-gutter: 12px;
  }

  h1 {
    font-size: 34px;
  }

  .mobile-bar {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-bottom: 168px;
  }
}
