:root {
  --brand: #2d7fff;
  --brand-dark: #155fd1;
  --text: #0f1419;
  --muted: #516070;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --line: #e5eaf0;
  --ok: #0f7a46;
  --warning-bg: #fff8e6;
  --warning-line: #f1ce72;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.container {
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-grid,
.hero-actions,
.cta-actions {
  display: flex;
  align-items: center;
}

.header-inner {
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  padding: 72px 0;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(40px, 12vw, 72px);
  line-height: .98;
  letter-spacing: -.03em;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.08;
  letter-spacing: -.02em;
}

h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.subtitle {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(18px, 4.8vw, 23px);
}

.hero-actions,
.cta-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  border: 1px solid var(--brand);
  color: var(--brand);
  background: transparent;
}

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

.version-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 9px;
  border: 1px solid rgba(45, 127, 255, 0.22);
  border-radius: 999px;
  color: var(--brand);
  background: rgba(45, 127, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-card {
  align-self: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.hero-card p,
.hero-card small {
  color: var(--muted);
}

.hero-card strong {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: 30px;
  line-height: 1.05;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 7px rgba(15, 122, 70, .12);
}

.features,
.visual-demo,
.price-report,
.download-strip,
.manual section {
  border-top: 1px solid var(--line);
}

.features,
.visual-demo,
.price-report,
.download-strip {
  padding: 64px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.feature p,
.demo-copy p,
.quick-step p,
.price-report p,
.download-strip p,
.manual p,
.manual li {
  color: var(--muted);
}

.visual-demo {
  background: #fff;
}

.demo-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: center;
}

.demo-copy {
  max-width: 540px;
}

.demo-copy .btn {
  margin-top: 12px;
}

.demo-stack {
  display: grid;
  gap: 14px;
}

.app-preview {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(15, 20, 25, .08);
  overflow: hidden;
}

.app-preview-offset {
  transform: none;
}

.mock-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mock-logo {
  color: var(--brand);
  font-weight: 950;
  letter-spacing: .04em;
}

.mock-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mock-panel,
.mock-device {
  padding: 16px;
}

.mock-label {
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 900;
}

.mock-row,
.mock-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.mock-row span,
.mock-total span,
.mock-payment span,
.mock-upload span,
.mock-status p {
  color: var(--muted);
}

.mock-row strong,
.mock-total strong {
  color: var(--text);
}

.mock-total {
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(45, 127, 255, .22);
  border-radius: 14px;
  background: rgba(45, 127, 255, .08);
}

.mock-payment {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.mock-payment strong {
  font-size: 20px;
}

.mock-upload {
  margin: 0 16px 16px;
  padding: 22px;
  border: 1px dashed var(--brand);
  border-radius: 14px;
  background: rgba(45, 127, 255, .06);
  text-align: center;
  font-weight: 800;
}

.mock-status {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}

.mock-status span {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}

.mock-status.active span {
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(45, 127, 255, .12);
}

.mock-status p {
  margin-bottom: 0;
  font-weight: 800;
}

.quick-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

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

.quick-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.quick-step strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.price-report {
  background: var(--surface);
  padding: 26px 0;
  scroll-margin-top: 96px;
}

.price-report-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

.price-head {
  margin-bottom: 0;
}

.price-head h2 {
  margin-bottom: 6px;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.1;
}

.price-head p:not(.eyebrow) {
  max-width: 520px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.price-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.price-card,
.price-loading {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.price-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 14px;
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-country-wrap {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
}

.price-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(15, 20, 25, .08);
  flex: 0 0 auto;
  overflow: hidden;
}

.price-flag-cl {
  background:
    radial-gradient(circle at 18% 25%, #fff 0 2px, transparent 2.5px),
    linear-gradient(90deg, #0039a6 0 38%, transparent 38%),
    linear-gradient(#fff 0 50%, #d52b1e 50% 100%);
}

.price-flag-co {
  background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75% 100%);
}

.price-flag-mx {
  background:
    radial-gradient(circle at 50% 50%, #8c6b2f 0 2px, transparent 2.5px),
    linear-gradient(90deg, #006847 0 33%, #fff 33% 66%, #ce1126 66% 100%);
}

.price-flag-pe {
  background: linear-gradient(90deg, #d91023 0 33%, #fff 33% 66%, #d91023 66% 100%);
}

.price-flag-binance {
  background: #f0b90b;
}

.price-flag-binance::before,
.price-flag-binance::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: #15171a;
  transform: translate(-50%, -50%) rotate(45deg);
}

.price-flag-binance::after {
  width: 18px;
  height: 18px;
  background:
    linear-gradient(45deg, transparent 0 36%, #15171a 36% 46%, transparent 46% 54%, #15171a 54% 64%, transparent 64% 100%),
    linear-gradient(-45deg, transparent 0 36%, #15171a 36% 46%, transparent 46% 54%, #15171a 54% 64%, transparent 64% 100%);
}

.price-country {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.price-card strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.05;
  text-align: left;
  white-space: nowrap;
}

.price-method {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--muted);
  font-weight: 700;
}

.price-card p {
  margin-bottom: 0;
}

.price-card small {
  color: var(--muted);
  font-weight: 800;
}

.price-helper {
  font-size: 12px;
}

.price-card-muted strong {
  color: var(--muted);
  white-space: normal;
}

.price-loading {
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
}

.price-note {
  margin: 10px 0 0;
  font-size: 12px;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

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

.footer-grid {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-grid p {
  margin: 0;
}

.footer-grid a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.manual-page {
  padding: 42px 0 72px;
}

.manual {
  max-width: 880px;
}

.manual-hero {
  padding: 48px 0 34px;
}

.manual section {
  padding: 34px 0;
}

.manual ol,
.manual ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.manual code,
.manual kbd {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .95em;
}

.manual code {
  padding: 2px 6px;
}

.manual kbd {
  padding: 1px 5px;
}

.notice {
  margin: 20px 0;
  padding: 18px;
  border-radius: 14px;
}

.notice p {
  margin-bottom: 0;
}

.notice.warning {
  border: 1px solid var(--warning-line);
  background: var(--warning-bg);
}

blockquote {
  margin: 20px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--brand);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}

blockquote p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero {
    padding: 90px 0;
  }

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

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

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

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

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .demo-showcase {
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  }

  .app-preview-offset {
    transform: translateX(28px);
  }

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

  .price-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .price-report-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .btn,
  .cta-actions {
    width: 100%;
  }

  .mock-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .mock-pill {
    white-space: normal;
  }

  .price-card-head {
    display: flex;
  }

  .price-card strong {
    text-align: left;
    white-space: normal;
  }
}
