/*
  lumina vpn - site stylesheet
  Ported from the ratified design source (null-vpn-handoff/source/app/globals.css).
  Hand-rolled, no build step, no CDN. Fonts self-hosted below.
*/

@font-face {
  font-family: "Geist Sans";
  src: url("../fonts/GeistSans-Variable.woff2") format("woff2-variations"), url("../fonts/GeistSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/GeistMono-Variable.woff2") format("woff2-variations"), url("../fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #11110f;
  --paper: #f4f4f0;
  --white: #fbfbf8;
  --soft: #deded8;
  --mid: #888884;
  --line: rgba(17, 17, 15, 0.12);
  --font-geist-sans: "Geist Sans", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-geist-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.28;
  z-index: -1;
}

/* Visible focus states - the source design had aria attributes but no visible
   focus ring. Two-layer halo reads on both light and dark section backgrounds. */
:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ink);
  border-radius: 1px;
}
.network-section :focus-visible,
.download-section :focus-visible,
.terminal-status:focus-visible {
  outline-color: var(--ink);
  box-shadow: 0 0 0 4px var(--white);
}

.site-header {
  height: 88px;
  padding: 0 clamp(24px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(244,244,240,.88);
  backdrop-filter: blur(16px);
  position: relative;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; letter-spacing: -0.03em; }
.brand-mark, .mini-mark { font-family: var(--font-geist-mono); font-weight: 800; letter-spacing: -0.04em; transform: skew(-12deg); display: inline-block; margin-right: 4px; }
nav { display: flex; gap: 34px; font-size: 13px; }
nav a, .text-link { position: relative; }
nav a::after, .text-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: currentColor; transition: right .2s ease; }
nav a:hover::after, .text-link:hover::after { right: 0; }
.header-cta { justify-self: end; padding: 12px 16px; border: 1px solid var(--ink); font-size: 13px; background: var(--ink); color: var(--white); display: flex; gap: 22px; }

