/* =========================================================
   BeOoh — Design system (shared by every page)
   Dark "LED" aesthetic: deep black, neon gradients, dot-matrix motifs.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --bg: #05060a;
  --bg-2: #0b0d14;
  --surface: #11141d;
  --surface-2: #171b27;
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #f4f6fb;
  --muted: #9aa3b8;
  --dim: #5d6578;

  --cyan: #00e5ff;
  --magenta: #ff2d9b;
  --violet: #7b5cff;
  --amber: #ffb800;
  --green: #22e39b;
  --red: #ff4d5e;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 50%, var(--magenta) 100%);
  --grad-warm: linear-gradient(120deg, var(--magenta), var(--amber));
  --glow-cyan: 0 0 40px rgba(0,229,255,.35);
  --glow-magenta: 0 0 40px rgba(255,45,155,.35);

  --f-display: 'Space Grotesk', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --container: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: auto; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--magenta); color: #fff; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 12vw, 160px) 0; position: relative; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.03em; line-height: 1.02; }
.h-hero { font-size: clamp(48px, 9vw, 132px); font-weight: 700; letter-spacing: -.05em; line-height: .92; }
.h-1 { font-size: clamp(40px, 6vw, 84px); }
.h-2 { font-size: clamp(32px, 4.4vw, 60px); }
.h-3 { font-size: clamp(22px, 2.2vw, 30px); }
.lead { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--f-mono); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); box-shadow: var(--glow-cyan); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
  isolation: isolate; overflow: hidden; white-space: nowrap;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary::before { content: ''; position: absolute; inset: 0; background: var(--grad); z-index: -1; opacity: 0; transition: opacity .4s; }
.btn-primary:hover { color: #fff; box-shadow: var(--glow-magenta); }
.btn-primary:hover::before { opacity: 1; }
.btn-ghost { border: 1px solid var(--line-2); background: rgba(255,255,255,.02); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-cyan); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px; overflow: hidden;
  transition: border-color .4s, transform .5s var(--ease);
}
.card:hover { border-color: var(--line-2); }
/* spotlight follows cursor: main.js sets --mx/--my on .card[data-spotlight] */
.card[data-spotlight]::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx,50%) var(--my,50%), rgba(0,229,255,.12), transparent 40%);
}
.card[data-spotlight]:hover::after { opacity: 1; }
.glass { background: rgba(17,20,29,.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-family: var(--f-mono); border: 1px solid var(--line-2); color: var(--muted); }

/* ---------- Backgrounds / FX ---------- */
.dot-matrix {
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.glow-orb { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .45; pointer-events: none; z-index: 0; }
.noise::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 9998; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.marquee { display: flex; overflow: hidden; user-select: none; gap: 48px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 48px; flex-shrink: 0; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-100% - 48px)); } }

/* ---------- Header (shared) ---------- */
.site-header {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 1000;
  width: calc(100% - 32px); max-width: 1320px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 12px 12px 24px; border-radius: 999px;
  transition: transform .5s var(--ease), background .4s;
}
.site-header.is-hidden { transform: translate(-50%, -140%); }
.site-header .logo img { height: 28px; width: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 10px 16px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: color .3s, background .3s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--text); background: rgba(255,255,255,.06); }
.header-cta { display: flex; gap: 8px; align-items: center; }
.header-cta .btn { padding: 12px 20px; font-size: 14px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); }
@media (max-width: 1024px) {
  .site-nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .site-nav.is-open { display: flex; flex-direction: column; position: fixed; top: 80px; left: 16px; right: 16px; padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
}

/* ---------- Footer (shared) ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 80px 0 32px; position: relative; overflow: hidden; }
.footer-big { font-family: var(--f-display); font-weight: 700; font-size: clamp(64px, 16vw, 240px); letter-spacing: -.06em; line-height: .8; opacity: .06; margin-top: 64px; white-space: nowrap; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 13px; font-family: var(--f-mono); text-transform: uppercase; letter-spacing: .15em; color: var(--dim); margin-bottom: 16px; font-weight: 400; }
.footer-grid a { display: block; color: var(--muted); padding: 4px 0; transition: color .3s; }
.footer-grid a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; flex-wrap: wrap; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); pointer-events: none; z-index: 9999; mix-blend-mode: screen; transform: translate(-50%,-50%); transition: width .3s, height .3s, background .3s; }
.cursor.is-hover { width: 56px; height: 56px; background: rgba(255,45,155,.25); border: 1px solid var(--magenta); }
@media (hover: none) { .cursor { display: none; } }

/* ---------- Reveal helpers (GSAP drives them; no-JS fallback = visible) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(40px); }
.js [data-split] .word { display: inline-block; overflow: hidden; vertical-align: top; }
.js [data-split] .word > span { display: inline-block; transform: translateY(110%); }

/* ---------- Page loader ---------- */
.loader { position: fixed; inset: 0; z-index: 10000; background: var(--bg); display: grid; place-items: center; }
.loader__bar { width: 180px; height: 2px; background: var(--line); overflow: hidden; border-radius: 2px; margin-top: 20px; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--grad); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--text); font: inherit; transition: border-color .3s, box-shadow .3s;
}
.input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,229,255,.12); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-split] .word > span { transform: none; }
}

/* ---------- Wordmark ---------- */
.logo-word { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.04em; line-height: 1; display: inline-flex; align-items: center; }
.logo-word .o { display: inline-block; width: .78em; height: .78em; margin: 0 .02em; border-radius: 50%; color: transparent; overflow: hidden;
  background: radial-gradient(circle at 35% 35%, #fff 0 8%, transparent 9%), var(--grad); box-shadow: 0 0 18px rgba(255,45,155,.55); animation: o-pulse 3s ease-in-out infinite; }
@keyframes o-pulse { 50% { box-shadow: 0 0 30px rgba(0,229,255,.7); filter: hue-rotate(40deg); } }

/* ---------- Mobile header fix ---------- */
@media (max-width: 640px) {
  .site-header { top: 10px; width: calc(100% - 20px); padding: 8px 8px 8px 16px; gap: 8px; }
  .site-header .logo-word { font-size: 22px; }
  .header-cta .btn-primary { padding: 10px 14px; font-size: 13px; }
  .header-cta .btn-primary .arrow { display: none; }
  .menu-toggle { width: 40px; height: 40px; flex-shrink: 0; }
  .site-nav.is-open { top: 70px; left: 10px; right: 10px; }
}
@media (max-width: 360px) { .header-cta .btn-primary { display: none; } }
