/* The HackRush landing page.
 *
 * The palette is core/ui/base.css's, not a new one: this page, the app
 * UIs and the flasher are the same product and should not look like three. The
 * one thing added here is --chassis, a step LIGHTER than the app background,
 * so that a screenshot sits on the page the way the screen sits in the pedal -
 * a dark panel in a slightly less dark metal box. That is the whole visual
 * idea, and everything below is in service of it.
 */
:root{
  /* from core/ui/base.css */
  --screen:#14141a; --card:#1e1e28; --line:#2c2c38;
  --txt:#e8e8ee; --dim:#9a9aa8; --accent:#35a6e6; --on:#23c24b;
  /* the box the screen is set into */
  --chassis:#1c1d22; --edge:#33353d;

  --col:1120px;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--chassis);color:var(--txt);
  font:17px/1.55 -apple-system,system-ui,Segoe UI,Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:var(--col);margin:0 auto;padding:0 24px}

a{color:var(--accent)}
a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:4px}

/* The utility face. The apps call this .mono and use it for anything measured;
   here it labels every section, which is the same job. */
.lbl{
  font-family:var(--mono);font-size:.7rem;text-transform:uppercase;
  letter-spacing:.16em;color:var(--dim);margin:0 0 14px;
}

/* figure carries a 40px side margin by default, which silently narrows every
   screen frame on the page and leaves a gap that reads as a layout bug. */
figure{margin:0}

h1,h2,h3{margin:0;font-weight:800;letter-spacing:-.025em;line-height:1.03}
h1{font-size:clamp(2.4rem,4.6vw,3.8rem);max-width:clamp(12ch,74vw,19ch)}
h2{font-size:clamp(1.6rem,3.1vw,2.3rem);letter-spacing:-.02em;max-width:clamp(18ch,72vw,26ch)}
h3{font-size:1.16rem;letter-spacing:-.01em}
p{margin:0 0 1em}
/* The measure. Fixed at some number of ch, body text sits at one width
   while every heading beside it reflows with the window - the paragraphs
   look pinned. Fluid between two bounds, the whole column moves together
   and never gets wider than is comfortable to read. */
:root{--measure:clamp(32ch,58vw,58ch)}
.lead{font-size:clamp(1.05rem,1.7vw,1.28rem);color:#c9c9d6;max-width:var(--measure)}

/* ---- header --------------------------------------------------------- */
.top{padding:20px 0;border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:baseline;gap:12px;font-weight:800;letter-spacing:-.02em}
.brand b{font-size:1.15rem}
.tag{
  font-family:var(--mono);font-size:.66rem;text-transform:uppercase;letter-spacing:.16em;
  color:var(--on);border:1px solid rgba(35,194,75,.4);border-radius:999px;padding:4px 9px;
}
.top nav{display:flex;gap:22px;font-size:.93rem}
.top nav a{color:var(--dim);text-decoration:none}
.top nav a:hover{color:var(--txt)}

/* ---- hero ----------------------------------------------------------- */
.hero{padding:76px 0 64px}
.hero p{color:#c9c9d6}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:30px}
.btn{
  display:inline-block;padding:13px 22px;border-radius:10px;font-size:.97rem;font-weight:650;
  text-decoration:none;border:1px solid var(--line);color:var(--txt);background:var(--card);
}
.btn:hover{border-color:var(--edge)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:#08131b}
.btn.primary:hover{filter:brightness(1.08)}
.note{font-family:var(--mono);font-size:.74rem;color:var(--dim);margin-top:14px}

/* ---- the screen slab, this page's one piece of hardware mimicry ------ */
/* These are captures of the app UIs as they are actually read - in a browser,
   on the same network as the pedal - so the frame is a screen in a bezel and
   not a phone outline. The image sets the height; nothing is cropped to fit a
   ratio the screenshot never had. */
.screen{
  position:relative;min-height:110px;background:var(--screen);
  border:1px solid var(--edge);border-radius:14px;overflow:hidden;
  box-shadow:0 1px 0 rgba(255,255,255,.05) inset, 0 18px 44px rgba(0,0,0,.5);
}
.screen img{display:block;width:100%;height:auto}
/* Shown only while a screenshot is missing: an empty frame reads as broken,
   a labelled one reads as pending. */
.screen figcaption{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;
  font-family:var(--mono);font-size:.72rem;color:var(--dim);text-align:center;padding:20px;
}
.screen img[src]{position:relative;z-index:1}

/* ---- sections ------------------------------------------------------- */
section{padding:82px 0;border-bottom:1px solid var(--line)}
.app{padding:52px 0}
.app+.app{border-top:1px solid var(--line)}
.app p{margin:12px 0 0;color:#c9c9d6;max-width:var(--measure)}
.app .screen{margin-top:26px}

/* Four cards. At a 258px minimum they lay out three-then-one and the fourth
   sits alone next to a lot of nothing; at 380px they pair up two-by-two on
   any desktop width and stack on a phone. */
.facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));gap:18px;margin-top:34px}
.fact{background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px}
.fact h3{font-size:1rem;margin-bottom:8px}
.fact p{font-size:.94rem;color:#b9b9c8;margin:0}
.fact.warn{border-color:rgba(224,138,58,.45)}
.fact.warn h3{color:#e08a3a}

ol.steps{counter-reset:s;list-style:none;padding:0;margin:34px 0 0;display:grid;gap:16px}
ol.steps li{
  display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start;
  background:var(--card);border:1px solid var(--line);border-radius:12px;padding:22px;
}
ol.steps li::before{
  counter-increment:s;content:counter(s);
  font-family:var(--mono);font-size:.86rem;color:var(--accent);
  border:1px solid var(--line);border-radius:8px;padding:5px 10px;
}
ol.steps h3{margin-bottom:6px}
ol.steps p{margin:0;color:#b9b9c8;font-size:.95rem}
code{font-family:var(--mono);font-size:.86em;background:#101017;border:1px solid var(--line);border-radius:6px;padding:2px 6px}
pre{
  font-family:var(--mono);font-size:.82rem;background:#101017;border:1px solid var(--line);
  border-radius:10px;padding:16px;overflow-x:auto;margin:14px 0 0;color:#c9c9d6;
}

/* ---- downloads ------------------------------------------------------ */
.dl{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin-top:26px}
.dl .ver{font-family:var(--mono);font-size:.78rem;color:var(--dim)}

footer{padding:44px 0 66px;color:var(--dim);font-size:.88rem}
footer p{margin:0 0 6px}

/* ---- responsive ----------------------------------------------------- */
@media (max-width:860px){
  .hero{padding:52px 0}
  .top nav{display:none}
  section{padding:60px 0}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
