/* Bifrost Thorware — bifrostthorware.com
   Palette and pixel-display type carried over from the earlier site draft. */

:root {
  --deep: #081624;
  --navy: #0e2233;
  --panel: #122b40;
  --rule: #1f3a52;
  --foam: #e6efe9;
  --mist: #9fb4c3;
  --amber: #ffb238;
  --magenta: #e8408f;
  --teal: #3fc5c0;
  --pixel: "Silkscreen", "Courier New", monospace;
  --body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--foam);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- header ---------- */
header { border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: rgba(8,22,36,.94); backdrop-filter: blur(6px); z-index: 20; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.logo { font-family: var(--pixel); font-size: 23px; color: var(--foam); text-decoration: none; letter-spacing: 1px; }
.logo span { color: var(--teal); }
nav ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; flex-wrap: wrap; }
nav a { color: var(--mist); text-decoration: none; font-size: 15px; }
nav a:hover { color: var(--foam); }

.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-fire { background: var(--amber); color: #2a1600; }
.btn-fire:hover { background: #ffc566; }
.btn-line { border: 2px solid var(--rule); color: var(--foam); }
.btn-line:hover { border-color: var(--mist); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 0 72px; }
h1 { font-family: var(--pixel); font-weight: 400; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.14; margin: 0 0 22px; }
.lede { font-size: 20px; color: var(--mist); max-width: 34em; margin: 0 0 20px; }
.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 14px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

/* live feed panel */
.feed { background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.feed .head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; color: var(--mist); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); display: inline-block; margin-right: 7px; }
.feed .body { padding: 18px 20px; font-family: var(--mono); font-size: 14.5px; min-height: 210px; }
.feed .meta { display: flex; justify-content: space-between; color: var(--mist); font-size: 12.5px; margin-bottom: 10px; }
.feed .ch { color: var(--teal); font-weight: 600; }
.feed .orig { color: var(--mist); margin: 0 0 10px; }
.feed .tr { color: var(--foam); margin: 0; }
.feed .tr::after { content: ""; display: inline-block; width: .55em; height: 1em; background: var(--amber); vertical-align: -2px; margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.feed .foot { padding: 9px 16px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 11.5px; color: var(--mist); }

/* ---------- sections ---------- */
section { padding: 76px 0; border-top: 1px solid var(--rule); }
h2 { font-family: var(--pixel); font-weight: 400; font-size: clamp(24px, 3.2vw, 34px); margin: 0 0 14px; line-height: 1.22; }
h3 { font-size: 20px; margin: 0 0 8px; }
.intro { color: var(--mist); max-width: 40em; margin: 0 0 44px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before { content: counter(s); display: block; font-family: var(--pixel); font-size: 36px; line-height: 1; margin-bottom: 12px; }
.steps li:nth-child(1)::before { color: var(--teal); }
.steps li:nth-child(2)::before { color: var(--amber); }
.steps li:nth-child(3)::before { color: var(--magenta); }
.steps p { margin: 0; color: var(--mist); }

/* stat grid */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.stat { background: var(--navy); padding: 22px 20px; }
.stat b { display: block; font-family: var(--pixel); font-size: 26px; color: var(--amber); line-height: 1.2; margin-bottom: 6px; }
.stat span { display: block; font-size: 14.5px; color: var(--mist); }
.stat small { display: block; margin-top: 8px; font-family: var(--mono); font-size: 11.5px; color: #6f8599; }

/* shots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
figure { margin: 0; background: var(--navy); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
figure img { border-bottom: 1px solid var(--rule); }
figcaption { padding: 14px 18px; font-size: 14.5px; color: var(--mist); }
figcaption b { color: var(--foam); display: block; margin-bottom: 3px; font-weight: 700; }

/* quote / capture callout */
.capture { background: var(--panel); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; padding: 24px 26px; margin: 0 0 24px; }
.capture p { margin: 0 0 10px; font-family: var(--mono); font-size: 15px; }
.capture .src { color: var(--mist); font-size: 13.5px; font-family: var(--body); margin: 0; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; color: var(--mist); font-size: 14px; padding-bottom: 12px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
th[scope="row"] { color: var(--mist); font-weight: 400; width: 38%; }
thead th { color: var(--foam); font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
td.num { font-family: var(--mono); }

/* two-column */
.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px; }
/* the power table is a real matrix, not a label/value pair - fix its columns */
table.power { table-layout: fixed; }
table.power th[scope="row"] { color: var(--foam); font-weight: 700; }
table.power td { font-family: var(--mono); }
table.power thead th:nth-child(1), table.power tbody th { width: 13%; }
table.power thead th:nth-child(2) { width: 27%; }
table.power thead th:nth-child(3) { width: 14%; }
table.power thead th:nth-child(4) { width: 32%; }
table.power thead th:nth-child(5) { width: 14%; }
.limits li { margin-bottom: 12px; color: var(--mist); }
.limits b { color: var(--foam); }

/* language chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li { font-family: var(--mono); font-size: 13px; color: var(--mist); border: 1px solid var(--rule); border-radius: 4px; padding: 5px 10px; }
.chips li b { color: var(--foam); font-weight: 600; }

/* contact */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: start; }
.mail { font-family: var(--pixel); font-size: 22px; color: var(--amber); text-decoration: none; }
.contact ul { list-style: none; margin: 0; padding: 0; }
.contact li { border-top: 1px solid var(--rule); padding: 14px 0; }
.contact li span { display: block; color: var(--mist); font-size: 14px; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 44px; color: var(--mist); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.note { color: #6f8599; font-size: 13.5px; max-width: 60em; }

@media (max-width: 900px) {
  .hero, .cols, .contact { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
}
