/* ============================================================
   Bloatless Browser — landing styles
   Refined dark UI. Palette derived from the browser's own chrome.
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #0d0e11;
  --bg-2:      #121318;
  --surface:   #16181d;
  --surface-2: #1b1d22;   /* the browser's own bg */
  --field:     #22252c;

  /* lines + text */
  --line:      rgba(255,255,255,.07);
  --line-2:    rgba(255,255,255,.12);
  --text:      #e9ebef;
  --muted:     #9aa0aa;
  --faint:     #6b7280;

  /* accents */
  --blue:      #5b9dff;
  --blue-soft: #7db1ff;
  --green:     #4ad07d;
  --red:       #ff5468;
  --amber:     #ffb648;

  --radius:    20px;
  --radius-sm: 13px;
  --maxw:      1180px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: normal; color: var(--text); }
code { font-family: var(--font-mono); font-size: .85em; }

/* ───────────────── atmosphere ───────────────── */
.atmosphere { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .55; }
.glow-blue {
  width: 760px; height: 760px; top: -340px; left: -180px;
  background: radial-gradient(circle, rgba(91,157,255,.34), transparent 68%);
}
.glow-green {
  width: 620px; height: 620px; top: 18%; right: -260px;
  background: radial-gradient(circle, rgba(74,208,125,.20), transparent 68%);
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.024) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}
.grain {
  position: absolute; inset: 0; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ───────────────── layout helpers ───────────────── */
main { display: block; }
section { position: relative; }
.section-head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--blue-soft);
  padding: 5px 12px; border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(91,157,255,.05); margin-bottom: 20px;
}
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 4vw, 44px); line-height: 1.08;
  letter-spacing: -.02em; margin: 0 0 18px;
}
.section-sub { color: var(--muted); font-size: clamp(15px, 1.5vw, 17px); margin: 0; }

.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); display: inline-block; vertical-align: middle; }

/* ───────────────── buttons ───────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary {
  color: #08111f;
  background: linear-gradient(180deg, var(--blue-soft), var(--blue));
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -8px rgba(91,157,255,.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 14px 34px -10px rgba(91,157,255,.75); }
.btn-ghost {
  color: var(--text); background: rgba(255,255,255,.04);
  border-color: var(--line-2); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); transform: translateY(-2px); }

/* ───────────────── nav ───────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 16px clamp(20px, 5vw, 48px);
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13,14,17,.72); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line); padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand-mark { border-radius: 8px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -.01em; }
.brand-dim { color: var(--faint); margin-left: 2px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px;
  background: var(--blue); transition: right .3s var(--ease);
}
.nav-links a:hover::after { right: 0; }
.nav-cta { padding: 9px 16px; font-size: 14px; }

/* language switch (EN / ES) */
.lang-switch {
  display: flex; gap: 2px; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 100px;
  background: rgba(255,255,255,.03); backdrop-filter: blur(8px);
}
.lang-btn {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  color: var(--muted); background: transparent; border: 0; cursor: pointer;
  padding: 5px 11px; border-radius: 100px; transition: color .2s, background .2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { color: #08111f; background: linear-gradient(180deg, var(--blue-soft), var(--blue)); }

/* nav download dropdown */
.nav-dl { position: relative; }
.nav-dl-chev { transition: transform .25s var(--ease); margin-left: -2px; }
.nav-dl.open .nav-dl-chev { transform: rotate(180deg); }
.nav-dl-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 244px;
  background: rgba(20,22,27,.92); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--line-2); border-radius: 15px; padding: 6px;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right;
  pointer-events: none; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.nav-dl.open .nav-dl-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-dl-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 11px; transition: background .18s; }
.nav-dl-item:hover { background: rgba(255,255,255,.06); }
.nav-dl-ic { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; display: grid; place-items: center; color: var(--blue); background: rgba(91,157,255,.1); border: 1px solid var(--line-2); }
.nav-dl-ic svg { width: 20px; height: 20px; }
.nav-dl-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-dl-txt b { font-size: 14px; font-weight: 600; }
.nav-dl-txt small { font-size: 11.5px; color: var(--muted); }
.nav-dl-item + .nav-dl-item { margin-top: 2px; }

