/* ═══════════════════════════════════════════════════════════
   Memex — launch site
   Type: Instrument Serif (display) · Geist (UI/body) · JetBrains Mono (code)
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --paper: #f8f7f3;
  --paper-2: #efede6;
  --white: #ffffff;
  --ink: #111111;
  --ink-2: #4a4a46;
  --ink-3: #8b8a84;
  --line: rgba(17, 17, 17, 0.1);
  --line-2: rgba(17, 17, 17, 0.18);
  --blue: #2f5cff;
  --blue-ink: #1f3fd1;
  --blue-wash: rgba(47, 92, 255, 0.1);
  --yellow: #f0c15b;
  --green: #4fb188;
  --pink: #e06c94;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Cascadia Code", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }
kbd { font-family: var(--mono); font-size: 0.78em; background: var(--white); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 999; }
.skip:focus { left: 8px; }

/* ── Type ── */
.display { font-family: var(--serif); font-weight: 400; font-size: clamp(3.3rem, 10.2vw, 9.4rem); line-height: 0.9; letter-spacing: -0.04em; }
.display .it, .h2 em, .install-h .it { font-style: italic; }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6.4vw, 5.2rem); line-height: 0.96; letter-spacing: -0.035em; }
.h2 em { font-style: italic; }
.h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.025em; }
.h4 { font-family: var(--sans); font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; line-height: 1.35; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); line-height: 1.55; max-width: 36em; margin-inline: auto; text-wrap: balance; }

.line { display: block; overflow: hidden; padding: 0.04em 0.1em 0.16em; margin: 0 -0.1em -0.16em; }
.line > span { display: inline-block; will-change: transform; }

/* ── Buttons ── */
.btn { --h: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 0.95rem; letter-spacing: -0.005em; text-decoration: none; white-space: nowrap; transition: transform 0.35s var(--ease), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s; }
.btn svg { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn[href="#install"]:hover svg:only-of-type { transform: translate(2px, -2px); }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 1.02rem; }
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18); }
.btn-dark:hover { background: var(--blue); box-shadow: 0 12px 32px rgba(47, 92, 255, 0.32); }
.btn-ghost { background: rgba(255, 255, 255, 0.7); border-color: var(--line-2); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--white); border-color: var(--ink); }
.btn[hidden] { display: none; }
.play { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.play svg { width: 11px; height: 11px; transform: translateX(1px); }
.btn:hover .play svg { transform: translateX(1px); }

/* ── Nav ── */
.nav { position: fixed; z-index: 50; top: 14px; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--gutter); pointer-events: none; }
.nav > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; }
.brand img { border-radius: 9px; }
.brand-word { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -0.02em; line-height: 1; }
.brand-word i { font-style: normal; color: var(--blue); }
.nav-pill { display: flex; gap: 4px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: box-shadow 0.4s; }
.nav.scrolled .nav-pill { box-shadow: 0 10px 34px rgba(20, 20, 40, 0.08); }
.nav-pill a { text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); transition: background 0.2s, color 0.2s; }
.nav-pill a:hover, .nav-pill a.active { background: var(--paper-2); color: var(--ink); }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.8); position: relative; backdrop-filter: blur(10px); }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.6px; background: var(--ink); transition: transform 0.35s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: var(--paper); padding: 110px var(--gutter) 40px; display: flex; flex-direction: column; gap: 6px; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 2.8rem; letter-spacing: -0.03em; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 24px; --h: 56px; }