.hero { min-height: calc(100vh - 88px); display: grid; grid-template-columns: 54% 46%; border-bottom: 1px solid var(--line); }
.hero-copy { padding: clamp(60px, 8vw, 120px) clamp(26px, 7vw, 105px); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.eyebrow { display: flex; justify-content: space-between; font: 11px var(--font-geist-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: clamp(42px, 8vh, 84px); }
h1 { font-size: clamp(58px, 7.2vw, 108px); line-height: .88; letter-spacing: -.075em; font-weight: 430; margin: 0; max-width: 800px; }
h1 span { display: inline-block; color: var(--paper); background: var(--ink); padding: 0 .11em .08em .04em; margin-top: .12em; }
.lede { font-size: clamp(17px, 1.45vw, 22px); line-height: 1.45; letter-spacing: -.025em; max-width: 610px; margin: 46px 0 38px; }
.hero-actions { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.primary-button { background: var(--ink); color: var(--white); padding: 17px 20px; font-size: 14px; display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--ink); transition: background .2s, color .2s; }
.primary-button:hover { background: transparent; color: var(--ink); }
.play-dot { font-size: 10px; }
.text-link { font-size: 13px; }
.text-link span { margin-left: 14px; }
.trust-line { margin-top: clamp(64px, 9vh, 110px); padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; color: #50504c; font: 10px var(--font-geist-mono); text-transform: uppercase; }

.product-stage { position: relative; display: grid; place-items: center; min-height: min(720px, calc(100vh - 88px)); overflow: hidden; background: rgba(255,255,252,.42); }
.product-stage::before { content: ""; position: absolute; width: 66%; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 48px rgba(17,17,15,.025), 0 0 0 96px rgba(17,17,15,.018); }
/* Phone mockup sizing: every element below scales down together as vh shrinks, so a
   short viewport shrinks the whole mockup rather than clipping the bottom of it (the
   fixed-670px-height version of this did the latter). Numbers were sized so the phone
   still renders at its full 670px on any normal-height viewport (>=~820px). */
.phone-shadow { position: absolute; width: 330px; height: min(670px, 82vh); background: var(--ink); transform: translate(18px, 18px); }
.phone { width: min(330px, 72vw); height: min(670px, 82vh); min-height: 340px; background: var(--white); border: 2px solid var(--ink); position: relative; z-index: 2; padding: 18px; display: flex; flex-direction: column; box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6px var(--line); overflow: hidden; }
.phone-top { display: flex; justify-content: space-between; font: 9px var(--font-geist-mono); padding: 2px 7px 18px; flex: none; }
.app-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 14px 3px; font: 12px var(--font-geist-mono); flex: none; }
.app-head button { justify-self: end; border: 0; background: transparent; cursor: pointer; letter-spacing: 2px; }
.connection-state { margin-top: clamp(10px, 5vh, 55px); display: flex; justify-content: center; gap: 8px; align-items: center; font: 9px var(--font-geist-mono); letter-spacing: .08em; flex: none; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mid); }
.status-dot.active { background: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,15,.09); }
.power-button { width: min(146px, 22vh); height: min(146px, 22vh); min-width: 84px; min-height: 84px; border: 1px solid var(--ink); border-radius: 50%; background: var(--white); align-self: center; margin: clamp(8px, 3vh, 24px) 0 clamp(10px, 4vh, 38px); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; cursor: pointer; font: 9px var(--font-geist-mono); transition: .25s ease; box-shadow: 7px 7px 0 var(--soft); flex: none; }
.power-button:hover { transform: translate(-2px,-2px); box-shadow: 10px 10px 0 var(--soft); }
.power-button.is-on { background: var(--ink); color: var(--white); }
.power-icon { font-size: 27px; }
.route-card { border: 1px solid var(--ink); padding: 14px; flex: none; }
.route-row { display: flex; justify-content: space-between; font: 8px var(--font-geist-mono); }
.route-row.dim { color: var(--mid); border-top: 1px solid var(--line); padding-top: 11px; }
.route-map { height: clamp(40px, 10vh, 72px); display: flex; align-items: center; position: relative; }
.route-line { flex: 1; border-top: 1px dashed var(--ink); }
.node { width: 28px; height: 28px; border: 1px solid var(--ink); background: var(--white); display: grid; place-items: center; font: 7px var(--font-geist-mono); z-index: 1; }
.node-right { background: var(--ink); color: var(--white); }
.phone-footer { margin-top: auto; padding: 13px 2px 4px; display: flex; justify-content: space-between; font: 8px var(--font-geist-mono); flex: none; }
.stage-label { position: absolute; font: 9px var(--font-geist-mono); color: var(--mid); text-transform: uppercase; }
.label-top { top: 11%; right: 7%; }.label-bottom { bottom: 8%; left: 7%; }
.signal-path { position: absolute; font: 16px var(--font-geist-mono); letter-spacing: 4px; color: #b7b7b0; white-space: nowrap; }
.signal-a { transform: rotate(32deg); right: -2%; top: 27%; }.signal-b { transform: rotate(-38deg); left: 0; bottom: 22%; }

.section-index { display: flex; justify-content: space-between; align-items: center; font: 10px var(--font-geist-mono); letter-spacing: .12em; }
.section-index.inverse { color: #acaca6; }
.manifesto { padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 105px); }
.manifesto > p { font-size: clamp(38px, 5.4vw, 82px); line-height: 1.03; letter-spacing: -.055em; font-weight: 420; max-width: 1280px; margin: 100px 0 60px; }
.manifesto em { font-style: normal; border-bottom: 2px solid var(--ink); }
.manifesto-note { text-align: right; font: 10px var(--font-geist-mono); color: var(--mid); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.feature-grid article { min-height: 420px; padding: 38px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.feature-grid article:last-child { border-right: 0; }
.feature-symbol { font: 36px var(--font-geist-mono); letter-spacing: -.12em; }
.feature-number { font: 9px var(--font-geist-mono); color: var(--mid); }
.feature-grid h2 { font-size: 28px; letter-spacing: -.04em; margin: 16px 0 12px; font-weight: 520; }
.feature-grid p { line-height: 1.55; font-size: 14px; max-width: 360px; color: #555550; margin: 0; }

.network-section { background: var(--ink); color: var(--white); display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); padding: clamp(70px, 8vw, 120px) clamp(24px, 7vw, 105px); gap: clamp(50px, 8vw, 140px); }
.section-copy h2, .download-copy h2 { font-size: clamp(54px, 6.7vw, 100px); letter-spacing: -.07em; line-height: .9; font-weight: 430; margin: 80px 0 38px; }
.section-copy > p { color: #bdbdb7; line-height: 1.55; font-size: 16px; max-width: 500px; }
.network-meta { display: flex; gap: 30px; margin-top: 70px; padding-top: 20px; border-top: 1px solid #3e3e3b; font: 9px var(--font-geist-mono); text-transform: uppercase; color: #a5a59f; }
.region-panel { align-self: center; border: 1px solid #555550; }
.region-head { display: flex; justify-content: space-between; padding: 18px; border-bottom: 1px solid #555550; color: #92928c; font: 9px var(--font-geist-mono); }
.region-row { appearance: none; width: 100%; min-height: 72px; display: grid; grid-template-columns: 28px 1.1fr 1fr 80px; align-items: center; text-align: left; border: 0; border-bottom: 1px solid #373733; background: transparent; color: #a5a59f; padding: 0 18px; cursor: pointer; font: 12px var(--font-geist-mono); }
.region-row:hover, .region-row.selected { background: var(--white); color: var(--ink); }
.region-row.region-row-soon { color: #6f6f68; }
.region-code { color: #8f8f89; }
.region-row.selected .region-code, .region-row:hover .region-code { color: #55554f; }
.region-status { text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.region-result { padding: 28px 18px; display: flex; flex-direction: column; gap: 10px; font: 9px var(--font-geist-mono); color: #8f8f89; }
.region-result strong { font-size: 13px; color: var(--white); font-weight: 400; }
.region-result strong.pulse { animation: route-pulse .5s ease; }
@keyframes route-pulse { from { opacity: .35; } to { opacity: 1; } }

.protocol-section { padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 105px); }
.protocol-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(60px, 10vw, 170px); margin-top: 110px; align-items: center; }
.protocol-copy h2 { font-size: clamp(48px, 5.5vw, 82px); line-height: .95; letter-spacing: -.06em; font-weight: 440; margin: 0 0 35px; }
.protocol-copy p { max-width: 440px; color: #555550; line-height: 1.6; }
.terminal-card { border: 1px solid var(--ink); background: var(--white); box-shadow: 14px 14px 0 var(--soft); }
.terminal-top { padding: 18px 22px; display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); font: 9px var(--font-geist-mono); }
.terminal-card ol { list-style: none; margin: 0; padding: 0 22px; }
.terminal-card li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; min-height: 92px; border-bottom: 1px solid var(--line); font: 10px var(--font-geist-mono); }
.terminal-card li > span { color: var(--mid); }.terminal-card li div { display: flex; flex-direction: column; gap: 7px; }.terminal-card li small { color: var(--mid); font-size: 9px; }.terminal-card li b { font-weight: 400; }
.terminal-status { padding: 20px 22px; display: flex; justify-content: space-between; background: var(--ink); color: var(--white); font: 11px var(--font-geist-mono); }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.proof-strip > div { padding: 55px 35px; border-right: 1px solid var(--ink); display: flex; flex-direction: column; gap: 12px; }
.proof-strip > div:last-child { border-right: 0; }
.proof-strip strong { font-size: clamp(32px, 5vw, 60px); letter-spacing: -.06em; line-height: 1; font-weight: 440; }.proof-strip strong span { font-size: 18px; letter-spacing: 0; }
.proof-strip > div > span { font: 10px var(--font-geist-mono); color: var(--mid); text-transform: uppercase; }

.download-section { min-height: 850px; display: grid; grid-template-columns: 46% 54%; background: var(--ink); color: var(--white); }
.download-ascii { display: grid; place-items: center; border-right: 1px solid #3a3a36; overflow: hidden; background-image: radial-gradient(#3d3d39 1px, transparent 1px); background-size: 18px 18px; }
.download-ascii pre { font: clamp(13px, 1.75vw, 27px)/1.65 var(--font-geist-mono); color: #bcbcb5; filter: drop-shadow(14px 14px 0 #252522); }
.download-copy { padding: clamp(75px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.download-copy h2 { margin-top: 70px; }
.download-copy > p { color: #bdbdb7; max-width: 500px; line-height: 1.6; }
.store-button { margin-top: 34px; width: min(100%, 390px); border: 1px solid var(--white); padding: 14px 18px; display: grid; grid-template-columns: 35px 1fr auto; align-items: center; transition: .2s; cursor: default; }
.store-button:not(.is-disabled) { cursor: pointer; }
.store-button:not(.is-disabled):hover { background: var(--white); color: var(--ink); }
.store-button.is-disabled { opacity: .55; }
.store-icon { font-size: 22px; }.store-button > span:nth-child(2) { font-size: 18px; display: flex; flex-direction: column; }.store-button small { font: 8px var(--font-geist-mono); margin-bottom: 3px; letter-spacing: .05em; }.store-button b { font-weight: 400; }
.download-fine { display: flex; gap: 25px; margin-top: 26px; color: #868680; font: 8px var(--font-geist-mono); text-transform: uppercase; }

footer { padding: 70px clamp(24px, 7vw, 105px) 35px; background: var(--paper); display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 40px; }
.footer-brand { align-self: start; }.footer-brand .brand-mark { font-size: 28px; }
footer > p { margin: 0; font-size: 24px; letter-spacing: -.035em; line-height: 1.3; }
.footer-links { justify-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 50px; font-size: 12px; }
.footer-links a:hover { text-decoration: underline; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 80px; padding-top: 20px; display: flex; justify-content: space-between; color: var(--mid); font: 8px var(--font-geist-mono); }

/* Subsidiary pages (privacy / setup / troubleshooting / support) reuse the same
   grid + mono-label + section-index system as the landing page, in a simpler
   single-column article layout. */
.doc-main { padding: clamp(70px, 9vw, 120px) clamp(24px, 7vw, 105px) clamp(90px, 10vw, 140px); max-width: 860px; margin: 0 auto; }
.doc-main .section-index { margin-bottom: clamp(40px, 6vw, 70px); }
.doc-main h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 28px; }
.doc-main h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; font-weight: 520; margin: 56px 0 16px; }
.doc-main h2:first-of-type { margin-top: 40px; }
.doc-main h3 { font-size: 16px; letter-spacing: -.01em; font-weight: 620; margin: 28px 0 10px; }
.doc-main p, .doc-main li { line-height: 1.65; font-size: 15px; color: #33332f; max-width: 640px; }
.doc-main ul, .doc-main ol { padding-left: 22px; }
.doc-main li { margin-bottom: 8px; }
.doc-main .doc-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink); max-width: 640px; line-height: 1.5; }
.doc-main .draft-flag { display: inline-block; margin-bottom: 32px; padding: 6px 10px; border: 1px solid var(--ink); font: 9px var(--font-geist-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mid); }
.doc-main .callout { border: 1px solid var(--line); border-left: 3px solid var(--ink); padding: 16px 20px; margin: 24px 0; background: rgba(255,255,255,.5); }
.doc-main .callout p { margin: 0; }
.doc-main .fact-list { list-style: none; padding: 0; }
.doc-main .fact-list li { border-top: 1px solid var(--line); padding: 14px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 14px; }
.doc-main .fact-list li:last-child { border-bottom: 1px solid var(--line); }
.doc-main .fact-list span:first-child { font: 11px var(--font-geist-mono); color: var(--mid); text-transform: uppercase; letter-spacing: .05em; padding-top: 2px; }
.contact-card { border: 1px solid var(--ink); padding: 28px; margin-top: 20px; box-shadow: 10px 10px 0 var(--soft); max-width: 440px; }
.contact-card dt { font: 10px var(--font-geist-mono); color: var(--mid); text-transform: uppercase; margin-top: 18px; }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 6px 0 0; font-size: 15px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 72px; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { border-right: 0; border-bottom: 1px solid var(--line); padding-top: 70px; }
  .product-stage { min-height: min(780px, calc(100vh - 72px)); }
  .feature-grid { grid-template-columns: 1fr; }.feature-grid article { min-height: 280px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .network-section, .protocol-layout, .download-section { grid-template-columns: 1fr; }
  .download-ascii { min-height: 600px; border-right: 0; border-bottom: 1px solid #3a3a36; }
  .proof-strip { grid-template-columns: 1fr 1fr; }.proof-strip > div:nth-child(2) { border-right: 0; }.proof-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--ink); }
  footer { grid-template-columns: 1fr 1fr; }.footer-links { justify-self: start; }.footer-bottom { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .header-cta { padding: 10px 12px; }.header-cta span { display: none; }
  .hero-copy { padding: 52px 24px; }
  h1 { font-size: 58px; }
  .lede { font-size: 17px; margin-top: 34px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .trust-line { grid-template-columns: 1fr; margin-top: 58px; }
  .product-stage { min-height: min(720px, calc(100vh - 72px)); }
  .phone, .phone-shadow { width: 300px; }
  .connection-state { margin-top: 20px; }
  .power-button { margin-bottom: 28px; }
  .manifesto > p { margin-top: 65px; }
  .network-section { padding-top: 70px; padding-bottom: 70px; }
  .network-meta { flex-direction: column; gap: 10px; margin-top: 45px; }
  .region-row { grid-template-columns: 25px 1fr 70px; }.region-code { display: none; }
  .protocol-layout { margin-top: 70px; }
  .proof-strip { grid-template-columns: 1fr; }.proof-strip > div { border-right: 0; border-bottom: 1px solid var(--ink); }
  .download-section { min-height: auto; }.download-ascii { min-height: 450px; }.download-copy { padding: 65px 24px 80px; }
  footer { grid-template-columns: 1fr; }.footer-links { margin-top: 25px; }.footer-bottom { flex-direction: column; gap: 12px; margin-top: 50px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
