/* =========================================================
   FUNDNEXUS — Main Stylesheet
   Built to the v1.0 Brand Book
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Brand colors (from Brand Book v1.0) */
  --primary: #165DFF;
  --primary-2: #3B82F6;
  --ink: #0F172A;          /* Dark Navy - primary text */
  --ink-2: #475569;        /* Secondary text */
  --muted: #94A3B8;        /* Muted text */
  --bg: #FFFFFF;           /* Pure white */
  --bg-2: #F8FAFC;         /* Soft gray section bg */
  --bg-dark: #0F172A;      /* Dark sections */
  --bg-darker: #0A0F1E;    /* Darker on dark */
  --border: #E2E8F0;       /* Light border */
  --border-2: #CBD5E1;     /* Stronger border */
  --border-dark: rgba(255, 255, 255, 0.08);

  /* Status colors */
  --success: #16A34A;
  --warning: #F59E0B;
  --error: #DC2626;
  --success-soft: #DCFCE7;
  --warning-soft: #FEF3C7;

  /* Brand gradient */
  --grad-primary: linear-gradient(135deg, #165DFF 0%, #3B82F6 100%);
  --grad-soft: linear-gradient(135deg, rgba(22, 93, 255, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);

  /* Shadows (from Brand Book) */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-primary: 0 8px 24px rgba(22, 93, 255, 0.20);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;

  /* Spacing */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --s-11: 160px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 24px;
  --r-full: 999px;

  /* Easing */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 880px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  font-feature-settings: "cv11", "ss01", "ss03";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--primary); color: var(--bg); }

