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

:root {
  --bg:       #09090e;
  --surface:  #0e0e15;
  --surface2: #13131c;
  --border:   rgba(255,255,255,0.06);
  --text:     #ede8df;
  --muted:    #6b665f;
  --accent:   #c8f060;
  --accent-dim: rgba(200,240,96,0.12);
  --red:      #f06060;
  --red-dim:  rgba(240,96,96,0.12);
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'Instrument Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  overflow: hidden;
}

/* ─── NOISE OVERLAY ─── */
body::before {
  content:'';
  position: fixed; inset:0; z-index:9990; pointer-events:none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  opacity:.55;
}

/* ─── CUSTOM CURSOR ─── */
#cur {
  width:10px; height:10px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top:0; left:0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%,-50%);
  mix-blend-mode: difference;
  transition: width .25s, height .25s;
}
#cur-ring {
  width:38px; height:38px;
  border: 1px solid rgba(200,240,96,.35);
  border-radius: 50%;
  position: fixed; top:0; left:0;
  pointer-events: none; z-index: 9998;
  transform: translate(-50%,-50%);
  transition: all .4s cubic-bezier(.25,.46,.45,.94);
}
body:has(button:hover) #cur { width:22px; height:22px; }
body:has(button:hover) #cur-ring { width:60px; height:60px; border-color: rgba(200,240,96,.15); }

/* ─── AMBIENT BLOBS ─── */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 380px; height: 380px;
  background: rgba(200,240,96,0.07);
  top: -100px; left: -100px;
}
.blob-2 {
  width: 300px; height: 300px;
  background: rgba(240,96,96,0.05);
  bottom: -80px; right: -80px;
}

/* ─── CARD ─── */
section {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  min-width: 560px;
}

/* ─── EYEBROW ─── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .3; }
}
.eyebrow-text {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ─── TITLE ─── */
h1 {
  font-family: var(--font-display);
  font-size: 2.6rem;
  letter-spacing: .18em;
  color: var(--text);
  text-transform: uppercase;
}

/* ─── COUNTER DISPLAY ─── */
.counter-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  width: 100%;
}
.counter-label {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted);
}
#count {
  font-family: var(--font-display);
  font-size: 7rem;
  line-height: 1;
  letter-spacing: .05em;
  color: var(--accent);
  transition: color .25s, transform .15s;
  min-width: 200px;
  text-align: center;
}
#count.positive { color: var(--accent); }
#count.negative { color: var(--red); }
#count.zero     { color: var(--muted); }

/* ─── DIVIDER ─── */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* ─── BUTTONS ─── */
.bouton {
  display: flex;
  gap: .75rem;
  justify-content: center;
}

button {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  cursor: none;
  transition: all .2s;
  padding: 0;
}

/* + buttons */
.bouton1 {
  width: 88px;
  height: 52px;
  color: var(--accent);
  border-color: rgba(200,240,96,.25);
}
.bouton1:hover {
  background: var(--accent-dim);
  border-color: rgba(200,240,96,.5);
  color: var(--accent);
}
.bouton1:active {
  transform: scale(.96);
}

/* - buttons */
.bouton2 {
  width: 88px;
  height: 52px;
  color: var(--red);
  border-color: rgba(240,96,96,.25);
}
.bouton2:hover {
  background: var(--red-dim);
  border-color: rgba(240,96,96,.5);
  color: var(--red);
}
.bouton2:active {
  transform: scale(.96);
}

/* reset button */
.bouton3 {
  width: 180px;
  height: 44px;
  color: var(--muted);
  border-color: var(--border);
  font-size: .62rem;
  letter-spacing: .22em;
}
.bouton3:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.03);
}
.bouton3:active {
  transform: scale(.97);
}

/* ─── BACK LINK ─── */
.back-link {
  position: fixed;
  top: 2rem;
  left: 2.5rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color .2s;
  z-index: 100;
}
.back-link:hover { color: var(--text); }
