/* USM landing page: dark sci-fi HUD look. No external fonts or libraries. */
:root {
  --bg: #05070d;
  --panel: rgba(12, 20, 34, .72);
  --line: rgba(120, 200, 255, .14);
  --text: #e6edf3;
  --muted: #8b98a9;
  --lime: #a3ff12;
  --green: #76b900;
  --cyan: #22d3ee;
  --amber: #f5a524;
  --red: #ff5d6c;
  --mono: ui-monospace, "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Ubuntu, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; color: #c9f7ff; background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .18); border-radius: 6px; padding: .08em .4em; }

/* ---------- background: stars, moving grid floor, scanlines ---------- */
.sky, .grid-floor, .scanlines { position: fixed; inset: 0; pointer-events: none; z-index: -1; }
.sky {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(118, 185, 0, .18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(34, 211, 238, .12), transparent 60%),
    radial-gradient(1.5px 1.5px at 20% 30%, #fff8, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff6, transparent),
    radial-gradient(1.5px 1.5px at 40% 70%, #fff5, transparent),
    radial-gradient(1px 1px at 85% 55%, #fff7, transparent),
    radial-gradient(1px 1px at 10% 85%, #fff5, transparent),
    radial-gradient(1.2px 1.2px at 55% 12%, #fff6, transparent),
    var(--bg);
  animation: twinkle 7s ease-in-out infinite alternate;
}
@keyframes twinkle { to { filter: brightness(1.25); } }
.grid-floor {
  top: 55%; height: 70%;
  background-image:
    linear-gradient(rgba(34, 211, 238, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, .22) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: top;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 95%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 95%);
  animation: floor 6s linear infinite; opacity: .55;
}
@keyframes floor { to { background-position: 0 56px, 0 0; } }
.scanlines { background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 56px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: rgba(5, 7, 13, .6); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none !important; }
.brand-mark {
  font: 800 24px/1 var(--sans); letter-spacing: -1px;
  background: linear-gradient(135deg, #fff 35%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-mark.sm { font-size: 18px; }
.brand-ram { font-size: 22px; }
.top nav { display: flex; gap: clamp(10px, 2.2vw, 28px); align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top .gh { display: inline-flex; align-items: center; gap: 7px; color: var(--text) !important; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .03); }
.top .gh svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 720px) { .top nav a:not(.gh) { display: none; } }

/* ---------- hero ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center;
  min-height: calc(100vh - 70px); padding: 48px 0 64px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 40px; } }
.tag { font: 600 12.5px/1 var(--mono); letter-spacing: .14em; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); animation: pulse 1.6s infinite; }
.tag .beta { color: var(--amber); border: 1px solid rgba(245, 165, 36, .5); border-radius: 999px; padding: 4px 9px; letter-spacing: .06em; }
@keyframes pulse { 50% { opacity: .35; } }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -.03em; margin: 18px 0 20px; font-weight: 800; }
.glow { background: linear-gradient(90deg, var(--cyan), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(163, 255, 18, .25)); }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: #c3ccd8; max-width: 600px; }
.lede b { color: var(--text); }
.cta { display: flex; gap: 14px; margin: 28px 0 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 13px 24px; border-radius: 12px; font-weight: 650; color: var(--text);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); transition: transform .15s, box-shadow .2s, border-color .2s; }
.btn:hover { text-decoration: none; transform: translateY(-2px); border-color: rgba(34, 211, 238, .5); box-shadow: 0 8px 30px rgba(34, 211, 238, .15); }
.btn.primary { color: #061006; border: 0; background: linear-gradient(135deg, var(--lime), var(--green));
  box-shadow: 0 0 0 1px rgba(163, 255, 18, .4), 0 10px 34px rgba(118, 185, 0, .35); }
.btn.primary:hover { box-shadow: 0 0 0 1px rgba(163, 255, 18, .6), 0 14px 44px rgba(118, 185, 0, .5); }
.small { font-size: 14px; color: var(--muted); }

/* ---------- HUD panel ---------- */
.hud { position: relative; padding: 18px 20px 16px; border-radius: 18px; background: var(--panel);
  border: 1px solid rgba(34, 211, 238, .22); box-shadow: 0 0 0 1px rgba(0, 0, 0, .4), 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 60px rgba(34, 211, 238, .05);
  animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hud-head, .hud-foot { display: flex; justify-content: space-between; font: 600 12px/1 var(--mono); letter-spacing: .12em; color: var(--muted); }
.hud-foot { margin-top: 14px; letter-spacing: .04em; font-size: 12.5px; }
.hud-foot b { color: var(--lime); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--lime); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1s infinite; }
.corner { position: absolute; width: 16px; height: 16px; border-color: var(--cyan); border-style: solid; opacity: .8; }
.corner.tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.corner.tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.corner.bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.corner.br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }
.flow { width: 100%; height: auto; margin: 10px 0 4px; }
.flow .wire { fill: none; stroke: url(#gv); stroke-width: 2; stroke-dasharray: 6 7; animation: dash 1.2s linear infinite; opacity: .8; }
.flow .wire.faint { stroke: rgba(139, 152, 169, .45); }
@keyframes dash { to { stroke-dashoffset: -26; } }
.flow .node rect { fill: rgba(9, 15, 26, .95); stroke: rgba(139, 152, 169, .45); stroke-width: 1.5; }
.flow .node.v rect { stroke: var(--lime); filter: drop-shadow(0 0 8px rgba(163, 255, 18, .45)); }
.flow .node.z rect { stroke: rgba(34, 211, 238, .7); }
.flow .node.d rect { stroke: rgba(255, 93, 108, .55); }
.flow text { fill: var(--text); font: 700 16px var(--mono); text-anchor: middle; }
.flow text.sub { fill: var(--muted); font-size: 11.5px; font-weight: 500; }
.flow .node.v text.sub { fill: var(--lime); }
.flow .pk.out { fill: var(--lime); filter: drop-shadow(0 0 5px var(--lime)); }
.flow .pk.in { fill: var(--cyan); filter: drop-shadow(0 0 5px var(--cyan)); }
.flow .pk.slow { fill: var(--red); opacity: .8; }
.meters { display: grid; gap: 10px; margin-top: 8px; }
.meter { display: grid; grid-template-columns: 78px 1fr 92px; align-items: center; gap: 12px; font: 600 12.5px var(--mono); color: var(--muted); }
.meter b { color: var(--text); text-align: right; }
.bar { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; border: 1px solid rgba(255, 255, 255, .06); }
.bar i { display: block; height: 100%; border-radius: 99px; }
.ram-fill { width: 92%; background: linear-gradient(90deg, var(--cyan), var(--amber)); animation: ramfill 6s ease-in-out infinite; }
.vram-fill { width: 46%; background: linear-gradient(90deg, var(--green), var(--lime)); box-shadow: 0 0 12px rgba(163, 255, 18, .6); animation: vramfill 6s ease-in-out infinite; }
@keyframes ramfill { 0% { width: 55%; } 45%, 100% { width: 92%; } }
@keyframes vramfill { 0%, 40% { width: 4%; } 100% { width: 46%; } }

/* ---------- sections ---------- */
.block { padding: clamp(56px, 8vw, 96px) 0; }
h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; margin: 0 0 18px; display: flex; align-items: baseline; gap: 14px; }
h2 .idx { font: 600 14px var(--mono); color: var(--lime); border: 1px solid rgba(163, 255, 18, .35); border-radius: 8px; padding: 3px 8px; }
.intro, .note { max-width: 780px; color: #c3ccd8; }
.note { color: var(--muted); margin-top: 26px; }

.race { margin-top: 30px; display: grid; gap: 14px; max-width: 900px; }
.lane { display: grid; grid-template-columns: 170px 1fr 230px; gap: 16px; align-items: center; font-size: 15px; }
.lane .who { font: 600 13.5px var(--mono); color: var(--muted); }
.lane b { font: 600 14px var(--mono); color: #ffb4bc; }
.lane b.ok { color: var(--lime); }
.track { height: 14px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); overflow: hidden; }
.track i { display: block; height: 100%; width: 0; border-radius: 99px; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.in-view .track i { width: var(--w); }
.track .slow { background: linear-gradient(90deg, #ff8a5b, var(--red)); }
.track .fast { background: linear-gradient(90deg, var(--green), var(--lime)); box-shadow: 0 0 14px rgba(163, 255, 18, .7); min-width: 6px; }
.track .ram { background: var(--cyan); min-width: 4px; }
@media (max-width: 760px) { .lane { grid-template-columns: 1fr; gap: 6px; } }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 30px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { position: relative; padding: 24px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, box-shadow .2s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 40%, rgba(163, 255, 18, .07) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .8s; }
.card:hover { transform: translateY(-4px); border-color: rgba(163, 255, 18, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(163, 255, 18, .15); }
.card:hover::before { transform: translateX(100%); }
.card h3 { margin: 10px 0 8px; font-size: 20px; }
.card p { margin: 0 0 14px; color: #b9c3cf; font-size: 15.5px; }
.card .ic { font-size: 28px; }
.card.link { color: var(--text); text-decoration: none; }
.card.link p { margin: 0; }
.tiers { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 14px var(--mono); }
.tiers span { padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); color: #c3ccd8; }
.tiers span.hl { color: var(--lime); border-color: rgba(163, 255, 18, .55); background: rgba(163, 255, 18, .07); box-shadow: 0 0 22px rgba(163, 255, 18, .15); }
.tiers em { color: var(--muted); font-style: normal; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 30px; }
.stat { padding: 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.stat b { font: 800 clamp(44px, 5vw, 58px)/1 var(--sans); letter-spacing: -.03em;
  background: linear-gradient(135deg, #fff, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font: 700 22px var(--mono); color: var(--lime); margin-left: 4px; }
.stat p { margin: 10px 0 0; color: #b9c3cf; font-size: 15px; line-height: 1.4; }
.stat small { color: var(--muted); }
.compare { margin-top: 26px; padding: 24px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.compare h3 { margin: 0 0 16px; font-size: 17px; font-family: var(--mono); color: var(--muted); font-weight: 600; }
.compare .row { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.compare .row > span { color: #c3ccd8; font-size: 15px; }
.pair { display: grid; gap: 6px; }
.pair i { display: block; width: 0; white-space: nowrap; overflow: visible; font: 600 12.5px/22px var(--mono); font-style: normal;
  padding-left: 10px; border-radius: 6px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); color: #0b0f14; }
.in-view .pair i { width: var(--w); }
.pair .bad { background: linear-gradient(90deg, #ff9b7a, var(--red)); }
.pair .good { background: linear-gradient(90deg, var(--green), var(--lime)); min-width: 160px; }
.fine { color: var(--muted); font-size: 13.5px; margin: 14px 0 0; }
@media (max-width: 760px) { .compare .row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- terminal ---------- */
.term { margin-top: 28px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(163, 255, 18, .25);
  background: #070b12; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 40px rgba(163, 255, 18, .06); }
.term-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #0c1320; border-bottom: 1px solid var(--line); }
.term-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar > i:nth-child(2) { background: #febc2e; }
.term-bar > i:nth-child(3) { background: #28c840; }
.tabs { margin-left: 14px; display: flex; gap: 4px; }
.tabs button, .copy { font: 600 12.5px var(--mono); color: var(--muted); background: none; border: 1px solid transparent; border-radius: 8px; padding: 5px 11px; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--lime); border-color: rgba(163, 255, 18, .35); background: rgba(163, 255, 18, .07); }
.copy { margin-left: auto; border-color: var(--line); }
.copy:hover, .tabs button:hover { color: var(--text); }
.pane { margin: 0; padding: 20px 22px; overflow-x: auto; font: 14px/1.75 var(--mono); color: #d7ffe0; }
.pane code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.pane .c { color: #6b7a8c; }
.needs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 20px; font-size: 15px; color: #b9c3cf; }
.needs > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); }
.needs b { display: block; color: var(--text); font-family: var(--mono); margin-bottom: 4px; }
.warn { margin-top: 20px; padding: 16px 20px; border-radius: 12px; border: 1px solid rgba(245, 165, 36, .45);
  background: rgba(245, 165, 36, .07); color: #f3d9a8; font-size: 15px; }
.warn b { color: var(--amber); }

/* ---------- dedication ---------- */
.dedication { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; padding: 34px;
  border-radius: 20px; border: 1px solid rgba(163, 255, 18, .25);
  background: radial-gradient(600px 240px at 0% 50%, rgba(163, 255, 18, .1), transparent), var(--panel); }
.big-ram { font-size: 110px; line-height: 1; animation: bob 3.2s ease-in-out infinite; text-align: center; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.dedication h2 { margin-bottom: 10px; }
blockquote { margin: 0 0 14px; padding-left: 16px; border-left: 3px solid var(--lime); font-size: 18px; font-style: italic; color: var(--text); }
.dedication p { margin: 0; color: #b9c3cf; }
@media (max-width: 720px) { .dedication { grid-template-columns: 1fr; text-align: left; } .big-ram { text-align: left; font-size: 80px; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 34px clamp(18px, 4vw, 56px) 44px; display: grid; gap: 12px;
  color: var(--muted); font-size: 14.5px; background: rgba(5, 7, 13, .7); }
.foot .links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .track i { width: var(--w); } .pair i { width: var(--w); }
  .flow .packets { display: none; }
}