/* ---------- 3. TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1 { font-size: clamp(40px, 6.5vw, 88px); letter-spacing: -0.035em; font-weight: 800; }
h2 { font-size: clamp(32px, 4.5vw, 64px); letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.015em; font-weight: 700; line-height: 1.2; }
h4 { font-size: 18px; font-weight: 600; }

p { font-size: 16px; color: var(--ink-2); line-height: 1.6; font-weight: 400; }
.lede { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); line-height: 1.55; font-weight: 400; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}
.eyebrow-light { color: rgba(255, 255, 255, 0.7); }

.text-light { color: #FFFFFF; }
.text-muted-light { color: rgba(255, 255, 255, 0.65); }

.hl {
  color: var(--ink);
  font-weight: 600;
  position: relative;
  white-space: nowrap;
}

.italic-soft {
  font-weight: 700;
  background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- 4. LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-narrow { max-width: var(--container-narrow); }

.section-padded { padding: var(--s-10) 0; }
.section-alt { background: var(--bg-2); }

.section-header { max-width: 720px; margin-bottom: var(--s-8); }
.section-header .eyebrow { margin-bottom: var(--s-4); }
.section-header h2 { margin-bottom: var(--s-4); }
.section-header p { font-size: 18px; color: var(--ink-2); }
.section-header-center { margin-left: auto; margin-right: auto; text-align: center; }

@media (max-width: 768px) {
  .section-padded { padding: var(--s-8) 0; }
}

/* ---------- 5. SCROLL PROGRESS ---------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--grad-primary);
  z-index: 200;
  transition: width 0.08s linear;
  box-shadow: 0 0 12px rgba(22, 93, 255, 0.5);
}

/* ---------- 6. NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--s-4) 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark { width: 30px; height: 30px; }
.logo-mark svg { width: 100%; height: 100%; }
.logo-img { height: 36px; width: auto; display: block; }

.nav-actions { display: flex; align-items: center; gap: var(--s-5); }
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.2s var(--ease-out);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.25s var(--ease-out);
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { width: 100%; }

@media (max-width: 720px) {
  .nav-link-desktop { display: none; }
  .nav-actions { gap: var(--s-3); }
}

/* ---------- 7. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 26px; font-size: 15px; }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform 0.2s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(22, 93, 255, 0.10) inset;
}
.btn-primary:hover {
  background: #0a4cd6;
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.6s var(--ease-out);
}
.btn-primary:hover::before { left: 100%; }

.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--border-2);
  background: var(--bg);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.btn-ghost-light {
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
}
.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-on-dark {
  background: #FFFFFF;
  color: var(--ink);
}
.btn-on-dark:hover {
  background: #F1F5F9;
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  padding: 180px 0 var(--s-10);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 35%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 35%, black 30%, transparent 80%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  will-change: transform;
}
.orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(22, 93, 255, 0.45), transparent 70%);
  top: -120px; left: -120px;
}
.orb-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 70%);
  top: 80px; right: -80px;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22, 93, 255, 0.18), transparent 70%);
  bottom: -60px; left: 40%;
}

.hero-container { position: relative; z-index: 1; }
.hero-content { max-width: 920px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 5px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: -0.005em;
  margin-bottom: var(--s-6);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.hero-badge:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  background: rgba(22, 93, 255, 0.10);
  color: var(--primary);
  border-radius: var(--r-full);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero-badge-arrow {
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform 0.2s var(--ease-out);
}
.hero-badge:hover .hero-badge-arrow {
  transform: translateX(3px);
  color: var(--ink);
}
.hero-badge-light {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.hero-badge-light .hero-badge-dot { background: #93C5FD; }

.hero-title { margin-bottom: var(--s-6); }
.hero-title-grad {
  background: linear-gradient(135deg, #165DFF 0%, #3B82F6 60%, #60A5FA 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
}

.hero-lede {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: var(--s-7);
}

.hero-cta {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-meta-names {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero-meta-names .dot { color: var(--border-2); }

/* ---------- 9. STATS BAR ---------- */
.stats {
  padding: var(--s-7) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: var(--s-7);
}
.stat { text-align: center; }
.stat-num {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

@media (max-width: 720px) {
  .stats-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .stat-divider { display: none; }
}

/* ---------- 10. PROBLEM ---------- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--s-6);
}
.problem-card {
  background: var(--bg);
  padding: var(--s-7);
  transition: background 0.3s var(--ease-out);
}
.problem-card:hover { background: var(--bg-2); }
.problem-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.problem-card h3 { margin-bottom: var(--s-3); }
.problem-card p { color: var(--ink-2); }

.problem-result {
  padding: var(--s-7);
  background: var(--ink);
  border-radius: var(--r-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  position: relative;
  overflow: hidden;
}
.problem-result::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 500px 300px at 80% 20%, rgba(22, 93, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.problem-result-half { position: relative; z-index: 1; }
.problem-result-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: var(--s-3);
}
.problem-result-text {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

@media (max-width: 720px) {
  .problem-grid { grid-template-columns: 1fr; }
  .problem-result { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-6); }
}

/* ---------- 11. WHAT WE'RE BUILDING ---------- */
.building-list { display: flex; flex-direction: column; }
.building-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--border);
  align-items: baseline;
  transition: padding-left 0.3s var(--ease-out);
}
.building-item:last-child { border-bottom: 1px solid var(--border); }
.building-item:hover { padding-left: var(--s-3); }
.building-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.building-text {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 600px) {
  .building-item { grid-template-columns: 40px 1fr; gap: var(--s-3); padding: var(--s-5) 0; }
}

/* ---------- 12. VISION + MISSION ---------- */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
}
.vm-card {
  padding: var(--s-7);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.vm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.vm-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 93, 255, 0.20);
}
.vm-card:hover::before { opacity: 1; }
.vm-card > * { position: relative; z-index: 1; }

.vm-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-5);
}
.vm-quote {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: var(--s-4);
}
.vm-card > p:last-child { color: var(--ink-2); font-size: 16px; }

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

