/* ============================================================
   OmiBrowser — Landing page styles
   Spotify-faithful: #121212 base · #181818→#282828 surfaces
   green #1ed760 · pill buttons that scale on hover
   ============================================================ */

:root {
  --bg-base: #121212;        /* Spotify app background */
  --bg-surface: #181818;     /* card resting */
  --bg-elevated: #282828;    /* card hover / elevated */
  --bg-black: #000000;       /* nav / top bar */
  --panel-line: rgba(255, 255, 255, 0.08);
  --green: #1ed760;
  --green-700: #1db954;      /* Spotify classic green */
  --green-glow: rgba(30, 215, 96, 0.25);
  --text: #ffffff;
  --muted: #b3b3b3;          /* Spotify subdued text */
  --muted-dim: #6a6a6a;
  --display: "Be Vietnam Pro", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease: cubic-bezier(0.3, 0, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Spotify gradient wash from top — subtle, flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1100px 520px at 80% -10%, rgba(30, 215, 96, 0.12), transparent 60%),
    linear-gradient(180deg, #1a1a1a 0%, var(--bg-base) 420px);
  pointer-events: none;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); }

/* ============ NAV ============ */
nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.4);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(0, 0, 0, 0.85); }
.nav-inner {
  max-width: var(--max); margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 1.18rem; }
.brand .logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; }
.brand b { color: var(--green); }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-size: 0.92rem; font-weight: 600; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--green); color: #000; font-weight: 700; font-size: 0.92rem;
  padding: 11px 26px; border-radius: 999px; transition: transform 0.15s var(--ease), background 0.2s;
}
.nav-cta:hover { transform: scale(1.05); background: #1fdf64; }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ============ HERO ============ */
.hero { padding: 88px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(30, 215, 96, 0.28); border-radius: 999px;
  padding: 7px 15px; background: rgba(30, 215, 96, 0.06);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:0.3 } }

h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 0.98; font-weight: 800; letter-spacing: -0.04em;
  margin: 26px 0 22px;
}
h1 .accent { color: var(--green); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 520px; line-height: 1.65; }

.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; align-items: center; }

/* Spotify pill buttons — fully rounded, scale on hover */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1rem; padding: 16px 32px; border-radius: 999px;
  cursor: pointer; transition: transform 0.15s var(--ease), background 0.2s, color 0.2s; border: none;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { transform: scale(1.05); background: #1fdf64; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { transform: scale(1.05); border-color: var(--text); }

.platforms { display: flex; gap: 22px; margin-top: 26px; color: var(--muted-dim); font-size: 0.86rem; font-family: var(--mono); }
.platforms span { display: flex; align-items: center; gap: 7px; }
.platforms svg { width: 15px; height: 15px; opacity: 0.85; }

/* Orbit visual */
.orbit-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 460px; margin: 0 auto; display: grid; place-items: center; }
.orbit-ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(30,215,96,0.16);
  inset: 0; animation: spin 38s linear infinite;
}
.orbit-ring.r2 { inset: 16%; border-color: rgba(30,215,96,0.22); animation-duration: 26s; animation-direction: reverse; }
.orbit-ring.r3 { inset: 32%; border-color: rgba(30,215,96,0.3); animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }

.orbit-node {
  position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green);
}
.orbit-ring.r2 .orbit-node { background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.7); }
.orbit-ring.r3 .orbit-node { background: var(--green-700); }

.orbit-core {
  width: 38%; aspect-ratio: 1;
  display: grid; place-items: center;
  filter: drop-shadow(0 24px 60px var(--green-glow));
  z-index: 2;
}
.orbit-core img { width: 100%; height: 100%; border-radius: 28%; }

