/* Secretorium — technical site. Shared stylesheet.
   No external resources, no web fonts, no trackers. Dark "portal field" aesthetic. */

:root {
  --bg: #05060b;
  --bg-2: #0a0c16;
  --panel: rgba(18, 21, 34, 0.66);
  --panel-solid: #0e1120;
  --border: rgba(140, 150, 200, 0.16);
  --border-strong: rgba(150, 160, 220, 0.30);
  --ink: #eef1fb;
  --ink-soft: #aab2cc;
  --ink-dim: #7d859e;
  --violet: #7c5cff;
  --cyan: #37d6cf;
  --glow-violet: rgba(124, 92, 255, 0.55);
  --glow-cyan: rgba(55, 214, 207, 0.45);
  --maxw: 760px;
  --radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient glow background, present on every page (static, cheap). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 50% -8%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(45% 45% at 85% 20%, rgba(55, 214, 207, 0.14), transparent 70%),
    radial-gradient(55% 60% at 10% 90%, rgba(124, 92, 255, 0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}

a { color: #b9a9ff; text-decoration: none; }
a:hover { color: #d6ccff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Canvas (landing only) ---------- */
#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: rgba(5, 6, 11, 0.55);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--ink);
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c9bcff, var(--violet) 60%, #3b2a8f);
  box-shadow: 0 0 14px var(--glow-violet);
}

.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--ink); text-decoration: none; }

/* ---------- Hero (landing) ---------- */
.hero {
  min-height: calc(100vh - 62px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px 100px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 26px;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 4.6rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 25%, #c7ccf0 75%, #8f96c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: 560px;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--ink-soft);
  margin: 0 auto 42px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-strong);
  color: var(--ink);
  background: var(--panel);
  transition: border-color .2s, box-shadow .2s, transform .15s, color .2s;
}
.btn:hover {
  text-decoration: none;
  color: var(--ink);
  border-color: rgba(185, 169, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.25), 0 10px 40px -12px var(--glow-violet);
  transform: translateY(-1px);
}
.btn-primary {
  background: linear-gradient(180deg, #8b6dff, #6a48f0);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 10px 40px -10px var(--glow-violet);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 50px -10px var(--glow-violet); }

.hero-links {
  margin-top: 40px;
  font-size: 14px;
  color: var(--ink-dim);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-links a { color: var(--ink-soft); }

/* ---------- Legal / content pages ---------- */
.doc {
  padding: 56px 0 100px;
}
.doc .wrap { max-width: var(--maxw); }

.doc h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.doc .meta {
  color: var(--ink-dim);
  font-size: 14px;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.doc h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 46px 0 14px;
  letter-spacing: -0.01em;
  color: #fff;
}
.doc h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 8px;
  color: var(--ink);
}
.doc p, .doc li { color: var(--ink-soft); font-size: 15.5px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 7px 0; }
.doc a { color: #c3b6ff; }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
  backdrop-filter: blur(8px);
}
.card.accent { border-color: rgba(124, 92, 255, 0.4); }

.callout {
  border-left: 3px solid var(--violet);
  padding: 4px 0 4px 18px;
  margin: 22px 0;
  color: var(--ink-soft);
}

.lead {
  font-size: 1.08rem;
  color: var(--ink);
}

/* TODO markers for review; harmless if they ship, but meant to be resolved. */
.todo {
  display: inline;
  background: rgba(255, 196, 0, 0.14);
  border: 1px dashed rgba(255, 196, 0, 0.5);
  color: #ffd766;
  border-radius: 6px;
  padding: 0 6px;
  font-size: 0.92em;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14.5px;
}
table.data th, table.data td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  color: var(--ink-soft);
}
table.data th { color: var(--ink); font-weight: 600; }
table.data tr:last-child td { border-bottom: none; }

.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li {
  position: relative;
  padding: 2px 0 20px 52px;
  margin: 0;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  color: #c3b6ff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 0 16px -4px var(--glow-violet);
}
.steps > li:last-child { padding-bottom: 0; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 34px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--ink-dim);
  font-size: 13.5px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer .f-links { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-soft); }

/* ---------- Motion / responsive ---------- */
@media (prefers-reduced-motion: reduce) {
  #field { display: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 560px) {
  .nav { gap: 16px; }
  .site-header .wrap { height: 56px; }
  .doc { padding: 36px 0 70px; }
}
