/* Aegis — vpnaegis.org, light theme */
:root {
    --bg: #ffffff;
    --bg-2: #fbf8f5;
    --bg-3: #f5f0ea;
    --ink: #17120e;
    --ink-2: #4a423b;
    --ink-3: #7a7068;
    --line: #efe8e1;
    --line-2: #e2d8ce;
    --acc: #ff7a2b;
    --acc-2: #ffae3b;
    --acc-ink: #b84a0e;
    --acc-soft: #fff2e8;
    --acc-glow: rgba(255, 122, 43, .22);
    --ok: #15964f;
    --ok-soft: #e9f7ef;
    --r-s: 12px;
    --r: 18px;
    --r-l: 28px;
    --sh-1: 0 1px 2px rgba(40, 24, 10, .05), 0 1px 3px rgba(40, 24, 10, .06);
    --sh-2: 0 18px 40px -18px rgba(60, 30, 10, .22);
    --sh-3: 0 50px 90px -30px rgba(150, 70, 20, .32), 0 24px 40px -24px rgba(40, 24, 10, .2);
    --ease: cubic-bezier(.2, .7, .2, 1);
    --wrap: 1160px;
    --hdr: 66px;
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
    font: 16px/1.6 var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -.025em; line-height: 1.12; }

/* ---------- Buttons ---------- */
.store-btn {
    display: inline-flex; align-items: center; gap: 11px;
    height: 56px; padding: 0 22px 0 18px; border-radius: 14px;
    background: #0d0b09; color: #fff;
    box-shadow: 0 14px 30px -14px rgba(13, 11, 9, .55);
    transition: background .2s var(--ease), transform .2s var(--ease);
}
.store-btn:hover { background: #2a2420; transform: translateY(-1px); }
.store-btn svg { width: 25px; height: 25px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.1; }
.store-btn small { font-size: 11px; opacity: .8; font-weight: 500; }
.store-btn b { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.store-btn.sm { height: 42px; padding: 0 15px 0 12px; border-radius: 11px; gap: 8px; box-shadow: none; }
.store-btn.sm svg { width: 19px; height: 19px; }
.store-btn.sm small { font-size: 9px; }
.store-btn.sm b { font-size: 14px; }

.btn-l {
    display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 22px;
    border-radius: 14px; border: 1px solid var(--line-2); background: #fff;
    font-weight: 600; font-size: 15.5px; color: var(--ink); box-shadow: var(--sh-1);
    transition: border-color .2s, background .2s;
}
.btn-l:hover { border-color: #d3c6b9; background: var(--bg-2); }
.btn-l svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.hdr {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr);
    background: rgba(255, 255, 255, .75);
    -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.hdr.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .92); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-d); font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.logo svg, .logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 2px; margin-left: 6px; }
