/* Tokens, reset, typography, buttons, focus, reduced motion. */
:root {
  --bg: #07090a;
  --surface: #0e1214;
  --glass: rgba(13, 17, 19, 0.72);
  --glass-border: rgba(255, 255, 255, 0.12);
  --text: #f3f5f2;
  --muted: #9aa4a3;
  --idle: #6c6e6f;
  --lime: #b5f534;
  --cyan: #00ddfe;
  --font-body: "Barlow", Arial, Helvetica, sans-serif;
  --font-label: "Saira", "Barlow", Arial, sans-serif;
  --header-h: 76px;
  --radius-card: 18px;
  --radius-thumb: 10px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scrollbar-gutter: stable; /* the modal locks body scroll: do not let the layout jump where scrollbars are classic */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--lime);
  color: #0a1103;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

/* Buttons ----------------------------------------------------------------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 700 15px/1 var(--font-body);
  text-decoration: none;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, border-color 0.2s;
}
.button-primary { background: var(--lime); color: #0a1103; }
.button-primary:hover { background: #c9ff62; transform: translateY(-2px); }
.button-outline { background: transparent; border-color: rgba(255, 255, 255, 0.3); color: var(--text); }
.button-outline:hover { border-color: var(--lime); background: rgba(181, 245, 52, 0.08); }
.button-cyan { background: var(--cyan); color: #031116; }
.button-cyan:hover { transform: translateY(-2px); }
.arrow { font-size: 1.15em; line-height: 1; }

.mono-label {
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Motion ------------------------------------------------------------------ */
body.motion-off *,
body.motion-off *::before,
body.motion-off *::after {
  animation-play-state: paused !important;
}
body.motion-off { scroll-behavior: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
