/* ==========================================================================
   Codirex — base
   Design tokens, resets, base elements and the small typographic utilities
   that every page depends on. Loaded first: nothing here assumes layout.
   ========================================================================== */

:root {
  --bg: #07080b;
  --bg-soft: #0d0f14;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f6f7fb;
  --muted: #a6abb8;
  --muted-2: #777e8e;
  --lime: #c7ff4a;
  --violet: #8f73ff;
  --cyan: #54ddff;
  --orange: #ff8a4c;
  --danger: #ff7a7a;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --radius: 28px;
  --radius-sm: 18px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% -8%, rgba(143, 115, 255, 0.20), transparent 35%),
    radial-gradient(circle at 92% 12%, rgba(84, 221, 255, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #08090c; }

/* Keyboard focus is always visible; mouse clicks stay clean. */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  z-index: 400;
  top: 10px;
  left: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--lime);
  color: #08090c;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus { transform: none; }

/* Visually hidden but readable by assistive tech. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.mono {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: #c6cad4;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(199, 255, 74, .75);
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, var(--lime), #f3ffbe 42%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.text-muted { color: var(--muted); }
.dim { color: var(--muted-2); }
.u { text-decoration: underline; }

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--max)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