/* ───────────────── installer notice modal ───────────────── */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6,7,9,.74); backdrop-filter: blur(6px); animation: mfade .25s ease; }
.modal-card {
  position: relative; width: 100%; max-width: 544px; max-height: 88vh; overflow: auto;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-2); border-radius: 20px; padding: 30px 30px 26px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85); animation: mrise .32s var(--ease);
}
@keyframes mfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mrise { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 15px; right: 15px; width: 32px; height: 32px; border: 0; border-radius: 9px;
  background: rgba(255,255,255,.05); color: var(--muted); font-size: 19px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.modal-x:hover { background: rgba(255,255,255,.1); color: var(--text); }
.modal-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px;
  color: var(--amber); background: rgba(255,182,72,.12); border: 1px solid var(--line-2); }
.modal-icon svg { width: 24px; height: 24px; }
.modal-title { font-family: var(--font-display); font-weight: 600; font-size: 23px; letter-spacing: -.015em; margin: 0 0 15px; padding-right: 28px; }
.modal-warn { font-size: 13.5px; color: #ffd9a1; background: rgba(255,182,72,.08); border: 1px solid rgba(255,182,72,.22); padding: 10px 13px; border-radius: 11px; margin: 0 0 16px; }
.modal-p { font-size: 14px; color: var(--muted); margin: 0 0 14px; line-height: 1.6; }
.modal-contact { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; }
.modal-contact a { color: var(--blue-soft); border-bottom: 1px solid rgba(123,177,255,.3); word-break: break-all; }
.modal-contact a:hover { border-color: var(--blue-soft); }
.modal-btc { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 12px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 22px; }
.modal-btc-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--amber); flex: 0 0 auto; }
.modal-btc-addr { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-btc-copy { flex: 0 0 auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--text);
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2); padding: 5px 11px; border-radius: 8px; cursor: pointer; transition: background .2s; }
.modal-btc-copy:hover { background: rgba(255,255,255,.12); }
.modal-actions { display: flex; gap: 8px; justify-content: center; align-items: stretch; flex-wrap: wrap; }
.modal-actions .btn { padding: 10px 13px; font-size: 12.5px; flex: 0 1 auto; }
.modal-alt { color: var(--blue-soft); background: rgba(91,157,255,.08); border-color: rgba(91,157,255,.24); }
.modal-alt:hover { background: rgba(91,157,255,.15); border-color: rgba(91,157,255,.45); color: var(--text); transform: translateY(-2px); }
/* portable download shows the same note, minus the certificate-specific parts */
.modal-free-port { display: none; }
.modal[data-mode="portable"] .modal-warn,
.modal[data-mode="portable"] .modal-alt,
.modal[data-mode="portable"] .modal-free-inst { display: none; }
.modal[data-mode="portable"] .modal-free-port { display: block; }
@media (max-width: 480px) {
  .modal-card { padding: 26px 22px 22px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .modal-btc-addr { font-size: 10px; }
}

/* ───────────────── hero ───────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(120px, 16vh, 180px) clamp(20px, 5vw, 48px) 70px;
  display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--muted); padding: 6px 14px 6px 11px;
  border: 1px solid var(--line-2); border-radius: 100px; background: rgba(255,255,255,.025);
  margin-bottom: 26px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(74,208,125,.18); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(74,208,125,0); } }

.display {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(42px, 6.4vw, 76px); line-height: .98;
  letter-spacing: -.035em; margin: 0 0 26px;
}
.accent-grad {
  background: linear-gradient(100deg, var(--blue-soft) 10%, var(--green) 92%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 1.7vw, 19px); color: var(--muted); max-width: 30em; margin: 0 0 34px; }
.lead em { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.hero-trust { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: var(--faint); font-family: var(--font-mono); }
.hero-trust strong { color: var(--green); font-weight: 600; }

/* ───────────────── demo browser ───────────────── */
.hero-demo { perspective: 1800px; }
.demo-frame {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line-2);
  box-shadow:
    0 1px 0 rgba(255,255,255,.05) inset,
    0 40px 80px -40px rgba(0,0,0,.85),
    0 18px 40px -28px rgba(91,157,255,.35);
  transform: rotateX(3deg) rotateY(-5deg) rotateZ(.4deg);
  transform-style: preserve-3d;
  transition: transform .6s var(--ease);
}
.hero-demo:hover .demo-frame { transform: rotateX(1.5deg) rotateY(-2deg); }