.float-card {
  position: absolute; z-index: 3;
  background: var(--bg-elevated);
  border: 1px solid var(--panel-line); border-radius: 13px; padding: 12px 15px;
  font-family: var(--mono); font-size: 0.74rem; color: var(--muted);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.8);
}
.float-card b { color: var(--green); font-weight: 600; }
.float-card.fc1 { top: 6%; right: -6%; animation: bob 5s ease-in-out infinite; }
.float-card.fc2 { bottom: 10%; left: -10%; animation: bob 6s ease-in-out infinite 0.6s; }
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-12px) } }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .orbit-stage { order: -1; max-width: 360px; }
  .float-card.fc1 { right: 2%; } .float-card.fc2 { left: 2%; }
}

/* ============ STATS STRIP ============ */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--panel-line);
         border: 1px solid var(--panel-line); border-radius: 14px; overflow: hidden; margin: 40px 0 0; }
.stat { background: var(--bg-surface); padding: 28px 24px; text-align: center; }
.stat .num { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.stat .num em { font-style: normal; color: var(--green); }
.stat .lbl { font-size: 0.82rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2,1fr); } }

/* ============ SECTION SHELL ============ */
section { padding: 88px 0; position: relative; }
.sec-head { max-width: 640px; margin-bottom: 48px; }
.sec-tag { font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); }
.sec-head h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.035em; margin: 14px 0 16px; line-height: 1.05; }
.sec-head p { color: var(--muted); font-size: 1.08rem; line-height: 1.6; }

/* ============ FEATURES (Spotify cards: solid surface, lift to elevated) ============ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--bg-surface); border-radius: 12px; padding: 28px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease); position: relative; overflow: hidden;
}
.feature:hover { background: var(--bg-elevated); transform: translateY(-4px); }
.feature.span2 { grid-column: span 2; }
.f-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(30,215,96,0.12); color: var(--green);
}
.f-icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2,1fr); } .feature.span2 { grid-column: span 2; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; } .feature.span2 { grid-column: span 1; } }

/* ============ HOW ============ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: 12px; background: var(--bg-surface); transition: background 0.3s var(--ease); }
.step:hover { background: var(--bg-elevated); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.85rem; color: var(--green);
  border: 1px solid rgba(30,215,96,0.3); border-radius: 8px; padding: 4px 9px; display: inline-block; margin-bottom: 18px;
}
.step h3 { font-size: 1.18rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.step-line { position: absolute; top: 48px; right: -16px; width: 32px; height: 1px; background: linear-gradient(90deg, var(--green), transparent); }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } .step-line { display: none; } }

/* ============ USE CASES ============ */
.cases { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.case {
  border-radius: 12px; padding: 30px; background: var(--bg-surface);
  transition: background 0.3s, transform 0.3s var(--ease);
}
.case:hover { background: var(--bg-elevated); transform: translateY(-4px); }
.case .c-icon {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(30,215,96,0.12); color: var(--green);
}
.case .c-icon svg { width: 23px; height: 23px; }
.case h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 8px; }
.case p { color: var(--muted); font-size: 0.93rem; line-height: 1.6; }
@media (max-width: 800px) { .cases { grid-template-columns: 1fr; } }

