@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/assets/fonts/inter-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #F7F6FC; --bg-2: #EFEDF9; --surface: #FFFFFF; --border: #E4E3EF;
  --text: #14142B; --muted: #585C7B; --faint: #8C8FAB;
  --accent: #5B3DF5; --accent-soft: rgba(109, 77, 255, .1);
  --grad: linear-gradient(135deg, #7C5CFF 0%, #4F7BFF 58%, #1FB6DA 100%);
  --grad-text: linear-gradient(135deg, #6D4DFF 0%, #4F7BFF 50%, #13A5CC 100%);
  --shadow: 0 1px 2px rgba(20,20,43,.05), 0 10px 30px rgba(40,30,110,.08);
  --radius: 18px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0D18; --bg-2: #121326; --surface: #16172A; --border: #262842;
    --text: #EEF0FF; --muted: #A3A7C7; --faint: #6E7291;
    --accent: #A393FF; --accent-soft: rgba(156, 135, 255, .14);
    --grad-text: linear-gradient(135deg, #B3A3FF 0%, #8FA8FF 50%, #6FE6F8 100%);
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 Inter, ui-sans-serif, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 99; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 14px rgba(109,77,255,.35); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, box-shadow .2s ease, filter .2s ease; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 10px 26px rgba(79,123,255,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(79,123,255,.45), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--text); background: var(--surface); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 11px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto -10%; height: 720px; z-index: -1;
  background: radial-gradient(600px 360px at 25% 20%, rgba(124,92,255,.22), transparent 70%), radial-gradient(560px 340px at 80% 10%, rgba(34,211,238,.18), transparent 70%); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--accent); background: var(--accent-soft); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; margin: 20px auto 18px; max-width: 900px; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 680px; margin: 0 auto 30px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 17px; height: 17px; color: #10B981; }
.shot { margin: 48px auto 0; max-width: 1040px; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 40px 90px rgba(40,30,110,.22), var(--shadow); }
.shot .bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.shot .bar b { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.shot .bar span { margin-left: 12px; font-size: 12.5px; color: var(--faint); background: var(--surface); border-radius: 7px; padding: 3px 12px; }

/* sections */
section { padding: 84px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin: 14px 0 12px; }
.sec-head p { color: var(--muted); font-size: 18px; margin: 0; }
.alt { background: var(--bg-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 16px; }

.feature { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.rev { grid-template-columns: 1.25fr 1fr; }
.feature.rev .f-text { order: 2; }
.f-text h3 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin: 12px 0 14px; }
.f-text p { color: var(--muted); }
.f-text ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.f-text li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.f-text li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236D4DFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; }
.f-img { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 8px 20px rgba(79,123,255,.3); }
.card .ic svg { width: 23px; height: 23px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; margin: 0; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .more { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 15px; }

.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 880px; margin: 0 auto; }
.langs span { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 15px; }
.langs span.on { color: #fff; background: var(--grad); border-color: transparent; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17.5px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

.final { text-align: center; border-radius: 28px; padding: 64px 24px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(500px 300px at 10% 0%, rgba(124,92,255,.75), transparent 70%), radial-gradient(520px 320px at 100% 100%, rgba(34,211,238,.55), transparent 70%), #10112A; }
.final h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-bottom: 12px; }
.final p { color: #C8CBE6; font-size: 18px; margin-bottom: 28px; }
.final .btn-primary { background: #fff; color: #14142B; box-shadow: 0 12px 30px rgba(0,0,0,.35); }

/* article pages */
.page { padding: 56px 0 80px; }
.crumbs { font-size: 14px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--faint); }
.page h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; margin-bottom: 16px; }
.page .intro { font-size: 20px; color: var(--muted); margin-bottom: 30px; }
.page h2 { font-size: 27px; font-weight: 800; margin: 44px 0 14px; }
.page h3 { font-size: 20px; margin: 26px 0 8px; }
.page p, .page li { color: var(--text); }
.page ul, .page ol { padding-left: 22px; }
.page li { margin: 6px 0; }
.page .figure { margin: 28px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.page .note { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.page .date { color: var(--faint); margin-bottom: 26px; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px 24px; margin: 36px 0; box-shadow: var(--shadow); }
.inline-cta b { font-size: 18px; }
.inline-cta span { display: block; color: var(--muted); font-size: 15px; }

/* footer */
.foot { border-top: 1px solid var(--border); padding: 44px 0 36px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { margin: 0 0 12px; font-size: 14px; color: var(--text); text-transform: uppercase; letter-spacing: .06em; }
.foot a { display: block; color: var(--muted); text-decoration: none; margin: 7px 0; }
.foot a:hover { color: var(--text); }
.foot .legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .steps, .grid3 { grid-template-columns: 1fr; }
  .feature, .feature.rev { grid-template-columns: 1fr; gap: 26px; margin-bottom: 64px; }
  .feature.rev .f-text { order: 0; }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* fixes */
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.shot .bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 480px) {
  .nav .btn-sm svg { display: none; }
  .nav .btn-sm { padding: 8px 12px; font-size: 13.5px; }
  .brand { font-size: 17px; }
}
