/* ============================================================
   VIREON CAPITAL — Base & layout primitives
   ============================================================ */

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

* { margin: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur-mid) var(--ease-out), color var(--dur-mid) var(--ease-out);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }

ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: rgba(15, 169, 104, 0.22); }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.6rem + 2.5vw, 2.5rem);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.section--dark {
  background: var(--navy-900);
  color: #E7EEF9;
}
.section--dark h2, .section--dark h3 { color: #FFFFFF; }
.section--alt { background: var(--bg-alt); }

.skip-link {
  position: absolute;
  left: 1rem; top: -60px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  z-index: 300;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---- Section heading rhythm ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section--dark .eyebrow { color: var(--emerald-400); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 1.8rem + 2vw, 3.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: var(--step-h2); margin-top: 0.9rem; }
.section-head .lede {
  margin-top: 1rem;
  font-size: var(--step-lede);
  color: var(--text-soft);
  line-height: 1.55;
}

.lede { font-size: var(--step-lede); color: var(--text-soft); }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }

/* ---- Buttons ---- */
.btn {
  --btn-py: 0.85rem;
  --btn-px: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-display);
  font-size: var(--step-sm);
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
  will-change: transform;
  text-align: center;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #04160E;
  box-shadow: var(--shadow-emerald);
}
.btn--primary:hover { background: var(--emerald-400); box-shadow: 0 16px 34px -10px rgba(15,169,104,0.55); }

.btn--secondary {
  background: var(--royal-600);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn--secondary:hover { background: var(--royal-500); }

.btn--ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.section--dark .btn--ghost,
.hero .btn--ghost { border-color: rgba(255,255,255,0.28); color: #fff; }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { border-color: var(--emerald-400); color: var(--emerald-400); }

.btn--sm { --btn-py: 0.6rem; --btn-px: 1.1rem; font-size: var(--step-xs); }
.btn--lg { --btn-py: 1rem; --btn-px: 1.9rem; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

.btn svg { width: 18px; height: 18px; }

/* ---- Reveal-on-scroll base ----
   Content is VISIBLE by default. It is only hidden for the animation
   when JS is active (html.js-reveal is set by reveal.js). This guarantees
   the page never shows blank if the script fails to load or run. */
.reveal { opacity: 1; transform: none; }
html.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
html.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js-reveal .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Utility ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.grid { display: grid; gap: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.stack > * + * { margin-top: var(--sp-4); }
.center-text { text-align: center; }
.no-scroll { overflow: hidden; }
