/* Onbars Landing — Dark + Emerald, premium */
:root {
  --bg: #0a0f1a;
  --bg-1: #111827;
  --bg-2: #1F2937;
  --bg-3: #374151;
  --line: #1f2937;
  --line-2: #2a3441;
  --text: #FFFFFF;
  --text-2: #E5E7EB;
  --text-3: #D1D5DB;
  --text-4: #9CA3AF;
  --text-5: #6B7280;
  --emerald: #10B981;
  --emerald-2: #34d399;
  --emerald-dim: rgba(16,185,129,0.12);
  --emerald-glow: rgba(16,185,129,0.35);
  --amber: #F59E0B;
  --red: #EF4444;
  --blue: #3B82F6;
  --violet: #8B5CF6;
  --pink: #EC4899;
  --indigo: #6366F1;
  --font-sans: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
  --radius-card: 14px;
  --radius-pill: 999px;
  /* high-end-visual-design: spring-mass cubic-bezier baseline */
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out-fluid: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { font-size: 17px; line-height: 1.55; letter-spacing: -0.005em; font-weight: 400; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }

/* Background — art-directed mesh + film grain (no cliché grid) */
/* high-end-visual-design: Ethereal Glass — mesh gradient orbs, asymmetric */
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 35% at 18% 8%, rgba(16,185,129,0.16), transparent 65%),
    radial-gradient(ellipse 40% 30% at 92% 22%, rgba(16,185,129,0.07), transparent 70%),
    radial-gradient(ellipse 35% 25% at 75% 85%, rgba(139,92,246,0.05), transparent 70%),
    radial-gradient(ellipse 30% 20% at 8% 70%, rgba(59,130,246,0.04), transparent 70%);
  filter: saturate(115%);
}
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.4;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(16,185,129,0.04), transparent 55%);
  mask-image: linear-gradient(180deg, #000, #000 40%, transparent 90%);
}
/* high-end-visual-design: film grain — fixed pseudo, no scroll repaint */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.045;
  mix-blend-mode: overlay;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(ellipse 100% 80% at 50% 50%, transparent 55%, rgba(0,0,0,0.35) 100%);
}

main { position: relative; z-index: 1; }

/* Layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .wrap { padding: 0 20px; } }

/* Typography */
.display { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.04em; line-height: 0.92; }
/* high-end-visual-design: eyebrow as pill badge, not naked text */
.eyebrow {
  font-family: var(--font-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--emerald);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 999px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.eyebrow::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald), 0 0 18px rgba(16,185,129,0.5);
  animation: eyebrowPulse 2.4s var(--ease-out-fluid) infinite;
}
@keyframes eyebrowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
.mono { font-family: var(--font-mono); }

/* Reveal — blur-resolve entry, used by useReveal() observer */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition:
    opacity 900ms var(--ease-out-fluid),
    transform 900ms var(--ease-out-fluid),
    filter 900ms var(--ease-out-fluid);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 180ms; }
.reveal[data-delay="3"] { transition-delay: 280ms; }
.reveal[data-delay="4"] { transition-delay: 380ms; }
.reveal[data-delay="5"] { transition-delay: 480ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; filter: none; transition: none; }
}

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(10,15,26,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,0.25), transparent);
  pointer-events: none;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; position: relative; }
.brand img { height: 26px; width: auto; display: block; }
.nav-links { display: flex; gap: 36px; }
/* high-end-visual-design: nav link with animated underline + color shift */
.nav-links a {
  position: relative;
  font-size: 14px; color: var(--text-4);
  padding: 4px 0;
  transition: color 500ms var(--ease-out-fluid);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--emerald);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 600ms var(--ease-spring);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; gap: 2px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px; padding: 3px;
  font-size: 11px; font-family: var(--font-mono); font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.lang-toggle button {
  padding: 4px 10px; border-radius: 999px;
  color: var(--text-4);
  transition: color 500ms var(--ease-out-fluid), background 500ms var(--ease-out-fluid);
  letter-spacing: 0.06em;
}
.lang-toggle button.active {
  background: var(--emerald); color: #042d22;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.4);
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  background: var(--emerald);
  color: #042d22;
  border-radius: 999px; font-size: 13px; font-weight: 600;
  letter-spacing: -0.005em;
  transition: transform 500ms var(--ease-spring), box-shadow 500ms var(--ease-spring);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.25),
    0 1px 2px rgba(0,0,0,0.4),
    0 8px 24px rgba(16,185,129,0);
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 2px rgba(0,0,0,0.4), 0 12px 32px var(--emerald-glow); }
.cta-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.cta-btn.ghost:hover { border-color: var(--emerald); color: var(--emerald); box-shadow: none; }
.cta-btn.coming-soon {
  background: rgba(255,255,255,0.04);
  color: var(--text-3);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.cta-btn.coming-soon::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: eyebrowPulse 2.4s var(--ease-out-fluid) infinite;
}
.store-btn.coming-soon::after, .cta-btn.coming-soon::after { content: ''; }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* Section spacing */
section { padding: 120px 0; position: relative; }
@media (max-width: 768px) { section { padding: 80px 0; } }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(40px, 5.4vw, 70px); margin-top: 16px; margin-bottom: 16px; }
.section-head p { color: var(--text-4); font-size: 20px; max-width: 620px; }

/* APP INTRO */
/* high-end-visual-design: editorial split — first line big/bold, rest lighter, generous whitespace */
.app-intro { padding: 0 0 100px; }
.app-intro-wrap { max-width: 900px; display: flex; flex-direction: column; gap: 16px; }
.app-intro-l1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.app-intro-l2 {
  font-size: clamp(17px, 1.8vw, 22px);
  color: var(--text-3);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.app-intro-l3 {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--emerald);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .app-intro { padding: 0 0 64px; }
}

