/* ============================================================
   STREaMLiNE — brand tokens & custom styles
   Tailwind CDN handles utilities; this file handles everything
   Tailwind can't: pseudoelements, animations, CSS art, JIT gaps
   ============================================================ */

:root {
  --bg-deep: #060a14;
  --bg-surface: #0d1526;
  --border: #1e2d4a;
  --cyan: #06B6D4;
  --cyan-dim: rgba(6, 182, 212, 0.15);
  --amber: #F59E0B;
  --text-muted: #94a3b8;
  --font-sans: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* ── Type scale (anchored: H1 = hook-line "Still Running on Manual?") ── */
  --type-h1:    clamp(3rem, 8vw, 4.5rem);       /* 51–76.5px  — hero hook-line   */
  --type-h2:    clamp(2.5rem, 5vw, 3.5rem);     /* 42.5–59.5px — primary sections */
  --type-h3:    clamp(2rem, 4vw, 2.75rem);      /* 34–46.75px  — subsections      */
  --type-h4:    1.5rem;                          /* 25.5px      — card headings    */
  --type-sub:   1.25rem;                         /* 21.25px     — hero subheading  */
  --type-body:  18px;                            /* 18px        — body copy        */
  --type-label: 0.875rem;                        /* 14.9px      — eyebrow labels   */
  --type-nav:   1.5rem;                          /* 25.5px      — nav/footer brand */
}

/* ── Type utilities ── */
.type-h1    { font-size: var(--type-h1); }
.type-h2    { font-size: var(--type-h2); }
.type-h3    { font-size: var(--type-h3); }
.type-h4    { font-size: var(--type-h4); }
.type-sub   { font-size: var(--type-sub); }
.type-body  { font-size: var(--type-body); }
.type-label { font-size: var(--type-label); }
.type-nav   { font-size: var(--type-nav); }

/* ── Global ── */
html {
  font-size: 17px;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(6, 182, 212, 0.3);
  color: #fff;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2d4070; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* ── Nav ── */
#nav {
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

#nav.scrolled {
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

/* ── Hero ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(6, 10, 20, 0.60), rgba(6, 10, 20, 0.75)),
    url('Brand_Assets/hero-background-v1.webp') center / cover no-repeat;
  z-index: 0;
}

.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(30, 45, 74, 0.9) 1px, transparent 1px);
  background-size: 32px 32px;
  z-index: 1;
  mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, black 20%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-content > * {
  animation: fadeUp 0.8s ease both;
}

.hero-content > *:nth-child(1) { animation-delay: 0.08s; }
.hero-content > *:nth-child(2) { animation-delay: 0.22s; }
.hero-content > *:nth-child(3) { animation-delay: 0.38s; }
.hero-content > *:nth-child(4) { animation-delay: 0.56s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-dashboard {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease 0.62s both;
}

.hero-dashboard-card {
  background: rgba(13, 21, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.hero-glow {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 90px;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.12) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
  z-index: 0;
}

.stat-bar-inner {
  height: 100%;
  border-radius: 9999px;
  transition: width 1.5s ease;
}

.terminal-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #475569;
}

.terminal-line.done { color: #64748b; }

/* Scroll caret */
.scroll-caret {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: fadeUp 1s ease 1.8s both;
  opacity: 0.4;
}

.scroll-caret-inner {
  width: 24px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%       { transform: translateY(8px); opacity: 0.2; }
}

/* ── Pain section ── */
.pain-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.06);
}

/* ── Why STREaMLiNE — CSS tech visual ── */
.why-visual-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  height: 100%;
  min-height: 300px;
}

.why-visual-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  box-shadow: inset 0 0 90px 55px #060a14;
  pointer-events: none;
}

.why-visual {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #0d1e38 0%, #060a14 55%, #071220 100%);
  position: relative;
  overflow: hidden;
}

/* Grid overlay */
.why-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.25;
  mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 40%, transparent 85%);
}

/* Cyan glow blob */
.why-visual::after {
  content: '';
  position: absolute;
  top: -30%;
  left: 10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(6, 182, 212, 0.1) 0%, transparent 65%);
  border-radius: 50%;
  filter: blur(8px);
}

.why-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.18) 0%, transparent 70%);
  box-shadow: 0 0 60px rgba(6, 182, 212, 0.12);
  animation: pulse-orb 4s ease-in-out infinite;
}

@keyframes pulse-orb {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -60%) scale(1); }
  50%       { opacity: 1;   transform: translate(-50%, -60%) scale(1.12); }
}

.why-stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 10, 20, 0.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.why-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── What section — connector ── */
.connector-line {
  display: none;
}

