
:root{
  --brand-accent:#FF1A1A; /* vivid red */
  --brand-dark:#0d1117;
  --brand-light:#fff4f0;
  --ink-dark:#eaeef2;
  --ink-light:#1f2937;
  --card-dark:#111827;
  --card-light:#ffffff;
  --border-dark:rgba(255,255,255,0.08);
  --border-light:rgba(0,0,0,0.08);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol",sans-serif;
  transition:background-color .3s,color .3s;
  overflow-x:hidden;
  background:var(--brand-dark);
  color:var(--ink-dark);
}
body.light-theme{ background:var(--brand-light); color:var(--ink-light); }

/* Header */
#site-header{ position:sticky; top:0; z-index:1000; }
.header-top-line{ height:3px; background:var(--brand-accent); transform:scaleX(0); transform-origin:left; transition:transform .2s linear;}
.container{ max-width:1200px; margin:0 auto; padding:0 20px; }
.header{ display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid rgba(255,26,26,.2); padding:14px 0; background:rgba(30,41,57,.35); backdrop-filter: blur(0px); }
.header-left{ display:flex; align-items:center; gap:14px; }
.logo{ height:40px; width:auto; display:block; }
.nav{ display:flex; gap:22px; align-items:center; }
.nav a{ position:relative; text-decoration:none; color:inherit; padding:8px 6px; font-weight:600; }
.nav a .u{ position:absolute; left:0; right:0; bottom:0; height:2px; background:linear-gradient(90deg,var(--brand-accent),#000); transform:scaleX(0); transform-origin:left; transition:transform .25s ease; }
.nav a:hover .u, .nav a.active .u{ transform:scaleX(1); }
.cta-btn{ border:1px solid rgba(255,26,26,.35); padding:10px 16px; border-radius:10px; text-decoration:none; font-weight:700; transition:background .2s,color .2s,transform .1s; }
.cta-btn:hover{ background:var(--brand-accent); color:#fff; transform:translateY(-1px); }

/* Theme toggle */
.prr-theme-toggle{
  position:fixed; top:18px; right:20px; z-index:1100;
  font-size:20px; padding:8px 10px; border-radius:50%; cursor:pointer; user-select:none;
  border:1px solid rgba(255,26,26,0.35); background:rgba(30,41,57,0.35); backdrop-filter: blur(8px);
  transition:background .3s, transform .1s;
}
.prr-theme-toggle:hover{ transform:scale(1.05); }

/* Canvas sits behind */
#bg-canvas{ position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; }

/* Sections */
.section{ padding:64px 0; position:relative; }
.section h2{ font-size:clamp(24px,3.4vw,36px); margin:0 0 10px; }
.section .lead{ color:#c7d3df; max-width:820px; }
body.light-theme .section .lead{ color:#4a5565; }

/* Hero */
.hero{ position:relative; padding:96px 0 48px; }
.sub{ color:#8aa0b6; letter-spacing:.12em; font-size:12px; text-transform:uppercase; }
.hero h1{ font-size:clamp(32px,6vw,58px); line-height:1.05; margin:12px 0; color:#fff; }
body.light-theme .hero h1{ color:#111; }
.hero p{ font-size:clamp(16px,2.4vw,20px); max-width:820px; color:#c7d3df; }
body.light-theme .hero p{ color:#4a5565; }
.hero-cards{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:26px; }
.card{ border:1px solid var(--border-dark); background:rgba(30,41,57,.35); border-radius:16px; padding:18px; }
body.light-theme .card{ border:1px solid var(--border-light); background:#fff; }
.card h3{ margin:0 0 10px; font-size:18px; }
.card p{ margin:0; color:#a8b7c6; }
body.light-theme .card p{ color:#4a5565; }

/* Grids */
.grid-3{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-top:24px; }
.svc{ padding:18px; border-radius:16px; border:1px solid var(--border-dark); background:rgba(30,41,57,.35); }
body.light-theme .svc{ background:#fff; border:1px solid var(--border-light); }
.svc h3{ margin:0 0 8px; font-size:18px; }
.svc a{ text-decoration:none; color:var(--brand-accent); font-weight:700; }

/* Stim block */
.stim-wrap{ display:grid; grid-template-columns:360px 1fr; gap:24px; align-items:center; border:1px solid var(--border-dark); border-radius:18px; padding:24px; background:rgba(30,41,57,.35); }
body.light-theme .stim-wrap{ background:#fff; border:1px solid var(--border-light); }
.stim-badge{ font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; padding:8px 12px; border-radius:999px; border:1px solid rgba(255,26,26,.35); width:fit-content; }
.stim-cta{ display:inline-flex; align-items:center; gap:10px; border:1px solid rgba(255,26,26,.35); padding:12px 16px; border-radius:12px; font-weight:700; text-decoration:none; }
.stim-cta:hover{ background:var(--brand-accent); color:#fff; }

/* Content helpers */
.page-hero{ padding:64px 0 0; }
.page-hero h1{ font-size:clamp(28px,5vw,44px); margin:8px 0 6px; }
.breadcrumbs{ font-size:14px; color:#8aa0b6; }
.kicker{ text-transform:uppercase; font-weight:800; letter-spacing:.12em; font-size:12px; color:#8aa0b6; }

/* Footer */
footer{ padding:32px 0 48px; border-top:1px solid rgba(255,26,26,.15); }
.footer-top{ display:flex; gap:24px; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; }
.foot-col{ flex:1 1 260px; }
.copyright{ text-align:center; color:#8aa0b6; margin-top:20px; }

/* Responsive */
@media (max-width:991px){
  .nav{ display:none; }
  .hero-cards{ grid-template-columns:1fr; }
  .grid-3{ grid-template-columns:1fr; }
  .stim-wrap{ grid-template-columns:1fr; }
}