/* HERO */
/* high-end-visual-design: Editorial Split — typo dominante 60%, phone droite légèrement débordé */
.hero { padding: 100px 0 140px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 80px; align-items: center; }
.hero h1 {
  font-size: clamp(56px, 9vw, 128px);
  margin: 28px 0 32px;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.hero h1 .accent { color: var(--emerald); }
.hero h1 .stroke { -webkit-text-stroke: 1.5px var(--emerald); color: transparent; }
.hero-sub { color: var(--text-3); font-size: 19px; line-height: 1.55; max-width: 520px; margin-bottom: 40px; font-weight: 400; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
/* high-end-visual-design: double-bezel pill — outer shell + inner content */
.store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 6px 6px 6px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-weight: 500; font-size: 14px;
  color: var(--text-3);
  transition: all 600ms var(--ease-spring);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 2px rgba(0,0,0,0.4);
}
.store-btn > svg { flex-shrink: 0; opacity: 0.7; }
.store-btn > div { display: flex; flex-direction: column; padding-right: 4px; }
.store-btn .store-label { font-size: 10px; opacity: 0.55; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--font-mono); }
.store-btn .store-name { font-size: 14px; font-weight: 600; color: var(--text); letter-spacing: -0.01em; }
.store-btn.coming-soon, .cta-btn.coming-soon {
  cursor: not-allowed; pointer-events: none;
}
.store-btn.coming-soon .store-name { color: var(--emerald); }
.store-btn .store-label { font-size: 10px; opacity: 0.6; display: block; letter-spacing: 0.06em; text-transform: uppercase; }
.store-btn .store-name { font-size: 15px; font-weight: 600; line-height: 1.1; }
.hero-stats { display: flex; gap: 32px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.hero-stat .v { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.hero-stat .l { font-size: 11px; color: var(--text-4); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}

/* Phone */
/* high-end-visual-design: Z-axis cascade — phone offset right, glow décalé pour casser symétrie */
.phone-stage {
  position: relative; height: 720px;
  display: flex; align-items: center; justify-content: center;
  transform: translateX(40px);
}
.phone-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(16,185,129,0.22), transparent 60%);
  filter: blur(60px); pointer-events: none;
  transform: translate(-30px, -20px);
}
.phone {
  position: relative; width: 320px; height: 660px;
  background: #000; border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a3441,
    0 0 0 8px #0d141f,
    0 60px 120px -20px rgba(0,0,0,0.8),
    0 0 80px rgba(16,185,129,0.15);
  animation: phoneFloat 7s var(--ease-out-fluid) infinite;
}
/* high-end-visual-design: organic float — not pure sine, slight rotation breathing */
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  33% { transform: translateY(-10px) rotate(-1.2deg); }
  66% { transform: translateY(-6px) rotate(-1.7deg); }
}
.phone-screen { position: relative; width: 100%; height: 100%; background: var(--bg-1); border-radius: 36px; overflow: hidden; }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 100px; height: 28px; background: #000; border-radius: 16px; z-index: 10; }

/* Floating cards around phone */
/* high-end-visual-design: double-bezel — outer shell ring + inner core highlight, stacked shadows */
.float-card {
  position: absolute;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01)),
    var(--bg-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex; gap: 12px; align-items: center;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 1px 2px rgba(0,0,0,0.4),
    0 24px 48px -12px rgba(0,0,0,0.6),
    0 40px 80px -20px rgba(0,0,0,0.4);
  animation: floatY 6s var(--ease-out-fluid) infinite;
}
.float-card.top-l { top: 80px; left: -40px; animation-delay: -1s; }
.float-card.bottom-r { bottom: 110px; right: -50px; animation-delay: -2.5s; }
.float-card.mid-l { top: 360px; left: -70px; animation-delay: -3.5s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.float-card .ic {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--emerald-dim), rgba(16,185,129,0.04));
  border: 1px solid rgba(16,185,129,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  display: grid; place-items: center; color: var(--emerald); flex-shrink: 0;
}
.float-card .ic.amber { background: rgba(245,158,11,0.15); color: var(--amber); }
.float-card .ic.red { background: rgba(239,68,68,0.15); color: var(--red); }
.float-card .t { font-size: 12px; color: var(--text-4); margin-bottom: 2px; }
.float-card .v { font-size: 14px; font-weight: 600; }
.float-card .v .em { color: var(--emerald); }

@media (max-width: 1024px) {
  .phone-stage { height: 640px; }
  .float-card.top-l { left: 0; }
  .float-card.bottom-r { right: 0; }
  .float-card.mid-l { left: 0; }
}

/* PILLARS */
.pillars-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px;
}
.pillar {
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 28px; position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
  min-height: 280px; display: flex; flex-direction: column; justify-content: space-between;
}
.pillar:hover { border-color: var(--emerald); transform: translateY(-4px); }
.pillar::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, rgba(16,185,129,0.08), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.pillar:hover::after { opacity: 1; }
.pillar.span-3 { grid-column: span 3; }
.pillar.span-2 { grid-column: span 2; }
.pillar-num {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-5);
  letter-spacing: 0.1em;
}
.pillar h3 { font-family: var(--font-display); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.pillar p { color: var(--text-4); font-size: 14px; margin-top: 12px; max-width: 360px; }
.pillar-art { height: 130px; margin-top: 24px; position: relative; }

@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar.span-3, .pillar.span-2 { grid-column: span 1; }
}
@media (max-width: 640px) {
  .pillars-grid { grid-template-columns: 1fr; }
}

