/* ==========================================================================
   BDG — style.css
   Core tokens, layout primitives, shared components
   ========================================================================== */

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

:root {
  --bg-0: #050505;
  --bg-1: #0B0B0B;
  --bg-2: #101010;
  --text: #FFFFFF;
  --gray: #B8B8B8;
  --gray-dim: #767676;
  --accent: #FF6A00;
  --glow: #FFA63D;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --glass: rgba(255,255,255,0.03);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 18px;
  --radius-sm: 10px;
  --radius-pill: 100px;

  --nav-h: 76px;
}

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

html { scroll-behavior: auto; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: default;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

p { color: var(--gray); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--accent); color: #050505; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glow);
  margin-bottom: 16px;
  display: inline-block;
}

.section { padding: 120px 0; position: relative; }
.section-tight { padding: 80px 0; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-title { font-size: clamp(28px, 4vw, 46px); }
.section-desc { margin-top: 16px; font-size: 16px; max-width: 480px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #050505;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(255,166,61,.5); }

.btn-secondary {
  background: var(--glass);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { border-color: rgba(255,166,61,.6); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 10px 20px; font-size: 13px; }

/* ---------------- Navbar ---------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid transparent;
  transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease;
}
.navbar.scrolled {
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(18px);
  border-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 13.5px;
  color: var(--gray);
}
.nav-links a { transition: color .2s ease; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -18px;
  height: 2px; background: var(--accent);
}
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
}
.nav-toggle span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0;
  background: rgba(5,5,5,0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex; flex-direction: column;
  padding: 40px 32px;
  gap: 26px;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1), opacity .4s ease;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 22px; font-family: var(--font-display); }

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand .nav-logo { font-size: 22px; }
.footer-brand p { margin-top: 14px; max-width: 280px; font-size: 14px; }
.footer-col h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-dim); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--gray); transition: color .2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--gray-dim); flex-wrap: wrap; gap: 12px;
}
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { color: var(--gray); transition: color .2s ease; }
.footer-socials a:hover { color: var(--accent); }

/* ---------------- Glass Card ---------------- */
.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .3s ease;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(255,106,0,.14), transparent 70%);
  pointer-events: none;
}
.glass-card:hover::before { opacity: 1; }
.glass-card:hover { border-color: rgba(255,166,61,.35); }

/* ---------------- Grid background ---------------- */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ---------------- Page hero (shared, non-home) ---------------- */
.page-hero {
  padding: calc(var(--nav-h) + 90px) 0 80px;
  position: relative;
  text-align: center;
}
.page-hero h1 { font-size: clamp(34px, 6vw, 62px); max-width: 780px; margin: 0 auto; }
.page-hero p { margin: 18px auto 0; max-width: 520px; }

/* ---------------- Stats ---------------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-block { border-top: 1px solid var(--border); padding: 26px 4px; }
.stat-num { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--glow); }
.stat-label { display: block; margin-top: 8px; font-size: 13px; color: var(--gray); }

/* ---------------- Canvas layers ---------------- */
.three-canvas { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.particles-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .5; }

/* ---------------- Custom cursor ---------------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 9999; transform: translate(-50%,-50%);
}
.cursor-dot { width: 6px; height: 6px; background: var(--accent); }
.cursor-ring { width: 34px; height: 34px; border: 1px solid rgba(255,166,61,.5); transition: width .2s ease, height .2s ease, border-color .2s ease; }
.cursor-ring.hover { width: 54px; height: 54px; border-color: var(--accent); }
@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ---------------- Utility ---------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 56px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 12px; }
.gap-md { gap: 20px; }
.tag {
  display: inline-block; padding: 5px 14px; border-radius: var(--radius-pill);
  font-size: 12px; border: 1px solid var(--border-strong); color: var(--gray);
}