/* ---------- 13. PRINCIPLES (dark section) ---------- */
.principles {
  background: var(--bg-dark);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.principles::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 500px at 10% 0%, rgba(22, 93, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 700px 500px at 90% 100%, rgba(59, 130, 246, 0.15), transparent 60%);
  pointer-events: none;
}
.principles > .container { position: relative; z-index: 1; }
.principles .eyebrow { color: #93C5FD; }
.principles h2 { color: #FFFFFF; }
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.principle {
  background: var(--bg-dark);
  padding: var(--s-7);
  transition: background 0.3s var(--ease-out);
  position: relative;
}
.principle:hover { background: rgba(22, 93, 255, 0.06); }
.principle-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(22, 93, 255, 0.12);
  border: 1px solid rgba(22, 93, 255, 0.20);
  color: #93C5FD;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.principle:hover .principle-icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(22, 93, 255, 0.20);
}
.principle-icon svg { width: 22px; height: 22px; }
.principle-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #93C5FD;
  margin-bottom: var(--s-3);
}
.principle h3 {
  color: #FFFFFF;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: var(--s-3);
}
.principle p { color: rgba(255, 255, 255, 0.65); font-size: 15px; }

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

/* ---------- 14. PRODUCT PREVIEW (mock dashboard) ---------- */
.product-frame {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform-style: preserve-3d;
}
.product-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(22, 93, 255, 0.4), transparent 50%);
  border-radius: var(--r-2xl);
  z-index: -1;
  opacity: 0.6;
}
.product-frame-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px var(--s-5);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.frame-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.frame-dot:nth-child(1) { background: #FCA5A5; }
.frame-dot:nth-child(2) { background: #FCD34D; }
.frame-dot:nth-child(3) { background: #86EFAC; }
.frame-url {
  margin-left: var(--s-4);
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.product-frame-body {
  display: flex;
  flex-direction: column;
  min-height: 580px;
  background: var(--bg-2);
}

/* ---------- APP NAV (top bar inside product preview) ---------- */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--s-5);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  gap: var(--s-4);
}
.app-nav-left {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex: 1;
  min-width: 0;
}
.app-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.app-logo svg { width: 100%; height: 100%; display: block; }
.app-search {
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 12px;
}
.app-search svg { width: 14px; height: 14px; color: var(--muted); }
.app-nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
}
.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 11px 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  border-radius: 6px;
  position: relative;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}
.app-nav-item svg { width: 18px; height: 18px; }
.app-nav-item.active { color: var(--primary); }
.app-nav-item.active::after {
  content: "";
  position: absolute;
  bottom: -11px;
  left: 0; right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px 2px 0 0;
}
.app-nav-item:hover { color: var(--ink-2); }
.app-nav-badge {
  position: absolute;
  top: 0;
  right: 2px;
  background: var(--error);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: var(--r-full);
  line-height: 1.3;
  font-family: var(--font-mono);
}
.app-nav-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  margin-left: 8px;
  flex-shrink: 0;
}

/* ---------- APP BODY (3-column grid) ---------- */
.app-body {
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  gap: var(--s-4);
  padding: var(--s-4);
  flex: 1;
}

/* ---------- LEFT: STARTUP PROFILE PANEL ---------- */
.app-left { display: flex; flex-direction: column; gap: var(--s-3); }
.profile-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.profile-cover {
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  position: relative;
}
.profile-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 12px 12px;
}
.profile-content {
  padding: 0 var(--s-4) var(--s-4);
  margin-top: -22px;
  text-align: center;
  position: relative;
}
.profile-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #165DFF, #3B82F6);
  border: 3px solid var(--bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  margin: 0 auto 10px;
  box-shadow: var(--shadow-sm);
}
.profile-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 4px;
}
.profile-name svg { width: 14px; height: 14px; color: var(--primary); }
.profile-sub {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.profile-tagline {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}
.profile-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px var(--s-4);
  background: var(--success-soft);
  border-top: 1px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  font-family: var(--font-mono);
}
.profile-status svg { width: 12px; height: 12px; }

