:root {
  color-scheme: light;
  --bg: #f2f6f5;
  --surface: #ffffff;
  --surface-soft: #e9f1ef;
  --text: #102522;
  --muted: #5d706c;
  --line: #cedbd8;
  --brand: #087f73;
  --brand-strong: #05665d;
  --brand-soft: #d6efea;
  --accent: #db8c34;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(16, 52, 47, .10);
  --radius: 8px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1514;
  --surface: #121e1c;
  --surface-soft: #192927;
  --text: #eef7f5;
  --muted: #9db0ac;
  --line: #2c403c;
  --brand: #55c7b8;
  --brand-strong: #78daca;
  --brand-soft: #173d38;
  --accent: #f1ac5f;
  --danger: #ff8a80;
  --shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 90% 3%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 24rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
}
.nav { display: flex; min-height: 68px; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.35px; }
.brand-mark {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(8, 127, 115, .22);
}
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-links a:hover { color: var(--text); }
.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
}
.icon-btn svg { width: 19px; height: 19px; }

.hero { display: grid; grid-template-columns: 1.08fr .92fr; gap: 72px; align-items: center; padding: 88px 0 72px; }
.hero > * { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--brand); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 2px; content: ""; background: currentColor; }
h1, h2, h3 { margin-top: 0; line-height: 1.15; letter-spacing: -.035em; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(42px, 6vw, 72px); }
h1 span { color: var(--brand); }
.lead { max-width: 620px; margin: 0 0 30px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s, border-color .18s, background .18s;
}
.button:hover { transform: translateY(-2px); border-color: var(--brand); }
.button.primary { color: #fff; border-color: #087f73; background: #087f73; }
.button.primary:hover { background: #05665d; }
.button svg { width: 18px; height: 18px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 16px; height: 16px; color: var(--brand); }

.phone-wrap { position: relative; min-height: 530px; }
.phone-glow { position: absolute; inset: 10% 0 0; transform: rotate(-7deg); border: 1px solid var(--line); background: var(--brand-soft); }
.phone {
  position: relative;
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.phone-top { display: flex; align-items: center; gap: 9px; padding: 8px 4px 16px; }
.phone-top .brand-mark { width: 32px; height: 32px; }
.phone-top > span:last-child { min-width: 0; }
.phone-title { display: block; white-space: nowrap; font-size: 13px; font-weight: 800; }
.phone-subtitle { color: var(--muted); font-size: 9px; }
.mock-card { padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.mock-label { margin-bottom: 6px; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.currency-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 7px; background: var(--surface-soft); }
.flag { display: grid; width: 34px; height: 25px; flex: none; place-items: center; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--surface); font-size: 10px; font-weight: 850; letter-spacing: .04em; }
.currency-row strong { display: block; font-size: 14px; }
.currency-row small { display: block; color: var(--muted); font-size: 10px; }
.currency-row b { margin-left: auto; font-size: 20px; }
.swap-line { display: flex; align-items: center; gap: 9px; margin: 8px 0; }
.swap-line::before, .swap-line::after { height: 1px; flex: 1; content: ""; background: var(--line); }
.swap { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 6px; color: white; background: #087f73; }
.result { margin-top: 13px; padding: 14px; border-radius: 8px; color: var(--text); background: var(--brand-soft); }
.result small { font-size: 10px; }
.result strong { display: block; margin-top: 4px; font-size: 23px; letter-spacing: -.04em; }
.chart { display: flex; height: 95px; align-items: end; gap: 5px; margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--line); }
.chart i { display: block; flex: 1; border-radius: 2px 2px 0 0; background: color-mix(in srgb, var(--brand) 60%, transparent); }

.section { padding: 84px 0; }
.section.alt { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 58%, transparent); }
.section-heading { max-width: 670px; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 46px); }
.section-heading p { margin: 0; color: var(--muted); font-size: 17px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { min-height: 205px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.feature-icon { display: grid; width: 42px; height: 42px; margin-bottom: 32px; place-items: center; border-radius: 7px; color: var(--brand); background: var(--brand-soft); }
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { margin-bottom: 9px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.privacy-band { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 32px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.privacy-band h2 { margin-bottom: 8px; font-size: 28px; }
.privacy-band p { max-width: 700px; margin: 0; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); counter-reset: steps; gap: 24px; }
.step { position: relative; padding-top: 52px; counter-increment: steps; }
.step::before { position: absolute; top: 0; left: 0; display: grid; width: 36px; height: 36px; place-items: center; border: 1px solid var(--brand); border-radius: 6px; color: var(--brand); content: counter(steps, decimal-leading-zero); font-size: 12px; font-weight: 850; }
.step h3 { margin-bottom: 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.cta { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 40px; border-radius: var(--radius); color: white; background: #075f57; }
.cta h2 { margin-bottom: 8px; font-size: clamp(26px, 4vw, 40px); }
.cta p { margin: 0; color: rgba(255,255,255,.76); }
.cta .button { border-color: rgba(255,255,255,.35); color: white; background: rgba(255,255,255,.1); }

.site-footer { margin-top: 40px; padding: 34px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; align-items: center; gap: 22px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
.footer-row a { text-decoration: none; }
.footer-row a:hover { color: var(--brand); }

.document-shell { display: grid; grid-template-columns: 240px minmax(0, 760px); gap: 52px; align-items: start; padding: 64px 0 90px; }
.document-nav { position: sticky; top: 96px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.document-nav strong { display: block; margin-bottom: 10px; font-size: 13px; }
.document-nav a { display: block; padding: 7px 0; color: var(--muted); text-decoration: none; font-size: 13px; }
.document-nav a:hover { color: var(--brand); }
.document h1 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 52px); }
.document .updated { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
.document h2 { margin: 42px 0 14px; padding-top: 8px; font-size: 25px; }
.document h3 { margin: 26px 0 8px; font-size: 18px; }
.document p, .document li { color: var(--muted); }
.document li + li { margin-top: 8px; }
.notice { margin: 24px 0; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); background: var(--surface); }
.notice p { margin: 0; }
.document a { color: var(--brand); font-weight: 650; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c1514; --surface: #121e1c; --surface-soft: #192927; --text: #eef7f5;
    --muted: #9db0ac; --line: #2c403c; --brand: #55c7b8; --brand-strong: #78daca;
    --brand-soft: #173d38; --accent: #f1ac5f; --danger: #ff8a80; --shadow: 0 18px 50px rgba(0,0,0,.25);
  }
}
@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; gap: 52px; padding-top: 62px; }
  .phone-wrap { min-height: auto; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .feature { min-height: auto; }
  .privacy-band, .cta { grid-template-columns: 1fr; }
  .document-shell { grid-template-columns: 1fr; gap: 20px; }
  .document-nav { position: static; }
}
@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1120px); }
  .nav { min-height: 62px; }
  .brand { font-size: 14px; }
  .nav-links a { display: none; }
  .hero { padding: 48px 0 56px; }
  h1 { overflow-wrap: anywhere; font-size: 39px; }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
  .section { padding: 60px 0; }
  .privacy-band, .cta { padding: 24px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-row nav { margin-left: 0; }
}