/* SCORE */
.score-section { background: linear-gradient(180deg, transparent, rgba(16,185,129,0.03), transparent); }
.score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.score-visual { position: relative; aspect-ratio: 1; max-width: 520px; margin: 0 auto; width: 100%; }
.score-center {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.score-center .big { font-family: var(--font-display); font-size: 96px; font-weight: 600; color: var(--emerald); letter-spacing: -0.04em; line-height: 1; }
.score-center .label { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); letter-spacing: 0.18em; margin-top: 8px; text-transform: uppercase; }
.score-center .tier { margin-top: 12px; padding: 6px 14px; background: rgba(245,158,11,0.15); color: var(--amber); border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; display: inline-block; }

.score-breakdown { display: flex; flex-direction: column; gap: 24px; }
.bd-row { display: flex; flex-direction: column; gap: 10px; }
.bd-head { display: flex; justify-content: space-between; align-items: baseline; }
.bd-name { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.bd-dot { width: 10px; height: 10px; border-radius: 50%; }
.bd-pct { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.bd-bar { height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bd-fill { height: 100%; border-radius: 999px; transition: width 1.5s cubic-bezier(.34,1.5,.5,1); }
.bd-desc { font-size: 13px; color: var(--text-4); margin-top: 2px; }

.tier-ladder { display: flex; justify-content: space-between; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); gap: 16px; }
.tier-step { flex: 1; }
.tier-step .name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.tier-step .range { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); margin-top: 4px; letter-spacing: 0.08em; }
.tier-step .bar { height: 3px; margin-top: 12px; background: var(--bg-3); border-radius: 2px; position: relative; overflow: hidden; }
.tier-step .bar i { display: block; height: 100%; }

@media (max-width: 1024px) {
  .score-grid { grid-template-columns: 1fr; gap: 56px; }
  .score-center .big { font-size: 72px; }
}

/* CERTIFICATION */
.cert-timeline { position: relative; margin-top: 24px; }
.cert-track {
  position: absolute; top: 38px; left: 0; right: 0; height: 2px;
  background: var(--bg-3); border-radius: 2px; z-index: 0;
}
.cert-track i {
  display: block; height: 100%; background: var(--emerald);
  width: 0; transition: width 2s ease;
}
.cert-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; z-index: 1; }
.cert-step { text-align: center; }
.cert-step .node {
  width: 76px; height: 76px; margin: 0 auto;
  background: var(--bg-1); border: 2px solid var(--bg-3); border-radius: 50%;
  display: grid; place-items: center; color: var(--text-5);
  transition: all .4s;
  position: relative;
}
.cert-step.active .node {
  border-color: var(--emerald); color: var(--emerald);
  box-shadow: 0 0 0 6px var(--emerald-dim), 0 0 40px var(--emerald-glow);
}
.cert-step .label-num { font-family: var(--font-mono); font-size: 10px; color: var(--text-5); margin-top: 18px; letter-spacing: 0.15em; }
.cert-step .label-name { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-top: 6px; }
.cert-step .label-desc { font-size: 13px; color: var(--text-4); margin-top: 6px; max-width: 200px; margin-left: auto; margin-right: auto; }

@media (max-width: 768px) {
  .cert-steps { grid-template-columns: 1fr; gap: 32px; }
  .cert-track { display: none; }
}

/* COMMUNITY */
.community-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 24px;
}
.stat-card .v { font-family: var(--font-display); font-size: 48px; font-weight: 600; color: var(--emerald); letter-spacing: -0.03em; line-height: 1; }
.stat-card .v .sm { font-size: 24px; color: var(--text); margin-left: 4px; }
.stat-card .l { font-size: 13px; color: var(--text-4); margin-top: 10px; }
.stat-card .meta { font-family: var(--font-mono); font-size: 10px; color: var(--text-5); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 14px; }

.avatar-wall { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; padding: 24px; overflow: hidden; position: relative; min-height: 380px; }
.avatar-wall h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.avatar-wall .sub { color: var(--text-4); font-size: 13px; margin-top: 4px; }
.avatar-marquee { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.av-row { display: flex; gap: 10px; }
.av-row.r2 { transform: translateX(-30px); }
.av-row.r3 { transform: translateX(-60px); }
.av-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px 6px 6px;
  white-space: nowrap; flex-shrink: 0;
}
.av-circle { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff; }
.av-pill .nm { font-size: 13px; }
.av-pill .tier { font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.06em; }

@media (max-width: 1024px) {
  .community-grid { grid-template-columns: 1fr; }
}

/* FOOTER */
footer { border-top: 1px solid var(--line); padding: 80px 0 32px; margin-top: 80px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; color: var(--text-5); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-3); font-size: 14px; transition: color .2s; }
.footer-col a:hover { color: var(--emerald); }
.footer-brand p { color: var(--text-4); font-size: 14px; margin-top: 16px; max-width: 280px; }
.newsletter { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.newsletter form { display: flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px; }
.newsletter input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); padding: 10px 14px; font-family: inherit; font-size: 14px;
}
.newsletter button {
  background: var(--emerald); color: #053024; border-radius: 8px;
  padding: 8px 14px; font-weight: 600; font-size: 13px;
  transition: transform .2s;
}
.newsletter button:hover { transform: translateY(-1px); }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-3); transition: all .2s; }
.socials a:hover { border-color: var(--emerald); color: var(--emerald); }
.foot-base { display: flex; justify-content: space-between; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-5); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .footer-col.newsletter-col { grid-column: span 2; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-col.newsletter-col { grid-column: span 2; }
  .foot-base { flex-direction: column; gap: 12px; }
}

/* (Reveal moved to typography block — blur-resolve variant) */

