:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --text: #0f172a;
  --muted: #5b6474;
  --line: #e3e6eb;
  --line-strong: #cfd4dc;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eaf0fe;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
  --max: 1120px;
  --r: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.wrap { width: min(var(--max), 100% - 3rem); margin-inline: auto; }
h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
p { max-width: 60ch; }
.mono { font-family: var(--mono); font-size: .78rem; letter-spacing: .02em; color: var(--muted); }

/* Header */
header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.logo svg { width: 28px; height: 28px; }
.menu { display: flex; gap: .25rem; align-items: center; }
.menu a { color: var(--muted); font-size: .9rem; font-weight: 500; padding: .45rem .75rem; border-radius: 6px; }
.menu a:hover { color: var(--text); background: var(--bg-alt); }
.menu a.btn { margin-left: .75rem; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; color: var(--text); cursor: pointer; }
.burger svg { width: 20px; height: 20px; margin: auto; }

.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.1rem; border-radius: 8px; font-weight: 500; font-size: .9rem; background: var(--accent); color: #fff !important; border: 1px solid var(--accent); transition: background .15s; }
.btn:hover { background: var(--accent-hover) !important; border-color: var(--accent-hover); }
.btn.secondary { background: var(--bg); color: var(--text) !important; border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--bg-alt) !important; border-color: var(--line-strong); }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding: 5.5rem 0 5rem; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 24px 24px; background-position: center top; }