/* chrome */
.demo-chrome { background: #1b1d22; border-bottom: 1px solid rgba(0,0,0,.4); }
.demo-tabs { display: flex; align-items: flex-end; gap: 0; padding: 8px 10px 0; }
.demo-tab {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px;
  border-radius: 9px 9px 0 0; background: #262932; color: var(--muted);
  font-size: 12.5px; max-width: 170px; white-space: nowrap;
}
.demo-tab.active { background: #353a45; color: var(--text); }
.demo-tab .tt { overflow: hidden; text-overflow: ellipsis; }
.demo-tab .fav { width: 13px; height: 13px; border-radius: 3px; background: linear-gradient(135deg, var(--blue), #2f6fd6); flex: 0 0 auto; }
.demo-tab .fav-yt { background: var(--red); }
.demo-newtab { color: var(--muted); padding: 0 10px 4px; font-size: 18px; line-height: 1; align-self: center; }

.demo-toolbar { display: flex; align-items: center; gap: 10px; padding: 8px 12px 11px; }
.demo-navbtns { display: flex; gap: 4px; color: var(--muted); }
.demo-navbtns svg { width: 17px; height: 17px; padding: 4px; border-radius: 6px; }
.demo-navbtns svg.dim { opacity: .35; }
.demo-urlbar {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 6px 0 12px; border-radius: 9px;
  background: #2e323b; color: var(--text); font-size: 13px;
}
.demo-urlbar .lock { width: 14px; height: 14px; color: var(--green); flex: 0 0 auto; }
.url-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url-dim { color: var(--faint); }

.shield-pill {
  display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  border: 0; border-radius: 7px; cursor: pointer;
  background: rgba(74,208,125,.14); color: var(--green);
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  transition: background .3s, color .3s;
}
.shield-pill svg { width: 15px; height: 15px; }
.shield-tick { stroke-dasharray: 10; stroke-dashoffset: 0; transition: stroke-dashoffset .3s; }
.shield-count { min-width: 1ch; text-align: right; }
/* unprotected state */
.demo-frame[data-protected="false"] .shield-pill { background: rgba(255,84,104,.14); color: var(--red); }
.demo-frame[data-protected="false"] .shield-tick { stroke-dashoffset: 10; }

/* viewport */
.demo-viewport {
  display: grid; grid-template-columns: 1fr 132px; gap: 18px;
  padding: 22px; height: 396px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255,255,255,.02), transparent 60%),
    var(--surface-2);
}
.page-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--blue-soft); margin-bottom: 9px; }
.page-head { font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.12; letter-spacing: -.015em; margin: 0 0 11px; }
.page-byline { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--faint); margin-bottom: 16px; }
.byline-av { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #3a3f4a, #2a2d34); }
.page-p { font-size: 12.5px; color: var(--muted); margin: 0 0 11px; line-height: 1.55; }
/* skeleton lines for filler text */
.page-p.line { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); margin-bottom: 9px; }
.page-p.line.short { width: 62%; }

.page-aside { display: flex; flex-direction: column; gap: 16px; }