@media (min-width: 768px) {
  .connector-line {
    display: block;
    position: absolute;
    top: 56px;
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(6,182,212,0.25), transparent);
    z-index: 0;
  }
}

.process-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #0d1526;
  border: 1px solid rgba(6, 182, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.process-card:hover .process-icon-ring {
  background: #141f35;
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 24px rgba(6, 182, 212, 0.1);
}

/* ── Industry cards ── */
.industry-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 182, 212, 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.industry-thumb {
  height: 192px;
  position: relative;
  overflow: hidden;
}

.industry-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 10, 20, 0.95) 0%, rgba(6, 10, 20, 0.4) 60%, transparent 100%);
}

/* Industry-specific gradient backgrounds */
.ind-engineering {
  background: linear-gradient(135deg, #0f1f3d 0%, #0a1428 60%, #051020 100%);
}

.ind-engineering::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 12px,
      rgba(6,182,212,0.04) 12px,
      rgba(6,182,212,0.04) 13px
    );
}

.ind-finance {
  background: linear-gradient(135deg, #061e28 0%, #041418 60%, #020e10 100%);
}

.ind-finance::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 30%, rgba(6,182,212,0.08) 0%, transparent 50%);
}

.ind-healthcare {
  background: linear-gradient(135deg, #061828 0%, #041020 60%, #020a14 100%);
}

.ind-healthcare::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 30% 60%, rgba(6,182,212,0.07) 0%, transparent 50%);
}

.ind-legal {
  background: linear-gradient(135deg, #14101e 0%, #0e0c18 60%, #080810 100%);
}

.ind-legal::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 60% 40%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

.ind-startups {
  background: linear-gradient(135deg, #061428 0%, #040e1e 60%, #020812 100%);
}

.ind-startups::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(6,182,212,0.07) 0%, transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(6,182,212,0.05) 0%, transparent 40%);
}

.ind-education {
  background: linear-gradient(135deg, #061a14 0%, #041210 60%, #020a08 100%);
}

.ind-education::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 30%, rgba(16,185,129,0.07) 0%, transparent 50%);
}

/* ── Form ── */
input, textarea {
  font-family: var(--font-sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Shimmer on hero stat cards ── */
.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.025), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%   { left: -120%; }
  100% { left: 200%; }
}

/* ── Mobile responsiveness ── */
@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .hero-content {
    width: 100%;
    padding: 0 1rem;
  }

  /* Stat cards: stack to single column on very small screens */
  .hero-dashboard-card .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hero-dashboard-card .stat-card {
    padding: 0.625rem;
  }

  .hero-dashboard-card .stat-card .text-2xl {
    font-size: 1.1rem;
  }

  /* Terminal lines: prevent horizontal overflow */
  .terminal-line {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Why stat bar: wrap stats on mobile */
  .why-stat-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-around;
  }

  .why-stat-divider {
    display: none;
  }

  /* Industries grid: full-width cards on mobile */
  .industry-thumb {
    height: 140px;
  }
}

/* iOS Safari viewport fix — use small viewport height */
@supports (min-height: 100svh) {
  #hero {
    min-height: 100svh;
  }
}

/* ══ Hero real-proof inbox (Option 2 — elevated) ══ */
.hero-proof { position: relative; max-width: 60rem; margin: 0 auto; animation: fadeUp 0.8s ease 0.62s both; }
.proof-stage { display: flex; gap: 1rem; align-items: stretch; justify-content: center; }
/* On index the hero-proof lives inside the 56rem hero-content; break it out to the
   full 60rem stage width (matching work.html) so the XPM host fits one line.
   Uses `translate` (independent of the `transform`-based fadeUp/float animations). */
@media (min-width: 861px) {
  #hero .hero-proof { width: min(60rem, calc(100vw - 3rem)); max-width: none; margin-left: 50%; translate: -50%; }
}

.proof-scrim {
  position: absolute; inset: -8% -12% -16% -12%; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 55%, rgba(3,7,15,0.94) 0%, rgba(3,7,15,0.72) 45%, transparent 75%);
  filter: blur(6px);
}
.proof-glow {
  position: absolute; left: 50%; top: 48%; width: 80%; height: 72%;
  transform: translate(-50%,-50%); z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse, rgba(6,182,212,0.30) 0%, rgba(6,182,212,0.08) 40%, transparent 70%);
  filter: blur(42px); animation: proofGlow 6s ease-in-out infinite;
}
@keyframes proofGlow { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }

