@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url('/fonts/plus-jakarta-sans-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'JBMono'; font-weight: 500; font-display: swap; src: url('/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'JBMono'; font-weight: 600; font-display: swap; src: url('/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: light dark;
  --bg: #fafaf7;
  --bg-2: #f3f0f8;
  --surface: #ffffff;
  --border: #e6e2ec;
  --text: #2e3133;
  --muted: #76757a;
  --faint: #a5a3a9;
  --accent: #a79ebe;
  --accent-soft: #dfd8f0;
  --accent-text: #5d5379;
  --primary: #2e3133;
  --on-primary: #fafaf7;
  --warn: #c48a3f;
  --ok: #5f9378;
  --shadow: 0 1px 2px rgba(46, 49, 51, 0.04), 0 12px 32px rgba(46, 49, 51, 0.08);
  --shadow-lg: 0 30px 80px rgba(46, 49, 51, 0.18);
  --radius: 22px;
  --max: 1160px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1b1d1f;
    --bg-2: #222528;
    --surface: #2a2d30;
    --border: #3a3e41;
    --text: #fafaf7;
    --muted: #a3a2a8;
    --faint: #6e6d73;
    --accent-soft: #3f3a4e;
    --accent-text: #dfd8f0;
    --primary: #dfd8f0;
    --on-primary: #2e3133;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 'Jakarta', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: var(--on-primary); padding: 10px 16px; border-radius: 12px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-soft); padding: 7px 14px; border-radius: 999px; }
.muted { color: var(--muted); }
.mono { font-family: 'JBMono', ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(135deg, #dfd8f0, #a79ebe); display: grid; place-items: center; flex-shrink: 0; }
.logo svg { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.95rem; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 16px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; transition: transform .12s ease, box-shadow .2s ease, background .2s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-small { height: 42px; padding: 0 18px; border-radius: 13px; font-size: 0.95rem; }
.btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto -10%; height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 70%), radial-gradient(closest-side at 80% 30%, color-mix(in srgb, #a79ebe 30%, transparent), transparent 70%); z-index: -1; filter: blur(10px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 { margin: 22px 0 22px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--text) 10%, #8d82ad 60%, var(--text) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; align-items: center; }
.store-badge { display: inline-flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-radius: 16px; background: var(--surface); border: 1px dashed var(--border); color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.store-badge svg { width: 22px; height: 22px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); }

/* phone mockup */
.stage { position: relative; display: flex; justify-content: center; }
.phone { width: 340px; max-width: 100%; aspect-ratio: 9 / 18.6; border-radius: 48px; background: var(--bg); border: 10px solid #1d2022; box-shadow: var(--shadow-lg); padding: 22px 16px; position: relative; overflow: hidden; }
@media (prefers-color-scheme: dark) { .phone { border-color: #0e0f10; } }
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 24px; border-radius: 14px; background: #1d2022; }
.p-head { margin-top: 26px; padding: 0 4px; }
.p-head small { color: var(--muted); font-size: 0.72rem; }
.p-head b { display: block; font-size: 1.3rem; letter-spacing: -0.03em; }
.p-search { margin: 12px 4px 10px; height: 36px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--faint); font-size: 0.75rem; }
.p-chips { display: flex; gap: 6px; padding: 0 4px 10px; overflow: hidden; }
.p-chip { flex-shrink: 0; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 0.72rem; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }
.p-chip.on { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.p-chip i { width: 7px; height: 7px; border-radius: 50%; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 12px; margin: 0 4px 8px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card-top { display: flex; align-items: center; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.card-top div { flex: 1; min-width: 0; }
.card-top b { display: block; font-size: 0.82rem; line-height: 1.2; }
.card-top small { display: block; color: var(--muted); font-size: 0.68rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.code { font-family: 'JBMono', ui-monospace, monospace; font-weight: 600; font-size: 1.45rem; letter-spacing: 0.06em; margin-top: 8px; line-height: 1; }
.ring { width: 30px; height: 30px; flex-shrink: 0; }
.ring circle { fill: none; stroke-width: 3.4; }
.ring .t { stroke: var(--border); }
.ring .b { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 75.4; animation: tick 30s linear infinite; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring.d2 .b { animation-delay: -11s; }
.ring.d3 .b { animation-delay: -22s; }
@keyframes tick { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 75.4; } }
@media (prefers-reduced-motion: reduce) { .ring .b { animation: none; stroke-dashoffset: 30; } .float { animation: none !important; } }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.64rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; float: right; margin-top: 10px; }
.p-tab { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; gap: 8px; }
.p-tab .bar { flex: 1; height: 46px; border-radius: 23px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; padding: 4px; gap: 4px; }
.p-tab .bar span { flex: 1; height: 100%; border-radius: 19px; }
.p-tab .bar span.on { flex: 1.5; background: var(--accent-soft); }
.p-tab .fab { width: 46px; height: 46px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-size: 1.5rem; font-weight: 600; }

.float { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 0.82rem; font-weight: 700; display: flex; align-items: center; gap: 10px; animation: bob 6s ease-in-out infinite; }
.float small { display: block; color: var(--muted); font-weight: 600; font-size: 0.72rem; }
.float .dot { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.float .dot svg { width: 18px; height: 18px; }
.f1 { top: 79%; left: -8%; }
.f2 { top: 9%; right: -10%; animation-delay: -3s; }
@media (max-width: 520px) { .f1 { left: 0; } .f2 { right: 0; } }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { margin: 18px 0 16px; }
.section-head .lead { margin: 0 auto; }

.marquee { padding: 28px 0 8px; }
.marquee p { text-align: center; color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-bottom: 16px; }
.apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.apps span { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-weight: 700; font-size: 0.9rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.feature .ic { width: 48px; height: 48px; border-radius: 15px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 18px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 0.98rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 40px; } .split.rev > :first-child { order: 0; } }
.split h2 { margin: 18px 0 18px; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ok); margin-top: 2px; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.alt { background: var(--bg-2); }

/* folders visual */
.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.folder { border-radius: 24px; padding: 20px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.folder .fi { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #2e3133; }
.folder .fi svg { width: 22px; height: 22px; }
.folder b { font-size: 1.15rem; letter-spacing: -0.02em; }
.folder small { color: var(--muted); font-weight: 600; }

/* security diagram */
.flow { display: grid; gap: 14px; }
.flow .step { display: flex; gap: 14px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; padding: 14px 16px; }
.flow .num { width: 32px; height: 32px; border-radius: 10px; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 800; flex-shrink: 0; }
.flow .step p { font-size: 0.95rem; color: var(--muted); }
.flow .step b { color: var(--text); }
.cipher { font-family: 'JBMono', monospace; font-size: 0.78rem; color: var(--faint); word-break: break-all; line-height: 1.5; background: var(--bg); border: 1px dashed var(--border); border-radius: 14px; padding: 12px 14px; }

/* extension mock */
.browser { border-radius: 20px; overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-lg); background: var(--surface); }
.browser .bar { height: 42px; background: var(--bg-2); display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--border); }
.browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.browser .bar .url { margin-left: 12px; flex: 1; height: 26px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; padding: 0 10px; }
.browser .bar .ext { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, #dfd8f0, #a79ebe); display: grid; place-items: center; }
.browser .body { position: relative; height: 340px; background: linear-gradient(180deg, var(--surface), var(--bg)); padding: 30px; }
.browser .login { max-width: 270px; }
.browser .login b { font-size: 1.05rem; }
.browser .login .field { height: 38px; border-radius: 10px; border: 1px solid var(--border); margin-top: 12px; background: var(--surface); display: flex; align-items: center; padding: 0 12px; font-family: 'JBMono', monospace; letter-spacing: 0.25em; }
.browser .popup { position: absolute; right: 18px; top: 10px; width: 250px; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 12px; }
.browser .popup .label { font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin: 4px 4px 8px; }
.browser .popup .card { margin: 0 0 6px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 900px; margin: 0 auto; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; }
.plan.pro { border: 2px solid var(--accent); position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 45%, var(--surface)), var(--surface) 40%); }
.plan .badge { position: absolute; top: -14px; left: 32px; background: var(--primary); color: var(--on-primary); font-size: 0.75rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; letter-spacing: 0.04em; }
.plan .price { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.04em; margin: 14px 0 4px; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--ok); margin-top: 3px; }
.plan .alts { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 0 24px; transition: border-color .2s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 700; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.5rem; font-weight: 500; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); }

/* final cta */
.final { text-align: center; border-radius: 36px; padding: 72px 28px; background: linear-gradient(135deg, #dfd8f0, #a79ebe); color: #2e3133; position: relative; overflow: hidden; }
.final h2 { color: #2e3133; }
.final p { color: #2e3133; opacity: 0.8; max-width: 560px; margin: 16px auto 30px; font-size: 1.15rem; }
.final .btn-primary { background: #2e3133; color: #fafaf7; }

/* footer */
footer { padding: 56px 0 48px; border-top: 1px solid var(--border); margin-top: 96px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
.foot h4 { margin: 0 0 14px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.foot a { display: block; text-decoration: none; color: var(--text); font-weight: 600; margin-bottom: 10px; font-size: 0.95rem; }
.foot a:hover { color: var(--accent-text); }
.legal { margin-top: 40px; color: var(--faint); font-size: 0.85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- document pages (privacy, terms, …) ---------- */
.doc { max-width: 780px; margin: 0 auto; padding: 64px 24px 24px; }
.doc header { margin-bottom: 40px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 18px 0 14px; }
.doc .updated { color: var(--muted); font-weight: 600; }
.doc h2 { font-size: 1.5rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.doc h3 { margin: 28px 0 10px; }
.doc p, .doc li { color: color-mix(in srgb, var(--text) 86%, var(--muted)); }
.doc p { margin: 0 0 14px; }
.doc ul { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }
.doc table { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 0.94rem; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.doc th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.callout { background: var(--accent-soft); color: var(--text); border-radius: 18px; padding: 18px 20px; margin: 22px 0; }
.callout p { margin: 0; color: var(--text); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 18px 22px; margin-bottom: 8px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 620px) { .toc ol { columns: 1; } }
.toc a { text-decoration: none; }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.center-page .big { width: 88px; height: 88px; border-radius: 30px; background: var(--accent-soft); display: grid; place-items: center; margin: 0 auto 26px; color: var(--accent-text); }
.center-page .big svg { width: 42px; height: 42px; }
.center-page p { color: var(--muted); max-width: 520px; margin: 14px auto 28px; }
