/* powerbench.ai — the whole site's style. There is no build step: this file
   is linked directly by every page.

   Palette is a deliberate COPY of the tablet panel's "deep-2" tokens
   (pwa/src/app.css), not an import. The site and the instrument share
   values, never a file — a marketing tweak must not reach the panel CSS.
   If the panel palette moves, decide consciously whether this follows. */
:root {
  --bg: #000000;
  --fg: #eef4fb;
  --muted: #90a0b2;   /* >= 4.5:1 on --bg */
  --border: #223044;
  --accent: #f29a0d;  /* the panel's amber; the only accent on this site */

  --t-mark: clamp(32px, 9.5vw, 76px);
  --t-head: clamp(26px, 5.2vw, 40px);
  --t-lead: clamp(19px, 3.6vw, 27px);
  --t-body: clamp(15px, 2.2vw, 17px);
  --t-micro: 13px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  /* A very slow amber wash off the top so pure black doesn't read as a
     failed page load on an OLED phone. */
  background-image: radial-gradient(120% 70% at 50% 0%, rgba(242,154,13,0.07), transparent 60%);
  background-repeat: no-repeat;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

main.wrap { flex: 1; padding: 32px 0 56px; }

/* ---- nav ---------------------------------------------------------------- */
/* Four links and a wordmark. No hamburger and no JavaScript: at this item
   count the links simply wrap to a second line on a narrow phone. */
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 22px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav .brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
}
.nav .brand .ai { color: var(--accent); }
.nav a {
  color: var(--muted);
  font-size: var(--t-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  /* Comfortable on a phone without turning the bar into a wall. */
  padding: 12px 0;
}
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { color: var(--accent); }
.nav a:focus-visible,
.nav .brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---- footer ------------------------------------------------------------- */
.foot {
  border-top: 1px solid var(--border);
  padding: 22px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  font-size: var(--t-micro);
  color: var(--muted);
}
.foot a { color: var(--accent); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.foot .grow { margin-left: auto; }

/* ---- hero --------------------------------------------------------------- */
.mark {
  font-size: var(--t-mark);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
  /* "PowerBench AI" is one long word to a layout engine. Let AI drop to its
     own line on a narrow phone rather than overflow the viewport. */
  text-wrap: balance;
  overflow-wrap: break-word;
}
.mark .ai { color: var(--accent); white-space: nowrap; }

.badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--t-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Current-trace hairline: the instrument's own subject matter, drawn rather
   than screenshotted. Static by design — an animated hero is noise. */
.trace {
  display: block;
  width: min(100%, 460px);
  height: 46px;
  margin: 26px 0 0;
}
.trace .line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.trace .base { stroke: var(--border); stroke-width: 1; opacity: 0.85; }

.lead {
  margin-top: 26px;
  font-size: var(--t-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.sub {
  margin-top: 14px;
  max-width: 56ch;
  font-size: var(--t-body);
  color: var(--muted);
  text-wrap: pretty;
}
.sub a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(242,154,13,0.5); }
.sub a:hover { border-bottom-color: var(--accent); }

/* ---- sections ----------------------------------------------------------- */
.section { margin-top: 56px; }
.section > h2 {
  font-size: var(--t-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}
.section > h2 + .sub { margin-top: 12px; }

/* ---- proof tiles -------------------------------------------------------- */
.tiles {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.tile {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.tile b {
  display: block;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.tile span {
  display: block;
  margin-top: 6px;
  font-size: var(--t-body);
  color: var(--muted);
}

/* ---- feature blocks ----------------------------------------------------- */
.blocks {
  margin-top: 22px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.block h2 {
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.block p {
  margin-top: 8px;
  font-size: var(--t-body);
  color: var(--muted);
  text-wrap: pretty;
}
/* The one place on the site that labels a claim by how ready it is. */
.tag {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--t-micro);
  margin-right: 6px;
}

/* ---- use-case stories --------------------------------------------------- */
.story {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.story:first-of-type { border-top: 0; padding-top: 0; }
.story h2 {
  font-size: var(--t-lead);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.beat {
  margin-top: 12px;
  font-size: var(--t-body);
  color: var(--muted);
  max-width: 66ch;
  text-wrap: pretty;
}
.beat b { color: var(--fg); font-weight: 600; }

/* ---- call to action ----------------------------------------------------- */
.cta {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.cta a {
  color: var(--accent);
  font-size: var(--t-lead);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  /* Bench-sized target, and it keeps the link comfortable on a phone. */
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  overflow-wrap: break-word;
}
.cta a:hover { border-bottom-color: var(--accent); }
.cta a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

.status {
  margin-top: 2px;
  font-size: var(--t-micro);
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (prefers-reduced-motion: no-preference) {
  main { animation: rise 620ms cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