.proof-badge {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.1rem; padding: 0.5rem 1rem; border-radius: 9999px;
  border: 1px solid rgba(6,182,212,0.6); background: linear-gradient(180deg,#0e6276 0%,#0b4d5e 100%);
  color: #fff; font-family: var(--font-mono); font-size: 0.85rem;
  box-shadow: 0 6px 20px -6px rgba(6,182,212,0.45); transition: background 0.2s ease, box-shadow 0.2s ease;
}
.proof-badge:hover { box-shadow: 0 8px 28px -6px rgba(6,182,212,0.6); }
.proof-badge-sub { color: rgba(255,255,255,0.72); transition: color 0.2s ease, transform 0.2s ease; }

.proof-card {
  position: relative; z-index: 1; flex: 1 1 56%; min-width: 0; text-align: left; border-radius: 18px; padding: 1.35rem 1.35rem 3.6rem;
  background: linear-gradient(180deg, rgba(16,26,46,0.96) 0%, rgba(9,15,28,0.97) 100%);
  border: 1px solid rgba(6,182,212,0.22);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 80px -24px rgba(6,182,212,0.28), 0 24px 60px -20px rgba(0,0,0,0.7);
  backdrop-filter: blur(10px); animation: float 6s ease-in-out infinite;
}
.proof-chrome { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; }
.proof-dot { width: 11px; height: 11px; border-radius: 50%; opacity: 0.7; }
.proof-host { margin-left: 0.6rem; font-family: var(--font-mono); font-size: 0.8rem; color: #64748b; }
.proof-live { margin-left: auto; display: flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; color: var(--cyan); }
.proof-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); animation: livePulse 1.8s ease-out infinite; }
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(6,182,212,0.55); }
  70% { box-shadow: 0 0 0 7px rgba(6,182,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(6,182,212,0); }
}