.profile-stats {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 4px var(--s-4);
}
.profile-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
}
.profile-stat + .profile-stat { border-top: 1px solid var(--border); }
.profile-stat-label { font-size: 11px; color: var(--muted); }
.profile-stat-value {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.profile-links {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.profile-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: background 0.15s var(--ease-out), color 0.15s var(--ease-out);
}
.profile-link svg { width: 14px; height: 14px; color: var(--muted); }
.profile-link:hover { background: var(--bg-2); color: var(--ink); }
.profile-link:hover svg { color: var(--primary); }

/* ---------- CENTER: FEED ---------- */
.app-center { display: flex; flex-direction: column; gap: var(--s-3); }

.composer-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.composer-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-3);
}
.composer-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #165DFF, #3B82F6);
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.composer-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--muted);
  transition: border-color 0.2s var(--ease-out);
}
.composer-input:hover { border-color: var(--primary); }
.composer-types {
  display: flex;
  gap: 2px;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.composer-type {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border-radius: 6px;
  transition: all 0.15s var(--ease-out);
}
.composer-type:hover {
  background: rgba(22, 93, 255, 0.06);
  color: var(--primary);
}
.composer-type svg { width: 13px; height: 13px; }

/* ---------- POST CARDS ---------- */
.post-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease-out);
}
.post-card:hover { border-color: var(--border-2); }

.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--s-3) var(--s-4);
}
.post-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.post-logo.logo-2 { background: linear-gradient(135deg, var(--ink), var(--ink-2)); }
.post-logo.logo-3 { background: linear-gradient(135deg, #16A34A, #4ADE80); }
.post-meta { flex: 1; min-width: 0; }
.post-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
}
.post-name svg { width: 12px; height: 12px; color: var(--primary); flex-shrink: 0; }
.post-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.post-body { padding: 0 var(--s-4) var(--s-3); }
.post-body p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 10px;
}
.post-body p:last-child { margin-bottom: 0; }

.traction-box {
  padding: 12px var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  border-left: 3px solid var(--primary);
}
.traction-label {
  font-size: 10px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.traction-numbers {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
}
.traction-numbers .t-prev {
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: var(--border-2);
}
.traction-numbers .t-curr {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.traction-numbers .t-delta {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  padding: 3px 7px;
  border-radius: var(--r-sm);
  margin-left: auto;
  letter-spacing: 0.02em;
}
.traction-numbers svg { width: 12px; height: 12px; color: var(--muted); }

.post-footer {
  padding: 10px var(--s-4);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.vis-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.vis-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.vis-badge .dot-green {
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.vis-badge .dot-amber {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.vis-investor { color: var(--success); }
.vis-founder { color: var(--warning); }

/* ---------- RIGHT: RULES & GUIDANCE ---------- */
.app-right { display: flex; flex-direction: column; gap: var(--s-3); }
.rules-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-4);
}
.rules-card-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rules-list li {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.45;
  padding-left: 14px;
  position: relative;
}
.rules-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
}
.verification-progress {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 10px;
}
.vp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.vp-row svg {
  width: 14px;
  height: 14px;
  color: var(--success);
  flex-shrink: 0;
}
.vp-status {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  font-family: var(--font-mono);
  padding-top: 10px;
  border-top: 1px solid var(--border);
  letter-spacing: 0.02em;
}

/* ---------- BADGES (reused in post cards) ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.badge svg { width: 11px; height: 11px; }
.badge-verified {
  background: var(--success-soft);
  color: var(--success);
}
.badge-pending {
  background: var(--warning-soft);
  color: var(--warning);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .app-body { grid-template-columns: 1fr; }
  .app-left, .app-right { display: none; }
  .app-nav-item span:not(.app-nav-badge) { display: none; }
  .app-nav-item { padding: 6px 8px; }
  .app-nav-item.active::after { display: none; }
}
@media (max-width: 600px) {
  .app-nav-left { gap: 10px; }
  .app-search { font-size: 11px; padding: 6px 10px; }
  .app-nav-right .app-nav-item { display: none; }
  .app-nav-right .app-nav-avatar { display: block; }
  .composer-types { flex-wrap: wrap; }
}

/* ---------- 15. WHO ---------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.who-card {
  padding: var(--s-7);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.who-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 93, 255, 0.25);
}
.who-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: rgba(22, 93, 255, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-5);
  transition: transform 0.3s var(--ease-out);
}
.who-icon svg { width: 22px; height: 22px; }
.who-card:hover .who-icon { transform: scale(1.08) rotate(-4deg); }
.who-card h3 { margin-bottom: var(--s-3); }
.who-card p { color: var(--ink-2); }

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

/* ---------- 16. FINAL CTA ---------- */
.final {
  position: relative;
  overflow: hidden;
  padding: var(--s-11) 0;
  background: var(--bg-dark);
  color: #FFFFFF;
}
.final-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.final-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 50% 50%, black 20%, transparent 70%);
}
.orb-final-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(22, 93, 255, 0.45), transparent 70%);
  top: -200px; left: -100px;
}
.orb-final-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.30), transparent 70%);
  bottom: -150px; right: -50px;
}
.final-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.final-content .hero-badge { margin-bottom: var(--s-6); }
.final-content h2 { margin-bottom: var(--s-5); }
.final-content > p { color: rgba(255, 255, 255, 0.65); font-size: 18px; margin-bottom: var(--s-7); }
.final-cta {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- 17. FOOTER ---------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: var(--s-8) 0 var(--s-5);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: var(--s-7);
  margin-bottom: var(--s-7);
}
.footer-brand .logo { margin-bottom: var(--s-4); }
.footer-tag {
  font-size: 14px;
  color: var(--ink-2);
  max-width: 300px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.footer-col { display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-2);
}
.footer-col a {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 0.2s var(--ease-out);
}
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
  .footer-bottom { flex-direction: column; gap: var(--s-2); }
}


