/* Single deliberate world: a dark FigJam-like canvas at night.
   Each role owns one color: lime = Product, pink = Motion, cyan = Frontend. */
:root {
  --ground: #0c0a18;
  --ground-2: #16122a;
  --ink: #f5f2ff;
  --ink-2: rgba(245, 242, 255, 0.62);
  --ink-3: rgba(245, 242, 255, 0.16);
  --lime: #d4ff3a;
  --pink: #ff4fd8;
  --cyan: #3de8ff;
  --violet: #6b4bff;
  --you: #ffffff;
  --on-color: #0c0a18;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --fs-hero: clamp(64px, 23vw, 232px);
  --gutter: clamp(16px, 5vw, 64px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.5 var(--display); }

.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100svh, 940px);
  display: grid; grid-template-rows: auto 1fr auto auto; background: var(--ground); }
@media (pointer: fine) { .hero.has-you { cursor: none; } .hero.has-you a, .hero.has-you button { cursor: none; } }

/* Atmosphere */
.aurora { position: absolute; inset: -6%; width: 112%; height: 112%; z-index: -3;
  filter: blur(28px) saturate(1.25); opacity: 0.85; }
.dots { position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(rgba(245, 242, 255, 0.22) 1px, transparent 1.3px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 45%, #000 20%, transparent 85%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none; opacity: 0.12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Nav */
.nav { display: flex; align-items: center; gap: 24px; padding: 22px var(--gutter); position: relative; z-index: 3;
  animation: rise 900ms var(--ease-out) both; }
.brand { color: var(--ink); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.03em; }
.brand span { color: var(--pink); }
.nav nav { display: flex; gap: 6px; margin-left: auto; }
.nav nav a { color: var(--ink-2); text-decoration: none; font: 500 13px/1 var(--mono); padding: 9px 12px; border-radius: 99px;
  transition: color 150ms ease, background-color 150ms ease; }
.nav nav a:hover { color: var(--ink); background: var(--ink-3); }
.nav a:focus-visible, .cta:focus-visible, .ghost:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.presence { display: flex; align-items: center; gap: 12px; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); color: var(--ink-2); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime); animation: ping 2s ease-out infinite; }
.live b { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.avatars { display: flex; }
.avatars i { display: grid; place-items: center; width: 30px; height: 30px; margin-left: -8px; border-radius: 50%;
  background: var(--c); color: var(--on-color); border: 2px solid var(--ground); font: 700 11px/1 var(--mono); font-style: normal;
  transition: transform 300ms var(--ease-out), width 300ms var(--ease-out); }
.avatars:hover i { transform: translateY(-2px); }
.avatars .you-av { width: 0; padding: 0; overflow: hidden; border-width: 0; background: var(--you); }
.avatars .you-av.on { width: 40px; border-radius: 99px; border-width: 2px; }

/* Stage */
.stage { position: relative; z-index: 2; align-self: center; padding: 12px var(--gutter) 28px; }
.kicker { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; font: 500 12px/1 var(--mono); letter-spacing: 0.08em;
   color: var(--ink-2); animation: rise 900ms 120ms var(--ease-out) both; }
.role { display: inline-flex; align-items: center; gap: 8px; }
.role::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.headline { margin: 0; font-family: var(--display); font-size: var(--fs-hero); line-height: 0.86; letter-spacing: -0.045em;
  font-weight: 800; font-optical-sizing: auto; }
.line { display: block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform; }
#word { display: inline-block; }
.dot { display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.05em; border-radius: 50%; background: var(--pink);
  box-shadow: 0 0 0.25em rgba(255, 79, 216, 0.55); will-change: transform; }
.below { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 22px 40px; margin-top: clamp(20px, 3vw, 36px);
  animation: rise 900ms 900ms var(--ease-out) both; }
.sub { margin: 0; max-width: 30ch; font: 400 clamp(18px, 2vw, 24px)/1.35 var(--display); color: var(--ink-2); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta, .ghost { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 99px;
  font: 600 16px/1 var(--display); text-decoration: none; transition: transform 300ms var(--ease-out), background-color 150ms ease, box-shadow 300ms var(--ease-out); }
.cta { background: var(--lime); color: var(--on-color); box-shadow: 0 10px 30px -12px var(--lime); }
.cta span { transition: transform 300ms var(--ease-out); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px var(--lime); }
.cta:hover span { transform: translate(3px, -3px); }
.cta:active, .ghost:active { transform: scale(0.97); }
.ghost { border: 1px solid var(--ink-3); background: rgba(245, 242, 255, 0.04); color: var(--ink); backdrop-filter: blur(8px); }
.ghost:hover { background: var(--ink-3); }

/* Collaboration overlay */
.overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arrow path { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#arrow { stroke-dasharray: 1; }
.note { position: absolute; left: 0; top: 0; display: grid; gap: 6px; width: 190px; padding: 16px 16px 12px; background: var(--lime);
  color: var(--on-color); border-radius: 4px; box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.7); opacity: 0; transform-origin: 30% 0; }
.note b { font: 700 17px/1.15 var(--display); letter-spacing: -0.01em; }
.note span { font: 500 12px/1.4 var(--mono); }
.note em { margin-top: 6px; font: 500 10px/1 var(--mono); font-style: normal; opacity: 0.6; letter-spacing: 0.06em;  }
.sel { position: absolute; left: 0; top: 0; width: 0; height: 0; border: 1.5px solid var(--cyan); background: rgba(61, 232, 255, 0.06); opacity: 0; }
.sel i { position: absolute; width: 9px; height: 9px; background: var(--ground); border: 1.5px solid var(--cyan); }
.sel i:nth-child(1) { left: -5px; top: -5px; } .sel i:nth-child(2) { right: -5px; top: -5px; }
.sel i:nth-child(3) { left: -5px; bottom: -5px; } .sel i:nth-child(4) { right: -5px; bottom: -5px; }
.sel-size { position: absolute; left: 50%; top: calc(100% + 10px); translate: -50% 0; padding: 4px 8px; border-radius: 4px;
  background: var(--cyan); color: var(--on-color); font: 700 11px/1 var(--mono); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chip { position: absolute; left: 0; top: 0; padding: 8px 12px; border-radius: 8px; font: 700 13px/1 var(--mono); white-space: nowrap;
  color: var(--on-color); opacity: 0; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.8); }
.chip-cyan { background: var(--cyan); }
.chip-pink { background: var(--pink); }

.mp { position: absolute; left: 0; top: 0; display: flex; align-items: flex-start; opacity: 0; will-change: transform; }
.mp svg { width: 22px; height: 28px; margin: -2px 0 0 -3px; overflow: visible; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }
.mp path { fill: var(--c); stroke: var(--ground); stroke-width: 1.4; stroke-linejoin: round; }
.mp span { margin: 18px 0 0 -4px; padding: 5px 9px; border-radius: 3px 10px 10px 10px; background: var(--c); color: var(--on-color);
  font: 700 12px/1 var(--mono); white-space: nowrap; }

/* HUD + ticker */
.hud { position: relative; z-index: 3; display: flex; justify-content: space-between; padding: 0 var(--gutter) 14px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.08em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ticker { position: relative; z-index: 3; overflow: hidden; border-top: 1px solid var(--ink-3); background: rgba(12, 10, 24, 0.5); backdrop-filter: blur(10px); }
.track { display: flex; align-items: center; gap: 28px; width: max-content; padding: 16px 0; animation: marquee 38s linear infinite;
  font: 500 13px/1 var(--mono); letter-spacing: 0.04em;  }
.track i { font-style: normal; color: var(--lime); }
.ticker:hover .track { animation-play-state: paused; }
.toast { position: absolute; left: 50%; bottom: 76px; z-index: 6; margin: 0; translate: -50% 12px; padding: 10px 16px; border-radius: 99px;
  background: var(--ink); color: var(--on-color); font: 600 14px/1 var(--display); opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, translate 300ms var(--ease-out); }
.toast.show { opacity: 1; translate: -50% 0; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0.6); } 100% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0); } }

@media (max-width: 720px) {
  .nav nav { display: none; }
  .presence { margin-left: auto; }
  .live { display: none; }
  .note { width: 150px; padding: 12px 12px 10px; }
  .note b { font-size: 14px; }
  .note span { font-size: 11px; }
  .hud .hud-r { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .kicker, .below { animation: none; }
  .track { animation: none; }
  .live i { animation: none; }
}
