/* Design tokens lifted from the hyperstack.ru Next.js build so these static
   pages sit next to the main site without looking bolted on. */
:root {
  --bg: #050509;
  --surface: #0d0d1a;
  --border: #18182a;
  --border-accent: #00c4f52e;
  --accent: #00c4f5;
  --accent-glow: #00c4f514;
  --text: #d8dce8;
  --text-muted: #525268;
  --font-heading: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: #00c4f526; color: var(--accent); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

header.bar {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  background: rgba(5, 5, 9, .88);
  backdrop-filter: blur(12px);
}
header.bar .wrap {
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .mark {
  width: 8px; height: 8px; background: var(--accent); rotate: 45deg;
  transition: rotate .3s;
}
.brand:hover .mark { rotate: 225deg; }
.brand span {
  font-family: var(--font-heading); font-size: 11px; font-weight: 700;
  letter-spacing: .3em; text-transform: uppercase; color: #fff;
}
nav.bar-nav { display: flex; gap: 20px; }
nav.bar-nav a {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--text-muted); text-decoration: none;
  transition: color .2s;
}
nav.bar-nav a:hover { color: var(--accent); }

main { padding: 72px 0 96px; }

.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .25em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 20px;
}

h1 {
  font-family: var(--font-heading); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(32px, 6vw, 52px); line-height: 1.05; color: #fff;
  margin-bottom: 20px;
}
h2 {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: -.02em;
  font-size: 20px; color: #fff; margin: 48px 0 14px;
}
h3 { font-size: 15px; font-weight: 700; color: #fff; margin: 26px 0 8px; }

p { margin-bottom: 16px; color: var(--text); }
.lead { font-size: 18px; color: var(--text); margin-bottom: 32px; }
.muted { color: var(--text-muted); }
small.muted { font-size: 13px; }

ul { margin: 0 0 16px 0; list-style: none; }
ul li { position: relative; padding-left: 22px; margin-bottom: 9px; }
ul li::before {
  content: ""; position: absolute; left: 4px; top: .68em;
  width: 5px; height: 5px; background: var(--accent); rotate: 45deg;
}
ol { margin: 0 0 16px 20px; }
ol li { margin-bottom: 9px; padding-left: 6px; }

a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--border-accent); }
a:hover { border-bottom-color: var(--accent); }

code, .mono { font-family: var(--font-mono); font-size: .9em; color: var(--text); }

.card {
  border: 1px solid var(--border); background: var(--surface);
  padding: 24px; margin-bottom: 16px; display: block; text-decoration: none;
  transition: border-color .2s, background .2s;
}
a.card:hover { border-color: var(--accent); background: var(--accent-glow); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.btn {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; padding: 13px 22px; border: 1px solid var(--accent);
  color: var(--accent); text-decoration: none; transition: background .2s, color .2s;
}
.btn:hover { background: var(--accent); color: var(--bg); border-bottom-color: var(--accent); }
.btn.ghost { border-color: var(--border); color: var(--text-muted); }
.btn.ghost:hover { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn.disabled { border-color: var(--border); color: var(--text-muted); pointer-events: none; }

hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }

footer {
  border-top: 1px solid var(--border); padding: 32px 0;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--text-muted);
}
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
footer a { color: var(--text-muted); border: 0; }
footer a:hover { color: var(--accent); }