/* ============================================================
   WAITLIST MODAL
============================================================ */
.wl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.wl-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.wl-modal[aria-hidden="false"] { pointer-events: auto; }

.wl-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.wl-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-7);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.4s var(--ease-out);
}
.wl-modal.open .wl-card { transform: translateY(0) scale(1); }

.wl-close, .wl-back {
  position: absolute;
  top: 18px;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s var(--ease-out);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}
.wl-close {
  right: 18px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wl-close svg { width: 16px; height: 16px; }
.wl-close:hover { background: var(--bg-2); color: var(--ink); }

.wl-back {
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
}
.wl-back svg { width: 14px; height: 14px; }
.wl-back:hover { color: var(--primary); }

/* Steps (one visible at a time) */
.wl-step { display: none; }
.wl-modal[data-step="role"] .wl-step[data-step="role"],
.wl-modal[data-step="startup"] .wl-step[data-step="startup"],
.wl-modal[data-step="investor"] .wl-step[data-step="investor"],
.wl-modal[data-step="success"] .wl-step[data-step="success"] {
  display: block;
  animation: wl-step-in 0.35s var(--ease-out);
}
@keyframes wl-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wl-head { text-align: center; margin-bottom: var(--s-6); margin-top: var(--s-5); }
.wl-step[data-step="role"] .wl-head { margin-top: var(--s-3); }
.wl-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}
.wl-title {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: var(--s-3);
}
.wl-sub { font-size: 15px; color: var(--ink-2); line-height: 1.5; max-width: 440px; margin: 0 auto; }

/* Role picker */
.wl-roles { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.wl-role {
  text-align: left;
  padding: var(--s-5);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wl-role:hover {
  border-color: var(--primary);
  background: rgba(22, 93, 255, 0.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.wl-role-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-md);
  background: rgba(22, 93, 255, 0.10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wl-role-icon svg { width: 20px; height: 20px; }
.wl-role h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.wl-role p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  flex: 1;
}
.wl-role-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-top: 4px;
}
.wl-role-cta svg { width: 14px; height: 14px; transition: transform 0.2s var(--ease-out); }
.wl-role:hover .wl-role-cta svg { transform: translateX(3px); }

/* Form */
.wl-form { display: flex; flex-direction: column; gap: var(--s-4); }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.wl-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.wl-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wl-req { color: var(--error); font-weight: 700; }
.wl-opt {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.wl-field input,
.wl-field select,
.wl-field textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r-md);
  transition: all 0.2s var(--ease-out);
  outline: none;
}
.wl-field textarea { resize: vertical; min-height: 80px; }
.wl-field input:focus,
.wl-field select:focus,
.wl-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 93, 255, 0.12);
}
.wl-field input::placeholder,
.wl-field textarea::placeholder { color: var(--muted); }
.wl-field input.error,
.wl-field select.error,
.wl-field textarea.error { border-color: var(--error); }
.wl-counter {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  pointer-events: none;
}

