/* ============ UI/UX v2 — wow page
   Custom variables; namespaced .v2 to avoid collisions
============ */
.v2 {
  --bg: #0a0a0a;
  --bg-1: #111;
  --bg-2: #1a1a1a;
  --line: rgba(245,242,236,0.12);
  --line-2: rgba(245,242,236,0.22);
  --bone: #f5f2ec;
  --bone-2: rgba(245,242,236,0.74);
  --bone-3: rgba(245,242,236,0.5);
  --bone-4: rgba(245,242,236,0.28);
  --lime: #d4ff3a;
  --lime-ink: #0a0a0a;
  --coral: #ff5b23;
  --violet: #7a5cff;
  --sky: #58b8ff;
  --f-display: 'Fraunces', serif;
  --f-sans: 'Space Grotesk', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', monospace;
  --gutter: clamp(20px, 4vw, 56px);
  --sec-y: clamp(80px, 10vw, 140px);
}

/* hide global cursor — we use our own here */
.v2 .cursor, .v2 .cursor-ring { display: none !important; }
/* Keep global fluid canvas — site-wide WebGL bg */
.v2 #fluid-canvas { z-index: 0; opacity: 0.55; }
/* Let fluid peek through hero + CTA */
.v2-hero, .v2 .v2-cta { background: transparent; }
/* Body of page transparent so first sections show fluid */
.v2.ux-page { background: var(--bg); }

/* ===== Custom cursor (lime crosshair, sticky to interactives) ===== */
.v2-cursor {
  position: fixed; top: 0; left: 0; width: 28px; height: 28px;
  pointer-events: none; z-index: 9000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.v2-cursor::before, .v2-cursor::after {
  content: ""; position: absolute; background: var(--lime);
}
.v2-cursor::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.v2-cursor::after  { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }
.v2-cursor.is-over { width: 56px; height: 56px; }
@media (pointer: coarse) { .v2-cursor { display: none; } }

/* ===== GLSL hero canvas behind everything in hero ===== */
.v2-hero {
  position: relative;
  min-height: 100vh;
  padding: 140px var(--gutter) 60px;
  overflow: hidden;
}
.v2-hero__canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
}
.v2-hero__grain {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(245,242,236,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.v2-hero__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;
  min-height: calc(100vh - 200px);
}
.v2-hero__left { position: relative; z-index: 2; }
.v2-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 11px var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-3); margin-bottom: 28px;
}
.v2-hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.v2-hero__title {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(56px, 10vw, 168px);
  line-height: 0.86; letter-spacing: -0.04em;
  color: var(--bone); margin: 0;
}
.v2-hero__title em {
  font-style: italic; color: var(--lime);
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
.v2-hero__title .word { display: inline-block; overflow: hidden; vertical-align: top; }
.v2-hero__title .char { display: inline-block; transform: translateY(110%); will-change: transform; }
.v2-hero__lede {
  margin-top: 32px; max-width: 520px;
  font: 18px/1.55 var(--f-sans); color: var(--bone-2);
}
.v2-hero__cta-row {
  margin-top: 40px;
  display: flex; gap: 14px; flex-wrap: wrap;
}

/* Right side: Matter.js component cloud */
.v2-hero__right {
  position: relative;
  height: 540px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  backdrop-filter: blur(2px);
}
.v2-physics {
  position: absolute; inset: 0;
  display: block;
  width: 100%; height: 100%;
  cursor: grab;
}
.v2-physics:active { cursor: grabbing; }
.v2-hero__right-label {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font: 10px var(--f-mono); letter-spacing: .2em; text-transform: uppercase;
  color: var(--bone-3);
  display: flex; align-items: center; gap: 8px;
}
.v2-hero__right-label .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--lime);
  animation: v2pulse 1.6s infinite;
}
@keyframes v2pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(212,255,58,0.6); }
  50% { box-shadow: 0 0 0 6px rgba(212,255,58,0); }
}
.v2-hero__right-hint {
  position: absolute; bottom: 16px; right: 16px; z-index: 2;
  font: 10px var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--bone-3);
  padding: 6px 10px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(10,10,10,0.6);
}
.v2-hero__bottom {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.v2-hero__metric { display: flex; flex-direction: column; gap: 4px; }
.v2-hero__metric .k { font: 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--bone-3); }
.v2-hero__metric .v { font-family: var(--f-display); font-weight: 300; font-size: 28px; letter-spacing: -0.02em; color: var(--bone); }
.v2-hero__metric .v em { font-style: italic; color: var(--lime); }

/* Buttons */
.v2-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: transparent; color: var(--bone);
  font: 500 13px var(--f-sans); letter-spacing: 0.02em;
  cursor: pointer; transition: all .3s;
  text-decoration: none;
}
.v2-btn:hover { background: var(--bone); color: var(--bg); border-color: var(--bone); }
.v2-btn--lime { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.v2-btn--lime:hover { background: transparent; color: var(--lime); border-color: var(--lime); }
.v2-btn .arr { transition: transform .3s; }
.v2-btn:hover .arr { transform: translateX(4px); }

/* Sound toggle */
.v2-sound {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(10,10,10,0.7);
  backdrop-filter: blur(8px);
  font: 10px var(--f-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--bone-2); cursor: pointer; transition: all .3s;
}
.v2-sound:hover { color: var(--lime); border-color: var(--lime); }
.v2-sound .icon { width: 12px; height: 12px; display: inline-block; position: relative; }
.v2-sound .bars { display: inline-flex; gap: 2px; align-items: end; }
.v2-sound .bars i { display: block; width: 2px; background: currentColor; }
.v2-sound .bars i:nth-child(1) { height: 4px; }
.v2-sound .bars i:nth-child(2) { height: 8px; }
.v2-sound .bars i:nth-child(3) { height: 6px; }
.v2-sound.on .bars i { animation: v2bar 0.8s infinite; }
.v2-sound.on .bars i:nth-child(2) { animation-delay: 0.15s; }
.v2-sound.on .bars i:nth-child(3) { animation-delay: 0.3s; }
@keyframes v2bar { 0%,100% { transform: scaleY(0.5);} 50% { transform: scaleY(1.4);} }
