/* OllaVPN — Enterprise theme (Light)
   Design tokens retuned 2026-06-05 to match networkershome.com's
   GlobalLayout.C6huUVYO.css exactly: same red, same secondary blue/
   violet/amber accents, same Lato self-host pattern, same Tailwind-
   scale radius. Content stays ours; visual system is borrowed. */
:root {
  /* Surface tokens retuned 2026-06-09 for buildbetter.ai-style cleanness:
     off-white page so pure-white cards lift; lighter lines reduce visual
     noise; soft 2-layer card shadow gives premium feel without skeuomorphism. */
  --bg: #FAFAFA;
  --bg-2: #F4F4F5;
  --bg-tint: #E6F0FA;        /* pale-blue info card background */
  --panel: #FFFFFF;
  --panel-2: #F2F2F4;
  --line: #EAEAEC;
  --line-2: #D8D8DE;
  --text: #171717;           /* near-black */
  --text-dim: #4A4A55;
  --text-mute: #7A7A88;
  --surface-dark: #1F1B4D;   /* deep indigo — footer + trust sections */
  --red: #DA291C;            /* brand red */
  --red-2: #B3211A;          /* hover/pressed */
  --red-soft: #FDE8E7;       /* tint for badge backgrounds */
  --amber: #FBBF24;
  --amber-2: #F59E0B;
  --green: #0B8F5F;
  --blue: #1F4FD8;
  --violet: #7C3AED;         /* PQC accent */
  /* Radius — default bumped to 12px for softer modern cards; 6/8/16 retained. */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
  /* Card shadow: 2-layer lift (contact + ambient) — buildbetter signature. */
  --shadow-card: 0 1px 2px rgba(15,15,15,.04), 0 8px 24px rgba(15,15,15,.04);
  --shadow-card-hover: 0 1px 2px rgba(15,15,15,.06), 0 16px 40px rgba(15,15,15,.08);
  /* Radial hero glow — faint red wash centered behind the H1 */
  --gradient-hero: radial-gradient(60% 60% at 50% 0%, rgba(218,41,28,.08), transparent 70%);

  /* Lato — self-hosted via /lato.css. Same fallback stack as NH so
     FOUT/FOIT shows the OS sans before woff2 lands. */
  --sans: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --display: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); }