.wl-submit {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s var(--ease-out);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s-2);
}
.wl-submit:hover { background: #0a4cd6; box-shadow: var(--shadow-primary); }
.wl-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.wl-submit.loading .wl-submit-text { opacity: 0; }
.wl-submit.loading .wl-spinner { opacity: 1; }
.wl-spinner {
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  opacity: 0;
  animation: wl-spin 0.7s linear infinite;
}
@keyframes wl-spin { to { transform: rotate(360deg); } }

.wl-submit-secondary {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--border-2);
}
.wl-submit-secondary:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }

.wl-error {
  font-size: 13px;
  color: var(--error);
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  display: none;
}
.wl-error.show { display: block; }

/* Success */
.wl-success { text-align: center; padding: var(--s-3) 0; }
.wl-success-icon {
  display: inline-flex;
  color: var(--success);
  margin-bottom: var(--s-5);
}
.wl-success-icon svg { width: 56px; height: 56px; }
.wl-success .wl-title { margin-bottom: var(--s-3); }
.wl-success .wl-sub { margin-bottom: var(--s-6); }

/* Mobile */
@media (max-width: 560px) {
  .wl-modal { padding: 0; align-items: flex-end; }
  .wl-card {
    max-height: 95vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: var(--s-5);
  }
  .wl-roles { grid-template-columns: 1fr; }
  .wl-row { grid-template-columns: 1fr; }
}

/* Body scroll lock */
body.wl-locked { overflow: hidden; }

/* ============================================================
   MOBILE FIXES
============================================================ */
@media (max-width: 640px) {
  .container { padding: 0 18px; }

  /* NAV — shrink logo + button so they fit comfortably */
  .nav { padding: 10px 0; }
  .nav-inner { gap: 12px; }
  .logo-img { height: 26px; }
  .nav .btn-primary {
    padding: 8px 14px;
    font-size: 13px;
    gap: 6px;
  }
  .nav .btn-primary .arrow { width: 13px; height: 13px; }

  /* HERO — smaller headline so it doesn't wrap 4 lines */
  .hero { padding: 110px 0 var(--s-7); }
  .hero h1 {
    font-size: clamp(30px, 8.5vw, 52px);
    letter-spacing: -0.025em;
    line-height: 1.05;
  }
  .hero-badge {
    font-size: 11px;
    padding: 6px 11px 6px 10px;
    margin-bottom: var(--s-4);
  }
  .hero-lede {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: var(--s-5);
  }
  .hero-meta {
    margin-top: var(--s-6);
    padding-top: var(--s-4);
    gap: var(--s-3);
  }
  .hero-meta-label { font-size: 10px; }
  .hero-meta-names {
    gap: var(--s-2);
    font-size: 13px;
    flex-wrap: wrap;
  }

  /* Other section headings — keep proportional */
  h2 { font-size: clamp(26px, 7vw, 48px); line-height: 1.1; }
}

/* Tiny phones (under 380px) */
@media (max-width: 380px) {
  .logo-img { height: 20px; }
  .nav .btn-primary { font-size: 12px; padding: 7px 11px; }
  .nav .btn-primary .arrow { display: none; }
  .hero h1 { font-size: clamp(26px, 9vw, 44px); }
}

@media (max-width: 640px) {
  /* Stats — horizontal row, compact */
  .stats { padding: var(--s-5) 0; }
  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--s-3);
  }
  .stat-divider { display: none; }
  .stat-num {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .stat-label {
    font-size: 9px;
    letter-spacing: 0.05em;
    line-height: 1.3;
  }
}