/* Marquee */
@keyframes marqueeLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.marquee-track { display: flex; gap: 10px; animation: marqueeLeft 40s linear infinite; width: max-content; }
.marquee-track.reverse { animation-direction: reverse; animation-duration: 50s; }
.marquee-track.slow { animation-duration: 60s; }

/* ============================================================
   FEATURES OVERVIEW (six tab cards)
   ============================================================ */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* high-end-visual-design: Double-bezel — outer shell (machined frame) + inner core (content plate) */
.feat-card {
  --c: var(--emerald);
  position: relative;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 28px;
  display: block;
  transition: transform 700ms var(--ease-spring), border-color 600ms var(--ease-out-fluid);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 1px 2px rgba(0,0,0,0.4);
}
.feat-card::after {
  content: '';
  position: absolute; inset: 6px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, var(--c), transparent 55%),
    var(--bg-1);
  background-blend-mode: overlay, normal;
  opacity: 1;
  z-index: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.2);
  transition: background 700ms var(--ease-out-fluid);
}
.feat-card > * { position: relative; z-index: 1; }
.feat-card {
  padding-top: 6px; padding-bottom: 6px;
}
.feat-card-inner {
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 100%;
}
/* Fallback: structure with single-element using padding offset */
.feat-card {
  padding: 28px;
}
.feat-card::after {
  inset: 4px;
  border-radius: 24px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255,255,255,0.025), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, #182231 100%);
  opacity: 1;
}
.feat-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-3px);
}
.feat-card:hover::after {
  background:
    radial-gradient(120% 100% at 100% 0%, color-mix(in srgb, var(--c) 14%, transparent), transparent 50%),
    linear-gradient(180deg, var(--bg-2) 0%, #182231 100%);
}
.feat-top { display: flex; align-items: center; justify-content: space-between; }
/* high-end-visual-design: machined icon plate, not flat tile */
.feat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01)),
    var(--bg-1);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 1px 2px rgba(0,0,0,0.4);
}
.feat-num { font-family: var(--font-mono); font-size: 11px; color: var(--text-5); letter-spacing: 0.14em; }
.feat-card h3 { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.025em; margin-top: 4px; }
.feat-card p { color: var(--text-4); font-size: 15px; line-height: 1.6; flex: 1; }
/* Button-in-button trailing arrow nested in circle */
.feat-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--c); letter-spacing: 0.14em; text-transform: uppercase;
  margin-top: 4px;
  transition: gap 600ms var(--ease-spring);
}
.feat-link svg {
  width: 26px; height: 26px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 600ms var(--ease-spring), background 600ms var(--ease-out-fluid);
}
.feat-card:hover .feat-link { gap: 14px; }
.feat-card:hover .feat-link svg {
  transform: translateX(2px) translateY(-1px);
  background: color-mix(in srgb, var(--c) 18%, transparent);
  border-color: color-mix(in srgb, var(--c) 30%, transparent);
}
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* ============================================================
   DEEP-DIVE SECTIONS
   ============================================================ */
.deep-dive { padding: 100px 0; border-top: 1px solid var(--line); }
.deep-dive:nth-of-type(odd of .deep-dive) { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.012), transparent); }

.dd-header {
  display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start;
  margin-bottom: 56px; max-width: 900px;
}
.dd-num {
  font-family: var(--font-display); font-size: 76px; font-weight: 600;
  letter-spacing: -0.04em; line-height: 0.85; opacity: 0.85;
}
.dd-title {
  font-size: clamp(36px, 4.6vw, 58px); margin-top: 12px; margin-bottom: 16px;
}
.dd-accent { color: var(--emerald); }
.dd-sub { color: var(--text-3); font-size: 20px; max-width: 680px; line-height: 1.55; }

.dd-grid {
  display: grid; grid-template-columns: minmax(0, 460px) 1fr; gap: 48px;
  align-items: start;
}
.deep-dive[data-reverse="true"] .dd-grid {
  grid-template-columns: 1fr minmax(0, 460px);
}
.deep-dive[data-reverse="true"] .dd-copy { order: 2; }
.deep-dive[data-reverse="true"] .dd-phones { order: 1; }