/* ── Hero ── */
.hero { position: relative; padding: 138px var(--gutter) 0; text-align: center; overflow: clip; }
.halo { position: absolute; left: 50%; top: 52%; width: min(1500px, 140vw); aspect-ratio: 1.6; transform: translate(-50%, -30%); background: radial-gradient(closest-side, rgba(47, 92, 255, 0.16), rgba(130, 110, 255, 0.07) 55%, transparent 75%); filter: blur(20px); pointer-events: none; z-index: 0; }
.hero-copy { position: relative; z-index: 3; max-width: 1100px; margin: 0 auto; }
.hero .display { margin-bottom: 26px; }
.hero .lede { margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* glass cards */
.glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.55)); border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 30px; box-shadow: 0 24px 60px rgba(30, 30, 70, 0.1), inset 0 1px 0 #fff; backdrop-filter: blur(22px) saturate(1.5); -webkit-backdrop-filter: blur(22px) saturate(1.5); }
.g-left, .g-right { position: absolute; z-index: 2; width: 236px; padding: 22px; text-align: left; will-change: transform; }
.g-left { left: clamp(12px, 4vw, 90px); top: 292px; transform: translate3d(0, var(--py, 0px), 0) rotate(-8deg); animation: bob-a 7s ease-in-out infinite; }
.g-right { right: clamp(12px, 4vw, 90px); top: 392px; transform: translate3d(0, var(--py, 0px), 0) rotate(7deg); animation: bob-b 8s ease-in-out infinite; }
@keyframes bob-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bob-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 11px; } }
.g-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.g-ico svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-ico-blue { background: linear-gradient(160deg, #6f8dff, var(--blue)); }
.g-title { font-weight: 600; font-size: 1rem; line-height: 1.3; letter-spacing: -0.015em; }
.g-sub { margin-top: 8px; font-size: 0.85rem; line-height: 1.4; color: var(--ink-3); }
.g-faces { display: flex; margin-bottom: 16px; }
.g-faces span { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 0.8rem; border: 2px solid #fff; margin-left: -8px; }
.g-faces span:first-child { margin-left: 0; }
.g-faces .plus { background: #fff; color: var(--ink); }

.badge { position: absolute; z-index: 2; right: clamp(16px, 6vw, 120px); top: 176px; width: 118px; height: 118px; }
.badge-ring { transform-origin: 60px 60px; animation: spin 22s linear infinite; }
.badge text { font-family: var(--sans); font-size: 9.4px; font-weight: 500; letter-spacing: 0.9px; text-transform: uppercase; fill: var(--ink); }
.badge-star { fill: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-foot-l, .hero-foot-r { position: absolute; z-index: 2; text-align: left; font-size: 0.92rem; color: var(--ink-3); line-height: 1.35; }
.hero-foot-l { left: clamp(18px, 4vw, 90px); bottom: 26px; }
.hero-foot-r { right: clamp(18px, 4vw, 90px); bottom: 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.hero-foot-r svg { width: 22px; height: 22px; fill: var(--ink); }
.hero-foot-r p { display: flex; align-items: center; gap: 12px; }
.rule { display: inline-block; width: 28px; height: 1px; background: var(--line-2); }
.hero-foot-l .rule { display: block; margin-bottom: 12px; }

/* demo stage */
.stage { position: relative; z-index: 1; width: min(1080px, 100%); margin: 70px auto 0; }
.orbit { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 14px; border-radius: 22px; text-align: left; will-change: transform; }
.orbit b { display: block; font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.2; }
.orbit small { font-size: 0.78rem; color: var(--ink-3); }
.orbit .dot { width: 34px; height: 34px; border-radius: 11px; flex: none; }
.dot.y { background: linear-gradient(160deg, #f6d98e, var(--yellow)); }
.dot.g { background: linear-gradient(160deg, #7fd1ab, var(--green)); }
.dot.p { background: linear-gradient(160deg, #f09bb8, var(--pink)); }
.o1 { left: -84px; top: 200px; transform: translate3d(0, var(--py, 0px), 0) rotate(-7deg); animation: bob-a 6s ease-in-out infinite; }
.o2 { right: -64px; top: -34px; transform: translate3d(0, var(--py, 0px), 0) rotate(6deg); animation: bob-b 7s ease-in-out infinite; }
.o3 { left: -70px; bottom: 74px; transform: translate3d(0, var(--py, 0px), 0) rotate(5deg); animation: bob-b 8s ease-in-out infinite; }

.browser { position: relative; background: var(--white); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 50px 120px -20px rgba(30, 40, 110, 0.28), 0 0 0 8px rgba(255, 255, 255, 0.55); overflow: hidden; text-align: left; }
.bar { display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.tl { display: flex; gap: 7px; } .tl i { width: 11px; height: 11px; border-radius: 50%; background: #e3e1da; }
.url { flex: 1; max-width: 520px; margin-inline: auto; display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 14px; border-radius: 999px; background: var(--paper-2); font-size: 0.78rem; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.url svg { width: 12px; height: 12px; flex: none; color: var(--ink-3); }
.bar-spacer { width: 54px; }
.browser-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 348px; height: 480px; }

.page { position: relative; padding: 18px 20px; min-width: 0; overflow: hidden; background: var(--white); }
.file-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #fbfaf7; }
.fname { font-weight: 600; font-size: 0.85rem; }
.fmeta { font-size: 0.78rem; color: var(--ink-3); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--white); font-size: 0.8rem; font-weight: 600; transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.copy-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn:active, .copy-btn.press { transform: scale(0.94); }
.copy-btn.done { background: #e6f6ee; color: #1e7a4f; border-color: transparent; }
.code { margin: 0; padding: 14px 0; border: 1px solid var(--line); border-top: none; border-radius: 0 0 12px 12px; font-family: var(--mono); font-size: 12px; line-height: 1.75; overflow: hidden; height: 372px; color: #24292f; white-space: pre; }
.code code { display: block; font: inherit; }
.ln { display: inline-block; width: 38px; padding-right: 14px; text-align: right; color: #b4b2aa; user-select: none; }
.code .k { color: #cf222e; } .code .s { color: #0a3069; } .code .c { color: #8c959f; font-style: italic; } .code .f { color: #6639ba; } .code .n { color: #0550ae; }
.code-fade { position: absolute; left: 20px; right: 20px; bottom: 18px; height: 70px; background: linear-gradient(transparent, #fff 85%); border-radius: 0 0 12px 12px; pointer-events: none; }

/* Memex panel (mirrors the real extension) */
.panel { position: relative; background: #f7f6f2; border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; overflow: hidden; font-size: 13px; }
.p-head { padding: 14px 14px 0; } .p-logo { display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.35rem; line-height: 1; } .p-logo img { border-radius: 6px; } .p-logo i { font-style: normal; color: var(--blue); }
.p-tabs { display: flex; gap: 4px; margin: 10px 14px 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.p-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 4px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 600; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.p-tab svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.p-tab:hover { border-color: var(--line); color: var(--ink); }
.p-tab.active { background: #fff; border-color: var(--line); color: var(--ink); }
.p-chips { display: flex; gap: 6px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 10.5px; font-weight: 600; color: var(--ink-3); }
.chip.on { color: #238a5a; border-color: #238a5a; background: rgba(35, 138, 90, 0.1); } .chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.p-view { display: none; flex: 1; min-height: 0; flex-direction: column; } .p-view.active { display: flex; }
.p-scroll { position: relative; flex: 1; overflow-y: auto; padding: 10px 14px 16px; scrollbar-width: thin; }
.p-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); padding: 4px 0 7px; }
.pc, .pn, .pr { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; margin-bottom: 9px; transition: border-color 0.2s, box-shadow 0.2s; }
.pc-text { font-family: var(--mono); font-size: 11.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; user-select: text; }
.pc-text.link { font-family: var(--sans); color: var(--blue); text-decoration: underline; font-size: 12px; }
.pc-text:not(.mono):not(.link):not(.code-text) { font-family: var(--mono); }
.pc-foot { display: flex; align-items: center; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.grow { flex: 1; }
.pill { padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); background: #f4f3ee; font-size: 10px; color: var(--ink-2); }
.tm { font-size: 10.5px; color: var(--ink-3); }
.cb { height: 26px; padding: 0 10px; border-radius: 7px; border: 1px solid transparent; font-size: 11px; font-weight: 600; background: rgba(47, 92, 255, 0.12); color: var(--blue); transition: background 0.2s, color 0.2s; }
.cb:hover { background: var(--blue); color: #fff; }
.cb.ok { background: #e6f6ee; color: #1e7a4f; }
.cb.go { width: 28px; padding: 0; display: inline-grid; place-items: center; background: transparent; color: var(--ink-3); }
.cb.go:hover { background: #f1efe9; color: var(--blue); } .cb.go svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
.pc.new { animation: clip-in 0.7s var(--ease) both; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
@keyframes clip-in { from { opacity: 0; transform: translateY(-16px) scale(0.97); } to { opacity: 1; transform: none; } }
.pc-meta { font-size: 10.5px; color: var(--ink-3); }
.pc-badge { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.pc-expand { border: none; background: none; padding: 4px 0 0; color: var(--blue); font-size: 11px; font-weight: 600; }
.flash { animation: flash 2.2s ease-out; }
@keyframes flash { 0%, 35% { box-shadow: 0 0 0 3px var(--blue), 0 8px 24px var(--blue-wash); border-color: var(--blue); } 100% { box-shadow: none; } }

.pn h3 { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; line-height: 1.1; margin-bottom: 8px; }
.pn h4 { font-family: var(--serif); font-weight: 400; font-size: 1.1rem; padding-bottom: 3px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.pn ul, .vn-card ul { margin: 0 0 8px; padding-left: 0; }
.pn li, .vn-card li { position: relative; padding-left: 22px; margin: 3px 0; font-size: 12.5px; }
.pn li::before, .vn-card li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border: 1.5px solid var(--line-2); border-radius: 4px; background: #fff; }
.pn li.done, .vn-card li.done { color: var(--ink-3); text-decoration: line-through; }
.pn li.done::before, .vn-card li.done::before { background: var(--blue); border-color: var(--blue); box-shadow: inset 0 0 0 2px #fff; }
.pn pre, .vn-card pre { background: #f4f3ee; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 11px; overflow: auto; }

.p-search { position: relative; margin: 10px 14px 0; }
.p-search svg { position: absolute; left: 10px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 2; }
.p-search input { width: 100%; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; padding: 0 12px 0 32px; font: inherit; font-size: 13px; color: var(--ink); outline: none; }
.p-search input:focus { border-color: var(--blue); }
.pr { cursor: pointer; }
.pr:hover { border-color: var(--blue); }
.pr-text { font-size: 12px; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.pr-title { font-family: var(--serif); font-size: 1.05rem; margin-bottom: 2px; }
.pr mark, .vs-res mark { background: rgba(255, 213, 0, 0.5); color: inherit; border-radius: 3px; padding: 0 1px; }
.p-hints { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.p-hints p { width: 100%; color: var(--ink-3); font-size: 12px; margin-bottom: 4px; }
.p-hints button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 500; transition: border-color 0.2s, color 0.2s; }
.p-hints button:hover { border-color: var(--blue); color: var(--blue); }
.p-toast { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 14px); background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; padding: 6px 14px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.3s var(--ease); white-space: nowrap; }
.p-toast.show { opacity: 1; transform: translate(-50%, 0); }

.fake-cursor { position: absolute; z-index: 6; left: 0; top: 0; width: 26px; height: 26px; pointer-events: none; opacity: 0; transition: transform 1s var(--ease), opacity 0.4s; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25)); }
.fake-cursor.show { opacity: 1; }
.fake-cursor.click { animation: cursor-click 0.4s; }
@keyframes cursor-click { 50% { scale: 0.82; } }
.demo-hint { margin-top: 22px; font-size: 0.92rem; color: var(--ink-3); }
.demo-hint b { color: var(--ink); font-weight: 600; }

/* ── Statement ── */
.statement { max-width: var(--wrap); margin: 0 auto; padding: clamp(110px, 16vw, 220px) var(--gutter) clamp(60px, 8vw, 110px); }
.statement-text { max-width: 1060px; margin: 0; font-family: var(--serif); font-size: clamp(2.2rem, 5.6vw, 4.8rem); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.statement-text .w { opacity: 0.14; transition: opacity 0.35s; }
.statement-text .w.on { opacity: 1; }
.statement-text .w.em { font-style: italic; }

/* ── Sections ── */
.features, .how, .faq { max-width: var(--wrap); margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--gutter); }
.sec-head { margin-bottom: clamp(40px, 6vw, 80px); }
.sec-sub { margin-top: 20px; max-width: 30em; color: var(--ink-2); font-size: 1.15rem; line-height: 1.55; }

.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(40px, 6vw, 84px) 0; border-top: 1px solid var(--line); }
.feat.flip .feat-copy { order: 2; }
.feat-copy p { margin: 18px 0 22px; color: var(--ink-2); max-width: 30em; }
.ticks li { position: relative; padding-left: 28px; margin: 9px 0; font-size: 0.98rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.36em; width: 16px; height: 16px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.feat-visual { background: var(--paper-2); border-radius: 36px; padding: clamp(18px, 3.4vw, 44px); min-height: 380px; display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; overflow: hidden; }
.feat-visual::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, var(--blue-wash), transparent); pointer-events: none; }

.vc-card, .vn-card, .vs-res, .vs-input { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 20px 50px rgba(30, 30, 70, 0.08); }
.vc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vc-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.vc-meta { font-size: 12px; color: var(--ink-3); }
.vc-code { background: #f4f3ee; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 1.7; overflow: auto; }
.vc-code .k { color: #cf222e; } .vc-code .f { color: #6639ba; } .vc-code .c { color: #8c959f; font-style: italic; }
.vc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.vc-stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.vc-stats span { font-size: 12px; color: var(--ink-3); }
.vc-bar { height: 6px; border-radius: 99px; background: var(--paper-2); margin-top: 16px; overflow: hidden; }
.vc-bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width 1.6s var(--ease) 0.3s; }
.in .vc-bar i { width: 100%; }

.vn-tool { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; margin-bottom: 14px; }
.vn-tool b, .vn-tool i { min-width: 28px; height: 26px; padding: 0 7px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; font: 600 11.5px var(--sans); color: var(--ink-2); background: #fff; }
.vn-tool span { width: 1px; height: 16px; background: var(--line-2); margin: 0 2px; }
.vn-card h4 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 10px; }
.vn-card h5 { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.vn-card { background: #fff8e8; border-left: 4px solid rgba(199, 116, 0, 0.4); }
.vn-card li { font-size: 14px; }
.vn-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.vn-pill { padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.vn-copy { padding: 5px 12px; border-radius: 8px; background: var(--blue-wash); color: var(--blue); font-size: 12px; font-weight: 600; }

.vs-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 14px; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-wash); }
.vs-input svg { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.vs-input span { font-size: 15px; }
.caret { width: 1.5px; height: 18px; background: var(--blue); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vs-text { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.vs-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-3); flex-wrap: wrap; }
.vs-btns { display: flex; gap: 6px; align-items: center; }
.vs-copy { padding: 5px 12px; border-radius: 8px; background: var(--blue-wash); color: var(--blue); font-size: 12px; font-weight: 600; }
.vs-go { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-2); }
.vs-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.vs-res.faint { opacity: 0.55; transform: scale(0.97); }

.mini-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.mini { padding: 34px 32px 10px 0; } .mini + .mini { padding-left: 32px; border-left: 1px solid var(--line); }
.mini p { margin-top: 8px; color: var(--ink-2); font-size: 0.98rem; }

/* ── How ── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 56px); }
.steps li { border-top: 1px solid var(--ink); padding-top: 22px; }
.step-n { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(4rem, 8vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; margin-bottom: 20px; color: var(--blue); }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 24em; }

/* ── Privacy ── */
.privacy { padding: clamp(40px, 6vw, 90px) var(--gutter); }
.privacy-card { max-width: var(--wrap); margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: clamp(28px, 4vw, 48px); padding: clamp(28px, 5vw, 72px); position: relative; overflow: hidden; }
.privacy-card::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(47, 92, 255, 0.45), transparent); pointer-events: none; }
.priv-big { display: flex; align-items: flex-end; gap: clamp(18px, 4vw, 56px); flex-wrap: wrap; padding-bottom: clamp(28px, 4vw, 56px); border-bottom: 1px solid rgba(255, 255, 255, 0.16); position: relative; z-index: 1; }
.priv-zero { font-family: var(--serif); font-style: italic; font-size: clamp(8rem, 22vw, 18rem); line-height: 0.74; letter-spacing: -0.06em; }
.priv-big p { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; max-width: 16em; padding-bottom: 0.4em; }
.priv-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); padding-top: clamp(28px, 4vw, 48px); position: relative; z-index: 1; }
.priv-cols .h4 { margin-bottom: 14px; color: #fff; }
.plain li { padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.95rem; color: rgba(248, 247, 243, 0.78); }
.plain b { color: #fff; font-weight: 600; }

/* ── FAQ ── */
.faq-list { max-width: 860px; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); transition: background 0.25s, border-color 0.25s, transform 0.4s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); transform: translate(-50%, -50%); transition: transform 0.4s var(--ease), background 0.25s; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { background: var(--ink); border-color: var(--ink); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq details p { padding: 0 60px 26px 0; color: var(--ink-2); max-width: 42em; animation: open 0.5s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }
.faq p a { color: var(--blue); text-underline-offset: 3px; }

/* ── Install ── */
.install { position: relative; text-align: center; padding: clamp(90px, 12vw, 180px) var(--gutter); overflow: clip; }
.install > *:not(.halo) { position: relative; z-index: 1; }
.install .halo-2 { position: absolute; z-index: 0; top: 50%; transform: translate(-50%, -50%); }
.install-h { margin-bottom: 26px; }
.install .lede { margin-bottom: 34px; }

/* ── Footer ── */
.footer { border-top: 1px solid var(--line); padding: 36px var(--gutter) 44px; max-width: var(--wrap); margin: 0 auto; }
.foot-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--ink-2); font-size: 0.95rem; } .foot-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-links a[hidden] { display: none; }
.foot-note { margin-top: 24px; color: var(--ink-3); font-size: 0.88rem; }

/* ── Motion: intro + reveals ── */
.js .hero .line > span { transform: translateY(112%); transition: transform 1.15s var(--ease); }
.js .hero .line:nth-child(2) > span { transition-delay: 0.12s; }
.js .install .line > span { transform: translateY(112%); transition: transform 1.15s var(--ease); }
.js .install .line:nth-child(2) > span { transition-delay: 0.12s; }
.js .ready .line > span, .js .install.in .line > span { transform: none; }
.js [data-hero-fade] { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease) 0.5s, transform 0.9s var(--ease) 0.5s; }
.js .ready [data-hero-fade] { opacity: 1; transform: none; }
.js .glass.g-left, .js .glass.g-right, .js .badge, .js .orbit { opacity: 0; transition: opacity 1s var(--ease) 0.7s; }
.js .ready .glass.g-left, .js .ready .glass.g-right, .js .ready .badge, .js .ready .orbit { opacity: 1; }
.js .stage .browser { opacity: 0; transform: translateY(60px) scale(0.97); transition: opacity 1.1s var(--ease) 0.55s, transform 1.3s var(--ease) 0.55s; }
.js .ready .stage .browser { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.steps li[data-reveal]:nth-child(2) { transition-delay: 0.1s; } .steps li[data-reveal]:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .hero .line > span, .js .install .line > span, .js [data-hero-fade], .js [data-reveal], .js .stage .browser, .js .glass, .js .badge, .js .orbit { opacity: 1 !important; transform: none; }
  .statement-text .w { opacity: 1; }
}

/* ── Responsive ── */
@media (max-width: 1240px) {
  .hero-foot-l, .hero-foot-r { display: none; }
  .o1 { left: -20px; } .o2 { right: -20px; } .o3 { left: -10px; }
}
@media (max-width: 1100px) {
  .g-left { left: 2vw; width: 210px; top: 330px; } .g-right { right: 2vw; width: 210px; top: 430px; }
}
@media (max-width: 1000px) {
  .g-left, .g-right { display: none; }
  .badge { top: 120px; right: 18px; width: 84px; height: 84px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-pill { display: none; }
  .nav-right .btn { display: none; }
  .menu-btn { display: block; }
  .browser-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .o1, .o2, .o3 { display: none; }
  .feat { grid-template-columns: 1fr; }
  .feat.flip .feat-copy { order: 0; }
  .priv-cols { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .mini-row { grid-template-columns: 1fr; }
  .mini, .mini + .mini { padding: 26px 0; border-left: none; } .mini + .mini { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .hero { padding-top: 112px; }
  .badge { display: none; }
  .hero .display { font-size: clamp(3.2rem, 15vw, 5.4rem); }
  .btn-lg { --h: 54px; padding: 0 22px; width: 100%; }
  .cta-row { flex-direction: column; align-items: stretch; max-width: 380px; margin-inline: auto; }
  .stage { margin-top: 44px; }
  .browser { border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(30, 40, 110, 0.3), 0 0 0 5px rgba(255, 255, 255, 0.55); }
  .browser-body { grid-template-columns: 1fr; height: auto; }
  .page { height: 240px; padding: 12px; }
  .code { height: 176px; font-size: 11px; }
  .code-fade { left: 12px; right: 12px; bottom: 12px; }
  .panel { border-left: none; border-top: 1px solid var(--line); height: 470px; }
  .bar-spacer { display: none; }
  .url { font-size: 0.7rem; }
  .fmeta { display: none; } .fname { flex: 1; }
  .vc-stats { gap: 6px; }
  .feat-visual { border-radius: 28px; min-height: 0; }
  .faq details p { padding-right: 0; }
  .faq summary i { width: 32px; height: 32px; }
  .privacy-card { border-radius: 30px; }
  .priv-zero { font-size: 9rem; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 380px) {
  .nav { top: 10px; }
  .brand-word { font-size: 1.5rem; }
  .vn-card h4 { font-size: 1.5rem; }
  .vc-stats b { font-size: 1.5rem; }
}
@media (hover: none) { .magnetic { transform: none !important; } }

/* Store buttons (browser-aware) */
.store-group { display: inline-flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.store-group [hidden] { display: none !important; }
.btn.is-soon { opacity: .55; cursor: default; box-shadow: none; pointer-events: none; }
.store-group.store-mobile { display: flex; flex-direction: column; align-items: stretch; }
@media (max-width: 760px) { .nav-right .store-group { display: none; } .cta-row .store-group { width: 100%; } .cta-row .store-group .btn { width: 100%; } }
