/* Ogma Oversight — static stylesheet
   Design tokens ported from the original app (oklch). */
:root {
  --background: oklch(0.145 0.004 285.8);
  --foreground: oklch(0.967 0.001 286.4);
  --card: oklch(0.185 0.004 285.8);
  --primary: oklch(0.696 0.17 162.48);
  --primary-foreground: oklch(0.145 0.004 285.8);
  --secondary: oklch(0.21 0.004 285.8);
  --muted-foreground: oklch(0.705 0.004 286.3);
  --accent: oklch(0.696 0.17 162.48);
  --signal: oklch(0.623 0.188 259.8);
  --border: oklch(0.274 0.005 286);
  --radius: 0.375rem;
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- helpers ---------- */
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding-left: 1.5rem; padding-right: 1.5rem; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted-foreground); }
.small { font-size: 0.875rem; }
.micro { font-size: 0.625rem; }
.accent { color: var(--accent); }
.signal { color: var(--signal); }
.fg { color: var(--foreground); }
.measure { max-width: 46ch; }
.measure-wide { max-width: 50ch; }
.stack > * + * { margin-top: 1.5rem; }
.stack-sm > * + * { margin-top: 1rem; }
.spread { text-transform: uppercase; letter-spacing: 0.15em; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; font-weight: 500; cursor: pointer; border: none; transition: opacity .15s, color .15s, background .15s; }
.btn--solid { background: var(--foreground); color: var(--background); padding: 0.45rem 1rem; border-radius: 2px; box-shadow: 0 0 0 1px var(--foreground); }
.btn--solid:hover { opacity: 0.9; }
.btn--ghost { background: transparent; color: var(--muted-foreground); padding: 0.5rem 1rem; }
.btn--ghost:hover { color: var(--foreground); }
.btn--icon { padding: 0.5rem 0.75rem 0.5rem 0.5rem; }
.btn--block { width: 100%; justify-content: center; padding: 0.65rem; margin-top: 0.5rem; }
.btn__glyph { display: grid; place-items: center; width: 1rem; height: 1rem; background: color-mix(in oklab, var(--background) 100%, transparent 90%); }
.btn__dot { width: 0.375rem; height: 0.375rem; background: var(--background); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; z-index: 50; width: 100%; border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent); background: color-mix(in oklab, var(--background) 70%, transparent); backdrop-filter: blur(12px); }
.nav__inner { display: flex; height: 3.5rem; align-items: center; justify-content: space-between; }
.nav__left { display: flex; align-items: center; gap: 2rem; }
.nav__links { display: none; gap: 1.5rem; }
.nav__links a { font-size: 0.875rem; color: var(--muted-foreground); transition: color .15s; }
.nav__links a:hover { color: var(--foreground); }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.875rem; font-weight: 500; text-transform: uppercase; letter-spacing: -0.03em; }
.brand--footer { font-size: 0.875rem; }
.brand__mark { width: 1.5rem; height: 1.5rem; }

/* ---------- hero ---------- */
.hero { padding: 8rem 0 5rem; }
.hero__grid { display: grid; gap: 3rem; align-items: end; }
.hero__title { max-width: 20ch; font-size: clamp(2.25rem, 6vw, 3.75rem); font-weight: 500; line-height: 1; letter-spacing: -0.025em; }
.hero__lead { max-width: 48ch; font-size: 1.125rem; color: var(--muted-foreground); }
.hero__actions { display: flex; align-items: center; gap: 1rem; padding-top: 1rem; }
.tag { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.5rem; font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.2em; }
.tag--accent { color: var(--accent); border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent); background: color-mix(in oklab, var(--accent) 5%, transparent); }
.tag__mark { width: 1rem; height: 1rem; }
.hero__panel { display: none; position: relative; border-left: 1px solid var(--border); padding: 0 0 0.5rem 2rem; }
.hero__emblem { position: absolute; top: -10rem; right: 0; width: 8rem; height: 8rem; opacity: 0.9; pointer-events: none; }