.dd-copy { display: flex; flex-direction: column; gap: 32px; }
/* high-end-visual-design: dd-point — hairline accent rail not 2px chunk */
.dd-point {
  padding-left: 22px;
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.dd-point::before {
  content: '';
  position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 1px;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), rgba(255,255,255,0.02));
}
.dd-point-l {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.dd-point-t { font-size: 17px; color: var(--text-3); line-height: 1.6; letter-spacing: -0.005em; }

.dd-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
/* high-end-visual-design: tag pill with inset highlight, not flat box */
.dd-tag {
  font-family: var(--font-mono); font-size: 12px;
  padding: 7px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 999px;
  color: var(--text-3); letter-spacing: 0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.dd-section-sub {
  font-family: var(--font-mono); font-size: 12px; color: var(--text-5);
  letter-spacing: 0.15em; margin-top: 4px;
}

.dd-legend-row { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.dd-legend-item { display: flex; align-items: center; gap: 12px; }
.dd-legend-item .dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 10px currentColor; }
.dd-legend-item .l { font-size: 14px; font-weight: 600; }
.dd-legend-item .s { font-size: 12px; color: var(--text-4); margin-top: 2px; }

.dd-pipeline {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 12px;
}
.pl-step {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 8px 12px; font-size: 12px;
}
.pl-step span {
  width: 18px; height: 18px; border-radius: 50%; background: var(--bg-3);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px;
  font-weight: 700; color: var(--text-4);
}
.pl-step.active { border-color: var(--emerald); color: var(--emerald); }
.pl-step.active span { background: var(--emerald); color: #053024; }
.pl-arrow { color: var(--text-5); font-size: 14px; }

/* high-end-visual-design: formula card — double-bezel (outer shell + inner core) */
.dd-formula {
  display: flex; flex-direction: column; gap: 8px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 1px 2px rgba(0,0,0,0.3);
}
.dd-formula .f-label, .dd-formula code {
  padding: 0 12px;
}
.dd-formula .f-label {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-5); letter-spacing: 0.18em;
  padding-top: 10px;
}
.dd-formula code {
  font-family: var(--font-mono); font-size: 13px; color: var(--emerald);
  background: var(--bg-1);
  margin: 0 4px 4px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}

.dd-tier-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.dd-tier {
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.dd-tier .t-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; }
.dd-tier .t-cond { font-size: 11px; color: var(--text-3); margin-top: 8px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.dd-tier .t-out { font-size: 12px; color: var(--text-4); margin-top: 6px; }

.badge-skill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.bsr {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 500;
}

@media (max-width: 1024px) {
  .dd-grid { grid-template-columns: 1fr !important; gap: 56px; }
  .deep-dive[data-reverse="true"] .dd-copy { order: 1; }
  .deep-dive[data-reverse="true"] .dd-phones { order: 2; }
  .dd-header { grid-template-columns: 1fr; gap: 12px; }
  .dd-num { font-size: 56px; }
}
@media (max-width: 768px) {
  .deep-dive { padding: 72px 0; }
  .dd-tier-row { grid-template-columns: 1fr; }
}

/* ============================================================
   MINI PHONE (deep-dive mockups)
   ============================================================ */
.dd-phones {
  display: flex; gap: 24px; justify-content: flex-end; align-items: flex-start;
  flex-wrap: wrap;
}
.deep-dive[data-reverse="true"] .dd-phones { justify-content: flex-start; }
.mini-phone-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: transform 700ms var(--ease-spring);
}
.mini-phone-wrap:hover { transform: rotate(0deg) translateY(-8px) scale(1.02) !important; }
.mini-phone {
  width: 232px; height: 480px;
  background: #000; border-radius: 36px; padding: 8px;
  box-shadow:
    0 0 0 1.5px #2a3441,
    0 0 0 5px #0d141f,
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 50px rgba(16,185,129,0.10);
  position: relative;
  flex-shrink: 0;
}
.mini-notch {
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 70px; height: 18px; background: #000; border-radius: 12px; z-index: 10;
}
.mini-screen {
  width: 100%; height: 100%; background: var(--bg-1); border-radius: 28px;
  overflow: hidden; position: relative;
}
.mini-phone-label { display: none; }
.mini-phone-label-hidden {
  font-family: var(--font-mono); font-size: 9px; color: var(--text-5);
  letter-spacing: 0.12em; text-align: center; max-width: 200px;
}

/* ============================================================
   FLOATING MOCKUP (raw screenshot, no phone frame around)
   ============================================================ */
.floating-mockup-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transition: transform .45s cubic-bezier(.34,1.5,.5,1);
  will-change: transform;
}
.floating-mockup-wrap:hover { transform: rotate(0deg) translateY(-10px) !important; }
.floating-mockup-img {
  width: 280px; height: auto; display: block;
  filter:
    drop-shadow(0 40px 80px rgba(0,0,0,0.55))
    drop-shadow(0 0 60px rgba(16,185,129,0.10));
  border-radius: 0;
}
.floating-carousel {
  position: relative; width: 800px; max-width: 100%;
  aspect-ratio: 7 / 9;
  filter:
    drop-shadow(0 40px 80px rgba(0,0,0,0.55))
    drop-shadow(0 0 60px rgba(16,185,129,0.10));
}
@media (max-width: 1024px) {
  .floating-carousel { width: 440px; }
}
@media (max-width: 600px) {
  .floating-carousel { width: 320px; }
  .floating-mockup-img { width: 240px; }
}
.floating-carousel .carousel-img {
  position: absolute; top: 0; height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: block;
}
.floating-carousel .carousel-img.wide {
  left: 0; width: 100%;
  object-fit: cover;
  object-position: center;
}
.floating-carousel .carousel-img.narrow {
  left: 22.5%; width: 55%;
  object-fit: contain;
  object-position: top center;
}
.floating-carousel .carousel-img.active { opacity: 1; }

/* deep-dive header: icon replaces the giant number */
/* high-end-visual-design: nested icon plate — outer ring, inner machined core */
.dd-icon {
  width: 76px; height: 76px;
  border-radius: 22px;
  display: grid; place-items: center;
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01)),
    color-mix(in srgb, currentColor 8%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
  flex-shrink: 0;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 0 0 6px rgba(0,0,0,0.18),
    0 0 30px color-mix(in srgb, currentColor 18%, transparent);
}
.dd-icon::before {
  content: '';
  position: absolute; inset: 8px;
  border-radius: 14px;
  background: var(--bg-1);
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.dd-icon > * { position: relative; z-index: 1; }
@media (max-width: 1024px) {
  .dd-icon { width: 64px; height: 64px; border-radius: 16px; }
}

/* analyze + badge section: no mockups → copy spans full width */
.deep-dive[data-no-mockups="true"] .dd-grid {
  grid-template-columns: 1fr; max-width: 820px;
}

/* ============================================================
   IN-MINI-PHONE UI ATOMS
   ============================================================ */
.mp { width: 100%; height: 100%; padding: 36px 12px 56px; display: flex; flex-direction: column; gap: 8px; color: #fff; font-size: 11px; overflow: hidden; }
.mp-h { display: flex; justify-content: space-between; align-items: center; }
.mp-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.mp-search { display: flex; align-items: center; gap: 6px; background: var(--bg-2); border-radius: 8px; padding: 8px 10px; font-size: 10px; color: var(--text-5); }
.mp-filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-chip {
  font-family: var(--font-mono); font-size: 9px; padding: 4px 8px; border-radius: 999px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text-4);
  white-space: nowrap;
}
.mp-chip.active { color: var(--emerald); border-color: var(--emerald-dim); background: var(--emerald-dim); }

.mp-tabs-row { display: flex; gap: 4px; margin-top: 2px; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.mp-stab { font-size: 10px; padding: 4px 8px; color: var(--text-4); }
.mp-stab.active { color: #fff; border-bottom: 1.5px solid var(--emerald); }

.mp-status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.04em; }

.mp-bar { height: 4px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.mp-bar i { display: block; height: 100%; }

.mp-section-title { font-family: var(--font-mono); font-size: 9px; color: var(--text-5); letter-spacing: 0.15em; margin-top: 4px; }

.mp-cta {
  width: 100%; padding: 10px; background: var(--bg-2); border: 1px solid var(--emerald-dim);
  border-radius: 10px; color: var(--emerald); font-weight: 600; font-size: 11px;
  font-family: inherit; cursor: pointer;
}
.mp-cta.primary { background: var(--emerald); color: #053024; border-color: var(--emerald); }

/* Mini tabbar */
.mini-tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 44px;
  background: var(--bg-1); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: center;
}
.mini-tab { color: var(--text-5); display: grid; place-items: center; }
.mini-tab.active { color: var(--emerald); }

/* COMPETE — leaderboard rows */
.mp-lb-row { display: flex; align-items: center; gap: 8px; padding: 6px; background: var(--bg-2); border-radius: 8px; }
.mp-lb-row.me { border: 1px solid var(--emerald); background: var(--emerald-dim); }
.mp-lb-row .rk { width: 16px; font-size: 10px; font-weight: 700; font-family: var(--font-mono); }
.mp-lb-row .av { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.mp-lb-row .meta { flex: 1; min-width: 0; }
.mp-lb-row .nm { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-lb-row .sub { font-size: 8px; color: var(--text-4); margin-top: 1px; }
.mp-lb-row .sc { font-size: 12px; font-weight: 700; color: var(--emerald); font-family: var(--font-display); }

/* COMPETE — profile detail */
.mp-profile-hero { text-align: center; }
.mp-profile-hero .av-lg { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto; position: relative; }
.mp-profile-hero .tier-pill { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: #EF4444; font-size: 7px; padding: 2px 6px; border-radius: 999px; font-weight: 700; font-family: var(--font-mono); letter-spacing: 0.08em; border: 1px solid #EF4444; white-space: nowrap; }
.mp-profile-hero .nm-lg { font-size: 13px; font-weight: 700; margin-top: 10px; }
.mp-profile-hero .loc { font-size: 9px; color: var(--text-4); }
.mp-profile-hero .score-big { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--emerald); line-height: 1; margin-top: 6px; }
.mp-profile-hero .score-big span { font-size: 10px; color: var(--text-4); font-weight: 500; margin-left: 4px; }
.mp-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 8px; background: var(--bg-2); border-radius: 10px; }
.mp-stat-cell { text-align: center; }
.mp-stat-cell .v { font-size: 13px; font-weight: 700; color: var(--emerald); font-family: var(--font-display); }
.mp-stat-cell .l { font-size: 8px; color: var(--text-4); margin-top: 1px; }
.mp-vid-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mp-vid { aspect-ratio: 9/16; background: linear-gradient(135deg, #1F2937, #111827); border-radius: 4px; display: grid; place-items: center; color: var(--text-3); position: relative; }
.mp-vid .dot { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; }
.mp-badge-row { display: flex; gap: 6px; }
.mp-badge-pill { width: 32px; height: 32px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 10px; }

/* MAP */
.mp-map { position: relative; height: 160px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); }
.mp-toggle { display: inline-flex; background: var(--bg-2); border-radius: 999px; padding: 2px; font-size: 9px; font-family: var(--font-mono); }
.mp-toggle span { padding: 3px 8px; border-radius: 999px; color: var(--text-4); }
.mp-toggle span.active { background: var(--emerald); color: #053024; font-weight: 600; }
.mp-legend { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px 8px; background: var(--bg-2); border-radius: 8px; }
.mp-park-card { display: flex; gap: 8px; align-items: center; padding: 8px; background: var(--bg-2); border: 1px solid var(--emerald-dim); border-radius: 10px; }
.mp-park-img { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; }
.mp-park-row { display: flex; gap: 8px; padding: 6px; background: var(--bg-2); border-radius: 8px; }
.mp-park-row .thumb { width: 32px; height: 32px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; }
.mp-park-row .meta { flex: 1; min-width: 0; }
.mp-park-row .nm { font-size: 11px; font-weight: 600; }
.mp-park-row .sub { font-size: 8px; color: var(--text-3); font-family: var(--font-mono); }
.mp-park-row .sub2 { font-size: 8px; color: var(--text-4); margin-top: 1px; }

/* WORKOUT */
.mp-timer { text-align: right; }
.mp-timer .t-big { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--emerald); line-height: 1; }
.mp-timer .t-l { font-size: 8px; color: var(--text-4); font-family: var(--font-mono); letter-spacing: 0.12em; margin-top: 2px; }
.mp-current-ex { background: var(--bg-2); border: 1px solid var(--emerald-dim); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mp-current-ex .ex-level { font-size: 8px; padding: 2px 6px; background: var(--emerald-dim); color: var(--emerald); border-radius: 4px; font-family: var(--font-mono); font-weight: 600; }
.mp-set-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.set-cell { background: var(--bg-1); border-radius: 6px; padding: 6px 4px; text-align: center; }
.set-cell .num { font-size: 7px; color: var(--text-5); font-family: var(--font-mono); letter-spacing: 0.1em; }
.set-cell .rep { font-size: 13px; font-weight: 700; line-height: 1.1; margin-top: 1px; color: var(--text-5); }
.set-cell .wt { font-size: 7px; color: var(--text-4); margin-top: 1px; }
.set-cell.done .rep { color: var(--emerald); }
.set-cell.active { background: var(--emerald-dim); border: 1px solid var(--emerald); }
.set-cell.active .rep { color: var(--emerald); }
.mp-up-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px; }
.mp-up-row .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.mp-up-row .nm { flex: 1; font-size: 10px; }
.mp-up-row .s { font-size: 8px; color: var(--text-4); font-family: var(--font-mono); }

/* EXERCISE PICKER */
.mp-cat-row { display: flex; gap: 4px; overflow-x: auto; }
.mp-ex-row { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 8px; background: var(--bg-2); }
.mp-ex-row.sel { background: var(--emerald-dim); border: 1px solid var(--emerald); }
.mp-ex-row .ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; }
.mp-ex-row .meta { flex: 1; min-width: 0; }
.mp-ex-row .nm { font-size: 11px; font-weight: 600; }
.mp-ex-row .sub { font-size: 8px; color: var(--text-4); }
.mp-ex-row .lvl { font-size: 8px; font-family: var(--font-mono); color: var(--text-3); background: var(--bg-1); padding: 2px 5px; border-radius: 4px; }
.mp-ex-row .check { color: var(--emerald); font-weight: 700; font-size: 12px; margin-left: 2px; }

/* GTW */
.mp-form-card { background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.mp-form-label { font-family: var(--font-mono); font-size: 9px; color: var(--text-5); letter-spacing: 0.12em; }
.mp-form-options { display: flex; gap: 4px; flex-wrap: wrap; }
.mp-pill-row { display: flex; gap: 4px; }
.mp-num-pill { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-1); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-4); }
.mp-num-pill.active { background: var(--emerald); border-color: var(--emerald); color: #053024; }
.mp-slider { position: relative; height: 4px; background: var(--bg-3); border-radius: 999px; }
.mp-slider i { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.mp-slider .mp-slider-val { position: absolute; right: 0; top: -16px; font-size: 9px; color: var(--emerald); font-family: var(--font-mono); }
.mp-current-stats { padding: 10px; background: var(--bg-2); border-radius: 10px; border: 1px dashed var(--line-2); }
.mp-mini-stat-row { display: flex; justify-content: space-between; margin-top: 6px; }
.mp-mini-stat-row > div { text-align: center; }
.mp-mini-stat-row .v { font-size: 13px; font-weight: 700; color: var(--emerald); font-family: var(--font-display); display: block; }
.mp-mini-stat-row .l { font-size: 8px; color: var(--text-4); display: block; margin-top: 1px; }

/* GTW WEEK */
.mp-week-progress { display: flex; align-items: center; gap: 4px; padding: 6px 4px; }
.wk-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; opacity: 0.4; }
.wk-step.done { opacity: 1; }
.wk-step .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-3); }
.wk-step.done .dot { background: var(--emerald); }
.wk-step.cur .dot { box-shadow: 0 0 0 3px var(--emerald-dim); }
.wk-step span { font-size: 7px; font-family: var(--font-mono); color: var(--text-4); letter-spacing: 0.08em; }
.mp-week-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--bg-2); border-radius: 8px; }
.mp-week-row.rest { opacity: 0.5; }
.mp-week-row.cur { border: 1px solid var(--emerald); background: var(--emerald-dim); }
.mp-week-row .day { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--text-3); letter-spacing: 0.08em; width: 24px; }
.mp-week-row .meta { flex: 1; min-width: 0; }
.mp-week-row .focus { font-size: 11px; font-weight: 600; }
.mp-week-row .sub { font-size: 8px; color: var(--text-4); }
.mp-week-row .cur-pill { font-size: 8px; padding: 2px 6px; background: var(--emerald); color: #053024; border-radius: 999px; font-weight: 700; font-family: var(--font-mono); }

/* ANALYZE */
.mp-analyze-summary { padding: 10px; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--line-2); }
.mp-insight-card { padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border-left: 2px solid var(--emerald); }
.mp-insight-card.weak { border-left-color: #F59E0B; }
.mp-insight-card.rec { border-left-color: #3B82F6; }
.mp-insight-card .i-tag { font-family: var(--font-mono); font-size: 9px; color: var(--emerald); letter-spacing: 0.12em; }
.mp-insight-card .i-line { font-size: 10px; color: var(--text-3); margin-top: 3px; display: flex; gap: 6px; align-items: center; }
.mp-detail-card { padding: 10px; background: var(--bg-2); border-radius: 10px; border: 1px solid var(--line-2); }
.mp-rec-card { padding: 10px; background: var(--bg-2); border-radius: 10px; }
.mp-rec-row { display: flex; gap: 8px; padding: 4px 0; font-size: 10px; color: var(--text-3); }
.mp-rec-row .d { font-family: var(--font-mono); font-weight: 700; color: var(--emerald); width: 26px; }

/* PROFILE FULL */
.mp-profile-mini { display: flex; align-items: center; gap: 8px; padding: 8px; background: var(--bg-2); border-radius: 10px; }
.mp-profile-mini .av-mid { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; }
.mp-score-pill { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--amber); }
.mp-progress-detail { padding: 6px 8px; background: var(--bg-2); border-radius: 8px; }
.mp-mini-breakdown { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--bg-2); border-radius: 10px; }
.mp-mini-breakdown .bd { display: flex; flex-direction: column; gap: 3px; }
.mp-mini-breakdown .row1 { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.mp-mini-breakdown .row1 .dot { width: 6px; height: 6px; border-radius: 50%; }
.mp-mini-breakdown .row1 .n { flex: 1; }
.mp-mini-breakdown .row1 .v { font-weight: 700; font-family: var(--font-mono); }
.mp-cert-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.cs-cell { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: var(--bg-2); border: 1px solid; border-radius: 8px; }
.cs-cell .cs-l { font-size: 7px; font-family: var(--font-mono); color: var(--text-4); letter-spacing: 0.08em; }
.mp-badge-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; }
.bs-cell { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--bg-2); border: 1px solid; border-radius: 8px; }