/* ── ads (the things that get blocked) ── */
.ad {
  position: relative; border: 1px dashed rgba(255,84,104,.4);
  border-radius: 9px; background: rgba(255,84,104,.06);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  overflow: hidden; transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s, max-height .55s var(--ease), margin .5s, padding .5s, border-color .5s;
}
.ad-tag {
  position: absolute; top: 5px; left: 6px; font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: .1em; color: var(--red);
  background: rgba(255,84,104,.16); padding: 1px 5px; border-radius: 4px;
}
.ad-banner { height: 46px; margin: 4px 0 16px; }
.ad-fake { font-size: 12px; font-weight: 600; color: #ff9aa6; letter-spacing: .01em; }
.ad-fake.small { font-size: 10.5px; }
.ad-box { flex-direction: column; height: 116px; padding: 10px; }
.ad-box.tall { height: 150px; }
.ad-art { width: 100%; flex: 1; border-radius: 6px; background: repeating-linear-gradient(45deg, rgba(255,84,104,.12), rgba(255,84,104,.12) 7px, rgba(255,84,104,.05) 7px, rgba(255,84,104,.05) 14px); margin-bottom: 7px; }

/* blocked: ads dissolve away */
.demo-frame[data-protected="true"] .ad {
  opacity: 0; transform: scale(.92); filter: blur(6px);
  max-height: 0 !important; margin-top: 0; margin-bottom: 0;
  padding-top: 0; padding-bottom: 0; border-color: transparent; pointer-events: none;
}
.demo-frame[data-protected="true"] .ad-banner { margin-bottom: 0; }

/* ── youtube embed (the video-ad blocking showcase) ── */
.yt-embed { margin: 14px 0; border-radius: 10px; overflow: hidden; background: #0a0b0d; border: 1px solid var(--line); }
.yt-stage { position: relative; aspect-ratio: 16/8.6; overflow: hidden; }

/* the "video" itself — an abstract cinematic frame sitting behind everything */
.yt-scene { position: absolute; inset: 0;
  background:
    radial-gradient(58% 85% at 67% 24%, rgba(255,198,122,.6), transparent 55%),
    radial-gradient(85% 120% at 22% 88%, rgba(91,157,255,.32), transparent 60%),
    linear-gradient(165deg, #1b1e25 0%, #0c0e12 72%); }
.yt-scene::before { content:""; position:absolute; left:60%; top:24%; width:44px; height:44px; border-radius:50%;
  background: radial-gradient(circle at 40% 35%, #ffe7b3, #ff9b58 70%); box-shadow: 0 0 26px rgba(255,150,90,.5); }
.yt-scene::after { content:""; position:absolute; left:-5%; right:-5%; bottom:-1px; height:52%;
  background: linear-gradient(180deg, rgba(10,12,16,0), rgba(8,9,12,.85));
  clip-path: polygon(0 42%,20% 24%,38% 38%,58% 16%,78% 32%,100% 20%,100% 100%,0 100%); }

.yt-ad, .yt-video { position: absolute; inset: 0; transition: opacity .45s var(--ease); }

/* the pre-roll ad overlay (covers the video while unprotected) */
.yt-ad { background: linear-gradient(135deg, #2a1216, #160a0d); display: grid; place-items: center; }
.yt-ad-badge { position: absolute; top: 8px; left: 8px; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .12em; color: #08111f; background: var(--amber); padding: 2px 7px; border-radius: 4px; font-weight: 700; }
.yt-ad-title { font-size: 13px; font-weight: 700; color: #ffd9a1; text-align: center; padding: 0 16px; }
.yt-skip { position: absolute; right: 8px; bottom: 12px; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10.5px; color: #e3e7ee;
  background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.28); padding: 4px 9px; border-radius: 3px; }
.yt-skip b { color: var(--amber); min-width: 1ch; text-align: center; }
.yt-adbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.yt-adbar-fill { display: block; height: 100%; width: 34%; background: var(--amber); }

/* the actual video, playing instantly once protected */
.yt-video { opacity: 0; }
.yt-noads { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 8.5px; letter-spacing: .06em; font-weight: 700; color: #06160e;
  background: var(--green); padding: 3px 9px; border-radius: 100px; box-shadow: 0 2px 10px rgba(74,208,125,.4); }
.yt-eq { position: absolute; left: 50%; top: 45%; transform: translate(-50%,-50%); display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.yt-eq i { width: 4px; height: 100%; border-radius: 2px; background: rgba(255,255,255,.9); transform-origin: bottom; transform: scaleY(.3); animation: eq 1s ease-in-out infinite; }
.yt-eq i:nth-child(2){ animation-delay:.16s } .yt-eq i:nth-child(3){ animation-delay:.32s } .yt-eq i:nth-child(4){ animation-delay:.1s } .yt-eq i:nth-child(5){ animation-delay:.26s }
@keyframes eq { 0%,100%{ transform: scaleY(.28) } 50%{ transform: scaleY(1) } }
.yt-controls { position: absolute; left: 9px; right: 9px; bottom: 7px; display: flex; align-items: center; gap: 8px; }
.yt-cplay { width: 13px; height: 13px; color: #fff; flex: 0 0 auto; }
.yt-time { font-family: var(--font-mono); font-size: 9px; color: #eef0f4; flex: 0 0 auto; }
.yt-prog { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.22); overflow: hidden; }
.yt-prog-fill { display: block; height: 100%; width: 0; background: var(--red); border-radius: 2px; }

.yt-meta { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; }
.yt-title { font-size: 11.5px; font-weight: 600; }
.yt-sub { font-size: 10px; color: var(--faint); }

/* protected → hide ad, show video; unprotected → show ad, dim video */
.demo-frame[data-protected="true"]  [data-yt-ad]    { opacity: 0; pointer-events: none; }
.demo-frame[data-protected="true"]  [data-yt-video] { opacity: 1; }
.demo-frame[data-protected="true"]  .yt-prog-fill   { width: 58%; transition: width 3.4s linear; }
.demo-frame[data-protected="false"] [data-yt-ad]    { opacity: 1; }
.demo-frame[data-protected="false"] [data-yt-video] { opacity: 0; }

/* ── popup ── */
.popup {
  position: absolute; right: 18px; bottom: 18px; width: 210px;
  border-radius: 12px; overflow: hidden; z-index: 6;
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 20px 50px -16px rgba(0,0,0,.7);
  transition: opacity .45s var(--ease), transform .5s var(--ease);
}
.popup-head { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: #20232a; font-size: 10.5px; color: var(--muted); }
.popup-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.popup-x { margin-left: auto; background: none; border: 0; color: var(--faint); font-size: 15px; line-height: 1; cursor: pointer; }
.popup-body { padding: 14px 13px 16px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.popup-big { font-size: 12.5px; font-weight: 700; color: var(--amber); line-height: 1.3; }
.popup-sub { font-size: 10.5px; color: var(--muted); }
.popup-btn { margin-top: 4px; font-size: 11px; font-weight: 700; color: #08111f; background: var(--amber); padding: 6px 16px; border-radius: 100px; }
.demo-frame[data-protected="true"] .popup { opacity: 0; transform: translateY(16px) scale(.94); pointer-events: none; }

/* scanline sweep on toggle */
.scanline {
  position: absolute; left: 0; right: 0; top: 0; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(91,157,255,.16) 60%, rgba(91,157,255,.32));
  border-bottom: 1px solid rgba(123,177,255,.6);
  opacity: 0; pointer-events: none;
}
.demo-frame.scanning .scanline { animation: sweep .7s var(--ease); }
@keyframes sweep {
  0% { opacity: 1; transform: translateY(-40%); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translateY(260%); }
}

/* demo control */
.demo-control {
  display: flex; align-items: center; gap: 14px;
  margin-top: 22px; padding: 14px 18px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
  border-radius: 14px; backdrop-filter: blur(8px);
}
.dc-label { font-weight: 600; font-size: 14px; }
.dc-hint { margin-left: auto; font-size: 12.5px; color: var(--faint); font-family: var(--font-mono); transition: color .3s; }
.toggle {
  position: relative; width: 74px; height: 32px; border-radius: 100px;
  border: 1px solid var(--line-2); cursor: pointer; padding: 0;
  background: var(--field); transition: background .35s var(--ease);
}
.toggle[aria-checked="true"] { background: rgba(74,208,125,.2); border-color: rgba(74,208,125,.4); }
.toggle-knob {
  position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: linear-gradient(180deg, #fff, #cfd4dc);
  box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .35s var(--ease);
}
.toggle[aria-checked="true"] .toggle-knob { transform: translateX(42px); background: linear-gradient(180deg, #d6ffe6, var(--green)); }
.toggle-on, .toggle-off {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .08em;
}
.toggle-on { left: 11px; color: var(--green); opacity: 0; transition: opacity .3s; }
.toggle-off { right: 10px; color: var(--faint); opacity: 1; transition: opacity .3s; }
.toggle[aria-checked="true"] .toggle-on { opacity: 1; }
.toggle[aria-checked="true"] .toggle-off { opacity: 0; }

/* ───────────────── showcase cards ───────────────── */
/* ───────────────── migration (featured band, just under hero) ───────────────── */
.migrate { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px,5vw,48px) clamp(20px,3vh,32px); }
.migrate-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: clamp(20px,4vw,40px);
  padding: clamp(26px,4vw,40px) clamp(24px,4vw,44px); border-radius: var(--radius);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(91,157,255,.16), transparent 50%),
    radial-gradient(120% 160% at 100% 100%, rgba(74,208,125,.06), transparent 55%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid rgba(91,157,255,.28);
}
.migrate-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(130deg, rgba(91,157,255,.55), transparent 45%, rgba(74,208,125,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.migrate-ic-lg { width: 72px; height: 72px; flex: 0 0 auto; border-radius: 18px; display: grid; place-items: center;
  color: var(--blue); background: rgba(91,157,255,.14); border: 1px solid rgba(91,157,255,.32);
  box-shadow: 0 14px 30px -14px rgba(91,157,255,.6); }
.migrate-ic-lg svg { width: 38px; height: 38px; }
.migrate-body { min-width: 0; }
.migrate-tag { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-soft); margin-bottom: 12px; }
.migrate-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px,3vw,30px);
  letter-spacing: -.02em; line-height: 1.1; margin: 0 0 12px; }
.migrate-desc { font-size: clamp(14px,1.6vw,16px); color: var(--muted); margin: 0 0 18px; max-width: 56ch; }
.migrate-browsers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.migrate-from { font-size: 13px; color: var(--faint); margin-right: 2px; }
.migrate-chip { font-family: var(--font-mono); font-size: 12px; color: var(--text);
  padding: 5px 11px; border-radius: 100px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); }
@media (max-width: 680px) {
  .migrate-card { flex-direction: column; align-items: flex-start; }
}

.showcase { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,9vh,110px) clamp(20px,5vw,48px); }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card {
  position: relative; padding: 30px 28px 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(160deg, rgba(91,157,255,.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .4s;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.card:hover::before { opacity: 1; }
.card-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 22px; border: 1px solid var(--line-2); }
.card-icon svg { width: 26px; height: 26px; }
.ic-ads { color: var(--red); background: rgba(255,84,104,.1); }
.ic-popup { color: var(--amber); background: rgba(255,182,72,.1); }
.ic-yt { color: var(--blue); background: rgba(91,157,255,.1); }
.card-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; margin: 0 0 12px; }
.card-text { font-size: 14.5px; color: var(--muted); margin: 0 0 22px; }
.card-stat { display: block; font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); padding-top: 16px; border-top: 1px solid var(--line); }
.card-stat b { color: var(--green); font-weight: 600; }

/* ───────────────── bloat removed ───────────────── */
.bloat { padding: clamp(60px,9vh,110px) clamp(20px,5vw,48px); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(255,255,255,.012)); }
.bloat-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: clamp(34px,5vw,70px); align-items: start; }
.bloat-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 26px; }
.bloat-list li { margin-bottom: 13px; break-inside: avoid; font-size: 15px; }
.strike { position: relative; color: var(--faint); padding-left: 26px; display: inline-block; }
.strike::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 16px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, transparent 56%, rgba(255,84,104,.5) 57%) ,
    linear-gradient(45deg, transparent 44%, var(--red) 45%, var(--red) 55%, transparent 56%);
  border-radius: 50%;
}
.strike::after {
  content: ""; position: absolute; left: 26px; right: 0; top: 50%; height: 1.5px;
  background: var(--line-2);
}
.bloat-kept { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.kept-line { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.kept-line svg { width: 17px; height: 17px; color: var(--green); flex: 0 0 auto; padding: 3px; background: rgba(74,208,125,.12); border-radius: 6px; }
.kept-line code { color: var(--blue-soft); }

/* ───────────────── specs ───────────────── */
.specs {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(50px,7vh,90px) clamp(20px,5vw,48px);
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.specs { margin-top: 20px; margin-bottom: 20px; }
.spec { background: var(--bg); padding: 34px 26px; }
.spec-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(34px,4vw,46px); letter-spacing: -.03em; display: block; margin-bottom: 12px;
  background: linear-gradient(180deg, #fff, #aab2bf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.spec-unit { font-size: .45em; color: var(--blue-soft); -webkit-text-fill-color: var(--blue-soft); margin-left: 3px; letter-spacing: 0; }
.spec-label { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ───────────────── download ───────────────── */
.download { max-width: var(--maxw); margin: 0 auto; padding: clamp(60px,9vh,120px) clamp(20px,5vw,48px); }
.dl-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 22px; max-width: 880px; margin: 0 auto; }
.dl-card {
  position: relative; padding: 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .4s, box-shadow .4s;
}
.dl-card.featured { border-color: rgba(91,157,255,.35); box-shadow: 0 0 0 1px rgba(91,157,255,.12), 0 30px 70px -40px rgba(91,157,255,.5); }
.dl-card:hover { transform: translateY(-4px); box-shadow: 0 36px 70px -34px rgba(0,0,0,.75); }
.dl-card.featured:hover { box-shadow: 0 0 0 1px rgba(91,157,255,.25), 0 36px 80px -34px rgba(91,157,255,.55); }
.dl-badge { position: absolute; top: 22px; right: 22px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-soft); background: rgba(91,157,255,.12); border: 1px solid rgba(91,157,255,.3); padding: 4px 10px; border-radius: 100px; }
.dl-top { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.dl-icon { width: 52px; height: 52px; flex: 0 0 auto; border-radius: 14px; display: grid; place-items: center; color: var(--blue); background: rgba(91,157,255,.1); border: 1px solid var(--line-2); }
.dl-icon svg { width: 28px; height: 28px; }
.dl-title { font-family: var(--font-display); font-weight: 600; font-size: 22px; margin: 0 0 3px; }
.dl-meta { font-size: 13px; color: var(--muted); }
.dl-feats { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.dl-feats li { position: relative; padding-left: 26px; font-size: 14px; color: var(--muted); }
.dl-feats li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 15px; height: 15px;
  background: rgba(74,208,125,.14); border-radius: 5px;
}
.dl-feats li::after {
  content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 4px;
  border-left: 1.6px solid var(--green); border-bottom: 1.6px solid var(--green);
  transform: rotate(-45deg);
}
.dl-feats code { color: var(--blue-soft); }
.dl-btn { width: 100%; margin-bottom: 18px; }
.dl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.dl-file { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-size { font-family: var(--font-mono); font-size: 11.5px; color: var(--faint); flex: 0 0 auto; }
.dl-hash { display: block; margin-top: 12px; font-size: 10.5px; color: var(--faint); opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-note { text-align: center; margin: 34px auto 0; max-width: 540px; font-size: 13.5px; color: var(--faint); }
.dl-note a { color: var(--blue-soft); border-bottom: 1px solid rgba(123,177,255,.3); }
.dl-note a:hover { border-color: var(--blue-soft); }

/* ───────────────── contact ───────────────── */
.contact { max-width: var(--maxw); margin: 0 auto; padding: clamp(50px,8vh,100px) clamp(20px,5vw,48px); }
.contact-card {
  max-width: 660px; margin: 0 auto; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(34px,5vw,52px) clamp(22px,5vw,48px);
}
.contact-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(91,157,255,.4), transparent 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.contact-card .section-title { margin: 14px 0 16px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 11px; margin: 28px 0 0;
  font-family: var(--font-mono); font-size: clamp(14px,2.1vw,18px); font-weight: 500; color: var(--text);
  padding: 13px 22px; border-radius: 100px; background: rgba(91,157,255,.08);
  border: 1px solid rgba(91,157,255,.28); transition: background .25s, border-color .25s, transform .25s;
  word-break: break-all;
}
.contact-email:hover { background: rgba(91,157,255,.15); border-color: rgba(91,157,255,.5); transform: translateY(-2px); }
.contact-email-ic { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; color: var(--blue); }
.contact-email-ic svg { width: 22px; height: 22px; }

/* ───────────────── footer ───────────────── */
.footer {
  max-width: var(--maxw); margin: 0 auto; padding: 50px clamp(20px,5vw,48px) 60px;
  border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.footer-brand img { border-radius: 7px; }
.footer-tag { color: var(--muted); margin: 0; font-size: 14.5px; }
.footer-meta { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }

/* ───────────────── reveal-on-scroll ───────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.cards .card:nth-child(2) { transition-delay: .08s; }
.cards .card:nth-child(3) { transition-delay: .16s; }
.specs .spec:nth-child(2){ transition-delay: .06s; }
.specs .spec:nth-child(3){ transition-delay: .12s; }
.specs .spec:nth-child(4){ transition-delay: .18s; }

/* ───────────────── responsive ───────────────── */
.nav-burger { display: none; }   /* shown only on mobile (below) */

@media (max-width: 980px) {
  /* minmax(0,1fr) lets the track shrink below its content's min-width, so the
     wide demo mock is clipped internally instead of widening the whole page */
  .hero { grid-template-columns: minmax(0,1fr); padding-top: 116px; gap: 40px; }
  .demo-frame, .hero-demo:hover .demo-frame { transform: none; }
  .bloat-inner { grid-template-columns: minmax(0,1fr); }
  .specs { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .nav { gap: 12px; }
  /* link row collapses into a hamburger dropdown */
  .nav-burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 38px; padding: 0 10px; flex: 0 0 auto;
    border: 1px solid var(--line-2); border-radius: 11px; background: rgba(255,255,255,.04); cursor: pointer;
  }
  .nav-burger span { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s; }
  .nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-dl { display: none; }   /* "Get it" lives in the menu / hero CTA on mobile */

  .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13,14,17,.97); backdrop-filter: blur(18px) saturate(1.3);
    border-bottom: 1px solid var(--line);
    padding: 0 clamp(20px,5vw,48px);
    max-height: 0; overflow: hidden; opacity: 0; pointer-events: none;
    transition: max-height .32s var(--ease), opacity .25s, padding .32s, border-color .25s;
    border-top: 1px solid transparent;
  }
  .nav.menu-open .nav-links { max-height: 78vh; opacity: 1; pointer-events: auto;
    padding: 6px clamp(20px,5vw,48px) 14px; border-top-color: var(--line); }
  .nav-links a { padding: 15px 2px; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }

  .cards { grid-template-columns: minmax(0,1fr); }
  .dl-cards { grid-template-columns: minmax(0,1fr); }
  .bloat-list { columns: 1; }
  .display { font-size: clamp(38px,11vw,56px); }
  .demo-viewport { height: auto; grid-template-columns: minmax(0,1fr); }
  .page-aside { flex-direction: row; }
  .ad-box, .ad-box.tall { height: 100px; flex: 1; }
  .section-head { margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .migrate-card { padding: 24px 22px; }
  .dl-card, .contact-card { padding: 26px 22px; }
}

@media (max-width: 460px) {
  .specs { grid-template-columns: 1fr; }
  .demo-control { flex-wrap: wrap; }
  .dc-hint { margin-left: 0; width: 100%; }
  .hero-trust { font-size: 12px; gap: 8px; }
  .section-title { font-size: clamp(25px,7vw,34px); }
  .nav { padding-left: 16px; padding-right: 16px; }
  .brand-name { font-size: 16px; }
  .brand-dim { display: none; }   /* just "Bloatless" on very narrow screens */
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
