/* ═══════════════════════════════════════════════
   Digital Analytics Society — Shared Stylesheet
   ═══════════════════════════════════════════════ */

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

:root {
  --red:       #E63946;
  --red-dark:  #c0242f;
  --black:     #0f0f0f;
  --black-mid: #1A1A1A;
  --gray:      #E8E8E8;
  --gray-mid:  #888;
  --white:     #FFFFFF;
  --off-white: #F7F7F5;
}

html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: var(--black); background: var(--white); overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: 'Poppins', sans-serif; }
section, .stats-band, .manifesto, .cta-section { scroll-margin-top: 88px; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--red); }

/* ─── NAV ─────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 88px;
  background: rgba(15,15,15,0.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s, border-color 0.3s;
}
nav.light {
  background: rgba(255,255,255,0.96);
  border-bottom-color: var(--gray);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-logo img { height: 62px; width: auto; border-radius: 8px; }
.logo-dark { display: block; }
.logo-light { display: none; }
nav.light .logo-dark { display: none; }
nav.light .logo-light { display: block; }
.nav-logo-text { display: flex; flex-direction: column; gap: 4px; }
.nav-org-name { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 0.95rem; color: white; letter-spacing: 0.01em; line-height: 1; }
.nav-tagline { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.7); text-transform: uppercase; line-height: 1; }
nav.light .nav-org-name { color: var(--black); }
nav.light .nav-tagline { color: rgba(0,0,0,0.55); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a {
  text-decoration: none; font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); transition: color 0.2s;
}
nav.light .nav-links a { color: var(--black-mid, #1a1a1a); }
.nav-links a:hover { color: var(--red) !important; }
.nav-links a.active { color: var(--red) !important; }
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: 9px 20px; border-radius: 3px;
}
.nav-cta:hover { background: var(--red-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 2px; background: white; transition: all 0.3s; }
nav.light .hamburger span { background: var(--black); }

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.85rem;
  letter-spacing: 0.04em; border-radius: 3px; transition: all 0.2s; cursor: pointer; border: none;
}
.btn-red { background: var(--red); color: white; padding: 13px 26px; }
.btn-red:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-outline-white { border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75); padding: 13px 26px; }
.btn-outline-white:hover { border-color: white; color: white; }
.btn-outline-dark { border: 2px solid var(--black); color: var(--black); padding: 12px 26px; }
.btn-outline-dark:hover { background: var(--black); color: white; }

/* ─── TYPOGRAPHY HELPERS ──────────────────────── */
.section-tag {
  font-family: 'DM Mono', monospace; font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red);
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--red); }
.section-tag.light { color: rgba(255,255,255,0.4); }
.section-tag.light::before { background: rgba(255,255,255,0.4); }

.section-h {
  font-size: clamp(1.9rem, 3.5vw, 3rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.025em;
}
.section-h.white { color: white; }
.section-p { font-size: 1rem; line-height: 1.85; color: #666; }
.section-p.light { color: rgba(255,255,255,0.45); }

/* ─── SHADER CANVAS ───────────────────────────── */
canvas.shader-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
}

/* ─── INNER PAGE HERO ─────────────────────────── */
.page-hero {
  background: var(--black); padding: 160px 5vw 80px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: radial-gradient(ellipse at 70% 50%, rgba(230,57,70,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero-tag { font-family: 'DM Mono', monospace; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-hero-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--red); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 900; line-height: 1; letter-spacing: -0.03em; color: white; margin-bottom: 24px; }
.page-hero p { font-size: 1.05rem; line-height: 1.8; color: rgba(255,255,255,0.5); max-width: 560px; }

/* ─── MARQUEE ─────────────────────────────────── */
.marquee-strip { background: var(--red); padding: 13px 0; overflow: hidden; white-space: nowrap; }
.marquee-inner { display: inline-flex; animation: marquee 30s linear infinite; }
.marquee-item { display: inline-flex; align-items: center; gap: 24px; padding: 0 32px; font-family: 'DM Mono', monospace; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.marquee-sep { width: 4px; height: 4px; background: rgba(255,255,255,0.4); border-radius: 50%; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── STATS BAND ──────────────────────────────── */
.stats-band { background: var(--red); padding: 48px 5vw; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-block { padding: 0 32px; border-right: 1px solid rgba(255,255,255,0.2); text-align: center; }
.stat-block:first-child { padding-left: 0; }
.stat-block:last-child { border-right: none; }
.stat-block-num { font-family: 'DM Mono', monospace; font-size: 2.6rem; font-weight: 500; color: white; line-height: 1; margin-bottom: 8px; }
.stat-block-num sup { font-size: 1.2rem; }
.stat-block-label { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); }

/* ─── CTA SECTION ─────────────────────────────── */
.cta-section {
  background: var(--white); padding: 80px 5vw;
  display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center;
  border-top: 1px solid var(--gray);
}
.cta-section h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.cta-section h2 em { font-style: normal; color: var(--red); }
.cta-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── FOOTER ──────────────────────────────────── */
footer { background: var(--black); padding: 64px 5vw 32px; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-brand img { height: 60px; width: auto; border-radius: 8px; }
.footer-tagline { margin-top: 14px; font-family: 'DM Mono', monospace; font-size: 0.63rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); line-height: 1.65; }
.footer-brand p { margin-top: 12px; font-size: 0.84rem; line-height: 1.75; color: rgba(255,255,255,0.3); max-width: 260px; }
.footer-col h5 { font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { text-decoration: none; font-size: 0.87rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--red); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; font-family: 'DM Mono', monospace; font-size: 0.65rem; letter-spacing: 0.08em; color: rgba(255,255,255,0.2); }
.socials { display: flex; gap: 10px; }
.social-btn { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,0.1); border-radius: 4px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.3); text-decoration: none; transition: all 0.2s; }
.social-btn:hover { border-color: var(--red); color: var(--red); }

/* ─── REVEAL ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .stat-block { border-right: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-section { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .page-hero { padding: 120px 5vw 60px; }
}
