/* ================================================================
   VOODOO DIGITAL — Design System
   voodoodigital.co · Wix Studio Prototype · Phase 1 · 2026
   ================================================================ */

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

/* ─── Design Tokens ─── */
:root {
  --bg:        #1A1A1A;
  --bg-2:      #242424;
  --bg-3:      #111111;
  --white:     #FFFFFF;
  --off-white: #F5F5F0;
  --accent:    #D4E840;
  --muted:     #888888;
  --border:    rgba(255,255,255,0.08);
  --border-lt: rgba(17,17,17,0.08);

  --font: 'Avenir Next', 'Avenir', 'Century Gothic', 'Trebuchet MS', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max-w: 1280px;
}

/* ─── Base ─── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, svg { display: block; }
button { font-family: var(--font); cursor: pointer; }

/* ─── Layout ─── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 80px;
}

.section  { padding: 120px 0; }
.section-sm { padding: 80px 0; }

/* ─── Grain ─── */
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  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='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
.grain > * { position: relative; z-index: 1; }

/* ─── Eyebrow ─── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.eyebrow::before {
  content: '';
  flex-shrink: 0;
  width: 28px;
  height: 1.5px;
  background: currentColor;
}
.eyebrow.dim { color: var(--muted); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: none;
  line-height: 1;
  transition: all 0.2s var(--ease);
}
.btn-primary { background: var(--accent); color: #111; }
.btn-primary:hover { background: #c3d62e; transform: translateY(-1px); }
.btn-dark    { background: #111; color: var(--accent); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.2s;
  border: none;
  background: none;
  padding: 0;
}
.text-link:hover { color: var(--white); }
.text-link .arr { display: inline-block; transition: transform 0.2s var(--ease); }
.text-link:hover .arr { transform: translateX(5px); }

/* ─── UTILITY BAR (language switcher, desktop only) ─── */
.utility-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 201;
  height: 33px;
  padding: 0 80px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  top: 33px;
  z-index: 200;
  padding: 26px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  transition: background 0.4s var(--ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.stuck {
  background: rgba(26,26,26,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  background: var(--accent);
  color: #111;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 11px 22px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover { background: #c3d62e; }

/* ─── Language switcher ─── */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.lang-switch a { color: var(--muted); transition: color 0.2s; }
.lang-switch a:hover { color: var(--white); }
.lang-switch a.active { color: var(--accent); pointer-events: none; }
.lang-switch .sep { color: rgba(255,255,255,0.2); }

.mobile-lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.mobile-lang-switch a { color: var(--muted); transition: color 0.2s; }
.mobile-lang-switch a.active { color: var(--accent); pointer-events: none; }
.mobile-lang-switch .sep { color: rgba(255,255,255,0.2); }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: all 0.3s;
}

/* Mobile overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 28px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--white); }

/* ─── CARD ─── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-top: 2.5px solid var(--accent);
  border-radius: 6px;
  padding: 40px;
  transition: transform 0.35s var(--ease);
}
.card:hover { transform: translateY(-5px); }

/* ─── CTA LIME BAND ─── */
.cta-band {
  background: var(--accent);
  padding: 120px 80px;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 900;
  color: #111;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.cta-band p {
  font-size: 17px;
  color: rgba(17,17,17,0.55);
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ─── FOOTER ─── */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 64px 80px 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-logo {
  margin-bottom: 14px;
}
.footer-logo-img {
  height: 68px;
  width: auto;
  display: block;
}
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.footer-col h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  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: 14px;
  color: rgba(255,255,255,0.46);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }
.footer-email {
  font-size: 14px;
  font-weight: 600;
  color: var(--white) !important;
  margin-bottom: 16px;
  display: block;
}
.footer-email:hover { color: var(--accent) !important; }
.social-row { display: flex; gap: 20px; }
.social-row a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.social-row a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 12px;
  color: rgba(255,255,255,0.46);
}
.footer-bottom a:hover { color: var(--muted); }
.footer-legal { display: flex; gap: 20px; }

/* ─── Scroll animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.42s; }

/* ─── Pin icon (nav + footer shared) ─── */
.pin-svg circle { fill: var(--accent); }
.pin-svg line   { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; }

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .utility-bar { display: none; }
  .nav  { padding: 20px 24px; top: 0; }
  .nav-links, .nav-cta, .lang-switch { display: none; }
  .nav-hamburger { display: flex; }
  .footer { padding: 48px 24px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-band { padding: 80px 24px; }
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-wrap: wrap; gap: 12px; }
}

/* ─── Cookie consent banner ─── */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 20px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0;
}
.cookie-banner p a { color: var(--accent); border-bottom: 1px solid rgba(212,232,64,0.4); }
.cookie-banner-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-banner-actions button {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s, transform 0.2s var(--ease);
}
.cookie-accept { background: var(--accent); color: #111; }
.cookie-accept:hover { background: #c3d62e; transform: translateY(-1px); }
.cookie-reject { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid var(--border) !important; }
.cookie-reject:hover { color: var(--white); border-color: rgba(255,255,255,0.3) !important; }

/* ─── Sticky mobile CTA ─── */
.sticky-mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 150;
  display: none;
  padding: 12px 20px;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  transform: translateY(100%);
  transition: transform 0.35s var(--ease);
}
.sticky-mobile-cta.visible { transform: translateY(0); }
.sticky-mobile-cta a {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--accent);
  color: #111;
  font-size: 15px;
  font-weight: 700;
  padding: 14px;
  border-radius: 999px;
}

@media (max-width: 960px) {
  .cookie-banner { padding: 18px 24px; }
}
@media (min-width: 961px) {
  .sticky-mobile-cta { display: none !important; }
}
@media (max-width: 960px) {
  .sticky-mobile-cta { display: block; }
}

/* ─── Full-page state screens (404, thank-you) ─── */
.state-page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 24px 120px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.state-page-mark {
  font-size: clamp(64px, 12vw, 140px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 24px;
}
.state-page h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 620px;
  margin-bottom: 16px;
}
.state-page p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.state-page-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.state-page-actions a.link-back {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.state-page-actions a.link-back:hover { color: var(--white); }