/* CERT DETAIL */
.mp-video { position: relative; aspect-ratio: 9/14; background: linear-gradient(135deg, #1F2937, #0d141f); border-radius: 10px; overflow: hidden; }
.mp-video.sm { aspect-ratio: 16/10; }
.mp-video::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.05), transparent 60%); }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; }
.play-overlay svg { background: rgba(0,0,0,0.5); border-radius: 50%; padding: 8px; backdrop-filter: blur(6px); width: 38px; height: 38px; }
.vid-time { position: absolute; bottom: 8px; right: 8px; font-family: var(--font-mono); font-size: 9px; padding: 2px 6px; background: rgba(0,0,0,0.6); border-radius: 4px; }
.vid-tier { position: absolute; top: 8px; left: 8px; display: flex; align-items: center; gap: 4px; font-family: var(--font-mono); font-size: 9px; padding: 3px 6px; background: rgba(0,0,0,0.6); border-radius: 4px; letter-spacing: 0.08em; }
.mp-cert-meta { background: var(--bg-2); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
.cm-row { display: flex; justify-content: space-between; font-size: 10px; }
.cm-row .l { color: var(--text-5); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; }
.cm-row .v { color: var(--text-2); font-weight: 600; }
.mp-tier-callout { padding: 8px 10px; background: var(--bg-2); border-radius: 8px; border-left: 2px solid var(--emerald); }
.mp-tier-callout.green { border-color: var(--emerald); }

/* BADGE VOTING */
.mp-vote-card { padding: 10px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; }
.mp-vote-bar { height: 6px; background: var(--bg-3); border-radius: 999px; overflow: hidden; display: flex; margin-top: 6px; }
.mp-vote-bar .seg { height: 100%; }
.mp-vote-legend { display: flex; justify-content: space-between; font-size: 9px; margin-top: 4px; font-family: var(--font-mono); }
.mp-voters { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.vt { aspect-ratio: 1; border-radius: 50%; position: relative; }
.vt .cv { position: absolute; bottom: -2px; right: -2px; width: 10px; height: 10px; border-radius: 50%; background: #10B981; color: #053024; font-size: 7px; font-weight: 700; display: grid; place-items: center; border: 1.5px solid var(--bg-1); }
.vt .cv.x { background: #EF4444; color: #fff; }
.mp-callout-line { font-family: var(--font-mono); font-size: 9px; color: var(--emerald); text-align: center; letter-spacing: 0.08em; padding: 6px; background: var(--emerald-dim); border-radius: 6px; }

/* BADGE WALL */
.mp-badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bg-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.bg-circle { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-2); border: 1.5px solid; display: grid; place-items: center; }
.bg-n { font-size: 9px; font-weight: 600; margin-top: 4px; text-align: center; }
.bg-s { font-size: 7px; font-family: var(--font-mono); letter-spacing: 0.08em; }
.bg-d { font-size: 7px; color: var(--text-5); font-family: var(--font-mono); }

/* ============================================================
   CERT VS BADGE comparison
   ============================================================ */
.cvb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.cvb-col {
  background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 20px; padding: 36px;
}
.cvb-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.1em; font-weight: 600;
}
.cvb-col h3 {
  font-family: var(--font-display); font-size: 36px; font-weight: 600;
  letter-spacing: -0.025em; margin-top: 20px;
}
.cvb-lead { color: var(--text-3); font-size: 17px; margin-top: 8px; line-height: 1.55; }
.cvb-list { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.cvb-list li { font-size: 15px; color: var(--text-3); display: grid; grid-template-columns: 120px 1fr; gap: 12px; line-height: 1.55; }
.cvb-list .l { font-family: var(--font-mono); font-size: 11px; color: var(--text-5); letter-spacing: 0.12em; padding-top: 3px; }
.cvb-example {
  margin-top: 24px; padding: 16px;
  background: var(--bg-1); border-radius: 12px; border: 1px dashed var(--line-2);
  font-size: 13px; color: var(--text-3); line-height: 1.5;
}
.cvb-example .ex-l { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--text-5); letter-spacing: 0.14em; margin-bottom: 6px; }

@media (max-width: 900px) {
  .cvb-grid { grid-template-columns: 1fr; }
  .cvb-col { padding: 28px; }
}

/* In-phone styles (renders Onbars UI inside) */
.app-screen { width: 100%; height: 100%; padding: 44px 16px 80px; display: flex; flex-direction: column; gap: 12px; color: #fff; font-size: 13px; }
.app-header { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 22px; }
.app-pill { background: var(--bg-2); border-radius: 12px; padding: 12px; display: flex; align-items: center; gap: 10px; }
.app-tabbar {
  position: absolute; bottom: 0; left: 0; right: 0; height: 64px;
  background: var(--bg-1); border-top: 1px solid var(--line);
  display: flex; justify-content: space-around; align-items: center;
}
.app-tab { color: var(--text-4); display: grid; place-items: center; }
.app-tab.active { color: var(--emerald); }
