/* Drifterr download hub — same dark design system as the landing. */
:root {
  --ink: #fff; --mute: #a9a7ba; --mute2: #9a98ad; --faint: #86849a; --faint2: #6f6d82;
  --card: rgba(255,255,255,.04); --card2: rgba(255,255,255,.05); --edge: rgba(255,255,255,.1); --edge-soft: rgba(255,255,255,.07);
  --o1: #ff7847; --o2: #ff3d81; --olight: #ff8a64; --purple: #7c5cff; --green: #34e89e;
  --grad: linear-gradient(135deg,#ff7847,#ff3d81);
  --display: "Space Grotesk", sans-serif; --sans: "Manrope", sans-serif; --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.16,1,.3,1);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: #07060d; -webkit-font-smoothing: antialiased; min-height: 100vh; position: relative; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }

.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% -10%,#0e0d1c 0%,#08070f 45%,#050409 100%); }
.bg .grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(80% 60% at 50% 20%,#000,transparent 80%); mask-image: radial-gradient(80% 60% at 50% 20%,#000,transparent 80%); }
.blob { position: absolute; border-radius: 50%; filter: blur(20px); }
.blob.a { top: -12%; left: 6%; width: 46vw; height: 46vw; max-width: 660px; max-height: 660px; background: radial-gradient(circle,rgba(255,120,71,.32),transparent 62%); animation: floatA 20s ease-in-out infinite; }
.blob.b { top: 14%; right: -6%; width: 42vw; height: 42vw; max-width: 600px; max-height: 600px; background: radial-gradient(circle,rgba(255,61,129,.28),transparent 62%); animation: floatB 24s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translate(40px,28px) scale(1.08); } }
@keyframes floatB { 50% { transform: translate(-34px,34px) scale(1.1); } }
.cursor-glow { position: fixed; width: 440px; height: 440px; border-radius: 50%; z-index: 1; pointer-events: none; transform: translate(-50%,-50%); opacity: 0; transition: opacity .4s; background: radial-gradient(circle,rgba(255,120,71,.1),transparent 60%); }
main, nav { position: relative; z-index: 2; }

/* nav */
nav { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 80; width: calc(100% - 36px); max-width: 1140px; }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 22px; background: rgba(16,15,26,.55); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%); border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.brand { display: flex; align-items: center; gap: 11px; }
.mark { position: relative; display: inline-flex; width: 26px; height: 26px; animation: logoFloat 4s ease-in-out infinite; }
.mark::before { content: ""; position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(255,61,129,.5), transparent 64%); filter: blur(5px);
  pointer-events: none; animation: logoHalo 3.2s ease-in-out infinite; }
.mark span { position: absolute; width: 13px; height: 13px; border-radius: 50%; }
.mark .f { background: var(--grad); left: 0; top: 6px; animation: anchorPulse 2.6s ease-in-out infinite; }
.mark .r { border: 1.5px solid rgba(255,255,255,.92); right: 0; top: 0; box-shadow: 0 0 8px rgba(255,255,255,.25); animation: driftAway 3.8s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes logoHalo { 0%, 100% { opacity: .45; transform: translate(-50%,-50%) scale(.9); } 50% { opacity: .9; transform: translate(-50%,-50%) scale(1.15); } }
@keyframes anchorPulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 9px rgba(255,61,129,.6), inset 0 0 4px rgba(255,255,255,.4); } 50% { transform: scale(1.1); box-shadow: 0 0 17px rgba(255,61,129,.9), inset 0 0 5px rgba(255,255,255,.5); } }
@keyframes driftAway { 0%, 10% { transform: translate(0,0); } 46%, 54% { transform: translate(6px,-6px); } 72% { transform: translate(-1.5px,1.5px); } 84%, 100% { transform: translate(0,0); } }
.brand b { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.ver { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: .05em; }
.nav-back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--edge); font-size: 14px; font-weight: 600; transition: background .2s; }
.nav-back:hover { background: rgba(255,255,255,.1); }

/* hero */
.hero { padding: 160px 24px 30px; max-width: 880px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--edge); margin-bottom: 22px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.eyebrow span:last-child { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #cfcddd; }
.hero h1 { font-size: clamp(38px,5.5vw,64px); line-height: 1.04; margin-bottom: 18px; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 18px; line-height: 1.6; color: var(--mute); max-width: 30em; margin: 0 auto; }

/* recommended card */
.rec { position: relative; max-width: 460px; margin: 36px auto 0; }
.rec .ring { position: absolute; inset: -1px; border-radius: 25px; background: conic-gradient(from 135deg,#ff7847,#ff3d81,#7c5cff,#ff7847); opacity: .5; filter: blur(2px); }
.rec-inner { position: relative; padding: 30px; border-radius: 24px; background: rgba(15,14,24,.82); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%); }
.rec-top { display: flex; align-items: center; gap: 18px; text-align: left; }
.rec-ic { width: 60px; height: 60px; flex-shrink: 0; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--edge); display: grid; place-items: center; color: #f4f3f7; }
.rec-ic svg { width: 30px; height: 30px; }
.rec-kick { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--olight); margin-bottom: 4px; }
.rec-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.rec-meta { font-size: 13px; color: var(--faint); margin-top: 2px; }
.btn-primary { position: relative; overflow: hidden; margin-top: 24px; width: 100%; padding: 16px; border: none; border-radius: 14px; background: var(--grad); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 16px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 12px 30px rgba(255,61,129,.34); transition: transform .2s var(--ease), filter .2s; }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.btn-primary .sheen { position: absolute; top: 0; bottom: 0; width: 60px; background: linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent); transform: skewX(-18deg); animation: sheen 3.5s ease-in-out infinite; }
@keyframes sheen { 0% { left: -20%; } 60%,100% { left: 120%; } }
.rec-sub { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 16px; font-size: 12px; color: var(--faint2); }
.rec-sub span { display: inline-flex; align-items: center; gap: 6px; }
.rec-sub svg { stroke: var(--green); }
.see-all { margin-top: 26px; background: none; border: none; color: var(--mute2); font-size: 14px; cursor: pointer; font-family: var(--sans); }
.see-all:hover { color: #fff; }

/* sections */
.sec { position: relative; z-index: 1; padding: 56px 24px 30px; max-width: 1080px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: 32px; }
.kick { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--olight); margin-bottom: 14px; }
.sec-head h2 { font-size: clamp(26px,3.2vw,38px); }

