/* ==========================================================================
   BLIGHT LIGHT — core
   Colour + radius tokens are printed inline by includes/header.php from the
   settings table, so everything here reads from var() with a safe fallback.
   ========================================================================== */

/* ------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 4px; }

/* ------------------------------------------------------------ base */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient blight glow behind everything */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 520px at 78% -6%, color-mix(in srgb, var(--acid) 16%, transparent), transparent 70%),
    radial-gradient(700px 500px at 8% 105%, color-mix(in srgb, var(--acid) 8%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}
body.grain::after {
  content: '';
  position: fixed; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035;
  pointer-events: none;
  z-index: 999;
  animation: grainshift 6s steps(6) infinite;
}
@keyframes grainshift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 1%); }
}
body.scanlines .shell::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,.28) 0 1px, transparent 1px 3px);
  opacity: .35; pointer-events: none; z-index: 998;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1480px, 100% - 40px);
  margin-inline: auto;
  padding-bottom: 26px;
}

/* ------------------------------------------------------------ type */
.display {
  font-family: 'Anton', 'Oswald', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .86;
  text-transform: uppercase;
}
.ui, .eyebrow, .label, nav a, .btn, th, .tag, .stat-label {
  font-family: 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
}
.acid { color: var(--acid); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--acid);
}
.eyebrow::before {
  content: ''; width: 42px; height: 2px;
  background: var(--acid);
  box-shadow: 0 0 10px var(--acid);
}

/* Distressed paint texture for the big wordmark */
.grunge {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028 .075' numOctaves='3' seed='9'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.028 .075' numOctaves='3' seed='9'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.6 2.15'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
  -webkit-mask-size: 400px 400px;
  mask-size: 400px 400px;
}

/* ------------------------------------------------------------ panels */
.panel {
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}
.panel-pad { padding: 20px 22px; }

.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.section-head h2 {
  margin: 0; font-family: 'Chakra Petch', sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  display: flex; align-items: center; gap: 10px;
}
.section-head h2 .ic { color: var(--acid); }

/* ------------------------------------------------------------ buttons */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: var(--btn-bg);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s, box-shadow .25s, background .25s, border-color .25s, color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn .ic { flex: none; }

.btn-acid {
  background: linear-gradient(180deg, var(--acid-hi), var(--acid));
  color: #07120a;
  border-color: color-mix(in srgb, var(--acid) 70%, #000);
  box-shadow: var(--glow-btn);
}
.btn-acid:hover { box-shadow: var(--glow-btn-hi); }

.btn-ghost {
  background: color-mix(in srgb, var(--panel) 82%, transparent);
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--acid); color: var(--acid); }

.btn-outline { border-color: color-mix(in srgb, var(--acid) 45%, transparent); color: var(--acid); }
.btn-outline:hover { background: color-mix(in srgb, var(--acid) 12%, transparent); }
.btn-sm { padding: 8px 16px; font-size: 11px; letter-spacing: .12em; }
.btn-danger { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ topbar */
.topbar { padding: 18px 0 0; }
.nav {
  position: relative;
  display: flex; align-items: center; gap: 26px;
  padding: 12px 16px 12px 22px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel2) 92%, transparent), color-mix(in srgb, var(--panel) 96%, transparent));
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}
.nav::before, .nav::after {
  content: '';
  position: absolute; top: 50%; translate: 0 -50%;
  width: 9px; height: 22px;
  border: 1px solid var(--line);
  opacity: .8;
}
.nav::before { left: -14px; border-right: 0; border-radius: 8px 0 0 8px; }
.nav::after  { right: -14px; border-left: 0; border-radius: 0 8px 8px 0; }

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-mark { color: var(--acid); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--acid) 60%, transparent)); }
.brand-name {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 22px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.brand-name span { color: var(--acid); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; flex: 1 1 auto; overflow: visible; }
.nav-links a {
  position: relative;
  padding: 9px 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s;
}
.nav-links a:hover { color: var(--acid); }
.nav-links a.on { color: var(--white, #fff); }
.nav-links a.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--acid); box-shadow: 0 0 12px var(--acid); border-radius: 2px;
}
.nav-badge {
  margin-left: 7px; padding: 2px 7px; border-radius: 6px;
  background: var(--acid); color: #07120a;
  font-size: 9px; font-weight: 700; letter-spacing: .1em;
  vertical-align: 2px;
}
.nav-right { display: flex; align-items: center; gap: 10px; flex: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; color: var(--acid); cursor: pointer;
}

.avatar-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px;
  font-family: 'Chakra Petch', sans-serif; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.avatar-chip img { width: 26px; height: 26px; border-radius: 50%; }
.avatar-chip:hover { border-color: var(--acid); color: var(--acid); }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  min-height: 460px;
  margin-top: 6px;
}
.hero-copy { padding: 46px 0 40px; max-width: 620px; }
.hero-title {
  margin: 20px 0 0;
  font-size: clamp(58px, 8.4vw, 128px);
  color: var(--white, #f4f8f2);
  text-shadow: 0 8px 40px rgba(0,0,0,.6);
}
.hero-title .b { color: var(--acid); text-shadow: 0 0 42px color-mix(in srgb, var(--acid) 55%, transparent); }
.hero-sub {
  margin: 18px 0 0;
  font-family: 'Chakra Petch', sans-serif;
  font-size: clamp(16px, 1.5vw, 22px); font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.hero-text { margin: 16px 0 0; max-width: 460px; color: color-mix(in srgb, var(--text) 76%, transparent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-art {
  position: absolute; inset: 0 0 0 42%;
  border-radius: var(--radius);
  overflow: hidden;
  z-index: -1;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-art::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 6%, color-mix(in srgb, var(--bg) 55%, transparent) 34%, transparent 62%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent 30%, color-mix(in srgb, var(--bg) 85%, transparent));
}
.hero-noimg { background: radial-gradient(60% 70% at 60% 40%, color-mix(in srgb, var(--acid) 18%, transparent), transparent 70%), var(--panel); }

/* ------------------------------------------------------------ feature strip */
.features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--panel2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.feature:hover { border-color: color-mix(in srgb, var(--acid) 50%, transparent); transform: translateY(-3px); box-shadow: var(--glow-card); }
.feature-icon {
  flex: none; width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--acid) 35%, transparent);
  border-radius: 10px;
  color: var(--acid);
  background: color-mix(in srgb, var(--acid) 8%, transparent);
}
.feature h3 {
  margin: 2px 0 5px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.feature p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* ------------------------------------------------------------ stats bar */
.statbar {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 12px;
  padding: 18px 10px;
}
.stat {
  display: flex; align-items: center; gap: 18px;
  padding: 4px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat-icon { color: var(--acid); flex: none; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--acid) 45%, transparent)); }
