/* Insight IO: brand colors taken from the logo (navy + amber).
   Two themes, driven by data-lights on <html>:
     "on"  = light theme (lights on)     "off" = dark theme (lights off)
   main.js sets it from the visitor's saved choice or system setting. */
:root {
  --navy: #0b1c4d;
  --amber: #ffaf1c;
  --bg: #f7f7f8;
  --fg: #0b1c4d;
  --mut: #4a5578;
  --band: #ffffff;
  --band-alt: #eef0f6;
  --line: #dde1ee;
  --acc: #8f5a00;               /* dark amber: readable as small text on light backgrounds */
  --glow: rgba(255, 175, 28, .30);
  --fade: .4s;                  /* gentle cross-fade when the theme changes */
}
html[data-lights="off"] {
  --bg: #060a1c;
  --fg: #d3dbf2;
  --mut: #94a0c6;
  --band: #0a1030;
  --band-alt: #080d26;
  --line: #1a2350;
  --acc: #ffaf1c;
  --glow: rgba(255, 175, 28, .17);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
html[data-lights="off"] { color-scheme: dark; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 18px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  transition: background-color var(--fade) ease, color var(--fade) ease;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--band); color: var(--fg); padding: 8px 12px; z-index: 10; }

/* light / dark switch: a small bulb, top right */
.lights-toggle {
  position: fixed; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--band); color: var(--fg);
  transition: background-color var(--fade) linear, border-color var(--fade) linear, color var(--fade) linear;
}
.lights-toggle:hover { border-color: var(--amber); }
.lights-toggle svg { width: 24px; height: 24px; }
.lights-toggle .glass { fill: transparent; transition: fill var(--fade) linear; }
html[data-lights="on"] .lights-toggle .glass { fill: var(--amber); fill-opacity: .55; }   /* bulb looks lit */

/* hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 56px 20px 72px; overflow: hidden;
}
/* the glow behind the logo slowly breathes in and out */
.glow {
  position: absolute; left: 50%; top: 38%; width: min(900px, 130vw); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  animation: breathe 6s ease-in-out infinite alternate;
  transition: background var(--fade) linear;
}
@keyframes breathe {
  from { opacity: .35; transform: translate(-50%, -50%) scale(.94); }
  to   { opacity: 1;   transform: translate(-50%, -50%) scale(1.04); }
}
.logo {
  position: relative; width: min(68vw, 350px); height: auto; margin: 0 0 28px;
  transition: filter var(--fade) linear;
}
/* On a dark page the logo's navy would disappear, so it is inverted (navy -> pale) and the
   hue and brightness are corrected so the amber stays warm, rather than swapping in separate art. */
html[data-lights="off"] .logo { filter: invert(1) hue-rotate(189deg) brightness(1.85) saturate(1.3); }
h1 { position: relative; margin: 0 0 .4em; font-size: clamp(1.6rem, 4.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.02em; }
.scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  text-decoration: none; color: var(--mut); border: 1px solid var(--line); background: var(--band);
}
.scroll:hover { color: var(--fg); border-color: var(--amber); }

/* sections */
.band { background: var(--band); padding: 84px 20px; transition: background-color var(--fade) linear; }
.band.alt { background: var(--band-alt); }
.inner { max-width: 680px; margin: 0 auto; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 14px; padding: 2px 12px; border: 1px solid var(--acc);
  border-radius: 99px; color: var(--acc); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
h2 { margin: 0 0 .4em; font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -.01em; }
.inner p { margin: 0 0 1.2em; color: var(--mut); }
.button {
  display: inline-block; padding: 12px 24px; border-radius: 99px; text-decoration: none; font-weight: 600;
  background: var(--amber); color: #0b1c4d; transition: transform .15s;
}
.button:hover { transform: translateY(-2px); }

footer { padding: 28px 20px 40px; text-align: center; color: var(--mut); font-size: .9rem; background: var(--band-alt); transition: background-color var(--fade) linear; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :root { --fade: 0s; }
  .glow { animation: none; opacity: .8; transform: translate(-50%, -50%); }
  .button:hover { transform: none; }
}
