/* ──────────────────────────────────────────────────
   brand.css — MaxDoesFinance shared design system
   Source of truth for all CSS variables, nav, ticker.
   Link this from every page.
   ────────────────────────────────────────────────── */

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

/* ── DESIGN TOKENS ── */
:root {
  --bg:    #07090a;
  --bg1:   #0c0f11;
  --bg2:   #111518;
  --bdr:   #1a1f24;
  --bdr2:  #222a30;
  --green: #00e676;
  --glow:  rgba(0,230,118,0.12);
  --gd:    #0a3d20;
  --gold:  #f0b429;
  --red:   #ff5252;
  --text:  #e2e8ec;
  --muted: #64748b;
  --dim:   #2a3540;
  --mono:  'IBM Plex Mono', monospace;
  --serif: 'Lora', serif;
  --sans:  'DM Sans', sans-serif;
  --ticker-px-per-sec: 80;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NOISE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.4;
}
.page { position: relative; z-index: 1; }

/* ── TICKER ──
   Canonical class names: .tick-item, .tick-dot, .tv
   Use these on every page — do not create aliases.
   ── */
.ticker {
  background: var(--bg1); border-bottom: 1px solid var(--bdr);
  padding: 8px 0; overflow: hidden; white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: ticker-scroll var(--ticker-duration, 80s) linear infinite; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 28px; font-family: var(--mono); font-size: 10px;
  color: var(--muted); border-right: 1px solid var(--bdr); letter-spacing: .5px;
}
.tick-item .tv  { color: var(--green); }
.tick-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gd); }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,9,10,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bdr);
  padding: 0 clamp(20px, 5vw, 60px);
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.nav-brand {
  font-family: 'Bebas Neue', sans-serif; font-size: 24px; letter-spacing: 2px;
  color: var(--text); text-decoration: none;
}
.nav-brand:hover { color: var(--green); }
.nav-brand:hover .brand-does { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color .15s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--green); color: #000 !important;
  padding: 8px 18px; font-weight: 600 !important;
  transition: background .15s !important;
}
.nav-cta:hover { background: #fff !important; color: #000 !important; }
.nav-active { color: var(--green) !important; }

/* hamburger — hidden on desktop */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); transition: background .15s; }
.hamburger:hover span { background: var(--green); }

@media (max-width: 600px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute; top: 56px; left: 0; right: 0;
    background: rgba(7,9,10,0.97); border-bottom: 1px solid var(--bdr);
    flex-direction: column; padding: 20px 24px; gap: 18px; z-index: 99;
  }
  .nav-links.open { display: flex; }
}

/* ── SHARED LAYOUT ── */
.inner { max-width: 1000px; margin: 0 auto; }

.sec-label {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--green);
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--gd); max-width: 80px; }

/* brand name "DOES" highlight — used in nav, footer, facade */
.brand-does { color: var(--green); }

/* ── FOOTER ── */
.page-foot {
  border-top: 1px solid var(--bdr); margin-top: 52px; padding: 28px 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
}
.foot-brand-link {
  font-family: 'Bebas Neue', sans-serif; font-size: 22px; letter-spacing: 1px;
  color: var(--text); text-decoration: none; transition: color .15s;
}
.foot-brand-link:hover { color: var(--green); }
.foot-brand-link:hover .brand-does { color: var(--text); }
.foot-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.foot-links a { font-family: var(--mono); font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: 1px; transition: color .15s; }
.foot-links a:hover { color: var(--green); }
.foot-copy { font-family: var(--mono); font-size: 10px; color: var(--dim); letter-spacing: 1px; text-align: right; }

@media (max-width: 600px) {
  .page-foot { grid-template-columns: 1fr; text-align: center; }
  .foot-copy { text-align: center; }
}
