/* ============================================================
   Evolver 360 — Global Design System
   Brand: Navy #091A27 · Mint Green #6ED99E · White
   Fonts: Russo One (display) · Manrope (body) · JetBrains Mono (data)
   ============================================================ */

/* ---- Tokens ---- */
:root {
  --navy:        #091A27;
  --navy-2:      #0C2231;
  --navy-3:      #060F17;
  --navy-glass:  rgba(9, 26, 39, 0.78);
  --green:       #6ED99E;
  --green-soft:  rgba(110, 217, 158, 0.18);
  --green-line:  rgba(110, 217, 158, 0.35);
  --text:        rgba(255, 255, 255, 0.92);
  --muted:       rgba(255, 255, 255, 0.55);
  --dim:         rgba(255, 255, 255, 0.28);
  --line:        rgba(255, 255, 255, 0.08);
  --line-2:      rgba(255, 255, 255, 0.18);
  /* Semantic feedback, matching the existing form error treatment. */
  --danger:      #ff8a8a;
  --danger-soft: rgba(255, 107, 107, 0.08);
  --danger-line: rgba(255, 107, 107, 0.30);
  color-scheme: dark;

  /* Pillar accent colours — only inside EVO Score / scoring visualisations */
  --pillar-technical:  #6ED99E;
  --pillar-cognitive:  #5BA8E8;
  --pillar-physical:   #F4B860;
  --pillar-perceptual: #F47C8A;
  --pillar-reserve:    #B98DE0;

  /* Layout */
  --max-width: 1280px;
  --nav-height: 72px;
}

/* ---- Light theme tokens ---- */
[data-theme="light"] {
  --navy:        #F4F7FA;
  --navy-2:      #EAF0F6;
  --navy-3:      #DDE6EF;
  --navy-glass:  rgba(244, 247, 250, 0.88);
  --green:       #1A9B5E;
  --green-soft:  rgba(26, 155, 94, 0.12);
  --green-line:  rgba(26, 155, 94, 0.30);
  --text:        rgba(9, 26, 39, 0.92);
  --muted:       rgba(9, 26, 39, 0.55);
  --dim:         rgba(9, 26, 39, 0.32);
  --line:        rgba(0, 0, 0, 0.08);
  --line-2:      rgba(0, 0, 0, 0.14);
  --danger:      #b33131;
  --danger-soft: rgba(179, 49, 49, 0.06);
  --danger-line: rgba(179, 49, 49, 0.30);
  color-scheme: light;
}

/* Smooth theme transition (only on toggled elements, not on page load) */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    color 200ms ease,
    box-shadow 200ms ease !important;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.55;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font: inherit;
}

/* ---- Focus ---- */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- Selection ---- */
::selection {
  background: var(--green);
  color: var(--navy);
}

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

/* ---- Base container ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 720px) {
  .container {
    padding: 0 24px;
  }
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* ---- Typography helpers ---- */
.display {
  font-family: 'Russo One', 'Impact', sans-serif;
  letter-spacing: 0.005em;
  line-height: 1.02;
  text-transform: uppercase;
}

.mono {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
}

/* ---- Scroll reveal utility ---- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *[class*="scan"], *[class*="pulse"], *[class*="flash"] {
    animation: none !important;
  }
}

/* ---- Image placeholder (for AI-generated images not yet produced) ---- */
.img-placeholder {
  background: var(--navy-2);
  border: 1px dashed var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  aspect-ratio: 16 / 9;
  width: 100%;
}