.pill { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--mono); font-size: .75rem; color: var(--accent); background: var(--accent-soft); border: 1px solid #cddcfb; padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1.25rem; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); max-width: 16ch; margin-bottom: 1.25rem; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 52ch; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Device mockup */
.mock { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 430; margin-left: auto; font-family: var(--sans); }
.browser { position: absolute; top: 0; right: 0; width: 77%; height: 74%; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 16px 40px -20px rgba(15,23,42,.25); overflow: hidden; display: flex; flex-direction: column; }
.bbar { display: flex; align-items: center; gap: 5px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.bbar span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.bbar i { margin-left: 8px; flex: 1; font-style: normal; font-family: var(--mono); font-size: 9px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 2px 8px; }
.bbody { display: flex; flex: 1; min-height: 0; }
.bside { width: 18%; border-right: 1px solid var(--line); padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.bside b { display: block; height: 7px; border-radius: 3px; background: var(--line); }
.bside b.on { background: var(--accent); opacity: .85; }
.bmain { flex: 1; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bhead { display: flex; justify-content: space-between; align-items: center; }
.bhead b { width: 34%; height: 9px; border-radius: 3px; background: var(--text); opacity: .8; }
.bhead u { width: 16%; height: 14px; border-radius: 4px; background: var(--accent); }
.brow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bcard { border: 1px solid var(--line); border-radius: 6px; padding: 7px 9px; }
.bcard small { display: block; font-size: 8px; color: var(--muted); }
.bcard b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -.02em; margin-top: 1px; }
.bchart { flex: 1; display: flex; align-items: flex-end; gap: 5px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; min-height: 40px; }
.bchart i { flex: 1; background: var(--accent); opacity: .7; border-radius: 2px 2px 0 0; }
.bchart i:nth-child(odd) { opacity: .35; }
.btable { display: grid; gap: 6px; }
.btable s { display: block; height: 7px; border-radius: 3px; background: var(--line); text-decoration: none; }
.btable s:nth-child(2) { width: 85%; } .btable s:nth-child(3) { width: 70%; }
.phone { position: absolute; left: 0; bottom: 0; width: 36%; aspect-ratio: 1 / 2.05; background: #0f172a; border-radius: 28px; padding: 6px; box-shadow: 0 24px 50px -20px rgba(15,23,42,.45); }
.notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 30%; height: 12px; background: #0f172a; border-radius: 999px; z-index: 2; }
.screen { position: relative; width: 100%; height: 100%; background: var(--bg); border-radius: 22px; overflow: hidden; padding: 30px 14px 0; display: flex; flex-direction: column; gap: 8px; }
.ptop { display: flex; justify-content: space-between; font-size: 8px; font-weight: 600; color: var(--text); }
.phead { font-size: 13px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.pstat { border: 1px solid #cddcfb; border-radius: 8px; padding: 8px 10px; background: var(--accent-soft); }
.pstat small { display: block; font-size: 8px; color: var(--muted); }
.pstat b { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.pstat em { font-style: normal; font-size: 8px; font-weight: 600; color: #15803d; margin-left: 6px; }
.pbars { display: flex; align-items: flex-end; gap: 4px; height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.pbars i { flex: 1; background: var(--accent); border-radius: 2px 2px 0 0; opacity: .75; }
.pbars i:nth-child(even) { opacity: .4; }
.plist { display: grid; gap: 6px; }
.prow { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; }
.pic { width: 18px; height: 18px; border-radius: 6px; background: var(--accent-soft); flex: none; }
.prow > div { flex: 1; display: grid; gap: 4px; }
.prow b { display: block; height: 6px; width: 70%; border-radius: 3px; background: var(--text); opacity: .75; }
.prow small { display: block; height: 5px; width: 45%; border-radius: 3px; background: var(--line-strong); }
.prow em { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.ptab { margin-top: auto; display: flex; justify-content: space-around; padding: 8px 0 10px; border-top: 1px solid var(--line); }
.ptab i { width: 14px; height: 14px; border-radius: 4px; background: var(--line); }
.ptab i.on { background: var(--accent); }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: -2.25rem; background: var(--bg); position: relative; }
.facts div { padding: 1.1rem 1.4rem; border-right: 1px solid var(--line); }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; }

/* Sections */
section { padding: 5rem 0; }
.head { max-width: 62ch; margin-bottom: 2.5rem; }
.head .mono { display: block; margin-bottom: .75rem; color: var(--accent); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.head p { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.card { border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; background: var(--bg); transition: border-color .15s; }
.card:hover { border-color: var(--line-strong); }
.card .ic { width: 38px; height: 38px; border-radius: 8px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 1rem; }
.card .ic svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tags span { font-family: var(--mono); font-size: .72rem; padding: .2rem .5rem; border-radius: 5px; background: var(--bg-alt); border: 1px solid var(--line); color: var(--muted); }

.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; }
.step .mono { color: var(--accent); display: block; margin-bottom: .6rem; }
.step h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .92rem; }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: start; }
.about p { color: var(--muted); }
.about p + p { margin-top: 1rem; }
.about .en { margin-top: 1.5rem; font-size: .9rem; }
.kv { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kv div { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.kv div:first-child { border-top: 0; }
.kv dt { font-family: var(--mono); font-size: .75rem; color: var(--muted); padding-top: .15rem; }
.kv dd { font-weight: 500; }
.kv dd svg { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: .3rem; stroke: var(--accent); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Contact */
.contact { border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.75rem, 4vw, 3rem); display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; background: var(--bg-alt); }
.contact h2 { margin-bottom: .5rem; }
.contact p { color: var(--muted); }
.clist { display: grid; gap: .75rem; }
.clist a { display: flex; align-items: center; gap: .9rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1.1rem; transition: border-color .15s; }
.clist a:hover { border-color: var(--accent); }
.clist svg { width: 20px; height: 20px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.clist small { display: block; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.clist b { font-weight: 600; font-size: 1.02rem; }

footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: .85rem; color: var(--muted); }
footer .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; }
footer a:hover { color: var(--text); }
footer .legal { margin-top: .75rem; font-family: var(--mono); font-size: .75rem; line-height: 1.8; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.5rem; }
  .mock { margin-left: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
  .facts div:nth-child(2) { border-right: 0; }
  .facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 2rem; }
  .contact { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 640px) {
  header { position: relative; }
  .menu { position: absolute; top: 64px; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem 1.5rem 1.25rem; display: none; }
  .menu.open { display: flex; }
  .menu a { padding: .8rem 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .menu a.btn { margin: 1rem 0 0; justify-content: center; border-radius: 8px; border-bottom: 1px solid var(--accent); }
  .burger { display: inline-flex; }
  .hero { padding: 3.5rem 0 3rem; }
  section { padding: 3.5rem 0; }
  .grid, .steps, .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0; border-bottom: 1px solid var(--line); }
  .facts div:last-child { border-bottom: 0; }
  .kv div { grid-template-columns: 1fr; gap: .15rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Language switch */
.lang { font-family: var(--mono); font-size: .75rem !important; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: .35rem .55rem !important; margin-left: .25rem; }
.lang:hover { border-color: var(--line-strong); }

/* Legal / prose pages */
.prose { max-width: 72ch; padding: 4rem 0 5rem; }
.prose h1 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin-bottom: .5rem; max-width: none; }
.prose .meta { margin-bottom: 2.5rem; }
.prose h2 { font-size: 1.3rem; margin: 2.25rem 0 .75rem; }
.prose h3 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose p, .prose li { color: var(--text); max-width: none; }
.prose p + p { margin-top: .85rem; }
.prose ul { margin: .5rem 0 .5rem 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-alt); font-weight: 600; font-size: .85rem; }
.prose .table-wrap { overflow-x: auto; }
footer .legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
