@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:ital,wght@0,300;0,400;0,500;1,300&family=Crimson+Pro:ital,wght@0,300;0,400;1,300&display=swap');

:root {
  --bg:       #09090f;
  --bg2:      #0f0f1a;
  --bg3:      #141420;
  --accent:   #c0392b;
  --accent-dim: #7a1f16;
  --accent-glow: rgba(192,57,43,0.12);
  --blue:     #3b82f6;
  --pink: #BE27F5;
  --pink-dim: #7F1AA3;
  --blue-dim: #1d3f7a;
  --green:     #22c55e;
  --green-dim: #14532d;
  --white:    #eeeef4;
  --grey:     #8888a0;
  --grey-dim: #333348;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --font-body:    'Crimson Pro', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

/* grain */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9000;
}

/* CURSOR */
.cursor { position: fixed; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); transition: width .15s, height .15s; }
.cursor-ring { position: fixed; width: 30px; height: 30px; border: 1px solid rgba(59,130,246,.4); border-radius: 50%; pointer-events: none; z-index: 9998; transform: translate(-50%,-50%); transition: width .2s, height .2s, opacity .2s; }
.cursor.h { width: 14px; height: 14px; }
.cursor-ring.h { width: 50px; height: 50px; opacity: .3; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 22px 48px;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(9,9,15,.98);
  border-bottom: 1px solid var(--grey-dim);
  transition: border-color .3s;
}
nav.scrolled { border-color: var(--grey-dim); }
.nav-logo { font-family: var(--font-display); font-size: 20px; letter-spacing: .12em; color: var(--white); text-decoration: none; }
.nav-logo-sub { font-family: var(--font-mono); font-size: 10px; color: var(--grey-dim); letter-spacing: .15em; font-weight: 300; vertical-align: middle; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); text-decoration: none; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }

/* FOOTER */
footer {
  padding: 32px 48px;
  border-top: 1px solid var(--grey-dim);
  display: flex; justify-content: space-between; align-items: center;
}
.footer-logo { font-family: var(--font-display); font-size: 15px; letter-spacing: .12em; color: var(--grey-dim); }
.footer-logo span { color: var(--accent); }
.footer-copy { font-family: var(--font-mono); font-size: 10px; color: var(--grey-dim); letter-spacing: .1em; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-family: var(--font-mono); font-size: 10px; color: var(--grey-dim); text-decoration: none; letter-spacing: .1em; transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

/* UTILS */
.section-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--accent);
  letter-spacing: .4em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--grey-dim); max-width: 64px; }

.btn-primary {
  display: inline-block; padding: 13px 28px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; transition: background .2s, transform .2s;
}
.btn-primary:hover { background: #60a5fa; transform: translateY(-2px); }

.btn-ghost {
  display: inline-block; padding: 13px 28px;
  border: 1px solid var(--grey-dim); color: var(--grey);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; transition: all .2s;
}
.btn-ghost:hover { border-color: var(--white); color: var(--white); transform: translateY(-2px); }

.tag {
  font-family: var(--font-mono); font-size: 10px; color: var(--grey);
  letter-spacing: .15em; text-transform: uppercase;
  border: 1px solid var(--grey-dim); padding: 3px 9px;
  transition: border-color .2s, color .2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }
.tag.accent { border-color: var(--accent-dim); color: var(--accent); }
.tag.blue   { border-color: var(--blue-dim);   color: var(--blue); }
.tag.green  { border-color: var(--green-dim);  color: var(--green); }
.tag.pink  { border-color: var(--pink-dim);  color: var(--pink); }
.tag.white {border-color: var(--white); color: var(--white);}

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

/* DOT GRID DRIFT */
@keyframes dotDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(28px, -28px, 0); }
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--grey-dim); border-radius: 2px; }

@media (max-width: 768px) {
  nav { padding: 16px 20px; }
  .nav-logo { font-size: 16px; }
  .nav-logo-sub { display: none; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 9px; letter-spacing: .12em; }
  footer { padding: 24px 20px; flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { justify-content: center; }
  .btn-primary, .btn-ghost { padding: 12px 20px; font-size: 10px; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}