/* platform grid */
.grid4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: var(--card2); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .3s var(--ease), border-color .3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255,138,100,.4); }
.tile .glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(180px circle at var(--mx,50%) var(--my,50%),rgba(255,138,100,.14),transparent 55%); }
.tile[data-spot]:hover .glow { opacity: 1; }
.tile-ic { position: relative; width: 46px; height: 46px; border-radius: 13px; background: rgba(255,255,255,.05); border: 1px solid var(--edge); display: grid; place-items: center; color: #f4f3f7; margin-bottom: 16px; }
.tile-ic svg { width: 22px; height: 22px; }
.tile h3 { position: relative; font-size: 17px; margin-bottom: 4px; }
.tile .sub { position: relative; font-size: 13px; color: var(--mute2); margin-bottom: 5px; }
.tile .meta { position: relative; font-family: var(--mono); font-size: 11px; color: var(--faint2); margin-bottom: 20px; }
.tile .dl { position: relative; margin-top: auto; width: 100%; padding: 11px; border-radius: 11px; background: rgba(255,255,255,.06); border: 1px solid var(--edge); color: #fff; font-family: var(--sans); font-weight: 600; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; transition: background .2s; }
.tile .dl:hover { background: var(--grad); border-color: transparent; }

/* browsers */
.grid3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.brow { position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--card2); border: 1px solid var(--edge); cursor: pointer; transition: transform .3s var(--ease), border-color .3s; }
.brow:hover { transform: translateY(-3px); border-color: rgba(255,138,100,.4); }
.brow .glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(200px circle at var(--mx,50%) var(--my,50%),rgba(255,138,100,.13),transparent 55%); }
.brow[data-spot]:hover .glow { opacity: 1; }
.brow-ic { position: relative; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--edge); display: grid; place-items: center; }
.brow b { position: relative; display: block; font-family: var(--display); font-size: 16px; }
.brow .meta { position: relative; font-size: 12.5px; color: var(--mute2); }
.brow .arr { position: relative; margin-left: auto; color: var(--faint); }

/* CLI */
.cli { max-width: 1080px; margin: 56px auto 0; padding: 0 24px; }
.cli-box { padding: 26px; border-radius: 20px; background: var(--card); border: 1px solid var(--edge); }
.cli-box > b { font-family: var(--display); font-size: 16px; display: block; margin-bottom: 16px; }
.cmd { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 11px; background: rgba(0,0,0,.3); border: 1px solid var(--edge-soft); margin-bottom: 10px; }
.cmd .tag { font-family: var(--mono); font-size: 10.5px; color: var(--faint); width: 56px; flex-shrink: 0; }
.cmd code { flex: 1; font-family: var(--mono); font-size: 13px; color: #e2dde2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd code .pr { color: var(--olight); }
.cmd .copy { flex-shrink: 0; padding: 6px 12px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--edge); color: var(--mute); font-family: var(--mono); font-size: 11px; cursor: pointer; transition: background .2s; }
.cmd .copy:hover { background: rgba(255,255,255,.12); color: #fff; }

/* footer */
footer { position: relative; z-index: 2; border-top: 1px solid var(--edge-soft); margin-top: 60px; }
.foot-in { max-width: 1080px; margin: 0 auto; padding: 32px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-in .copy { font-family: var(--mono); font-size: 12px; color: var(--faint2); }
.foot-links { display: flex; gap: 22px; }
.foot-links a { color: var(--faint); font-size: 14px; }
.foot-links a:hover { color: #fff; }

/* toast (download progress) */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%,160%); z-index: 200; width: min(360px,calc(100% - 32px)); padding: 14px 16px; border-radius: 14px; background: rgba(20,18,30,.9); border: 1px solid var(--edge); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 18px 44px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.toast .row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.toast .row .ic { width: 18px; height: 18px; color: var(--olight); }
.toast .bar { height: 5px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.toast .bar i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .3s; }
.toast .tip { margin-top: 9px; font-size: 12px; color: var(--mute2); line-height: 1.45; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .grid4 { grid-template-columns: repeat(2,1fr); }
  .grid3 { grid-template-columns: 1fr; }
  .nav-right .ver { display: none; }
}
@media (max-width: 540px) { .grid4 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
