/* Local Backup — landing page prototype */
:root {
  --brand: #2D8CF0;
  --brand-deep: #0050B3;
  --grad: linear-gradient(135deg, #2D8CF0, #0050B3);
  --bg: #f6f8fc;
  --bg-2: #ffffff;
  --bg-3: #eef3fb;
  --fg: #0b1220;
  --fg-2: #3b4559;
  --fg-3: #6b7589;
  --line: #dbe3f0;
  --card: #ffffff;
  --shadow: 0 1px 2px rgba(10, 20, 40, .06), 0 12px 40px -12px rgba(10, 30, 70, .18);
  --device: #ffffff;
  --device-edge: #cfd8e6;
  --screen: #f3f6fb;
  --screen-bar: #e6ecf6;
  --row: #ffffff;
  --row-text: #c9d3e3;
  --track: #e3e9f3;
  --ok: #22c55e;
  --warn: #f59e0b;
  --radius: 18px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --bg-2: #0f172a; --bg-3: #111c33;
    --fg: #eef2f8; --fg-2: #b7c1d3; --fg-3: #8290a8;
    --line: #223049; --card: #121c30;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 50px -16px rgba(0,0,0,.6);
    --device: #18233a; --device-edge: #2d3c5a; --screen: #0e1627; --screen-bar: #15203a;
    --row: #15203a; --row-text: #3a4a68; --track: #223049;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-2: #0f172a; --bg-3: #111c33;
  --fg: #eef2f8; --fg-2: #b7c1d3; --fg-3: #8290a8;
  --line: #223049; --card: #121c30;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 16px 50px -16px rgba(0,0,0,.6);
  --device: #18233a; --device-edge: #2d3c5a; --screen: #0e1627; --screen-bar: #15203a;
  --row: #15203a; --row-text: #3a4a68; --track: #223049;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--fg); background: var(--bg);
  line-height: 1.55; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.12; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand-deep); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- progress bar (scroll driven) ---------- */
.progress {
  position: fixed; inset: 0 auto auto 0; height: 3px; width: 100%; z-index: 60;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); transform: none; }
  @keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.brand img { border-radius: 9px; box-shadow: 0 2px 8px rgba(0,80,179,.25); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--fg-2); font-weight: 500; font-size: .95rem; transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.active { background: var(--bg-3); color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { border: 1px solid var(--line); background: var(--bg-2); color: var(--fg-2); width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
}
.menu-btn { display: none; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--bg-2); border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 8px 16px 16px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 12px 8px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav.open .mobile-menu { display: flex; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: 1rem; border: 1px solid transparent;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, background .2s; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(0,80,179,.55); }
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(0,80,179,.6); }
.btn-ghost { background: var(--bg-2); border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 9px 14px; font-size: .9rem; border-radius: 10px; }
.btn[disabled] { cursor: default; opacity: .7; transform: none; box-shadow: none; }
.btn.done, .btn.done[disabled] { opacity: 1; background: color-mix(in srgb, var(--ok) 16%, var(--bg-2)); color: #15803d; border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
:root[data-theme="dark"] .btn.done { color: #4ade80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.done { color: #4ade80; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; min-height: calc(100svh - 64px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.b1 { width: 520px; height: 520px; background: #2D8CF0; top: -160px; right: -80px; animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 420px; height: 420px; background: #0050B3; bottom: -180px; left: -120px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.b3 { width: 280px; height: 280px; background: #7cc4ff; top: 40%; left: 45%; opacity: .35; animation: drift 26s ease-in-out infinite alternate; }
:root[data-theme="dark"] .blob, :root:not([data-theme="light"]) .blob { opacity: .28; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .blob { opacity: .35; } }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.12); } }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .35;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--fg-2); background: var(--bg-2); border: 1px solid var(--line); padding: 6px 12px 6px 8px; border-radius: 999px; margin-bottom: 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); margin-bottom: 20px; }
.hero h1 .line { display: block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--fg-2); max-width: 54ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-points li { display: flex; align-items: center; gap: 10px; color: var(--fg-2); font-size: .95rem; padding: 4px 0; }
.hero-points svg { width: 18px; height: 18px; stroke: var(--brand); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-art { position: relative; }
.hero-svg { width: 100%; height: auto; overflow: visible; }
.svg-text { font: 600 9px var(--font); fill: var(--fg); }
.svg-text-light { fill: #fff; }
.svg-label { font: 600 13px var(--font); fill: var(--fg-3); letter-spacing: .02em; }
.pill-online { fill: color-mix(in srgb, var(--ok) 15%, var(--screen)); }
.pill-verified { fill: var(--ok); }
.tile.t1 { fill: #7cc4ff; } .tile.t2 { fill: #2D8CF0; } .tile.t3 { fill: #0050B3; } .tile.t4 { fill: #8764b8; } .tile.t5 { fill: #038387; } .tile.t6 { fill: #ff9a5c; }
.usage { transform-origin: left center; animation: fillup 2.6s var(--ease) both; }
.usage.u1 { fill: #2D8CF0; --w: .62; animation-delay: .4s; }
.usage.u2 { fill: #8764b8; --w: .31; animation-delay: .6s; }
.usage.u3 { fill: #038387; --w: .47; animation-delay: .8s; }
.usage.u-disk { fill: var(--brand); --w: .55; animation-delay: 1s; }
@keyframes fillup { from { transform: scaleX(0); } to { transform: scaleX(var(--w)); } }
.float-a { animation: floaty 6s ease-in-out infinite; }
.float-b { animation: floaty 7s ease-in-out infinite reverse; }
.float-c { animation: floaty 8s ease-in-out infinite; animation-delay: -2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.link-path { animation: dash 2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.link-glow { stroke-dasharray: 90 400; animation: glowrun 3s linear infinite; }
@keyframes glowrun { from { stroke-dashoffset: 490; } to { stroke-dashoffset: 0; } }
.file { offset-path: path("M160 230 C 240 230, 270 160, 352 160"); offset-rotate: 0deg; offset-distance: 0%; opacity: 0; animation: fly 4.8s var(--ease) infinite; transform: translate(-17px,-13px); }
.file.f1 { animation-delay: 0s; } .file.f2 { animation-delay: 1.2s; } .file.f3 { animation-delay: 2.4s; } .file.f4 { animation-delay: 3.6s; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 72% { opacity: 1; } 85% { offset-distance: 100%; opacity: 0; } 100% { offset-distance: 100%; opacity: 0; } }
.verified { opacity: 0; animation: popin 4.8s var(--ease) infinite; animation-delay: 3.9s; transform-origin: 508px 127px; }
@keyframes popin { 0% { opacity: 0; transform: scale(.8); } 6% { opacity: 1; transform: scale(1.05); } 10% { transform: scale(1); } 40% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
.disk-led { animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.gallery .tile { animation: shimmer 4.8s ease-in-out infinite; }
.gallery .tile:nth-child(2n) { animation-delay: 1.2s; }
.gallery .tile:nth-child(3n) { animation-delay: 2.4s; }
@keyframes shimmer { 0%,100% { opacity: 1; } 50% { opacity: .55; } }
.scroll-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid var(--line); border-radius: 14px; display: grid; justify-content: center; padding-top: 6px; }
.scroll-hint span { width: 4px; height: 8px; background: var(--brand); border-radius: 2px; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- why ---------- */
.page-top { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.why { padding: 60px 0 70px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.why-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.why-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
.why-icon svg { width: 22px; height: 22px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { color: var(--fg-2); font-size: .97rem; }
.why-card.problem .why-icon { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.answer { display: flex; align-items: center; gap: 22px; margin-top: 22px; padding: 28px 30px; border-radius: var(--radius); background: var(--fg); color: var(--bg); position: relative; overflow: hidden; }
.answer::after { content: ""; position: absolute; width: 320px; height: 320px; right: -100px; top: -140px; border-radius: 50%; background: var(--grad); opacity: .35; filter: blur(50px); }
.answer img { border-radius: 14px; flex: none; position: relative; }
.answer h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--bg); position: relative; }
.answer p { color: color-mix(in srgb, var(--bg) 80%, transparent); position: relative; }

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.section-head { max-width: 720px; margin-bottom: 44px; }
.kicker { color: var(--brand); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; margin-bottom: 12px; }
.section-head h2, .security h2, .limits h2, .cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.sub { color: var(--fg-2); font-size: 1.08rem; margin-top: 14px; }

/* ---------- how it works ---------- */
.how { padding: 70px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.how-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.how-stage { position: sticky; top: 96px; height: min(560px, calc(100vh - 140px)); display: grid; }
.stage-card { grid-area: 1 / 1; display: grid; place-items: center; opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.how-stage[data-active="1"] [data-stage="1"], .how-stage[data-active="2"] [data-stage="2"], .how-stage[data-active="3"] [data-stage="3"] { opacity: 1; transform: none; }
.how-steps { display: grid; gap: 28px; padding-block: 40px 120px; }
.how-step { position: relative; padding: 26px 26px 26px 76px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); transition: border-color .4s, box-shadow .4s, opacity .4s; opacity: .55; min-height: 42vh; display: flex; flex-direction: column; justify-content: center; }
.how-step.active { opacity: 1; border-color: var(--brand); box-shadow: var(--shadow); }
.how-step .num { position: absolute; left: 24px; top: 26px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bg-3); color: var(--fg-2); transition: background .3s, color .3s; }
.how-step.active .num { background: var(--grad); color: #fff; }
.how-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.how-step p { color: var(--fg-2); }
.mini-list { margin-top: 14px; display: grid; gap: 6px; }
.mini-list li { position: relative; padding-left: 20px; font-size: .93rem; color: var(--fg-2); }
.mini-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--brand); }

/* window mock */
.win { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.win.small { width: 240px; }
.win-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--screen-bar); font-size: .8rem; font-weight: 600; color: var(--fg-2); border-bottom: 1px solid var(--line); }
.win-bar img { border-radius: 4px; }
.win-body { padding: 18px; }
.win-body.center { display: grid; justify-items: center; gap: 8px; }
.steps-mini { display: flex; gap: 6px; margin-bottom: 14px; }
.steps-mini span { flex: 1; text-align: center; font-size: .72rem; font-weight: 600; padding: 6px; border-radius: 8px; background: var(--bg-3); color: var(--fg-3); }
.steps-mini .done { color: var(--ok); } .steps-mini .active { background: var(--grad); color: #fff; }
.acct-list { display: grid; gap: 8px; margin-bottom: 14px; }
.acct { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.acct b { display: block; font-size: .9rem; } .acct small { color: var(--fg-3); font-size: .74rem; }
.acct .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.acct.add { border-style: dashed; } .acct .plus { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--brand); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.status-row { display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bg-3); color: var(--fg-3); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.online { background: color-mix(in srgb, var(--ok) 15%, transparent); color: #15803d; }
:root[data-theme="dark"] .pill.online { color: #4ade80; }
.pill.offline { color: var(--warn); }

/* pairing scene */
.pair-scene { display: flex; align-items: center; gap: 28px; }
.qr { width: 120px; height: 120px; border-radius: 10px; background: #fff; padding: 6px; outline: 1px solid var(--line); }
.qr img { width: 100%; height: 100%; }
.code-label { font-size: .72rem; color: var(--fg-3); }
.code { display: flex; gap: 4px; align-items: center; }
.code span { width: 20px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: var(--bg-3); font-weight: 800; font-family: "Cascadia Mono", Consolas, ui-monospace, monospace; }
.code em { width: 8px; }
.phone-mock { width: 150px; aspect-ratio: 9 / 18.5; border-radius: 22px; background: var(--device); border: 2px solid var(--device-edge); padding: 10px; box-shadow: var(--shadow); }
.phone-mock.big { width: 210px; }
.phone-screen { height: 100%; border-radius: 14px; background: var(--screen); position: relative; overflow: hidden; display: flex; flex-direction: column; }
.ph-top { display: flex; align-items: center; gap: 6px; padding: 10px; font-size: .68rem; font-weight: 700; }
.ph-top em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--fg-3); font-size: .62rem; }
.ph-top img { border-radius: 4px; }
.ph-state { position: absolute; inset: 36px 0 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 12px; text-align: center; font-size: .7rem; opacity: 0; transition: opacity .4s; }
.ph-state p { color: var(--fg-2); }
.pair-scene[data-phase="scan"] .scan, .pair-scene[data-phase="confirm"] .confirm, .pair-scene[data-phase="code"] .code, .pair-scene[data-phase="done"] .done { opacity: 1; }
.ph-state.code { display: grid; }
.viewfinder { width: 80px; height: 80px; border: 2px dashed var(--brand); border-radius: 10px; position: relative; overflow: hidden; }
.viewfinder span { position: absolute; left: 0; right: 0; height: 2px; background: var(--brand); box-shadow: 0 0 10px var(--brand); animation: scanline 1.6s ease-in-out infinite; }
@keyframes scanline { 0% { top: 0; } 50% { top: calc(100% - 2px); } 100% { top: 0; } }
.ph-state .q { font-weight: 600; color: var(--fg); }
.ph-btn { background: var(--grad); color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; }
.digits { display: flex; gap: 6px; } .digits b { padding: 6px 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; font-family: ui-monospace, monospace; letter-spacing: .1em; }
.check { width: 36px; height: 36px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-weight: 800; animation: popcheck .5s var(--ease) both; }
@keyframes popcheck { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* upload scene */
.upload { margin: 8px 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.upload-file { display: flex; align-items: center; gap: 8px; font-size: .68rem; }
.upload-file b { display: block; } .upload-file small { color: var(--fg-3); }
.thumb { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #7cc4ff, #8764b8); }
.bar { height: 6px; border-radius: 3px; background: var(--track); margin: 10px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 3px; }
.how-stage[data-active="3"] .bar i { animation: upbar 5s var(--ease) infinite; }
.upload-states { position: relative; height: 16px; font-size: .68rem; font-weight: 600; }
.upload-states .s { position: absolute; left: 0; opacity: 0; }
.upload-states .s3 { color: var(--ok); }
.how-stage[data-active="3"] .s1 { animation: st1 5s infinite; }
.how-stage[data-active="3"] .s2 { animation: st2 5s infinite; }
.how-stage[data-active="3"] .s3 { animation: st3 5s infinite; }
@keyframes upbar { 0% { width: 0; } 55% { width: 100%; } 100% { width: 100%; } }
@keyframes st1 { 0%,50% { opacity: 1; } 55%,100% { opacity: 0; } }
@keyframes st2 { 0%,55% { opacity: 0; } 58%,72% { opacity: 1; } 76%,100% { opacity: 0; } }
@keyframes st3 { 0%,76% { opacity: 0; } 80%,100% { opacity: 1; } }
.ph-note { margin: 0 10px; font-size: .62rem; color: var(--fg-3); text-align: center; opacity: 0; }
.how-stage[data-active="3"] .ph-note { animation: st3 5s infinite; }

/* ---------- features ---------- */
.features { padding: 80px 0; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--brand); }
.f-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--bg-3); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.f-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature p { color: var(--fg-2); font-size: .92rem; }

/* ---------- use cases ---------- */
.uses { padding: 80px 0 0; }
.use-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.use { display: flex; gap: 18px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s; }
.use:hover { transform: translateY(-4px); border-color: var(--brand); }
.use-icon { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.use-icon svg { width: 24px; height: 24px; stroke: #fff; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.use h3 { font-size: 1.15rem; margin-bottom: 8px; }
.use p { color: var(--fg-2); font-size: .95rem; }

/* ---------- security ---------- */
.security { padding: 80px 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.security-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.sec-list { display: grid; gap: 12px; margin-top: 24px; }
.sec-list li { padding-left: 28px; position: relative; color: var(--fg-2); font-size: .97rem; }
.sec-list li::before { content: ""; position: absolute; left: 0; top: .25em; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); }
.sec-list li::after { content: ""; position: absolute; left: 4px; top: calc(.25em + 3px); width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.sec-list b { color: var(--fg); }
.honest { margin-top: 22px; padding: 14px 16px; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); border-radius: 0 10px 10px 0; color: var(--fg-2); font-size: .93rem; }
.sec-diagram { position: relative; display: grid; gap: 10px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.sec-node { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg-2); }
.sec-node span { font-weight: 700; } .sec-node small { color: var(--fg-3); width: 100%; font-size: .78rem; }
.sec-node.host { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg-2)); }
.sec-node.host img { border-radius: 7px; }
.sec-gate { width: 100%; margin-top: 6px; padding: 8px 12px; border-radius: 8px; background: var(--grad); color: #fff; display: flex; justify-content: space-between; align-items: center; }
.sec-gate b { font-size: .85rem; } .sec-gate small { color: #e6f0ff; width: auto; }
.sec-route { position: relative; height: 44px; margin-inline: 24px; border-left: 2px dashed var(--line); }
.sec-route .lbl { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--fg-3); font-weight: 600; white-space: nowrap; }
.sec-route.internet { border-color: var(--brand); }
.sec-route .pkt { position: absolute; left: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pkt 2.2s linear infinite; }
.sec-route .pkt.d2 { animation-delay: 1.1s; }
@keyframes pkt { from { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 4px); opacity: 0; } }
.sec-route.local { border-color: var(--ok); }
.sec-blocked { position: absolute; right: 22px; top: 112px; transform: rotate(-6deg); border: 2px solid #c42b1c; color: #c42b1c; font-weight: 800; font-size: .72rem; padding: 6px 10px; border-radius: 8px; background: var(--card); letter-spacing: .04em; text-transform: uppercase; }
.sec-blocked span { font-size: 1rem; }

/* ---------- limits ---------- */
.limits { padding: 0 0 80px; }
.limits-card { display: grid; grid-template-columns: .8fr 1.4fr; gap: 40px; padding: 40px; border-radius: 24px; background: var(--fg); color: var(--bg); position: relative; overflow: hidden; }
.limits-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -120px; top: -140px; border-radius: 50%; background: var(--grad); opacity: .35; filter: blur(50px); }
.limits-card .kicker { color: #7cc4ff; }
.limits-card h2 { color: var(--bg); }
.limits-list { display: grid; gap: 14px; position: relative; }
.limits-list li { padding-left: 26px; position: relative; color: color-mix(in srgb, var(--bg) 78%, transparent); font-size: .97rem; }
.limits-list li::before { content: "—"; position: absolute; left: 0; color: #7cc4ff; font-weight: 700; }
.limits-list b { color: var(--bg); }

/* ---------- faq ---------- */
.faq { padding: 0 0 80px; }
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; }
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; }
summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--fg-3); border-bottom: 2px solid var(--fg-3); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { padding: 0 18px 18px; color: var(--fg-2); }

/* ---------- cta ---------- */
.cta { padding: 0 0 80px; }
.cta-card { text-align: center; padding: 56px 24px; border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-card::before { content: ""; position: absolute; inset: -1px; background: radial-gradient(600px 240px at 50% -40px, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%); pointer-events: none; }
.cta-logo { margin: 0 auto 18px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(0,80,179,.6); animation: floaty 6s ease-in-out infinite; }
.cta-card p { color: var(--fg-2); margin-top: 12px; }
.notify-form { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; position: relative; }
.notify-form input { width: min(360px, 100%); padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font: inherit; }
.notify-form input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent); }
.form-note { min-height: 1.4em; margin-top: 12px; font-size: .9rem; color: var(--fg-3); position: relative; }
.form-note:empty { min-height: 0; margin-top: 0; }
.form-note.ok { color: #15803d; } .form-note.err { color: #c42b1c; }
.interest-note { min-height: 1.4em; font-size: .9rem; color: var(--fg-3); }
.interest-note.err { color: #c42b1c; }
.hero .interest-note { margin: -16px 0 20px; }
.hero .interest-note:empty { margin: 0; min-height: 0; }
.privacy { font-size: .82rem; color: var(--fg-3); margin-top: 6px; }
.cta-interest { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 12px; position: relative; }
.cta-interest span { color: var(--fg-2); font-size: .95rem; }
.cta-interest .interest-note { margin: 0; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--bg-2); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 7px; }
.footer-brand small { display: block; color: var(--fg-3); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .92rem; color: var(--fg-2); }
.footer-note { grid-column: 1 / -1; color: var(--fg-3); font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 40px; min-height: 0; }
  .hero-art { max-width: 560px; margin: 0 auto; }
  .why-grid { grid-template-columns: 1fr; }
  .how-layout { grid-template-columns: 1fr; gap: 24px; }
  .how-stage { position: sticky; top: 64px; height: 300px; z-index: 2; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; display: block; }
  .how-stage .stage-card { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: 14px; --s: .82; transform: scale(var(--s)) translateY(18px); transform-origin: 50% 0; }
  .how-stage [data-stage="1"] { --s: .64; }
  .how-stage [data-stage="3"] { --s: .62; }
  .how-stage .win-body { padding: 14px; }
  .how-stage .acct-list { gap: 6px; margin-bottom: 10px; }
  .how-stage .acct { padding: 7px 10px; }
  .how-stage[data-active="1"] [data-stage="1"], .how-stage[data-active="2"] [data-stage="2"], .how-stage[data-active="3"] [data-stage="3"] { transform: scale(var(--s)); }
  .how-step { min-height: 0; }
  .how-steps { padding-bottom: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .security-inner, .faq-inner, .limits-card { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: 1fr; }
  .answer { flex-direction: column; align-items: flex-start; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-actions .btn { display: none; }
  .menu-btn { display: flex; }
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.3rem; }
  .limits-card { padding: 28px 22px; }
  .pair-scene { gap: 14px; }
  .how-stage { height: 260px; }
  .how-stage .stage-card { --s: .74; }
  .how-stage [data-stage="1"] { --s: .56; }
  .how-stage .status-row { display: none; }
  .how-stage [data-stage="3"] { --s: .54; }
  .hero-cta .btn { flex: 1 1 auto; }
  .answer { padding: 24px 20px; }
  .sec-blocked { position: static; transform: none; margin-top: 6px; justify-self: start; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .file { opacity: 1; offset-distance: 50%; }
  .file.f2, .file.f3, .file.f4 { display: none; }
  .verified { opacity: 1; }
  .usage { transform: scaleX(var(--w)); }
  .upload-states .s3, .ph-note { opacity: 1; }
  .bar i { width: 100%; }
}
