@font-face {
  font-family: "Locator";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/fonts/locator-black.otf") format("opentype");
}
@font-face {
  font-family: "Locator";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/locator-bold.woff") format("woff");
}

@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/teko-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Teko";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/teko-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Share Tech Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/share-tech-mono-latin.woff2") format("woff2");
}

:root {
  /* Canonical OTX (app/design/tokens.css dark theme; masters Entry 115) */
  --bg: #080a0c;
  --bg-elev: #101317;
  --ink: #f4f6f8;
  --muted: #7e8791;
  --dim: #7e8791;
  --accent: #b026ff;
  --accent-text: #ffffff;
  --accent-dim: rgba(176, 38, 255, 0.16);
  --glow: #d966ff;
  --action: #9dff00;
  --error: #d83b3b;
  --olive: #9dff00;
  --line: #292e35;
  --line-strong: #292e35;
  --header-h: 4.25rem;
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(176, 38, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(176, 38, 255, 0.06) 1px, transparent 1px),
    radial-gradient(1200px 700px at 80% -10%, rgba(176, 38, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at -10% 110%, rgba(157, 255, 0, 0.05), transparent 50%);
  background-size: 56px 56px, 56px 56px, auto, auto;
  background-attachment: fixed;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0, 0, 0, 0.12) 3px,
    rgba(0, 0, 0, 0.12) 4px
  );
  opacity: 0.35;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
img { max-width: 100%; }

.wrap, header, footer, main { position: relative; z-index: 1; }

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.mono {
  font-family: "Share Tech Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 12, 0.88);
  backdrop-filter: blur(10px);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}
.mark:hover { text-decoration: none; color: var(--ink); }
.mark-word {
  font-family: Locator, "Arial Black", Arial, sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: #080a0c;
  -webkit-text-stroke: 1.2px var(--accent);
  text-shadow: 0 0 5px #b026ffcc, 0 0 14px #b026ff88;
  filter: drop-shadow(0 0 3px #b026ff99);
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a.enter {
  color: var(--accent-text);
  background: var(--accent);
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--accent);
}
.nav a.enter:hover { background: var(--glow); color: var(--accent-text); border-color: var(--glow); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--olive);
  font-size: 0.78rem;
  margin: 0 0 1.4rem;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  height: 1px;
  background: var(--olive);
  opacity: 0.55;
}
.eyebrow::before { width: 1.6rem; }
.eyebrow::after { flex: 0; width: 0; }

.hero h1 {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: clamp(4.4rem, 14vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 1.6rem;
  max-width: 12ch;
}
.hero h1 span { color: var(--accent); }

.lede {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--accent);
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--glow); color: var(--accent-text); border-color: var(--glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* Modules */
.modules {
  padding: 3.5rem 0 4.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.mod {
  background: var(--bg-elev);
  padding: 1.6rem 1.5rem 1.7rem;
  min-height: 12rem;
  position: relative;
}
.mod::before,
.mod::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
  opacity: 0.7;
}
.mod::before { top: 8px; left: 8px; border-width: 1px 0 0 1px; }
.mod::after { bottom: 8px; right: 8px; border-width: 0 1px 1px 0; }
.mod-id {
  color: var(--accent);
  font-size: 0.72rem;
  margin: 0 0 0.85rem;
}
.mod h2 {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: 2.35rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  line-height: 1;
}
.mod p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
}

/* Footer / legal pages */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.site-footer a { color: var(--ink); }
.legal-note { color: var(--dim); font-size: 0.85rem; margin-top: 0.35rem; }

.page {
  padding: 3rem 0 4.5rem;
  max-width: 44rem;
}
.page h1 {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 0.4rem;
}
.page .meta {
  color: var(--olive);
  font-size: 0.75rem;
  margin: 0 0 2rem;
}
.page h2 {
  font-family: "Teko", sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 2rem 0 0.6rem;
}
.page p, .page li { color: var(--muted); }
.page ul { padding-left: 1.2rem; }
.page li { margin: 0.35rem 0; }

.not-found { padding: 6rem 0; text-align: left; }
.not-found h1 {
  font-family: "Teko", sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  line-height: 0.85;
  margin: 0 0 1rem;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .nav .hide-sm { display: none; }
  .modules { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .wrap { width: min(var(--max), calc(100% - 1.5rem)); }
}
