/* ============================================
   DoomCounter — Custom Styles
   ============================================ */

:root {
  --bg: #0d0f14;
  --bg-alt: #141720;
  --lime: #b4ff3b;
  --lime-dim: rgba(180, 255, 59, 0.12);
  --text: #f0efe8;
  --text-dim: #8a8a9a;
  --red: #ff3b5c;
  --border: rgba(255,255,255,0.07);
  --card-bg: rgba(255,255,255,0.03);
  --card-border: rgba(255,255,255,0.08);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --max-w: 1100px;
  --section-px: clamp(1.5rem, 5vw, 4rem);
  --section-py: clamp(4rem, 10vw, 8rem);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: var(--section-py) var(--section-px);
}

.hero-bg-text {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(200px, 25vw, 400px);
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(180, 255, 59, 0.04);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.hero-number {
  font-family: var(--font-display);
  font-size: clamp(5rem, 20vw, 14rem);
  font-weight: 800;
  line-height: 0.85;
  color: var(--lime);
  letter-spacing: -0.04em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 80px rgba(180, 255, 59, 0.25);
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.3;
  margin-bottom: 3rem;
}

.hero-stat-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stat-key {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 400;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-body {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 520px;
}

/* ---- SECTION SHARED ---- */
.section-label {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ---- PLATFORMS ---- */
.platforms {
  padding: var(--section-py) var(--section-px);
  background: var(--bg-alt);
}

.platforms-header {
  max-width: var(--max-w);
  margin: 0 auto 3rem;
}

.platform-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.platform-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(180, 255, 59, 0.2);
}

.platform-icon {
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.platform-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.platform-count {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.platform-label {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.platform-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}

.platform-bar-fill {
  height: 100%;
  width: var(--pct);
  background: var(--color);
  border-radius: 2px;
  transition: width 0.6s ease;
}

/* ---- CHART ---- */
.chart-section {
  padding: var(--section-py) var(--section-px);
  background: var(--bg);
}

.chart-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.chart-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.chart-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.chart-total {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.chart-total strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.chart-trend {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chart-trend--up {
  color: var(--red);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 2rem;
}

.chart-bar-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.chart-bar-wrap {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: flex-end;
}

.chart-bar {
  width: 100%;
  height: var(--h);
  background: linear-gradient(to top, rgba(255, 59, 92, 0.8), rgba(255, 59, 92, 0.3));
  border-radius: 4px 4px 0 0;
  position: relative;
  min-height: 4px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  transition: height 0.4s ease;
}

.chart-bar-val {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  position: absolute;
  top: -1.4rem;
  white-space: nowrap;
}

.chart-day {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.chart-day--highlight {
  color: var(--lime);
  font-weight: 700;
}

.chart-insight {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.insight-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.5;
}

.insight-icon {
  color: var(--lime);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---- MANIFESTO ---- */
.manifesto {
  padding: var(--section-py) var(--section-px);
  background: var(--bg-alt);
}

.manifesto-inner {
  max-width: 800px;
  margin: 0 auto;
}

.manifesto-quote {
  margin-bottom: 3rem;
}

.manifesto-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.manifesto-rule {
  width: 60px;
  height: 3px;
  background: var(--lime);
  margin-bottom: 3rem;
}

.manifesto-body p {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.manifesto-stat-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}

.manifesto-stat-val {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--lime);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.manifesto-stat-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ---- CLOSING ---- */
.closing {
  padding: var(--section-py) var(--section-px);
  background: var(--bg);
}

.closing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.closing-number {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 3rem;
}

.closing-num-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  font-weight: 500;
}

.closing-num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--text);
  letter-spacing: -0.03em;
}

.closing-num-sub {
  font-size: 0.9rem;
  color: var(--text-dim);
}

.closing-rule {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin-bottom: 3rem;
}

.closing-statement {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.4;
  margin-bottom: 3rem;
}

.closing-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---- FOOTER ---- */
.footer {
  padding: 3rem var(--section-px);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--lime);
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  max-width: 300px;
  line-height: 1.5;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-stat-divider { display: none; }
  .hero-stat-row { flex-direction: column; align-items: flex-start; gap: 1.2rem; }
  .chart-bars { gap: 0.4rem; }
  .chart-bar-wrap { height: 140px; }
  .chart-bar-val { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 1rem; }
  .footer-copy { max-width: none; }
  .manifesto-stat-block { grid-template-columns: 1fr; }
}

/* ---- SCROLL REVEAL ---- */
@media (prefers-reduced-motion: no-preference) {
  .hero-number, .hero-headline, .hero-sub, .hero-stat-row, .hero-body {
    animation: fadeUp 0.8s ease-out both;
  }
  .hero-number { animation-delay: 0.1s; }
  .hero-sub { animation-delay: 0.2s; }
  .hero-stat-row { animation-delay: 0.3s; }
  .hero-body { animation-delay: 0.4s; }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
}