.stat-label { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat-value {
  display: flex; align-items: baseline; gap: 8px;
  font-family: 'Chakra Petch', sans-serif; font-size: 30px; font-weight: 700; line-height: 1.2;
}
.stat-value .suffix { font-size: 15px; color: var(--muted); font-weight: 600; }
.stat-value.small { font-size: 20px; letter-spacing: .04em; }
.badge-live {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--acid);
}
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--acid); box-shadow: 0 0 8px var(--acid);
  animation: blip 1.8s ease-in-out infinite;
}
@keyframes blip { 50% { opacity: .25; } }

.ring { position: relative; width: 54px; height: 54px; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--acid); stroke-linecap: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--acid) 60%, transparent)); }
.ring span {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'Chakra Petch', sans-serif; font-size: 12px; font-weight: 700; color: var(--acid);
}

/* ------------------------------------------------------------ showcase + quotes */
.showcase-grid {
  display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(0, 1fr);
  gap: 12px; margin-top: 12px;
}
.carousel { position: relative; overflow: hidden; border-radius: calc(var(--radius) - 4px); }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(25% - 9px);
  gap: 12px; transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.shot {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
}
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .4s; }
.shot:hover img { transform: scale(1.06); filter: saturate(1.15); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 12px 9px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-family: 'Chakra Petch', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.car-btn {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--acid) 45%, transparent);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--acid); cursor: pointer; z-index: 2;
}
.car-btn:hover { background: var(--acid); color: #07120a; }
.car-prev { left: 10px; } .car-next { right: 10px; }
.car-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.car-dots button {
  width: 7px; height: 7px; padding: 0; border-radius: 50%;
  border: 0; background: var(--line); cursor: pointer;
}
.car-dots button.on { background: var(--acid); box-shadow: 0 0 8px var(--acid); }

.quotes { display: flex; flex-direction: column; gap: 12px; }
.quote {
  display: flex; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line); border-radius: calc(var(--radius) - 4px);
  background: color-mix(in srgb, var(--panel2) 70%, transparent);
}
.quote .mark { color: color-mix(in srgb, var(--acid) 65%, transparent); font-size: 26px; line-height: 1; font-family: Georgia, serif; }
.quote p { margin: 0; font-size: 13px; line-height: 1.55; }
.quote .who {
  display: block; margin-top: 8px; text-align: right;
  font-family: 'Chakra Petch', sans-serif; font-size: 12px; color: var(--acid);
}

/* ------------------------------------------------------------ footer */
.site-footer {
  display: grid; grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, .72fr)) minmax(0, 1fr);
  gap: 26px; margin-top: 12px; padding: 26px;
}
.site-footer h4 {
  margin: 0 0 12px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer li a { font-size: 13px; color: var(--muted); transition: color .2s; }
.site-footer li a:hover { color: var(--acid); }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand .brand-name { font-size: 19px; }
.foot-about { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); max-width: 300px; }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--acid) 30%, transparent); border-radius: 50%;
  color: var(--acid); transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--acid); color: #07120a; transform: translateY(-2px); }
.cta-card {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: calc(var(--radius) - 2px);
  background: linear-gradient(150deg, color-mix(in srgb, var(--acid) 10%, transparent), transparent 60%);
}
.cta-card h4 { color: var(--acid); }
.cta-card p { margin: 0 0 14px; font-size: 12.5px; color: var(--muted); }
.legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 4px 0; font-size: 12px; color: color-mix(in srgb, var(--muted) 80%, transparent);
}

/* ------------------------------------------------------------ flash */
.flashes { display: grid; gap: 8px; margin: 14px 0 0; }
.flash {
  padding: 12px 16px; border-radius: 10px; font-size: 13.5px;
  border: 1px solid color-mix(in srgb, var(--acid) 40%, transparent);
  background: color-mix(in srgb, var(--acid) 9%, transparent);
}
.flash.err { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* ------------------------------------------------------------ responsive */
@media (max-width: 1240px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .carousel-track { grid-auto-columns: calc(33.333% - 8px); }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav.open .nav-links {
    display: grid; position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    padding: 12px; gap: 2px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    z-index: 40;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-art { position: relative; inset: auto; height: 300px; margin-bottom: 10px; order: -1; }
  .hero-art::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent), var(--bg) 96%); }
  .hero-copy { padding: 20px 0 26px; }
  .statbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
  .stat:nth-child(2n) { border-right: 0; }
  .showcase-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { width: min(100%, 100% - 24px); }
  .features { grid-template-columns: 1fr; }
  .statbar { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .stat:last-child { border-bottom: 0; }
  .site-footer { grid-template-columns: 1fr; }
  .carousel-track { grid-auto-columns: calc(100% - 0px); }
  .brand-name { font-size: 18px; }
}