body {
  font-family: var(--sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Layout */
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* Type — sized to enterprise norms (Proton ~52, Express ~56) rather than
   deck-presentation scale. Old upper bound was 88px (ItemUI #1, 2026-05-15). */
/* Display: weight 500 on h1/h2 (lighter = cleaner, buildbetter-style),
   tighter -0.035em optical kerning. h3 keeps semibold for hierarchy. */
.h-display { font-family: var(--display); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
.h1 { font-size: clamp(40px, 5.0vw, 64px); }
.h2 { font-size: clamp(28px, 3.4vw, 44px); }
.h3 { font-size: clamp(22px, 2.0vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text-mute); }
.kicker .pip { color: var(--red); }

/* Top utility bar */
.utilbar {
  background: var(--bg-2); color: var(--text-mute);
  font-family: var(--mono); font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0; letter-spacing: 0.04em;
}
.utilbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.utilbar .green-dot { color: var(--green); }

/* Nav (ItemUI #16): solid white instead of glassmorphism. A 1px line
   appears at page top before any scroll; once the user scrolls past 0,
   shared.js adds .scrolled which deepens it slightly for separation
   from page content. Glass-blur reads as 2021 SaaS; flat reads as
   enterprise. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .15s, border-color .15s;
}
.nav.scrolled {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 var(--line), 0 4px 12px -8px rgba(0,0,0,0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 28px; max-width: 1200px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.02em; font-size: 17px; color: var(--text); }
/* Brand mark (OllaVPN arch glyph, 2026-06-09): inline-SVG data URI so
   every page using <span class="brand-mark"></span> picks up the new
   identity without HTML edits. Red rounded square + white tunnel arch +
   red center "destination" dot. Matches /favicon.svg pixel-for-pixel. */
.brand-mark {
  width: 28px; height: 28px;
  flex: 0 0 28px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'><rect x='4' y='4' width='56' height='56' rx='13' fill='%23DA291C'/><path d='M 18 50 L 18 30 A 14 14 0 0 1 46 30 L 46 50 Z' fill='%23FFFFFF'/><circle cx='32' cy='36' r='5' fill='%23DA291C'/></svg>") center/contain no-repeat;
}
/* Nav links with animated underline (ItemUI #17). Standard Proton/Express
   affordance: a 2px red line scales in from the left on hover/active.
   Better hit feedback than color-only change. */
.nav-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-dim); }
.nav-links a {
  position: relative;
  padding: 6px 4px;
  transition: color .15s;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 4px; right: 4px; bottom: -1px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Mega-dropdown nav (2026-06-05) — wide-view pattern from
   networkershome.com. A nav item with a panel pops a full-width mega
   menu below the navbar. CSS-only: hover shows, focus-within shows
   (keyboard reachable), click-out hides via shared.js. Desktop only
   (>=900px). Mobile collapses into the existing nav-links accordion. */
.nav-item { position: relative; padding: 6px 4px; cursor: pointer; transition: color .15s; }
.nav-item:hover, .nav-item.active, .nav-item:focus-within { color: var(--text); }
.nav-item::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: -1px;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .18s ease;
}
.nav-item:hover::after, .nav-item.active::after, .nav-item:focus-within::after { transform: scaleX(1); }
.nav-item .caret {
  display: inline-block; margin-left: 4px; font-size: 10px;
  vertical-align: 1px; color: var(--text-mute); transition: transform .18s ease;
}
.nav-item:hover .caret, .nav-item:focus-within .caret { transform: rotate(180deg); color: var(--text); }

/* The mega-panel itself — anchored to the navbar, full container width. */
.mega {
  position: absolute; top: calc(100% + 1px); left: 50%; transform: translateX(-50%);
  min-width: 720px; max-width: 1100px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 18px 48px -16px rgba(11,11,16,0.18), 0 2px 8px rgba(11,11,16,0.04);
  padding: 24px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px);
  transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.nav-item:hover .mega, .nav-item:focus-within .mega {
  opacity: 1; visibility: visible; transform: translate(-50%, 0);
  transition: opacity .15s, transform .15s, visibility 0s;
}
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.mega-col h5 {
  margin: 0 0 12px; font-size: 11px; font-weight: 700;
  color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.mega-col a {
  display: block; padding: 8px 10px; margin: 0 -10px;
  font-size: 14px; color: var(--text-dim); font-weight: 500;
  border-radius: var(--radius-sm); transition: background .12s, color .12s;
}
.mega-col a:hover { background: var(--bg-2); color: var(--text); }
.mega-col a .sub {
  display: block; margin-top: 2px; font-size: 12px; color: var(--text-mute);
  font-weight: 400; letter-spacing: 0;
}
.mega-col a .new-pip {
  display: inline-block; margin-left: 6px; padding: 1px 6px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  background: var(--amber); color: var(--text);
  border-radius: var(--radius-pill); vertical-align: 1px;
}
.mega-cta {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 13px; color: var(--text-dim);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  /* Square corners (ItemUI #12): 6/6/8 across sm/md/lg. */
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--bg-2); border-color: #C2C2CC; }
.btn:active { transform: translateY(1px); }
.btn.primary {
  /* Flat red — drop the 180deg gradient (was visually busy; flat reads
     as confident). ItemUI #7: replace the red drop-shadow (which tinted
     the page) with a small neutral shadow that keeps the red contained
     to the button face. */
  background: var(--red);
  border: 1px solid var(--red-2);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.btn.primary:hover { background: var(--red-2); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-dim); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--line); color: var(--text); }
.btn.lg { padding: 13px 20px; font-size: 15px; border-radius: 6px; }
.btn.xl { padding: 16px 24px; font-size: 16px; border-radius: 8px; }
.btn .arrow { font-family: var(--mono); font-size: 14px; opacity: 0.85; }

/* Surfaces */
.surface { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-card); transition: box-shadow .18s, transform .18s; }
.surface.elev { box-shadow: var(--shadow-card-hover); }
.surface.glow { position: relative; }
.surface.glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(180deg, rgba(225,28,38,0.30), rgba(225,28,38,0) 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}

/* Eyebrow chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
  font-family: var(--mono); font-size: 11px; color: var(--text-dim);
  letter-spacing: 0.04em;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(225,28,38,0.16); }

/* Section spacing — tightened from 120/80 to 88/64 (ItemUI #2). */
.section { padding: 88px 0; }
.section-sm { padding: 64px 0; }
.section .head, .section-sm .head { max-width: 760px; margin-bottom: 40px; }
.section .head .h2 { margin-top: 14px; }
.section .head .lede { margin-top: 18px; font-size: 20px; color: var(--text-dim); }

/* Footer — networkershome.com-inspired deep-indigo treatment (2026-06-05).
   Was light gray (var(--bg-2)) with dark text — fine but visually weak
   as a closer. Now sits on var(--surface-dark) #1F1B4D with white-
   transparent type, matching the bottom band of NH's site. Gives the
   page a clear punctuation mark + visually anchors the "Stand up your
   privacy" CTA section that precedes it. */
.footer {
  padding: 96px 0 32px;
  background: var(--surface-dark);
  color: rgba(255, 255, 255, 0.72);
  border-top: 0;
}
.footer .top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer .brand { color: #fff; }
/* Footer mark keeps the SVG bg from .brand-mark (no override needed). */
.footer h4 { font-size: 13px; color: #fff; margin: 0 0 14px; font-weight: 700; letter-spacing: 0.02em; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.62); }
.footer ul a { transition: color .15s; }
.footer ul a:hover { color: #fff; }
.footer .muted { color: rgba(255, 255, 255, 0.62) !important; }
.footer .bottom { padding-top: 24px; display: flex; justify-content: space-between; gap: 24px; font-family: var(--mono); font-size: 11px; color: rgba(255, 255, 255, 0.52); letter-spacing: 0.04em; }
.footer .bottom .badges { display: flex; gap: 18px; }
.footer .bottom a { color: rgba(255, 255, 255, 0.62); transition: color .15s; }
.footer .bottom a:hover { color: #fff; }

.divider { height: 1px; background: var(--line); }

/* Code block — token classes prefixed to avoid collisions */
.code {
  font-family: var(--mono); font-size: 13px; line-height: 1.7;
  color: #1A1A22; white-space: pre-wrap;
  background: #FAFAFB; border: 1px solid var(--line); border-radius: 10px;
  padding: 18px 20px;
}
.code .tk-keyword { color: var(--red-2); }
.code .tk-string  { color: var(--amber); }
.code .tk-comment { color: #8A8A98; }
.code .tk-name    { color: var(--blue); }
.code .tk-var     { color: var(--violet); }

/* Tag pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--red-soft); color: var(--red-2);
  font-family: var(--mono); font-size: 11px;
  border: 1px solid #F7C9CD;
}
.pill.green { background: #E6F7EE; color: var(--green); border-color: #B9E8CF; }
.pill.amber { background: #FFF4DB; color: var(--amber); border-color: #F2DDA0; }
.pill.muted { background: var(--bg-2); color: var(--text-dim); border-color: var(--line-2); }

/* Form */
input, textarea, select {
  width: 100%; background: #fff; border: 1px solid var(--line-2); color: var(--text);
  padding: 11px 14px; border-radius: 10px; font-size: 14px; font-family: var(--sans);
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225,28,38,0.10); }

/* Reveal */
.reveal { transition: opacity .5s ease, transform .5s ease; }
.js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(8px); }

/* Hero backgrounds */
.bg-grid {
  background-image:
    linear-gradient(rgba(11,11,16,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,11,16,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.bg-radial {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(225,28,38,0.10), transparent 60%),
    radial-gradient(60% 60% at 100% 100%, rgba(111,70,224,0.06), transparent 60%);
}

.accent { color: var(--red); }
/* Drop the gradient-clip on h1 accents (ItemUI #5). Flat red reads as
   confident; gradient-text is a 2018 SaaS tic. The .h1 .accent override
   in the per-page <style> blocks gets neutralized here. */
.h1 .accent, .h2 .accent { background: none !important; -webkit-background-clip: initial !important; background-clip: initial !important; color: var(--red) !important; }
.muted { color: var(--text-dim); }
.mute { color: var(--text-mute); }

.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { text-align: center; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }

/* Mobile hamburger + drawer (2026-06-05).
   Hamburger button sits in the navbar's CTA cluster, hidden on desktop.
   On tap, shared.js clones the desktop nav items into <aside class=
   "mobile-drawer"> at end-of-body and toggles .mobile-nav-open on
   <body> — which slides the drawer in from the right and locks scroll.
   No per-page HTML duplication beyond the single button. */
.nav-hamburger {
  display: none;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
  color: var(--text); padding: 0; margin-left: 4px;
  transition: background .15s, border-color .15s;
}
.nav-hamburger:hover { background: var(--bg-2); border-color: var(--line-2); }
.nav-hamburger .bars { width: 18px; height: 2px; background: currentColor; position: relative; transition: background .15s; }
.nav-hamburger .bars::before,
.nav-hamburger .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.nav-hamburger .bars::before { top: -6px; }
.nav-hamburger .bars::after  { top:  6px; }
body.mobile-nav-open .nav-hamburger .bars { background: transparent; }
body.mobile-nav-open .nav-hamburger .bars::before { top: 0; transform: rotate(45deg); }
body.mobile-nav-open .nav-hamburger .bars::after  { top: 0; transform: rotate(-45deg); }

/* The drawer itself + backdrop. Off-screen by default; slide in on
   .mobile-nav-open. Lock body scroll while open. */
.mobile-drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(11,11,16,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
body.mobile-nav-open .mobile-drawer-backdrop { opacity: 1; pointer-events: auto; }

.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(86vw, 360px);
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 48px -16px rgba(11,11,16,0.18);
  padding: 80px 20px 32px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .22s cubic-bezier(.4,.0,.2,1);
}
body.mobile-nav-open .mobile-drawer { transform: translateX(0); }
body.mobile-nav-open { overflow: hidden; }

.mobile-drawer section { margin-bottom: 20px; }
.mobile-drawer h5 {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase;
}
.mobile-drawer a {
  display: block; padding: 10px 0; font-size: 15px;
  color: var(--text); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.mobile-drawer a:hover { color: var(--red); }
.mobile-drawer section:last-of-type a:last-child { border-bottom: 0; }
.mobile-drawer .mobile-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.mobile-drawer .mobile-cta a { border: 0; padding: 12px 16px; text-align: center; border-radius: var(--radius-sm); }
.mobile-drawer .mobile-cta a.primary { background: var(--red); color: #fff; }
.mobile-drawer .mobile-cta a.ghost { border: 1px solid var(--line-2); color: var(--text); }

@media (max-width: 980px) {
  .footer .top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-item { display: none; }                  /* mega-dropdowns become drawer entries */
  .utilbar .utilbar-right { display: none; }    /* keep status indicator, drop trail links */
  .nav-hamburger { display: inline-flex; }
  .nav-cta .btn.ghost { display: none; }        /* sign-in moves into the drawer */
}
