/* VibeLinkr Cinema Scroll — unified universe + Mac frame */

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

:root {
  --vl-bg: #0a0a0a;
  --vl-elevated: #0e0e0e;
  --vl-card: #111111;
  --vl-primary: #ffffff;
  --vl-muted: #a1a1aa;
  --vl-border: rgba(255,255,255,0.08);
  --vl-border-strong: rgba(255,255,255,0.14);
  --vl-success: #4ade80;
  --vl-accent: #b4b4b4;
  --mac-w: 1040px;
  --mac-h: 660px;
  --mac-scale-base: 0.68;
  --font: 'Inter', system-ui, sans-serif;
  --font-brand: 'Plus Jakarta Sans', var(--font);
}

html { background: var(--vl-bg); }
body {
  font-family: var(--font);
  color: var(--vl-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fixed universe — animated gradient drift */
.universe {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 50% -10%, rgba(255,255,255,0.055) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 85%, rgba(139,92,246,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 90% 75%, rgba(74,222,128,0.05) 0%, transparent 45%),
    linear-gradient(168deg, #080808 0%, #0c0c0e 45%, #090909 100%);
  animation: universe-drift 24s ease-in-out infinite alternate;
}
@keyframes universe-drift {
  0% { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.04); }
}

/* Ambient particles + network lines */
.ambient-layer {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  overflow: hidden; will-change: transform;
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.net-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.net-line {
  stroke: rgba(255,255,255,0.06); stroke-width: 1;
  stroke-dasharray: 6 10;
  animation: line-dash 12s linear infinite;
}
.net-pulse { fill: rgba(255,255,255,0.35); }
.net-pulse--hub { fill: rgba(74,222,128,0.6); animation: pulse-glow 2s ease-in-out infinite; }
@keyframes line-dash { to { stroke-dashoffset: -80; } }
@keyframes pulse-glow {
  0%, 100% { opacity: 0.5; r: 4; }
  50% { opacity: 1; r: 6; }
}

.grain {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.brand-watermark {
  position: fixed; top: 1.25rem; left: 1.75rem; z-index: 9000;
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-brand); font-size: 0.95rem; font-weight: 600;
  color: rgba(255,255,255,0.35); pointer-events: none;
}

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9001;
  background: rgba(255,255,255,0.05);
}
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #fff, #a1a1aa);
}

.vl-brand-wordmark {
  display: inline-flex; align-items: baseline;
  font-family: var(--font-brand); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1;
}
.vl-brand-wordmark--xl { font-size: 2.25rem; }
.vl-brand-wordmark--lg { font-size: 1.75rem; }
.vl-brand-wordmark__vibe { color: #fff; }
.vl-brand-wordmark__linkr { color: var(--vl-accent); }

.vl-brand-lockup { display: inline-flex; align-items: center; gap: 14px; }
.vl-brand-lockup--hero { flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.vl-brand-lockup--hero img { border-radius: 18px; filter: drop-shadow(0 16px 48px rgba(255,255,255,0.12)); }

.ms {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; font-size: 20px; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* ── Cinema pin stage ───────────────────────────────────── */
#story { position: relative; z-index: 1; }
.cinema-pin { height: 100vh; }
.cinema-stage {
  position: relative;
  width: 100%; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  perspective: 1400px;
  transform-style: preserve-3d;
  overflow: hidden;
}

/* ── Hero layer ─────────────────────────────────────────── */
.hero-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; pointer-events: none;
  will-change: transform, opacity, filter;
}

.network-viz {
  position: absolute; inset: 0; overflow: hidden;
}
.net-orbit {
  position: absolute; left: 50%; top: 50%;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border: 1px solid rgba(255,255,255,0.06); border-radius: 50%;
  animation: orbit-spin 40s linear infinite;
}
@keyframes orbit-spin { to { transform: rotate(360deg); } }

.net-node {
  position: absolute;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--vl-border);
  backdrop-filter: blur(12px); font-size: 0.8rem; color: var(--vl-muted);
  will-change: transform, opacity;
}
.net-node:nth-child(2) { top: 12%; left: 10%; }
.net-node:nth-child(3) { top: 8%; right: 12%; }
.net-node:nth-child(4) { top: 40%; left: 4%; }
.net-node:nth-child(5) { top: 36%; right: 6%; }
.net-node:nth-child(6) { bottom: 14%; left: 14%; }
.net-node:nth-child(7) { bottom: 12%; right: 12%; }

.hero-content { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 1.5rem; }
.hero-title {
  font-size: clamp(2.25rem, 6vw, 4.25rem); font-weight: 700;
  letter-spacing: -0.04em; line-height: 1.08; margin-bottom: 1rem;
}
.hero-title span {
  background: linear-gradient(90deg, #fff, var(--vl-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { font-size: clamp(0.9rem, 2vw, 1.05rem); color: var(--vl-muted); max-width: min(420px, 88vw); margin: 0 auto; line-height: 1.45; }

/* ── Narrative titles (only when Mac is hidden) ─────────── */
.narrative-layer {
  position: absolute; inset: 0; z-index: 15;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.narr-scrim {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 50% 48%, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.88) 100%);
  opacity: 0; pointer-events: none;
}
.narr-title {
  position: relative; z-index: 2;
  text-align: center;
  font-size: clamp(1.25rem, 2.8vw, 2.25rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.3;
  opacity: 0; visibility: hidden;
  max-width: min(640px, 88vw); padding: 0 1.5rem;
  margin: 0 auto;
  text-shadow: 0 2px 40px rgba(0,0,0,0.9);
  will-change: opacity, transform;
}
.narr-title--sm { font-size: clamp(1.1rem, 2.5vw, 1.6rem); color: var(--vl-muted); font-weight: 500; }

.call-future-hint {
  text-align: center; font-size: 0.75rem; color: var(--vl-muted);
  padding: 6px 0 2px; opacity: 0;
}

/* ── Mac browser frame (reference video: floating, ~65% viewport) ── */
.mac-rig-wrap {
  position: absolute;
  z-index: 10;
  width: var(--mac-w);
  height: var(--mac-h);
  transform-origin: center center;
  will-change: transform, opacity;
}

.mac-parallax {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
}

.mac-rig-glow {
  position: absolute;
  inset: -12% -8% -18% -8%;
  background:
    radial-gradient(ellipse 55% 45% at 35% 85%, rgba(139, 92, 246, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 75% 25%, rgba(74, 222, 128, 0.08) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.mac-rig {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  perspective: 1600px;
  will-change: transform;
  transform-origin: center center;
}

.mac-window {
  width: 100%; height: 100%;
  border-radius: 12px;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.6),
    0 50px 120px rgba(0,0,0,0.7),
    0 0 60px rgba(255,255,255,0.04);
  overflow: hidden;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
}

.mac-chrome {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, #2a2a2a 0%, #1f1f1f 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.mac-chrome__lights { display: flex; gap: 8px; }
.mac-chrome__lights span { width: 13px; height: 13px; border-radius: 50%; }
.mac-chrome__lights span:nth-child(1) { background: #ff5f57; }
.mac-chrome__lights span:nth-child(2) { background: #febc2e; }
.mac-chrome__lights span:nth-child(3) { background: #28c840; }
.mac-chrome__nav { display: flex; gap: 4px; color: #666; font-size: 1.1rem; }
.mac-chrome__url {
  flex: 1; text-align: center;
  background: rgba(0,0,0,0.35); border-radius: 8px;
  padding: 6px 16px; font-size: 0.8rem; color: #999;
}
.mac-chrome__actions { color: #888; font-size: 1.2rem; }

.mac-viewport {
  flex: 1; position: relative; overflow: hidden;
  background: var(--vl-bg);
  font-size: 13px;
  isolation: isolate;
}

.panel {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  overflow: hidden;
  pointer-events: none;
  will-change: opacity, transform;
  transform: translateY(0);
  z-index: 1;
}
.panel > * {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.panel--active {
  opacity: 1; visibility: visible; z-index: 2;
}
.panel--exit {
  opacity: 0; visibility: visible; z-index: 3;
}

/* Glass depth system */
.glass-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}
.hp-match-card, .auth-card--enhanced, .env-metric, .work-item {
  background: rgba(255,255,255,0.035);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.04);
}
.tag--on, .role-chip--on {
  box-shadow: 0 0 20px rgba(255,255,255,0.12);
}
.tag--selecting { animation: chip-pop 0.35s ease forwards; }
@keyframes chip-pop {
  0% { transform: scale(0.85); opacity: 0.5; }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── Auth / Login ─────────────────────────────────────────── */
.auth-page--mini { min-height: 0; height: 100%; padding: 14px 16px; overflow: hidden; }
.auth-split {
  display: grid; grid-template-columns: 0.9fr 1fr; gap: 16px;
  align-items: center; height: 100%; max-width: 100%;
}
.auth-brand-panel { display: flex; align-items: center; padding: 8px; }
.auth-brand-panel__tagline { margin: 8px 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--vl-muted); max-width: 260px; }
.auth-brand-panel__list { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.auth-brand-panel__list li { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: rgba(255,255,255,0.75); }
.auth-brand-panel__list .ms { color: var(--vl-primary); font-size: 18px; }

.auth-card--enhanced {
  background: rgba(14,14,14,0.95); backdrop-filter: blur(16px);
  border: 1px solid var(--vl-border); border-radius: 16px;
  padding: 18px 16px; box-shadow: 0 0 40px rgba(255,255,255,0.04);
}
.auth-head { margin-bottom: 12px; }
.auth-head h1 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.auth-head p { margin-top: 4px; font-size: 0.78rem; color: var(--vl-muted); }

.auth-mode-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.auth-mode-tab {
  flex: 1; padding: 6px; border-radius: 8px; border: 1px solid var(--vl-border);
  background: transparent; color: var(--vl-muted); font-size: 0.68rem;
  font-family: inherit; cursor: pointer;
}
.auth-mode-tab--active { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--vl-border-strong); }

.auth-btn-google {
  width: 100%; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 10px; border: 1px solid var(--vl-border);
  background: rgba(255,255,255,0.04); color: #fff; font-size: 0.82rem; font-weight: 600;
  font-family: inherit; cursor: pointer; margin-bottom: 10px;
}
.auth-divider { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--vl-muted); font-size: 0.68rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--vl-border); }
.auth-field { margin-bottom: 10px; }
.auth-field label { display: block; font-size: 0.72rem; font-weight: 500; margin-bottom: 4px; }
.auth-field-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.auth-link { font-size: 0.68rem; color: var(--vl-muted); cursor: pointer; }
.auth-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--vl-border);
  border-radius: 10px; padding: 0 10px; height: 40px; position: relative;
}
.auth-input-wrap .ms { color: var(--vl-muted); font-size: 18px; }
.auth-input-wrap input {
  flex: 1; background: none; border: none; color: #fff;
  font-size: 0.82rem; font-family: inherit; outline: none;
}
.type-cursor {
  color: var(--vl-primary); animation: blink 1s step-end infinite;
  font-weight: 300; margin-left: -4px;
}
@keyframes blink { 50% { opacity: 0; } }
.auth-remember { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--vl-muted); margin-bottom: 10px; cursor: pointer; }
.auth-submit {
  width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: none; border-radius: 10px; background: var(--vl-primary); color: var(--vl-bg);
  font-size: 0.88rem; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,255,255,0.1);
}
.auth-submit--sm { height: 38px; padding: 0 20px; font-size: 0.8rem; }
.auth-submit--inline { width: auto; padding: 0 32px; text-decoration: none; display: inline-flex; }
.auth-submit--pulse { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); animation: pulse-btn 0.6s ease; }
@keyframes pulse-btn {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); transform: scale(1); }
  50% { transform: scale(0.97); }
  100% { box-shadow: 0 0 0 20px rgba(255,255,255,0); transform: scale(1); }
}

/* ── Onboarding ─────────────────────────────────────────── */
.onboard-wrap { padding: 12px 16px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.onboard-head { margin-bottom: 8px; flex-shrink: 0; }
.onboard-head h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em; }
.onboard-head p { font-size: 0.72rem; color: var(--vl-muted); margin-top: 3px; line-height: 1.35; }
.onboard-block { margin-bottom: 7px; flex-shrink: 0; }
.onboard-block h3 { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--vl-muted); margin-bottom: 6px; }
.role-grid { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.role-chip {
  padding: 0.32rem 0.7rem; border-radius: 999px; border: 1px solid var(--vl-border);
  background: transparent; color: var(--vl-muted); font-size: 0.68rem; font-family: inherit;
}
.role-chip--on { background: #fff; color: #0a0a0a; font-weight: 600; border-color: #fff; }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.4rem; }
.tag { padding: 0.26rem 0.55rem; border-radius: 999px; border: 1px solid var(--vl-border); font-size: 0.64rem; color: var(--vl-muted); }
.tag--on { background: rgba(255,255,255,0.08); color: #fff; border-color: var(--vl-border-strong); }
.onboard-wrap .auth-submit--sm { margin-top: auto; flex-shrink: 0; }

/* ── App shell + Home ───────────────────────────────────── */
.app-shell { display: flex; height: 100%; min-height: 0; }
.app-shell__sidebar {
  width: 140px; flex-shrink: 0; background: #070707;
  border-right: 1px solid var(--vl-border); padding: 10px 6px;
  display: flex; flex-direction: column;
}
.app-shell__brand {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-brand); font-weight: 700; font-size: 0.82rem;
  margin-bottom: 10px; padding: 0 4px;
}
.app-shell__brand img { border-radius: 6px; width: 22px; height: 22px; }
.app-shell__nav { display: flex; flex-direction: column; gap: 2px; }
.app-shell__nav a {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px; border-radius: 8px; font-size: 0.72rem;
  color: var(--vl-muted); text-decoration: none;
}
.app-shell__nav a.on { background: rgba(255,255,255,0.07); color: #fff; font-weight: 600; }
.app-shell__nav a .ms { font-size: 16px; }

.app-shell__main { flex: 1; padding: 10px 12px; overflow: hidden; min-width: 0; }
.home-welcome { margin-bottom: 8px; }
.home-welcome h1 { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.2; }
.home-welcome .grad-name {
  background: linear-gradient(90deg, #fff, var(--vl-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.home-welcome p { font-size: 0.68rem; color: var(--vl-muted); margin-top: 2px; }
.home-matches__head { margin-bottom: 6px; }
.home-matches__head h2 { font-size: 0.88rem; font-weight: 700; }
.home-matches__head p { font-size: 0.65rem; color: var(--vl-muted); margin-top: 1px; }

.hp-match-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.hp-match-card {
  display: flex; flex-direction: column; min-height: 108px;
  padding: 8px; border-radius: 10px;
  border: 1px solid var(--vl-border); background: var(--vl-card);
}
.hp-match-card--focus {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 6px 20px rgba(0,0,0,0.35);
  min-height: 118px;
}
.hp-match-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; margin-bottom: 4px; }
.hp-match-card__identity { display: flex; gap: 6px; min-width: 0; }
.hp-match-card__identity strong { display: block; font-size: 0.72rem; line-height: 1.2; }
.hp-match-card__identity p { font-size: 0.58rem; color: var(--vl-muted); margin-top: 1px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.tick { vertical-align: middle; margin-left: 1px; width: 10px; height: 10px; }

.hp-compat { margin-bottom: 4px; padding: 5px 6px; border-radius: 7px; background: rgba(255,255,255,0.03); border: 1px solid var(--vl-border); }
.hp-compat__row { display: flex; justify-content: space-between; gap: 4px; font-size: 0.58rem; margin-bottom: 2px; }
.hp-compat__row span { color: var(--vl-muted); }
.hp-compat__row strong { font-size: 0.58rem; font-weight: 500; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }
.hp-compat__bar { height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; margin-top: 3px; overflow: hidden; }
.hp-compat__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--vl-success), #a1a1aa); border-radius: 2px; }
.hp-compat-mini { font-size: 0.58rem; color: var(--vl-muted); margin-bottom: 3px; }
.hp-compat-mini span { color: #888; }

.hp-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #3f3f46, #18181b);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 700; border: 2px solid var(--vl-border-strong);
}
.hp-avatar--vineet { background: linear-gradient(135deg, #52525b, #27272a); }
.hp-avatar--lg { width: 48px; height: 48px; font-size: 0.78rem; }
.hp-avatar--xl { width: 56px; height: 56px; font-size: 0.9rem; border-width: 2px; }

.hp-pct { font-size: 0.72rem; font-weight: 700; color: var(--vl-muted); flex-shrink: 0; }
.hp-pct--high { color: var(--vl-success); }
.hp-tags { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: auto; padding-bottom: 4px; }
.hp-tags span {
  padding: 2px 5px; border-radius: 4px; border: 1px solid var(--vl-border);
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.03em; color: var(--vl-muted);
}
.hp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: auto; }
.hp-btn {
  padding: 5px; border-radius: 7px; font-size: 0.65rem; font-weight: 600;
  font-family: inherit; cursor: pointer; border: 1px solid var(--vl-border);
  background: transparent; color: #fff;
}
.hp-btn--ghost { background: rgba(255,255,255,0.04); }
.hp-btn--outline { border-color: var(--vl-border-strong); }
.hp-btn--primary { background: #fff; color: #0a0a0a; border-color: #fff; }
.hp-btn--clicked { transform: scale(0.95); background: var(--vl-success); color: #0a0a0a; border-color: var(--vl-success); }

/* ── AI Matching scene ──────────────────────────────────── */
.ai-match-scene { padding: 12px 14px; height: 100%; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.ai-match-scene__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-shrink: 0; }
.ai-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: 999px; font-size: 0.65rem; font-weight: 600;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3); color: #c4b5fd;
}
.ai-match-scene__head p { font-size: 0.68rem; color: var(--vl-muted); text-align: right; }
.ai-radar {
  position: relative; flex: 1; min-height: 0; max-height: 160px; border-radius: 12px;
  background: radial-gradient(circle at center, rgba(139,92,246,0.08) 0%, transparent 70%);
  border: 1px solid var(--vl-border); overflow: hidden;
}
.ai-radar__ring {
  position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08); transform: translate(-50%, -50%);
}
.ai-radar__ring--1 { width: 50px; height: 50px; }
.ai-radar__ring--2 { width: 100px; height: 100px; }
.ai-radar__ring--3 { width: 150px; height: 150px; }
.ai-radar__core {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; background: var(--vl-success); box-shadow: 0 0 16px var(--vl-success);
}
.ai-node--a { left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; }
.ai-node--b { left: 22%; top: 28%; }
.ai-node--c { right: 20%; top: 32%; }
.ai-node--vineet { right: 28%; bottom: 22%; border-color: var(--vl-success); opacity: 0; }
.ai-calc__bar { flex: 1; height: 3px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; }
.ai-calc__fill { height: 100%; width: 0%; background: linear-gradient(90deg, #8b5cf6, var(--vl-success)); border-radius: 3px; }
.ai-radar__sweep {
  position: absolute; left: 50%; top: 50%; width: 80px; height: 2px;
  margin-left: 0; transform-origin: left center;
  background: linear-gradient(90deg, rgba(74,222,128,0.8), transparent);
}
.ai-node {
  position: absolute; width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.55rem; font-weight: 700;
  background: rgba(255,255,255,0.08); border: 1px solid var(--vl-border);
}
.ai-calc { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; }
.ai-calc__row { display: flex; align-items: center; gap: 8px; font-size: 0.62rem; color: var(--vl-muted); }
.ai-calc__row span { width: 52px; flex-shrink: 0; }
.ai-result {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px;
  background: rgba(74,222,128,0.08); border: 1px solid rgba(74,222,128,0.25);
  opacity: 0; transform: translateY(8px); flex-shrink: 0;
}
.ai-result strong { display: block; font-size: 0.78rem; }
.ai-result p { font-size: 0.62rem; color: var(--vl-muted); margin-top: 1px; }
.ai-result__pct { font-size: 1.1rem; font-weight: 800; color: var(--vl-success); display: block; line-height: 1; }

/* ── Profile page ───────────────────────────────────────── */
.profile-page { height: 100%; overflow: hidden; }
.profile-cover {
  height: 64px;
  background: linear-gradient(135deg, rgba(139,92,246,0.25), rgba(74,222,128,0.12));
  border-bottom: 1px solid var(--vl-border);
}
.profile-body { padding: 0 12px 8px; margin-top: -24px; overflow: hidden; }
.profile-header { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 8px; }
.profile-header__info h2 { font-size: 0.95rem; font-weight: 700; line-height: 1.2; }
.profile-header__info > p { font-size: 0.68rem; color: var(--vl-muted); margin-top: 1px; }
.profile-vibecred {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
  padding: 3px 7px; border-radius: 6px; font-size: 0.6rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--vl-border);
}
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.profile-card { padding: 8px; border-radius: 8px; }
.profile-card h3 { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--vl-muted); margin-bottom: 5px; }
.profile-vibecred strong { color: var(--vl-success); }
.profile-vibecred__tier { color: var(--vl-muted); margin-left: 2px; }
.profile-card--wide { grid-column: 1 / -1; }
.profile-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.profile-chips span {
  padding: 2px 5px; border-radius: 4px; font-size: 0.58rem;
  border: 1px solid var(--vl-border); background: rgba(255,255,255,0.03);
}
.profile-project { padding: 4px 0; border-bottom: 1px solid var(--vl-border); }
.profile-project:last-child { border: none; }
.profile-project strong { font-size: 0.72rem; }
.profile-project span { font-size: 0.58rem; color: var(--vl-muted); }
.profile-collab { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.profile-collab strong { font-size: 0.72rem; }
.profile-collab span { font-size: 0.58rem; color: var(--vl-muted); }

/* ── Video call (enhanced) ────────────────────────────── */
.call-ui { height: 100%; display: flex; flex-direction: column; }
.call-ui__bar {
  display: flex; justify-content: space-between; padding: 8px 12px;
  border-bottom: 1px solid var(--vl-border); font-size: 0.72rem; color: var(--vl-muted);
  flex-shrink: 0;
}
.call-ui__stage {
  flex: 1; position: relative; display: grid;
  grid-template-columns: 1fr 130px; gap: 6px; padding: 8px; min-height: 0;
}
.call-timer { font-variant-numeric: tabular-nums; }
.call-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; margin-right: 4px; animation: live-blink 1.2s ease infinite;
}
@keyframes live-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.call-side { display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.call-tile {
  border-radius: 10px; background: #111; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; position: relative; min-height: 0;
}
.call-tile--remote { min-height: 0; background: linear-gradient(160deg, #141414, #0a0a0a); flex: 1; }
.call-avatar-lg {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #52525b, #27272a);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-weight: 700;
}
.call-avatar-sm {
  width: 40px; height: 40px; border-radius: 50%; background: #27272a;
  display: flex; align-items: center; justify-content: center; font-size: 0.55rem;
}
.call-notes { padding: 8px; border-radius: 8px; flex: 1; text-align: left; align-self: stretch; overflow: hidden; }
.call-notes h4 { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--vl-muted); margin-bottom: 5px; }
.call-notes ul { list-style: none; font-size: 0.65rem; color: rgba(255,255,255,0.8); }
.call-notes li { padding: 3px 0; border-bottom: 1px solid var(--vl-border); }
.call-notes li:last-child { border: none; }
.call-ui__controls {
  display: flex; justify-content: center; gap: 8px; padding: 8px;
  border-top: 1px solid var(--vl-border); flex-shrink: 0;
}
.call-ui__controls button {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--vl-border);
  background: rgba(255,255,255,0.04); font-size: 0.9rem; cursor: pointer;
}
.call-ui__controls button.end { background: #ef4444; border-color: #ef4444; }
.call-future-badge { display: none; }
  position: absolute; top: 12px; left: 12px; display: flex; gap: 3px; align-items: flex-end; height: 16px;
}
.call-speaking span {
  width: 3px; background: var(--vl-success); border-radius: 2px;
  animation: speak-bar 0.6s ease-in-out infinite alternate;
}
.call-speaking span:nth-child(1) { height: 6px; animation-delay: 0s; }
.call-speaking span:nth-child(2) { height: 12px; animation-delay: 0.1s; }
.call-speaking span:nth-child(3) { height: 8px; animation-delay: 0.2s; }
.call-speaking span:nth-child(4) { height: 14px; animation-delay: 0.15s; }
.call-speaking span:nth-child(5) { height: 7px; animation-delay: 0.25s; }
@keyframes speak-bar { from { transform: scaleY(0.5); } to { transform: scaleY(1.2); } }
.call-wave {
  display: flex; align-items: center; gap: 3px; height: 24px; margin-top: 4px;
}
.call-wave span {
  width: 3px; height: 8px; background: rgba(74,222,128,0.6); border-radius: 2px;
  animation: wave-bar 0.8s ease-in-out infinite;
}
.call-wave span:nth-child(odd) { animation-delay: 0.15s; }
@keyframes wave-bar {
  0%, 100% { height: 6px; opacity: 0.4; }
  50% { height: 22px; opacity: 1; }
}

/* ── Space creation hero ────────────────────────────────── */
.space-create-scene {
  height: 100%; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 16px;
}
.space-create-step {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 16px;
  opacity: 0; visibility: hidden;
}
.space-create-step.is-on { opacity: 1; visibility: visible; }
.env-btn--hero { width: auto; padding: 0 28px; height: 40px; font-size: 0.82rem; }
.space-create-card { padding: 16px 24px; border-radius: 12px; text-align: center; }
.space-create-card h3 { font-size: 0.95rem; margin: 8px 0 3px; }
.space-create-card p { font-size: 0.72rem; color: var(--vl-muted); }
.space-create-step { gap: 10px; }
.space-exec-badge { padding: 10px 18px; border-radius: 10px; font-size: 0.78rem; gap: 6px; }
.space-members { display: flex; gap: 10px; }
.sc-member-in { opacity: 0; transform: scale(0.5); }
.space-create-label { font-size: 0.85rem; color: var(--vl-muted); }
.env-board--compact { width: 100%; max-width: 520px; }
.sc-task-in { opacity: 0; transform: translateY(10px); }
.space-exec-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px;
  border-radius: 14px; font-size: 1rem; font-weight: 600;
}
.work-files { padding: 10px; border-radius: 10px; margin-top: 10px; }
.work-file { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; padding: 6px 0; color: var(--vl-muted); }
.work-file .ms { font-size: 18px; }
.work-item--deadline { border-color: rgba(251,191,36,0.3); }

/* ── Environment / Space ────────────────────────────────── */
.env-layout { display: flex; height: 100%; min-height: 0; }
.env-sidebar {
  width: 148px; flex-shrink: 0; background: #070707;
  border-right: 1px solid var(--vl-border); padding: 10px 8px;
  display: flex; flex-direction: column; gap: 4px;
}
.env-sidebar__brand {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--font-brand); font-weight: 700; font-size: 0.78rem; margin-bottom: 6px;
}
.env-sidebar__brand img { border-radius: 6px; width: 22px; height: 22px; }
.env-link {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border-radius: 8px; font-size: 0.68rem; color: var(--vl-muted); text-decoration: none;
}
.env-sidebar__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.env-link--on { background: rgba(255,255,255,0.07); color: #fff; }
.env-btn {
  width: 100%; font-weight: 600; font-family: inherit; cursor: pointer; border: none;
}
.env-btn--primary { background: #fff; color: #0a0a0a; margin-top: auto; }
.env-btn--secondary { background: transparent; color: #fff; border: 1px solid var(--vl-border); margin-top: 6px; }
.env-main { flex: 1; padding: 10px 12px; overflow: hidden; min-width: 0; }
.env-header { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.env-badge { font-size: 0.58rem; padding: 2px 6px; border-radius: 4px; background: rgba(74,222,128,0.12); color: var(--vl-success); font-weight: 600; }
.env-metrics { display: flex; flex-wrap: wrap; }
.env-metric {
  flex: 1; border-radius: 8px; background: rgba(255,255,255,0.03);
  border: 1px solid var(--vl-border); text-align: center;
}
.env-metric .ms { color: var(--vl-muted); }
.env-metric strong { display: block; }
.env-metric small { color: var(--vl-muted); }
.env-tabs { display: flex; color: var(--vl-muted); }
.env-tabs .on { color: #fff; font-weight: 600; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.env-hint { color: var(--vl-muted); }
.env-board { display: grid; grid-template-columns: repeat(3, 1fr); }
.env-board__col h4 { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--vl-muted); margin-bottom: 4px; }
.env-task {
  border-radius: 6px; background: rgba(255,255,255,0.03); border: 1px solid var(--vl-border);
}
.env-task--on { border-color: var(--vl-border-strong); background: rgba(255,255,255,0.06); }
.env-task--done { opacity: 0.5; text-decoration: line-through; }
.env-main--split { display: grid; grid-template-columns: repeat(3, 1fr); }
.work-item {
  display: flex; align-items: center; border-radius: 8px;
  border: 1px solid var(--vl-border); background: rgba(255,255,255,0.02);
}
.work-item--active { border-color: var(--vl-border-strong); background: rgba(255,255,255,0.06); }
.work-progress { height: 5px; background: rgba(255,255,255,0.08); border-radius: 5px; overflow: hidden; }
.work-progress__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--vl-success), #a1a1aa); border-radius: 5px; }
.work-task { color: var(--vl-muted); }
.work-task.done { color: var(--vl-success); }
.work-task.active { color: #fff; }
.work-milestones { display: flex; }
.ms-done { opacity: 0.7; }
.ms-active { font-weight: 700; color: #fff; }
.team-row { display: flex; align-items: center; gap: 8px; }
.team-row em { margin-left: auto; color: var(--vl-success); font-style: normal; }
.team-row--new em { color: var(--vl-muted); }
.work-col h3 { text-transform: uppercase; letter-spacing: 0.05em; color: var(--vl-muted); }
.work-item span { color: var(--vl-muted); }
.work-item strong { display: block; }

/* ── Growth & Finale ───────────────────────────────────── */
.growth-wrap { padding: 12px 14px; text-align: center; height: 100%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.growth-wrap h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.6rem; letter-spacing: -0.02em; }
.growth-stats { display: flex; justify-content: center; gap: 0.4rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.growth-stat { padding: 6px 10px; border-radius: 8px; min-width: 64px; }
.growth-stats strong { display: block; font-size: 1.1rem; font-weight: 700; }
.growth-stats span { font-size: 0.58rem; color: var(--vl-muted); }
.growth-network {
  position: relative; width: 120px; height: 120px; margin: 0 auto 0.6rem; flex-shrink: 0;
}
.growth-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem; font-weight: 700; background: #fff; color: #0a0a0a; z-index: 2;
  box-shadow: 0 0 24px rgba(255,255,255,0.18);
}
.growth-orbit {
  position: absolute; left: 50%; top: 50%;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700;
  background: rgba(255,255,255,0.08); border: 1px solid var(--vl-border);
  transform: rotate(var(--a)) translateX(58px) rotate(calc(-1 * var(--a)));
  opacity: 0;
}
.growth-bars { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 52px; flex-shrink: 0; }
.gbar {
  width: 28px; height: var(--h); border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #d4d4d8, #71717a);
  transform-origin: bottom; transform: scaleY(0);
}
.gbar--peak { background: linear-gradient(180deg, #fff, #a1a1aa); }

/* ── Ecosystem finale (clean) ───────────────────────────── */
.ecosystem-outro {
  position: absolute; inset: 0; z-index: 25;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  will-change: opacity;
}
.finale-glow {
  position: absolute; left: 50%; top: 42%; width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.finale-ring {
  position: absolute; left: 50%; top: 42%; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
}
.finale-ring--1 { width: 220px; height: 220px; }
.finale-ring--2 { width: 360px; height: 360px; border-color: rgba(255,255,255,0.04); }
.eco-copy {
  position: relative; z-index: 5; text-align: center;
  max-width: min(480px, 90vw); padding: 1.5rem;
  opacity: 0; transform: translateY(16px);
  pointer-events: auto;
}
.finale-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 0.75rem;
  filter: drop-shadow(0 12px 40px rgba(255,255,255,0.12));
}
.finale-wordmark {
  font-family: var(--font-brand); font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 0.75rem;
}
.finale-headline {
  font-size: clamp(1.25rem, 2.5vw, 1.85rem); font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.25; margin-bottom: 0.5rem;
}
.finale-sub {
  color: var(--vl-muted); font-size: 0.88rem; line-height: 1.5; margin-bottom: 1.25rem;
}
.finale-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.5rem; border-radius: 999px;
  background: #fff; color: #0a0a0a; font-size: 0.85rem; font-weight: 600;
  text-decoration: none; letter-spacing: 0.01em;
  box-shadow: 0 8px 32px rgba(255,255,255,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.finale-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(255,255,255,0.18); }

/* ── Toast & Cursor ───────────────────────────────────── */
.vl-toast {
  position: absolute; top: 18%; right: 8%; z-index: 40;
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px; border-radius: 16px;
  background: rgba(18,18,18,0.95); border: 1px solid var(--vl-border-strong);
  backdrop-filter: blur(20px); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  max-width: 340px; opacity: 0; transform: translateX(40px);
  will-change: transform, opacity;
}
.vl-toast__body strong { display: block; font-size: 0.9rem; margin-bottom: 4px; }
.vl-toast__body p { font-size: 0.85rem; color: var(--vl-muted); line-height: 1.4; }

.vl-cursor {
  position: fixed; top: 0; left: 0; z-index: 9999;
  width: 28px; height: 28px;
  pointer-events: none; opacity: 0; visibility: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' stroke='%23000' stroke-width='1' d='M5 3l14 9.5-6.5 1.5 2.5 6.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  will-change: transform, opacity;
}
.vl-cursor.is-visible { opacity: 1; visibility: visible; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  :root { --mac-w: 880px; --mac-h: 560px; }
}
@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .app-shell__sidebar { width: 64px; }
  .app-shell__brand span, .app-shell__nav a span:not(.ms) { display: none; }
  .hp-match-grid { grid-template-columns: 1fr; }
  .env-main--split { grid-template-columns: 1fr; }
  .env-sidebar { width: 64px; }
  .env-link span:not(.ms) { display: none; }
  .env-sidebar__brand span { display: none; }
}