.proof-chips { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.6rem; margin-bottom: 1.1rem; }
.proof-chip { padding: 0.85rem 0.9rem; border-radius: 12px; background: rgba(6,10,20,0.6); border: 1px solid var(--border); }
.proof-chip--accent { background: linear-gradient(180deg, rgba(6,182,212,0.12), rgba(6,182,212,0.04)); border-color: rgba(6,182,212,0.35); }
.proof-chip-num { font-size: 1.9rem; font-weight: 800; line-height: 1; color: #fff; margin-bottom: 0.3rem; }
.proof-chip--accent .proof-chip-num { color: var(--cyan); }
.proof-chip-num--sm { font-size: 1.35rem; }
.proof-chip-label { font-size: 0.8rem; color: #64748b; }
.proof-chip-num.bump { animation: numBump 0.5s ease; }
@keyframes numBump { 0% { transform: scale(1); } 35% { transform: scale(1.25); color: var(--cyan); } 100% { transform: scale(1); } }

.proof-leads { display: flex; flex-direction: column; gap: 0.55rem; }
.proof-lead {
  position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem;
  border-radius: 12px; background: rgba(6,10,20,0.5); border: 1px solid var(--border);
  transition: background 0.45s ease, border-color 0.45s ease, box-shadow 0.45s ease;
}
.proof-lead--hot, .proof-lead.is-hot {
  background: linear-gradient(90deg, rgba(6,182,212,0.10), rgba(6,182,212,0.02));
  border-color: rgba(6,182,212,0.4); box-shadow: 0 0 24px -6px rgba(6,182,212,0.35);
}
.proof-lead--hot::before, .proof-lead.is-hot::before {
  content: ""; position: absolute; left: 0; top: 14%; bottom: 14%; width: 3px; border-radius: 3px;
  background: var(--cyan); box-shadow: 0 0 10px rgba(6,182,212,0.8);
}
.proof-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; color: #cbd5e1; background: rgba(30,45,74,0.55); border: 1px solid var(--border);
}
.proof-lead--hot .proof-avatar, .proof-lead.is-hot .proof-avatar { border-color: rgba(6,182,212,0.5); color: #fff; }
.proof-lead-main { min-width: 0; flex: 1; }
.proof-lead-name { font-size: 0.92rem; font-weight: 600; color: #e2e8f0; }
.proof-lead-meta { font-size: 0.76rem; color: #64748b; }
.proof-lead-status { flex-shrink: 0; }
.proof-lead-status--col { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.proof-tag { padding: 0.12rem 0.5rem; border-radius: 5px; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.06em; }
.proof-tag--hot { background: rgba(6,182,212,0.18); color: var(--cyan); border: 1px solid rgba(6,182,212,0.4); }
.proof-tag--warm { background: rgba(100,116,139,0.16); color: #cbd5e1; border: 1px solid rgba(100,116,139,0.32); }
.proof-stamp { font-family: var(--font-mono); font-size: 0.64rem; color: #64748b; }

.status-qualifying { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-mono); font-size: 0.7rem; color: #94a3b8; }
.status-hot { display: none; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
#lead-priya.is-hot .status-qualifying { display: none; }
#lead-priya.is-hot .status-hot { display: flex; }
#lead-priya.is-hot .proof-tag--hot { animation: tagPop 0.45s ease; }
@keyframes tagPop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }

.proof-toast {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.75rem; border-radius: 9px; background: linear-gradient(180deg,#0e6276,#0b4d5e);
  border: 1px solid rgba(6,182,212,0.5); color: #fff; font-family: var(--font-mono); font-size: 0.72rem;
  box-shadow: 0 10px 30px -8px rgba(6,182,212,0.55); opacity: 0; transform: translateY(8px) scale(0.96);
  pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.proof-toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ── EC3 approved state (drives XPM client creation) ── */
.status-approved { display: none; flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.proof-tag--approved { background: rgba(34,197,94,0.16); color: #4ade80; border: 1px solid rgba(34,197,94,0.4); }
#lead-priya.is-approved .status-qualifying,
#lead-priya.is-approved .status-hot { display: none; }
#lead-priya.is-approved .status-approved { display: flex; }
#lead-priya.is-approved .proof-tag--approved { animation: tagPop 0.45s ease; }

/* ── Xero Practice Manager dashboard (right of inbox) ── */
.xpm-card {
  position: relative; z-index: 1; flex: 1 1 44%; min-width: 0; text-align: left; display: flex; flex-direction: column;
  border-radius: 18px; padding: 1.35rem 1.35rem 3.6rem;
  background: linear-gradient(180deg, rgba(16,26,46,0.96) 0%, rgba(9,15,28,0.97) 100%);
  border: 1px solid rgba(6,182,212,0.22);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 80px -24px rgba(6,182,212,0.28), 0 24px 60px -20px rgba(0,0,0,0.7);
  backdrop-filter: blur(10px); animation: float 6s ease-in-out infinite;
}
.xpm-sub { font-family: var(--font-mono); font-size: 0.72rem; color: #64748b; margin-bottom: 0.9rem; }
.xpm-clients { display: flex; flex-direction: column; gap: 0.55rem; }
.xpm-client {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.8rem;
  border-radius: 12px; background: rgba(6,10,20,0.5); border: 1px solid var(--border);
}
.xpm-client-main { min-width: 0; flex: 1; }
.xpm-client-name { font-size: 0.92rem; font-weight: 600; color: #e2e8f0; }
.xpm-client-meta { font-size: 0.76rem; color: #64748b; }
.xpm-badge {
  flex-shrink: 0; padding: 0.12rem 0.5rem; border-radius: 5px; font-family: var(--font-mono);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.05em;
  background: rgba(100,116,139,0.16); color: #cbd5e1; border: 1px solid rgba(100,116,139,0.32);
}
/* new client card: collapsed until the lead is approved */
.xpm-client--new {
  max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; border-color: transparent; transform: translateY(-6px);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(6,182,212,0.12), rgba(6,182,212,0.03));
  transition: max-height 0.5s ease, opacity 0.4s ease, padding 0.5s ease, transform 0.4s ease, border-color 0.4s ease;
}
.xpm-card.is-created .xpm-client--new {
  max-height: 68px; opacity: 1; padding-top: 0.7rem; padding-bottom: 0.7rem; transform: translateY(0);
  border-color: rgba(6,182,212,0.4);
}
.xpm-client--new .xpm-badge { background: rgba(6,182,212,0.18); color: var(--cyan); border-color: rgba(6,182,212,0.4); }
.xpm-toast {
  position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.75rem; border-radius: 9px; background: linear-gradient(180deg,#0e6276,#0b4d5e);
  border: 1px solid rgba(6,182,212,0.5); color: #fff; font-family: var(--font-mono); font-size: 0.72rem;
  box-shadow: 0 10px 30px -8px rgba(6,182,212,0.55); opacity: 0; transform: translateY(8px) scale(0.96);
  pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease;
}
.xpm-toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* Two-dashboard stage collapses to inbox-only on smaller screens */
@media (max-width: 860px) {
  .hero-proof { max-width: 42rem; }
  .proof-stage { flex-direction: column; }
  .xpm-card { display: none; }
  .proof-card { flex-basis: auto; }
}

@media (max-width: 480px) {
  .proof-chip-num { font-size: 1.5rem; }
  .proof-chip-num--sm { font-size: 1.1rem; }
  .proof-toast { right: 0.6rem; bottom: 0.6rem; font-size: 0.66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-card, .xpm-card, .proof-glow, .proof-live-dot { animation: none; }
  .proof-toast, .xpm-toast, .xpm-client--new { transition: none; }
}