/* ============ CTA (Spotify promo band: green gradient block) ============ */
.cta-band {
  border-radius: 18px; padding: 64px 48px; text-align: center;
  background: linear-gradient(135deg, #1ed760 0%, #109b51 100%);
  position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 16px; color: #06130c; }
.cta-band p { color: rgba(6,19,12,0.78); font-size: 1.1rem; font-weight: 500; max-width: 540px; margin: 0 auto 32px; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-primary { background: #000; color: #fff; }
.cta-band .btn-primary:hover { background: #181818; }
.cta-band .btn-ghost { color: #06130c; border-color: rgba(6,19,12,0.4); }
.cta-band .btn-ghost:hover { border-color: #06130c; }

/* ============ FOOTER ============ */
footer { border-top: 1px solid var(--panel-line); padding: 48px 0 60px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 1.05rem; }
.foot .copy { color: var(--muted-dim); font-size: 0.86rem; font-family: var(--mono); }
.foot-links { display: flex; gap: 24px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.foot-links a:hover { color: var(--text); }
.product-of {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  padding-top: 22px; border-top: 1px solid var(--panel-line); width: 100%;
  color: var(--muted-dim); font-size: 0.82rem; opacity: 0.85; transition: opacity 0.2s var(--ease);
}
.product-of:hover { opacity: 1; }
.product-of img { height: 18px; width: auto; display: block; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.hero h1, .hero .lead, .hero .hero-cta, .hero .platforms, .hero .eyebrow { animation: rise 0.9s var(--ease) backwards; }
.hero .eyebrow { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero .lead { animation-delay: 0.3s; }
.hero .hero-cta { animation-delay: 0.42s; }
.hero .platforms { animation-delay: 0.52s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* ============ SHOWCASE / APP MOCKUP ============ */
#showcase { padding-top: 8px; }
.app-shot { position: relative; margin-top: 44px; perspective: 1800px; }
.app-glow {
  position: absolute; inset: -8% 6% auto; height: 70%; z-index: 0;
  background: radial-gradient(60% 80% at 50% 0%, var(--green-glow), transparent 70%);
  filter: blur(40px); opacity: 0; transition: opacity 1.1s var(--ease);
}
.app-shot.in .app-glow { opacity: 1; }

.app-window {
  position: relative; z-index: 1; border-radius: 16px; overflow: hidden;
  background: var(--bg-surface); border: 1px solid var(--panel-line);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,0.75), 0 0 0 1px rgba(255,255,255,0.02);
  transform: rotateX(10deg) translateY(20px) scale(0.98); transform-origin: 50% 0;
  opacity: 0; transition: transform 1s var(--ease), opacity 1s var(--ease);
}
.app-shot.in .app-window { transform: none; opacity: 1; }

.app-titlebar {
  display: flex; align-items: center; gap: 8px; padding: 11px 16px;
  background: var(--bg-black); border-bottom: 1px solid var(--panel-line);
}
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl-r { background: #ff5f57; } .tl-y { background: #febc2e; } .tl-g { background: #28c840; }
.app-titlebar__name {
  display: flex; align-items: center; gap: 7px; margin-left: 8px;
  font-size: 0.82rem; font-weight: 700; color: var(--muted);
}
.app-titlebar__name img { border-radius: 5px; }

.app-body { display: grid; grid-template-columns: 210px 1fr; min-height: 388px; }
.app-side { background: var(--bg-black); border-right: 1px solid var(--panel-line); padding: 16px 12px; }
.app-side__item {
  display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 9px;
  font-size: 0.86rem; font-weight: 600; color: var(--muted); cursor: default;
}
.app-side__item svg { width: 17px; height: 17px; flex-shrink: 0; }
.app-side__item small { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--muted-dim); }
.app-side__item--active { background: rgba(30,215,96,0.12); color: var(--green); }
.app-side__item--active small { color: var(--green); }
.app-side__item--trash { margin-top: 8px; }
.app-side__label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-dim); margin: 16px 11px 7px; }
.app-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.app-main { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.app-toolbar { display: flex; align-items: center; gap: 12px; }
.app-search {
  flex: 1; display: flex; align-items: center; gap: 9px; padding: 9px 13px;
  background: var(--bg-base); border: 1px solid var(--panel-line); border-radius: 10px;
  color: var(--muted-dim); font-size: 0.85rem;
}
.app-search svg { width: 16px; height: 16px; }
.app-newbtn {
  display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  background: var(--green); color: #06120a; font-weight: 700; font-size: 0.85rem; white-space: nowrap;
}
.app-newbtn svg { width: 15px; height: 15px; }

.app-rows { display: flex; flex-direction: column; gap: 8px; }
.app-row {
  position: relative; display: grid;
  grid-template-columns: 34px minmax(120px, 1.4fr) 92px 1.3fr 92px 84px 70px;
  align-items: center; gap: 12px; padding: 10px 13px;
  background: var(--bg-base); border: 1px solid var(--panel-line); border-radius: 11px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.app-row:hover { background: var(--bg-elevated); transform: translateX(3px); }
.app-pi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.95rem; }
.app-id { display: flex; flex-direction: column; min-width: 0; }
.app-id b { font-size: 0.9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-id span { font-size: 0.76rem; color: var(--muted-dim); font-family: var(--mono); }
.app-badge { font-size: 0.74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; text-align: center; white-space: nowrap; }
.app-badge--run { background: rgba(30,215,96,0.14); color: var(--green); }
.app-badge--stop { background: rgba(255,255,255,0.06); color: var(--muted); }
.app-badge--run::first-letter, .app-badge--stop::first-letter { font-size: 0.7em; }
.app-proxy { display: flex; align-items: center; gap: 6px; font-size: 0.79rem; color: var(--muted); font-family: var(--mono); white-space: nowrap; overflow: hidden; }
.app-proxy svg { width: 14px; height: 14px; flex-shrink: 0; opacity: 0.7; }
.app-chip { font-size: 0.74rem; font-weight: 600; padding: 4px 9px; border-radius: 7px; text-align: center; white-space: nowrap; }
.app-seed { font-size: 0.74rem; color: var(--muted-dim); font-family: var(--mono); white-space: nowrap; }
.app-launch {
  display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 13px; border-radius: 999px;
  background: var(--green); color: #06120a; font-weight: 700; font-size: 0.78rem; white-space: nowrap;
}
.app-launch svg { width: 13px; height: 13px; }
.app-launch--stop { background: rgba(255,90,90,0.14); color: #ff6b6b; }

/* running status dots pulse */
.app-badge--run { position: relative; }
.app-badge--run::after {
  content: ""; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px;
  border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 var(--green-glow);
  animation: dotPulse 2s var(--ease) infinite;
}
@keyframes dotPulse { 0% { box-shadow: 0 0 0 0 rgba(30,215,96,0.5); } 70%,100% { box-shadow: 0 0 0 7px rgba(30,215,96,0); } }

/* staggered row entrance */
.app-shot.in .app-row { animation: rowIn 0.6s var(--ease) backwards; }
.app-shot.in .app-row:nth-child(1) { animation-delay: 0.30s; }
.app-shot.in .app-row:nth-child(2) { animation-delay: 0.40s; }
.app-shot.in .app-row:nth-child(3) { animation-delay: 0.50s; }
.app-shot.in .app-row:nth-child(4) { animation-delay: 0.60s; }
.app-shot.in .app-row:nth-child(5) { animation-delay: 0.70s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(14px); } }

/* demo row: cycle stopped <-> running, synced with cursor */
.app-row--demo .app-badge--run { position: absolute; left: 256px; opacity: 0; }
.app-shot.in .app-row--demo .app-badge--stop { animation: demoStop 7s var(--ease) 1.4s infinite; }
.app-shot.in .app-row--demo .app-badge--run  { animation: demoRun  7s var(--ease) 1.4s infinite; }
.app-shot.in .app-row--demo .app-launch      { animation: demoBtn  7s var(--ease) 1.4s infinite; }
.app-shot.in .app-row--demo                  { animation: demoGlow 7s var(--ease) 1.4s infinite; }
@keyframes demoStop { 0%,40% { opacity: 1; } 47%,92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demoRun  { 0%,40% { opacity: 0; } 47%,92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes demoBtn  { 42% { transform: scale(1); } 45% { transform: scale(0.86); } 49% { transform: scale(1); } }
@keyframes demoGlow { 0%,40% { box-shadow: none; } 50% { box-shadow: inset 3px 0 0 var(--green), 0 0 22px -6px var(--green-glow); } 92% { box-shadow: inset 3px 0 0 var(--green); } 100% { box-shadow: none; } }

/* animated demo cursor */
.app-cursor { position: absolute; z-index: 3; right: 200px; top: 300px; pointer-events: none; opacity: 0; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)); }
.app-cursor svg { width: 22px; height: 22px; display: block; }
.app-shot.in .app-cursor { animation: cursorMove 7s var(--ease) 1.4s infinite; }
@keyframes cursorMove {
  0%   { right: 230px; top: 300px; opacity: 0; transform: scale(1); }
  10%  { opacity: 0.95; }
  35%  { right: 64px; top: 128px; opacity: 0.95; transform: scale(1); }
  44%  { right: 64px; top: 128px; transform: scale(0.8); }
  50%  { right: 64px; top: 128px; transform: scale(1); }
  72%  { right: 64px; top: 128px; opacity: 0.95; }
  92%  { right: 210px; top: 280px; opacity: 0; }
  100% { right: 230px; top: 300px; opacity: 0; }
}

@media (max-width: 860px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
  .app-row { grid-template-columns: 34px 1fr 86px 64px; }
  .app-row .app-proxy, .app-row .app-chip, .app-row .app-seed { display: none; }
  .app-row--demo .app-badge--run { left: auto; right: 92px; }
  .app-cursor { display: none; }
}

/* ============ DOWNLOAD PROGRESS OVERLAY ============ */
.dl-overlay {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(0,0,0,0.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity 0.28s var(--ease), visibility 0.28s var(--ease);
}
.dl-overlay.show { opacity: 1; visibility: visible; }
.dl-card {
  position: relative; width: 100%; max-width: 440px; padding: 26px 26px 22px;
  background: var(--bg-elevated); border: 1px solid var(--panel-line); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  transform: translateY(16px) scale(0.96); transition: transform 0.32s var(--ease);
}
.dl-overlay.show .dl-card { transform: none; }
.dl-close {
  position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; display: grid; place-items: center;
  background: rgba(255,255,255,0.06); border: none; border-radius: 8px; color: var(--muted); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.dl-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.dl-close svg { width: 16px; height: 16px; }
.dl-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dl-ico {
  width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; border-radius: 13px;
  background: rgba(30,215,96,0.12); position: relative;
}
.dl-ico::after {
  content: ""; position: absolute; inset: -3px; border-radius: 15px;
  border: 2px solid transparent; border-top-color: var(--green); border-right-color: var(--green);
  animation: dlSpin 0.9s linear infinite;
}
.dl-overlay.done .dl-ico::after, .dl-overlay.error .dl-ico::after { display: none; }
@keyframes dlSpin { to { transform: rotate(360deg); } }
.dl-head h4 { font-size: 1.08rem; font-weight: 800; letter-spacing: -0.01em; }
.dl-file { font-size: 0.82rem; color: var(--muted-dim); font-family: var(--mono); margin-top: 2px; }
.dl-bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,0.07); overflow: hidden; }
.dl-fill {
  display: block; width: 0; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-700), var(--green));
  transition: width 0.25s var(--ease); position: relative; overflow: hidden;
}
.dl-fill::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%); animation: dlShimmer 1.2s linear infinite;
}
.dl-overlay.done .dl-fill::after { display: none; }
@keyframes dlShimmer { to { transform: translateX(100%); } }
.dl-meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 11px; }
.dl-pct { font-size: 1.35rem; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.dl-size { font-size: 0.82rem; color: var(--muted); font-family: var(--mono); }
.dl-hint { font-size: 0.78rem; color: var(--muted-dim); margin-top: 14px; }
.dl-done { display: none; align-items: center; gap: 12px; margin-top: 14px; padding-top: 16px; border-top: 1px solid var(--panel-line); }
.dl-overlay.done .dl-done { display: flex; }
.dl-overlay.done .dl-hint { display: none; }
.dl-check {
  width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: rgba(30,215,96,0.16); color: var(--green); animation: dlPop 0.4s var(--ease) backwards;
}
.dl-check svg { width: 18px; height: 18px; }
.dl-done b { font-size: 0.92rem; } .dl-done span { font-size: 0.82rem; color: var(--muted); }
@keyframes dlPop { from { transform: scale(0.3); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .app-window { transform: none; opacity: 1; }
  .app-glow { opacity: 1; }
  .app-cursor { display: none; }
  .app-row--demo .app-badge--run { display: none; }
  .dl-overlay { transition: opacity 0.2s !important; }
}
