:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0b1220;
  --ink-2: #1c2536;
  --muted: #5b6475;
  --line: #e3e6ec;
  --accent: #3a5bff;
  --accent-ink: #2440d8;
  --pulse: #19d3a2;
  --dark: #0a0f1c;
  --dark-2: #121a2e;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --max: 1160px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 28, .82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.header .container { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .04em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, .72); font-size: 15px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.nav a:hover { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.lang {
  display: inline-flex; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 3px;
  font-family: var(--mono); font-size: 12px; font-weight: 600;
}
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; color: rgba(255, 255, 255, .6); }
.lang span { background: #fff; color: var(--ink); }
.lang a:hover { color: #fff; text-decoration: none; }
.menu-btn {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 0; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
}
.menu-btn svg { margin: auto; }

@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 2px;
    padding: 12px 16px 20px; background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: none;
  }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .header.open .nav { display: flex; }
  .header .lang { margin-left: auto; }
  .menu-btn { order: 3; margin-left: 0; }
  .container { padding: 0 16px; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(58, 91, 255, .35), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(25, 211, 162, .18), transparent 60%),
    var(--dark);
  padding: 96px 0 0;
  margin-top: -68px; padding-top: calc(96px + 68px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pulse); margin-bottom: 22px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pulse);
  box-shadow: 0 0 0 0 rgba(25, 211, 162, .6); animation: beat 2s infinite;
}
@keyframes beat {
  0% { box-shadow: 0 0 0 0 rgba(25, 211, 162, .55); }
  70% { box-shadow: 0 0 0 10px rgba(25, 211, 162, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 211, 162, 0); }
}
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(90deg, #8fa2ff, var(--pulse)); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255, 255, 255, .72); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pulse-line { margin-top: 64px; height: 120px; width: 100%; }
.pulse-line path {
  fill: none; stroke: url(#pl-grad); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 3.2s ease-out .2s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.page-hero { padding-bottom: 72px; }
.page-hero h1 { max-width: 20ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px;
  border-radius: 999px; font-weight: 700; font-size: 16px; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(58, 91, 255, .35); }
.btn-primary:hover { background: #4b6aff; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .2); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn svg { width: 18px; height: 18px; }

/* Sections */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 14px; display: block; }

.facts { padding: 0; margin-top: -1px; background: var(--dark); color: #fff; }
.facts-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.fact { padding: 28px 24px 36px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .08); }
.fact b { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.fact span { color: rgba(255, 255, 255, .6); font-size: 14.5px; }
@media (max-width: 860px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px 26px 0; }
  .fact + .fact { padding-left: 16px; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
}

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.split .prose p { color: var(--ink-2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); border-color: #cfd5ff; box-shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 18px 40px rgba(11, 18, 32, .09); }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.card .code { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 18px; display: block; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(58, 91, 255, .12), rgba(25, 211, 162, .12)); color: var(--accent-ink);
}
.icon svg { width: 24px; height: 24px; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.card li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--pulse); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-size: 13px; color: var(--accent-ink); display: block; margin-bottom: 10px;
}
.step::after { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.step p { color: var(--muted); font-size: 15.5px; margin: 0; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cta {
  border-radius: 28px; padding: 56px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(58, 91, 255, .5), transparent 60%), var(--dark);
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta h2 { margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .7); max-width: 52ch; }
@media (max-width: 620px) { .cta { padding: 32px 24px; border-radius: 22px; } }

/* Contacts */
.contact-card { display: flex; flex-direction: column; gap: 4px; }
.contact-card .label { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card .value { font-size: 1.2rem; font-weight: 700; color: var(--ink); word-break: break-word; }
.contact-card a.value:hover { color: var(--accent-ink); }
.contact-card .note { color: var(--muted); font-size: 14.5px; margin-top: 8px; }

.req { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.req th, .req td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.req th { width: 38%; color: var(--muted); font-weight: 600; padding-right: 24px; }
.req td { color: var(--ink); font-weight: 600; }
.req td .mono { font-family: var(--mono); font-weight: 500; }
@media (max-width: 620px) {
  .req th, .req td { display: block; width: 100%; padding: 0; border: 0; }
  .req th { padding-top: 14px; font-size: 13.5px; }
  .req td { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
}

/* Legal text */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* Footer */
.footer { background: var(--dark); color: rgba(255, 255, 255, .62); padding: 56px 0 32px; font-size: 14.5px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .brand { margin-bottom: 14px; }
.footer p { margin: 0 0 4px; max-width: 46ch; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-links h4 { color: #fff; font-size: 13px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; font-weight: 600; }
.footer-links a { display: block; color: rgba(255, 255, 255, .62); padding: 3px 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: 13.5px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse-line path { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