.nav a { padding: 8px 12px; border-radius: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover { color: var(--ink); background: var(--bg-3); }
.hdr-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-3); font-size: 13px; font-weight: 600; }
.lang a { padding: 5px 9px; border-radius: 8px; color: var(--ink-3); }
.lang a[aria-current] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: calc(var(--hdr) + 64px) 0 72px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; z-index: -1; inset: -20% -10% auto auto; width: 900px; height: 900px;
    background: radial-gradient(closest-side, rgba(255, 174, 59, .26), rgba(255, 122, 43, .1) 55%, transparent 75%);
}
.hero::after {
    content: ""; position: absolute; z-index: -1; inset: 0;
    background-image: radial-gradient(rgba(120, 80, 40, .09) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
    font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.eyebrow i { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-ink); font-style: normal; }
.eyebrow i svg { width: 12px; height: 12px; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(38px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.035em; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--acc), #f59a1c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.note { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-family: var(--font-d); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.facts span { font-size: 13px; color: var(--ink-3); }

.hero-art { position: relative; height: 600px; }
.shot {
    position: absolute; width: 268px; aspect-ratio: 600 / 1298; border-radius: 30px; overflow: hidden;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-3);
}
.shot img { width: 100%; height: 100%; object-fit: cover; }
.hero-art .s1 { left: 50%; top: 0; transform: translateX(-78%) rotate(-3deg); z-index: 2; }
.hero-art .s2 { left: 50%; top: 46px; transform: translateX(-4%) rotate(4deg); z-index: 1; }
.chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
    padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .94);
    border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 13px; line-height: 1.3;
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.chip i { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.chip i svg { width: 18px; height: 18px; }
.chip b { display: block; font-size: 14px; }
.chip span { color: var(--ink-3); }
.chip.c1 { left: 0; bottom: 92px; }
.chip.c1 i { background: var(--ok-soft); color: var(--ok); }
.chip.c2 { right: -8px; top: -18px; }
.chip.c2 i { background: var(--acc-soft); color: var(--acc-ink); }

/* ---------- Sections ---------- */
.sec { padding: 104px 0; }
.sec.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-h { max-width: 720px; margin-bottom: 52px; }
.sec-h.c { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc-ink); }
.sec h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
.sec-h p { margin-top: 16px; font-size: 17.5px; color: var(--ink-2); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
    padding: 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
    box-shadow: var(--sh-1); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.ico {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px;
    background: linear-gradient(145deg, var(--acc-soft), #ffe6d2); color: var(--acc-ink);
    box-shadow: inset 0 0 0 1px rgba(255, 122, 43, .14);
}
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-2); }
.card code { font: 600 13.5px/1 ui-monospace, "SF Mono", Menlo, monospace; padding: 2px 6px; border-radius: 6px; background: var(--bg-3); }