/* meta block */
.meta { display: flex; flex-direction: column; gap: 1rem; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--muted-foreground); }
.meta__row { display: flex; justify-content: space-between; }
.meta p { line-height: 1.6; }
.rule { height: 1px; width: 100%; background: var(--border); }

/* ---------- sections ---------- */
.section { border-top: 1px solid var(--border); padding: 6rem 0; }
.section__head { margin-bottom: 4rem; max-width: 40ch; }
.section__title { margin-top: 1rem; font-size: clamp(1.875rem, 4vw, 2.25rem); font-weight: 500; letter-spacing: -0.025em; text-wrap: balance; }
.section__head p { margin-top: 1rem; }
.eyebrow { font-family: var(--font-mono); font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.15em; }
.eyebrow--accent { color: var(--accent); }
.eyebrow--signal { color: var(--signal); }

/* grids of bordered cells */
.grid { display: grid; gap: 1px; }
.grid--bordered { border: 1px solid var(--border); background: var(--border); }
.cell { background: var(--background); padding: 2rem; }
.cell--md { padding: 2.5rem; }
.cell--lg { padding: 3rem; }
.cell__title { font-size: 1.125rem; font-weight: 500; }
.cell__title--lg { font-size: 1.25rem; }
.cell__lead { display: flex; align-items: center; gap: 0.75rem; }
.badge { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--card); box-shadow: inset 0 0 0 1px var(--border); }
.shape { width: 0.5rem; height: 0.5rem; }
.shape--diamond { transform: rotate(45deg); border: 1px solid; }
.shape--circle { border-radius: 50%; border: 1px solid; }
.shape--accent { border-color: var(--accent); }
.shape--signal { border-color: var(--signal); }
.shape--fg { border-color: var(--foreground); }

.measure { max-width: 40ch; }
.bullets { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; font-size: 12px; color: var(--muted-foreground); }
.bullets li { display: flex; align-items: center; gap: 0.5rem; }

/* split layouts */
.split { display: grid; gap: 3rem; align-items: center; }
.list-bordered { list-style: none; border: 1px solid var(--border); background: var(--border); display: flex; flex-direction: column; gap: 1px; }
.list-bordered li { display: flex; align-items: flex-start; gap: 0.75rem; background: var(--background); padding: 1.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.dot { margin-top: 0.35rem; width: 0.375rem; height: 0.375rem; border-radius: 50%; flex-shrink: 0; }
.dot--signal { background: var(--signal); }

/* compliance band */
.band { background: color-mix(in oklab, var(--secondary) 30%, transparent); padding: 3rem 0; }
.band__inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; opacity: 0.7; }
.band__frameworks { display: flex; flex-wrap: wrap; justify-content: center; gap: 3rem; }
.fw { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.fw__name { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.05em; }
.fw__sub { font-family: var(--font-mono); font-size: 9px; text-transform: uppercase; letter-spacing: -0.02em; color: var(--muted-foreground); }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 5rem 0; }
.footer__grid { display: grid; gap: 3rem; }
.footer__col h4 { font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer__col a, .linklike { color: var(--muted-foreground); transition: color .15s; background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.footer__col a:hover, .linklike:hover { color: var(--foreground); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); margin-top: 5rem; padding-top: 2rem; }
.footer__dots { display: flex; gap: 1rem; }
.footer__dots span { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--border); }

/* dialog */
.dialog { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; }
.dialog[hidden] { display: none; }
.dialog__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(2px); }
.dialog__panel { position: relative; width: 100%; max-width: 28rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.dialog__close { position: absolute; top: 0.75rem; right: 0.75rem; background: none; border: none; color: var(--muted-foreground); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.dialog__close:hover { color: var(--foreground); }
.dialog__title { font-size: 1.125rem; font-weight: 600; }
.dialog__desc { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.form { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field label { font-size: 0.875rem; font-weight: 500; }
.field input, .field textarea { background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.5rem 0.75rem; color: var(--foreground); font: inherit; font-size: 0.875rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }

/* toast */
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1.25rem; font-size: 0.875rem; box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.toast[hidden] { display: none; }
.toast--error { border-color: var(--signal); }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .nav__links { display: flex; }
  .split { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .band__inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr 400px; }
  .hero__panel { display: block; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
