/* ═══════════════════════════════════════════════
   CONTENT TRIBE — Global Design System
   World-Class Agency Aesthetic
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=Syne:wght@600;700;800&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
  --bg:       #080808;
  --bg2:      #0f0f0f;
  --bg3:      #161616;
  --surface:  #1c1c1c;
  --text:     #f0ede8;
  --muted:    #6b6b6b;
  --muted2:   #3a3a3a;
  --accent:   #c8ff57;
  --accent2:  #ff4545;
  --border:   rgba(255,255,255,.07);
  --border2:  rgba(255,255,255,.12);
  --display:  'Bebas Neue', sans-serif;
  --body:     'Inter', sans-serif;
  --sub:      'Syne', sans-serif;
  --ease:     cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(0,0,.2,1);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: none; }
input, textarea { font-family: inherit; }

/* ── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); }

/* ── Noise Texture ─────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* ── Custom Cursor ─────────────────────────── */
#cursor {
  position: fixed; width: 10px; height: 10px;
  background: var(--accent); border-radius: 50%;
  pointer-events: none; z-index: 99999;
  transform: translate(-50%, -50%);
  transition: transform .1s var(--ease), width .3s, height .3s, background .3s;
  mix-blend-mode: difference;
}
#cursor-ring {
  position: fixed; width: 40px; height: 40px;
  border: 1px solid rgba(200,255,87,.4); border-radius: 50%;
  pointer-events: none; z-index: 99998;
  transform: translate(-50%, -50%);
  transition: left .12s var(--ease), top .12s var(--ease), width .3s, height .3s, border-color .3s;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 0; height: 0; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 64px; height: 64px; border-color: var(--accent); }

/* ── Page Transition ───────────────────────── */
#page-transition {
  position: fixed; inset: 0; z-index: 99990;
  background: var(--bg);
  transform: translateY(100%);
  transition: transform .6s var(--ease);
}
#page-transition.entering { transform: translateY(0); }
#page-transition.leaving  { transform: translateY(-100%); }

/* ── Progress Bar ──────────────────────────── */
#progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 9998;
  width: 0; transition: width .1s linear;
}

/* ── Nav ───────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 9000; padding: 28px 5%;
  display: flex; align-items: center; justify-content: space-between;
  transition: padding .4s var(--ease), background .4s, backdrop-filter .4s;
}
nav.scrolled {
  padding: 18px 5%;
  background: rgba(8,8,8,.9);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--sub); font-size: 1.1rem; font-weight: 800;
  letter-spacing: -.02em; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.logo-mark {
  width: 28px; height: 28px; background: var(--accent);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 900; color: var(--bg); letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 40px; list-style: none; }
.nav-links a {
  font-size: .82rem; font-weight: 500; color: var(--muted);
  letter-spacing: .04em; text-transform: uppercase;
  transition: color .2s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--accent);
}
.nav-cta {
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--bg) !important; background: var(--accent);
  padding: 10px 24px; border-radius: 4px;
  transition: transform .2s, opacity .2s !important;
}
.nav-cta:hover { transform: translateY(-1px); opacity: .9; }
.nav-cta::after { display: none !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--text); transition: .3s; }

/* Mobile Nav */
.mobile-nav {
  position: fixed; inset: 0; background: var(--bg); z-index: 8999;
  display: flex; flex-direction: column; justify-content: center; padding: 10%;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.mobile-nav.open { opacity: 1; pointer-events: all; }
.mobile-nav a {
  font-family: var(--display); font-size: 14vw; line-height: 1;
  color: var(--muted); transition: color .2s;
  border-bottom: 1px solid var(--border); padding: 16px 0;
}
.mobile-nav a:hover { color: var(--accent); }
.mob-close {
  position: absolute; top: 32px; right: 5%;
  background: none; border: 1px solid var(--border); color: var(--muted);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
}

/* ── Marquee ───────────────────────────────── */
.marquee-wrap {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg2); padding: 16px 0;
}
.marquee-track {
  display: flex; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 20px;
  padding: 0 32px; font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.marquee-item .dot { color: var(--accent); font-size: .9rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Reveal Animations ─────────────────────── */
.r {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.r.up { transform: translateY(40px); }
.r.left { transform: translateX(-40px); }
.r.right { transform: translateX(40px); }
.r.scale { transform: scale(.94); }
.r.visible { opacity: 1; transform: none; }
.r.d1 { transition-delay: .1s; }
.r.d2 { transition-delay: .2s; }
.r.d3 { transition-delay: .3s; }
.r.d4 { transition-delay: .4s; }
.r.d5 { transition-delay: .5s; }

/* ── Section Shared ────────────────────────── */
.section { padding: 120px 5%; }
.section-sm { padding: 80px 5%; }
.label {
  font-size: .72rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.label::before { content: ''; width: 24px; height: 1px; background: var(--accent); }
.display-title {
  font-family: var(--display);
  font-size: clamp(60px, 8vw, 120px);
  line-height: .95; letter-spacing: -.02em;
  color: var(--text);
}
.display-title span { color: var(--accent); }
.h2 {
  font-family: var(--sub); font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; color: var(--text); letter-spacing: -.04em; line-height: 1.1;
}
.h2 span { color: var(--accent); }
.body-lg { font-size: 1.1rem; color: var(--muted); line-height: 1.75; max-width: 540px; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 36px; border-radius: 4px;
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .2s, opacity .2s;
  border: none; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--bg); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--muted); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--accent); }
.btn svg { width: 16px; height: 16px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }

/* ── Lines / Dividers ──────────────────────── */
.line { width: 100%; height: 1px; background: var(--border); }
.num-label {
  font-family: var(--sub); font-size: .72rem; font-weight: 700;
  color: var(--muted2); letter-spacing: .1em;
}

/* ── Footer ────────────────────────────────── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 80px 5% 40px;
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 60px; border-bottom: 1px solid var(--border); gap: 40px; flex-wrap: wrap;
}
.footer-logo { font-family: var(--display); font-size: clamp(48px, 8vw, 100px); line-height: .9; color: var(--text); }
.footer-logo span { color: var(--accent); }
.footer-right { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: .88rem; color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 40px; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: .78rem; color: var(--muted2); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials a { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .2s; }
.footer-socials a:hover { color: var(--accent); }

/* ── Stat Numbers ──────────────────────────── */
.stat-block { display: flex; flex-direction: column; gap: 6px; }
.stat-num {
  font-family: var(--display); font-size: clamp(48px, 6vw, 80px);
  line-height: 1; color: var(--text); letter-spacing: -.02em;
}
.stat-num span { color: var(--accent); }
.stat-desc { font-size: .82rem; color: var(--muted); max-width: 180px; line-height: 1.5; }

/* ── Cards ─────────────────────────────────── */
.card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.card:hover { border-color: var(--border2); }

/* ── Tags ──────────────────────────────────── */
.tag {
  display: inline-block; font-size: .68rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px; border: 1px solid var(--border2);
  color: var(--muted);
}
.tag-accent { border-color: var(--accent); color: var(--accent); background: rgba(200,255,87,.06); }

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 80px 5%; }
  .display-title { font-size: clamp(48px, 14vw, 80px); }
  .footer-top { flex-direction: column; }
  .footer-right { gap: 32px; }
}