/* split: text + screenshot */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev .split-art { order: -1; }
.split-art { position: relative; display: grid; place-items: center; padding: 30px 0; }
.split-art::before {
    content: ""; position: absolute; inset: 8% 10%; border-radius: 40px;
    background: radial-gradient(closest-side, var(--acc-glow), transparent);
}
.split-art .shot { position: relative; width: 300px; transform: rotate(-2deg); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-top: 30px; }
.checks li { list-style: none; display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.checks li::before {
    content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
    background: var(--ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315964f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.checks b { display: block; font-size: 15.5px; }
.checks span { font-size: 14.5px; color: var(--ink-2); }
.aside {
    margin-top: 28px; padding: 16px 18px; border-radius: var(--r-s); background: #fff; border: 1px solid var(--line);
    font-size: 14px; color: var(--ink-2); display: grid; grid-template-columns: 22px 1fr; gap: 10px;
}
.aside svg { width: 20px; height: 20px; color: var(--acc-ink); margin-top: 1px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.step::before {
    counter-increment: s; content: counter(s);
    display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 18px; border-radius: 12px;
    background: var(--ink); color: #fff; font-weight: 700; font-family: var(--font-d);
}
.step h3 { font-size: 18.5px; margin-bottom: 6px; }
.step p { font-size: 15px; color: var(--ink-2); }

/* gallery */
.gallery { display: flex; gap: 22px; justify-content: center; }
.gallery figure { width: 260px; flex: none; }
.gallery .shot { position: relative; width: 100%; box-shadow: var(--sh-2); }
.gallery figcaption { margin-top: 14px; text-align: center; font-size: 14.5px; color: var(--ink-2); }

/* invite */
.invite {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
    padding: 52px; border-radius: var(--r-l);
    background: linear-gradient(135deg, #fff6ee, #fff 55%), #fff; border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.invite h2 { font-size: clamp(28px, 3.4vw, 38px); }
.invite p { margin-top: 14px; color: var(--ink-2); font-size: 16.5px; }
.code-card { padding: 28px; border-radius: 20px; background: #fff; border: 1px dashed #f1b48d; text-align: center; }
.code-card small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.code-card b { display: block; margin: 8px 0 12px; font: 700 30px/1.1 ui-monospace, "SF Mono", Menlo, monospace; color: var(--acc-ink); letter-spacing: .04em; }
.code-card span { font-size: 13.5px; color: var(--ink-3); word-break: break-all; }
.badge7 { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 22px; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.badge7 b { font-size: 22px; color: var(--acc-2); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--r-s); background: #fff; border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--sh-1); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 20px; font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--bg-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a423b' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 12px no-repeat;
    transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 20px 18px; color: var(--ink-2); font-size: 15.5px; }
.faq .a p + p { margin-top: 8px; }
.faq .a a { color: var(--acc-ink); text-decoration: underline; text-underline-offset: 2px; }

/* other apps */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.app {
    display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center;
    padding: 22px; border-radius: var(--r); background: #fff; border: 1px solid var(--line);
    transition: border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.app:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.app img { width: 64px; height: 64px; border-radius: 15px; box-shadow: var(--sh-1); }
.app b { display: block; font-size: 17px; }
.app span { font-size: 14.5px; color: var(--ink-2); }
.app svg { width: 20px; height: 20px; color: var(--ink-3); }

/* final cta */
.final { text-align: center; padding: 64px 32px; border-radius: var(--r-l); position: relative; overflow: hidden; background: #17120e; color: #fff; }
.final::before {
    content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
    background: radial-gradient(closest-side, rgba(255, 122, 43, .45), transparent);
}
.final > * { position: relative; }
.final .mark { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 18px; box-shadow: 0 18px 40px -16px rgba(255, 122, 43, .55); }
.final h2 { font-size: clamp(28px, 3.6vw, 42px); }
.final p { margin: 14px auto 28px; max-width: 520px; color: rgba(255, 255, 255, .74); font-size: 17px; }
.final .store-btn { background: #fff; color: #0d0b09; }
.final .store-btn:hover { background: #f3ede7; }

/* footer */
.ftr { padding: 56px 0 40px; border-top: 1px solid var(--line); margin-top: 104px; font-size: 14.5px; color: var(--ink-2); }
.ftr-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.ftr p { margin-top: 12px; max-width: 320px; }
.ftr h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.ftr ul { list-style: none; display: grid; gap: 8px; }
.ftr ul a:hover { color: var(--ink); text-decoration: underline; }
.ftr-b { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }

/* reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .rv { opacity: 1; transform: none; transition: none; }
    .card, .app, .store-btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .nav { display: none; }
    .hero { padding-top: calc(var(--hdr) + 40px); }
    .hero-in, .split, .invite { grid-template-columns: 1fr; }
    .hero-art { height: 520px; max-width: 520px; width: 100%; margin: 0 auto; }
    .split.rev .split-art { order: 0; }
    .grid, .steps { grid-template-columns: 1fr 1fr; }
    .apps { grid-template-columns: 1fr; }
    .ftr-in { grid-template-columns: 1fr 1fr; }
    .ftr-in > div:first-child { grid-column: 1 / -1; }
    .gallery { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px 16px; margin: 0 -24px; }
    .gallery figure { scroll-snap-align: center; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .sec { padding: 72px 0; }
    .sec-h { margin-bottom: 36px; }
    .lead { font-size: 17px; }
    .hdr .store-btn.sm { display: none; }
    .cta-row { flex-direction: column; align-items: stretch; }
    .cta-row .store-btn, .cta-row .btn-l { justify-content: center; }
    .hero-art { height: 440px; }
    .shot { width: 200px; border-radius: 24px; }
    .hero-art .s1 { transform: translateX(-82%) rotate(-3deg); }
    .chip.c1 { bottom: 40px; left: -4px; }
    .chip.c2 { right: -4px; top: auto; bottom: 112px; }
    .facts { display: grid; grid-template-columns: 1fr 1fr; }
    .grid, .steps, .checks { grid-template-columns: 1fr; }
    .card, .step { padding: 22px; }
    .split-art .shot { width: 240px; }
    .invite { padding: 28px 20px; gap: 28px; }
    .code-card b { font-size: 24px; }
    .gallery { padding: 0 16px 16px; margin: 0 -16px; }
    .gallery figure { width: 220px; }
    .app { grid-template-columns: 52px 1fr; padding: 18px; }
    .app img { width: 52px; height: 52px; border-radius: 12px; }
    .app > svg { display: none; }
    .final { padding: 48px 20px; }
    .ftr { margin-top: 72px; }
    .ftr-in { grid-template-columns: 1fr; }
}
