:root {
  --ink: #17211b;
  --ink-2: #27332c;
  --muted: #657168;
  --soft: #eef3ec;
  --paper: #f7f9f4;
  --panel: #ffffff;
  --line: #dbe4d8;
  --green: #168352;
  --green-2: #0f6b44;
  --blue: #285bd4;
  --amber: #b46f12;
  --coral: #cf513c;
  --code: #101712;
  --shadow: 0 22px 55px rgba(23, 33, 27, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.doc p code,
.flow-step code,
td code {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 244, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.mark {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--ink);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.mark::before,
.mark::after {
  content: "";
  position: absolute;
  left: 7px;
  right: 7px;
  height: 4px;
  border-radius: 999px;
  background: var(--green);
  transform: rotate(-18deg);
}

.mark::before {
  top: 9px;
}

.mark::after {
  top: 17px;
  background: var(--blue);
}

.links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.links a {
  text-decoration: none;
}

.links a:not(.button):hover,
.side a:hover,
.footer a:hover {
  color: var(--ink);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
}

.lang-select {
  min-height: 36px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 760;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 760;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 94px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.lead {
  max-width: 660px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.62;
}

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

.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr);
  gap: 50px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 58px 0 36px;
}

.hero-copy {
  grid-column: 1;
  grid-row: 1;
  max-width: 670px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
  margin-top: 34px;
}

.trust-line {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

.metric {
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.metric strong {
  display: block;
  margin-bottom: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 24px;
  line-height: 1;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.product-console {
  grid-column: 2;
  grid-row: 1 / span 2;
  border: 1px solid #cfd9cb;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcf8;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.window-dots span:nth-child(2) {
  background: var(--amber);
}

.window-dots span:nth-child(3) {
  background: var(--green);
}

.console-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.console-body {
  padding: 18px;
}

.console-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.console-stat {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.console-stat small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.console-stat strong {
  display: block;
  margin-top: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 23px;
}

.route-list {
  display: grid;
  gap: 8px;
}

.route-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 96px 86px 82px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcf8;
}

.route-main strong {
  display: block;
  margin-bottom: 3px;
}

.route-main span,
.route-row small {
  color: var(--muted);
  font-size: 12px;
}

.price {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-weight: 820;
  color: var(--green-2);
}

.save {
  color: var(--amber);
  font-size: 12px;
  font-weight: 780;
}

.status,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #bedcc9;
  border-radius: 999px;
  background: #e8f6ef;
  color: var(--green-2);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status.warn,
.pill.warn {
  border-color: #e5d3ad;
  background: #fff6df;
  color: var(--amber);
}

.console-code {
  margin-top: 16px;
  border-radius: 8px;
  background: var(--code);
  color: #d8f4e5;
  overflow: hidden;
}

.console-code pre,
.terminal pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.62;
}

.band {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-head p {
  max-width: 560px;
  margin-bottom: 0;
}

.feature-grid,
.account-grid,
.provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.account-card,
.provider-card,
.notice,
.topup {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card,
.account-card,
.provider-card {
  padding: 20px;
}

.feature-card .num,
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 820;
}

.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.logo-wall span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink-2);
  font-weight: 820;
}

.flow-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.flow-step {
  min-height: 150px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step strong {
  display: block;
  margin-bottom: 8px;
}

.flow-step span {
  color: var(--muted);
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.terminal {
  border-radius: 8px;
  background: var(--code);
  color: #d8f4e5;
  overflow: hidden;
}

.page-hero {
  padding: 64px 0 34px;
}

.page-hero h1 {
  max-width: 840px;
  font-size: clamp(42px, 7vw, 74px);
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 42px;
  padding: 18px 0 64px;
}

.side {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 6px;
  padding: 12px 0;
}

.side a {
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.doc {
  min-width: 0;
}

.doc h1 {
  font-size: clamp(42px, 6vw, 66px);
}

.doc-section {
  padding: 42px 0;
  border-top: 1px solid var(--line);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

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

td strong {
  display: block;
  margin-bottom: 2px;
}

.topup-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.topup {
  padding: 18px;
}

.package-name {
  display: block;
  margin-bottom: 8px;
  color: var(--green-2);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

.topup strong {
  display: block;
  margin-bottom: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 28px;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.notice {
  padding: 18px;
}

.notice strong {
  display: block;
  margin-bottom: 6px;
}

.steps {
  display: grid;
  gap: 18px;
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
}

.step .terminal {
  margin-top: 14px;
}

.callout {
  padding: 22px;
  border: 1px solid #c9d6ff;
  border-radius: 8px;
  background: #f0f4ff;
}

.compliance-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.compliance-flow .flow-step {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

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

.footer a {
  color: inherit;
}

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

  .hero-home {
    min-height: 0;
    padding-top: 46px;
  }

  .hero-copy,
  .hero-metrics,
  .product-console {
    grid-column: auto;
    grid-row: auto;
  }

  .side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .feature-grid,
  .account-grid,
  .provider-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

  .logo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .flow-strip,
  .topup-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .flow-strip .flow-step:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 24px, 1180px);
  }

  .nav-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  h1 {
    font-size: 44px;
  }

  .page-hero h1,
  .doc h1 {
    font-size: 40px;
  }

  .page-hero {
    padding: 40px 0 20px;
  }

  .layout {
    padding: 0 0 48px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-metrics,
  .console-stats,
  .flow-strip,
  .compliance-flow,
  .topup-list {
    grid-template-columns: 1fr;
  }

  .route-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-head {
    display: block;
  }

  .logo-wall {
    grid-template-columns: 1fr 1fr;
  }

  .side {
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 8px;
    overflow-x: visible;
    padding: 0 0 14px;
  }

  .side a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0;
    white-space: nowrap;
  }

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

  .button {
    min-height: 42px;
  }
}
