/* ============================================================
   AI Service Delivery Orchestrator — Design System
   Accent: Rose #e11d48
   ============================================================ */

/* ── Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg-base:        #0a0c12;
  --bg-card:        #111420;
  --bg-card-hover:  #161a28;
  --bg-input:       #0d1018;
  --border:         rgba(255,255,255,0.07);
  --border-focus:   rgba(225,29,72,0.5);
  --border-md:      rgba(255,255,255,0.14);

  --text-primary:   #f0f2f8;
  --text-secondary: #8b90a7;
  --text-muted:     #555a70;

  --accent:         #e11d48;
  --accent-hover:   #be123c;
  --accent-glow:    rgba(225,29,72,0.15);
  --accent-b:       rgba(225,29,72,0.28);
  --accent-bg:      rgba(225,29,72,0.08);

  /* Stage colors */
  --stage-submitted:  #555a70;
  --stage-analyzed:   #3b82f6;
  --stage-scoped:     #10b981;
  --stage-info:       #f59e0b;
  --stage-review:     #8b5cf6;
  --stage-approved:   #10b981;
  --stage-planning:   #3b82f6;
  --stage-kickoff:    #10b981;
  --stage-delivery:   #14b8a6;
  --stage-blocked:    #e11d48;
  --stage-updated:    #10b981;
  --stage-completed:  #555a70;

  /* Semantic */
  --risk-low:         #10b981;
  --risk-low-bg:      rgba(16,185,129,0.12);
  --risk-medium:      #f59e0b;
  --risk-medium-bg:   rgba(245,158,11,0.12);
  --risk-high:        #f97316;
  --risk-high-bg:     rgba(249,115,22,0.12);
  --risk-critical:    #e11d48;
  --risk-critical-bg: rgba(225,29,72,0.12);

  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.35);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
  --transition:  all 0.18s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.6; font-size: 15px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(1.9rem,4.5vw,2.8rem); font-weight:800; line-height:1.15; letter-spacing:-0.03em; }
h2 { font-size: clamp(1.3rem,3vw,1.9rem); font-weight:700; letter-spacing:-0.02em; }
h3 { font-size:1.05rem; font-weight:600; }
h4 { font-size:0.78rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); margin-bottom:14px; }
p { color: var(--text-secondary); }
a { color:var(--accent); text-decoration:none; transition:var(--transition); }
a:hover { color:#fb7185; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: 960px; margin:0 auto; padding:0 24px; }
.container--wide { max-width:1200px; margin:0 auto; padding:0 32px; }

/* ── Pages ────────────────────────────────────────────────── */
.page { display:none; }
.page.active { display:block; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position:sticky; top:0; z-index:100;
  background:rgba(10,12,18,0.88);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  padding:0 32px; height:60px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo { display:flex; align-items:center; gap:10px; font-size:0.88rem; font-weight:700; color:var(--text-primary); letter-spacing:-0.01em; }
.nav-logo-icon { width:28px; height:28px; background:var(--accent); border-radius:7px; display:flex; align-items:center; justify-content:center; font-size:14px; flex-shrink:0; }
.nav-logo-sep { width:1px; height:18px; background:var(--border); margin:0 4px; }
.nav-portfolio-link { font-size:0.78rem; font-weight:600; color:var(--text-muted); text-decoration:none; transition:var(--transition); }
.nav-portfolio-link:hover { color:var(--text-secondary); }
.nav-links { display:flex; align-items:center; gap:4px; }
.nav-link { font-size:0.82rem; font-weight:500; color:var(--text-secondary); padding:6px 12px; border-radius:var(--radius-sm); cursor:pointer; transition:var(--transition); white-space:nowrap; }
.nav-link:hover { color:var(--text-primary); background:rgba(255,255,255,0.05); }
.nav-link.active { color:var(--text-primary); }
.nav-link--demo { color:var(--accent); font-weight:600; border:1px solid var(--accent-b); padding:5px 12px; text-decoration:none; }
.nav-link--demo:hover { background:var(--accent-glow); color:var(--accent); }

/* ── Toast ────────────────────────────────────────────────── */
#toast-container { position:fixed; bottom:24px; right:24px; z-index:1000; display:flex; flex-direction:column; gap:8px; }
.toast { display:flex; align-items:center; gap:8px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-md); padding:12px 18px; font-size:0.85rem; font-weight:500; color:var(--text-primary); box-shadow:var(--shadow-lg); animation:slideInRight 0.2s ease; }
.toast.success { border-left:3px solid var(--risk-low); }
.toast.error   { border-left:3px solid var(--accent); }
@keyframes slideInRight { from { transform:translateX(60px); opacity:0; } to { transform:none; opacity:1; } }

/* ── Loading Overlay ──────────────────────────────────────── */
.loading-overlay { position:fixed; inset:0; background:rgba(10,12,18,0.92); backdrop-filter:blur(8px); z-index:200; display:none; flex-direction:column; align-items:center; justify-content:center; gap:28px; }
.loading-overlay.active { display:flex; }
.loading-spinner { width:52px; height:52px; border:3px solid var(--border); border-top-color:var(--accent); border-radius:50%; animation:spin 0.85s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
.loading-title { font-size:1.05rem; font-weight:700; color:var(--text-primary); }
.loading-steps { display:flex; flex-direction:column; gap:8px; align-items:center; }
.loading-step { font-size:0.82rem; color:var(--text-muted); opacity:0; transform:translateY(4px); transition:all 0.2s; }
.loading-step.active { color:var(--text-secondary); opacity:1; transform:none; }
.loading-step.done { color:var(--risk-low); opacity:1; transform:none; }

/* ── API Banner ───────────────────────────────────────────── */
.api-banner { display:flex; align-items:center; gap:10px; background:var(--accent-bg); border:1px solid var(--accent-b); border-radius:var(--radius-md); padding:10px 20px; max-width:960px; margin:0 auto; font-size:0.78rem; color:var(--text-secondary); }
.api-banner code { color:var(--accent); background:var(--accent-glow); padding:1px 6px; border-radius:4px; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero { padding:56px 0 40px; text-align:center; }
.hero-badge { display:inline-flex; align-items:center; gap:7px; background:var(--accent-glow); border:1px solid var(--accent-b); color:#fda4af; font-size:0.72rem; font-weight:700; padding:5px 14px; border-radius:20px; margin-bottom:20px; letter-spacing:0.06em; text-transform:uppercase; }
.hero-badge-dot { width:6px; height:6px; background:var(--accent); border-radius:50%; animation:pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.5; transform:scale(0.8); } }
.hero h1 { margin-bottom:12px; max-width:760px; margin-left:auto; margin-right:auto; }
.hero h1 span { color:var(--accent); }
.hero-credibility { font-size:0.85rem; font-weight:600; color:var(--text-secondary); margin-bottom:12px; }
.hero-sub { font-size:0.95rem; color:var(--text-secondary); max-width:580px; margin:0 auto 14px; line-height:1.7; }
.hero-trust { font-size:0.75rem; color:var(--text-muted); letter-spacing:0.01em; }

/* ── Case Summary ─────────────────────────────────────────── */
.case-summary-section { padding:0 0 32px; }
.case-summary-row { display:flex; align-items:stretch; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.case-summary-item { flex:1; padding:18px 20px; display:flex; flex-direction:column; gap:5px; }
.case-summary-label { font-size:0.63rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); }
.case-summary-value { font-size:0.87rem; font-weight:600; color:var(--text-primary); line-height:1.35; }
.case-summary-divider { width:1px; background:var(--border); flex-shrink:0; }

/* ── Card ─────────────────────────────────────────────────── */
.card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:28px; box-shadow:var(--shadow-card); }

/* ── Form ─────────────────────────────────────────────────── */
.form-section { padding:0 0 52px; }
.form-header { margin-bottom:24px; }
.form-header h2 { font-size:1.2rem; margin-bottom:6px; }
.form-header p { font-size:0.85rem; }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-grid .full-width { grid-column:1/-1; }
.form-group { display:flex; flex-direction:column; gap:6px; }
.form-label { font-size:0.78rem; font-weight:700; color:var(--text-secondary); letter-spacing:0.04em; text-transform:uppercase; }
.form-label .required { color:var(--accent); margin-left:2px; }
.form-label .optional { font-weight:400; text-transform:none; letter-spacing:0; color:var(--text-muted); }
.form-input, .form-select, .form-textarea { background:var(--bg-input); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text-primary); font-family:inherit; font-size:0.88rem; padding:11px 14px; transition:var(--transition); outline:none; width:100%; -webkit-appearance:none; appearance:none; }
.form-input::placeholder, .form-textarea::placeholder { color:var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color:var(--border-focus); background:#0f1218; box-shadow:0 0 0 3px var(--accent-glow); }
.form-select { background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b90a7' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; padding-right:36px; cursor:pointer; }
.form-select option { background:var(--bg-card); }
.form-textarea { resize:vertical; min-height:86px; line-height:1.6; }
.error-msg { font-size:0.74rem; color:var(--accent); display:none; }
.form-group.has-error .error-msg { display:block; }
.form-group.has-error .form-input, .form-group.has-error .form-select, .form-group.has-error .form-textarea { border-color:var(--accent); }

/* ── Sample Buttons ───────────────────────────────────────── */
.sample-section { margin-top:24px; padding-top:20px; border-top:1px solid var(--border); }
.sample-label { font-size:0.73rem; font-weight:700; color:var(--text-muted); letter-spacing:0.07em; text-transform:uppercase; margin-bottom:10px; }
.sample-buttons { display:flex; gap:8px; flex-wrap:wrap; }
.sample-btn { display:flex; align-items:center; gap:7px; padding:7px 14px; border-radius:var(--radius-sm); border:1px solid; font-size:0.8rem; font-weight:600; cursor:pointer; transition:var(--transition); background:transparent; font-family:inherit; }
.sample-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.sample-btn-clean { color:var(--risk-low); border-color:rgba(16,185,129,0.3); }
.sample-btn-clean .sample-dot { background:var(--risk-low); }
.sample-btn-clean:hover { background:var(--risk-low-bg); border-color:rgba(16,185,129,0.6); }
.sample-btn-missing { color:var(--risk-medium); border-color:rgba(245,158,11,0.3); }
.sample-btn-missing .sample-dot { background:var(--risk-medium); }
.sample-btn-missing:hover { background:var(--risk-medium-bg); border-color:rgba(245,158,11,0.6); }
.sample-btn-blocked { color:var(--accent); border-color:var(--accent-b); }
.sample-btn-blocked .sample-dot { background:var(--accent); }
.sample-btn-blocked:hover { background:var(--accent-glow); border-color:rgba(225,29,72,0.6); }
.sample-btn-fast { color:#8b5cf6; border-color:rgba(139,92,246,0.3); }
.sample-btn-fast .sample-dot { background:#8b5cf6; }
.sample-btn-fast:hover { background:rgba(139,92,246,0.1); border-color:rgba(139,92,246,0.6); }

/* ── Buttons ──────────────────────────────────────────────── */
.submit-area { margin-top:24px; display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.submit-note { font-size:0.76rem; color:var(--text-muted); }
.btn-primary { background:var(--accent); color:#fff; border:none; border-radius:var(--radius-sm); font-family:inherit; font-size:0.9rem; font-weight:700; padding:12px 26px; cursor:pointer; transition:var(--transition); display:inline-flex; align-items:center; gap:8px; letter-spacing:-0.01em; text-decoration:none; }
.btn-primary:hover { background:var(--accent-hover); transform:translateY(-1px); box-shadow:0 4px 20px rgba(225,29,72,0.35); }
.btn-primary:active { transform:translateY(0); }
.btn-primary:disabled { opacity:0.5; cursor:not-allowed; transform:none; box-shadow:none; }
.btn-secondary { background:transparent; color:var(--text-secondary); border:1px solid var(--border); border-radius:var(--radius-sm); font-family:inherit; font-size:0.85rem; font-weight:500; padding:10px 18px; cursor:pointer; transition:var(--transition); display:inline-flex; align-items:center; gap:6px; }
.btn-secondary:hover { color:var(--text-primary); border-color:rgba(255,255,255,0.18); background:rgba(255,255,255,0.05); }
.copy-btn { background:transparent; border:1px solid var(--border); color:var(--text-secondary); font-family:inherit; font-size:0.72rem; font-weight:600; padding:4px 12px; border-radius:var(--radius-sm); cursor:pointer; transition:var(--transition); display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.copy-btn:hover { background:rgba(255,255,255,0.05); color:var(--text-primary); }
.copy-btn.copied { color:var(--risk-low); border-color:rgba(16,185,129,0.4); }

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works { padding:40px 0 52px; text-align:center; }
.section-label { font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.12em; color:var(--accent); margin-bottom:28px; display:block; }
.how-steps { display:flex; align-items:flex-start; justify-content:center; gap:0; flex-wrap:wrap; }
.how-step { display:flex; flex-direction:column; align-items:center; gap:8px; padding:16px 10px; min-width:100px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-md); }
.how-icon { font-size:1.5rem; line-height:1; }
.how-text { font-size:0.7rem; font-weight:600; color:var(--text-secondary); text-align:center; line-height:1.35; }
.how-connector { width:24px; height:2px; background:linear-gradient(90deg,var(--border),var(--accent-b),var(--border)); align-self:center; flex-shrink:0; }

/* ── Stage Badges ─────────────────────────────────────────── */
.stage-badge {
  display:inline-flex; align-items:center; gap:7px;
  font-size:0.82rem; font-weight:700;
  padding:8px 18px; border-radius:40px;
  text-transform:uppercase; letter-spacing:0.05em;
}
.stage-badge::before { content:''; width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.stage-submitted  { background:rgba(85,90,112,0.15);  color:var(--stage-submitted);  border:1px solid rgba(85,90,112,0.4); }
.stage-submitted::before { background:var(--stage-submitted); }
.stage-analyzed   { background:rgba(59,130,246,0.12); color:var(--stage-analyzed);   border:1px solid rgba(59,130,246,0.3); }
.stage-analyzed::before { background:var(--stage-analyzed); }
.stage-scoped     { background:rgba(16,185,129,0.12); color:var(--stage-scoped);     border:1px solid rgba(16,185,129,0.3); }
.stage-scoped::before { background:var(--stage-scoped); }
.stage-info_needed { background:rgba(245,158,11,0.13); color:var(--stage-info);      border:1px solid rgba(245,158,11,0.3); }
.stage-info_needed::before { background:var(--stage-info); animation:pulse 2s infinite; }
.stage-internal_review { background:rgba(139,92,246,0.12); color:var(--stage-review); border:1px solid rgba(139,92,246,0.3); }
.stage-internal_review::before { background:var(--stage-review); }
.stage-approved   { background:rgba(16,185,129,0.12); color:var(--stage-approved); border:1px solid rgba(16,185,129,0.3); }
.stage-approved::before { background:var(--stage-approved); animation:pulse 2s infinite; }
.stage-planning   { background:rgba(59,130,246,0.12); color:var(--stage-planning);  border:1px solid rgba(59,130,246,0.3); }
.stage-planning::before { background:var(--stage-planning); }
.stage-kickoff_ready { background:rgba(16,185,129,0.15); color:var(--stage-kickoff); border:1px solid rgba(16,185,129,0.4); font-weight:800; }
.stage-kickoff_ready::before { background:var(--stage-kickoff); animation:pulse 1.5s infinite; }
.stage-in_delivery { background:rgba(20,184,166,0.12); color:var(--stage-delivery); border:1px solid rgba(20,184,166,0.3); }
.stage-in_delivery::before { background:var(--stage-delivery); }
.stage-blocked    { background:rgba(225,29,72,0.12); color:var(--accent);           border:1px solid rgba(225,29,72,0.35); }
.stage-blocked::before { background:var(--accent); animation:pulse 1.2s infinite; }
.stage-client_updated { background:rgba(16,185,129,0.12); color:var(--stage-updated); border:1px solid rgba(16,185,129,0.3); }
.stage-client_updated::before { background:var(--stage-updated); }
.stage-completed  { background:rgba(85,90,112,0.12);  color:var(--stage-completed); border:1px solid rgba(85,90,112,0.3); }
.stage-completed::before { background:var(--stage-completed); }

/* ── Pipeline Strip (result page) ────────────────────────── */
.pipeline-section { padding:0 0 24px; }
.pipeline-strip {
  display:flex; align-items:center; gap:0;
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:16px 20px;
  overflow-x:auto; scrollbar-width:none;
}
.pipeline-strip::-webkit-scrollbar { display:none; }
.pipeline-stage {
  display:flex; align-items:center; gap:0;
  flex-shrink:0;
}
.pipeline-stage-dot {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  min-width:80px; padding:0 4px;
}
.pipeline-dot-circle {
  width:28px; height:28px; border-radius:50%;
  border:2px solid var(--border);
  background:var(--bg-input);
  display:flex; align-items:center; justify-content:center;
  font-size:0.65rem; font-weight:800;
  color:var(--text-muted);
  transition:var(--transition);
  flex-shrink:0;
}
.pipeline-dot-label {
  font-size:0.6rem; font-weight:600; color:var(--text-muted);
  text-align:center; white-space:nowrap; text-transform:uppercase;
  letter-spacing:0.05em; line-height:1.2;
}
.pipeline-stage-connector { width:20px; height:2px; background:var(--border); flex-shrink:0; }
.pipeline-stage.done .pipeline-dot-circle { background:rgba(16,185,129,0.2); border-color:rgba(16,185,129,0.5); color:var(--risk-low); }
.pipeline-stage.done .pipeline-dot-label { color:var(--risk-low); }
.pipeline-stage.done .pipeline-stage-connector { background:rgba(16,185,129,0.3); }
.pipeline-stage.current .pipeline-dot-circle { border-width:2px; font-size:0.75rem; }
.pipeline-stage.current .pipeline-dot-label { color:var(--text-primary); font-weight:700; }
.pipeline-stage.blocked-stage .pipeline-dot-circle { background:rgba(225,29,72,0.2); border-color:rgba(225,29,72,0.5); color:var(--accent); }
.pipeline-stage.blocked-stage .pipeline-dot-label { color:var(--accent); }

/* ── Analysis Badges ─────────────────────────────────────── */
.analysis-badges-section { padding:0 0 20px; }
.analysis-badges { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.analysis-badge {
  background:var(--bg-card); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:16px 18px;
  display:flex; flex-direction:column; gap:5px;
  transition:var(--transition);
}
.analysis-badge-label { font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); }
.analysis-badge-value { font-size:1.05rem; font-weight:800; color:var(--text-primary); letter-spacing:-0.02em; line-height:1.2; }
.analysis-badge-sub { font-size:0.72rem; color:var(--text-muted); }

/* ── Result 3-Col Layout ─────────────────────────────────── */
.result-body { padding:0 0 20px; }
.result-3col { display:grid; grid-template-columns:220px 1fr 220px; gap:14px; align-items:start; }
.result-panel { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px 18px; display:flex; flex-direction:column; gap:16px; }
.result-panel-label { font-size:0.62rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-muted); margin-bottom:4px; }
.result-panel-value { font-size:0.85rem; color:var(--text-secondary); line-height:1.6; }

/* ── Complexity Gauge ────────────────────────────────────── */
.complexity-gauge-wrap { display:flex; flex-direction:column; align-items:center; gap:10px; }
.complexity-gauge { position:relative; width:110px; height:110px; }
.complexity-gauge svg { transform:rotate(-90deg); }
.gauge-track { fill:none; stroke:var(--border); stroke-width:8; }
.gauge-bar { fill:none; stroke-width:8; stroke-linecap:round; transition:stroke-dashoffset 1.2s cubic-bezier(0.4,0,0.2,1); }
.gauge-number { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.gauge-value { font-size:2rem; font-weight:800; line-height:1; letter-spacing:-0.04em; }
.gauge-max { font-size:0.7rem; color:var(--text-muted); }
.complexity-level { font-size:0.72rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; padding:4px 14px; border-radius:20px; }
.complexity-low    { background:var(--risk-low-bg);      color:var(--risk-low); }
.complexity-medium { background:var(--risk-medium-bg);   color:var(--risk-medium); }
.complexity-high   { background:var(--risk-high-bg);     color:var(--risk-high); }
.complexity-critical { background:var(--risk-critical-bg); color:var(--risk-critical); }

/* ── Scope Summary ───────────────────────────────────────── */
.scope-box { background:var(--bg-input); border:1px solid var(--border); border-radius:var(--radius-sm); padding:14px 16px; font-size:0.86rem; color:var(--text-secondary); line-height:1.7; }

/* ── Workstreams ─────────────────────────────────────────── */
.workstream-list { display:flex; flex-direction:column; gap:8px; }
.workstream-row {
  display:flex; align-items:center; gap:10px;
  background:var(--bg-input); border:1px solid var(--border);
  border-radius:var(--radius-sm); padding:10px 14px;
}
.ws-num { font-size:0.7rem; font-weight:800; color:var(--accent); width:18px; flex-shrink:0; }
.ws-name { font-size:0.82rem; font-weight:600; color:var(--text-primary); flex:1; }
.ws-owner { font-size:0.72rem; color:var(--text-muted); white-space:nowrap; }
.ws-duration { font-size:0.72rem; font-weight:600; color:var(--accent); background:var(--accent-glow); border:1px solid var(--accent-b); padding:2px 8px; border-radius:20px; white-space:nowrap; }

/* ── Missing Requirements ────────────────────────────────── */
.missing-list { display:flex; flex-direction:column; gap:6px; }
.missing-item { display:flex; align-items:flex-start; gap:8px; font-size:0.79rem; color:var(--risk-medium); line-height:1.45; background:rgba(245,158,11,0.06); border:1px solid rgba(245,158,11,0.2); border-radius:var(--radius-sm); padding:8px 12px; }
.missing-item::before { content:'!'; font-weight:800; flex-shrink:0; font-size:0.7rem; margin-top:1px; }

/* ── Risk Factors ────────────────────────────────────────── */
.risk-list { display:flex; flex-direction:column; gap:6px; }
.risk-item { font-size:0.78rem; color:var(--text-muted); line-height:1.5; display:flex; gap:8px; }
.risk-item::before { content:'↑'; color:var(--accent); font-weight:800; flex-shrink:0; }

/* ── Blockers ────────────────────────────────────────────── */
.blocker-section { padding:0 0 18px; }
.blocker-banner {
  background:rgba(225,29,72,0.07); border:1px solid rgba(225,29,72,0.3);
  border-radius:var(--radius-lg); padding:18px 20px;
}
.blocker-header { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.blocker-icon { font-size:1.1rem; }
.blocker-title { font-size:0.85rem; font-weight:700; color:var(--accent); }
.blocker-list { display:flex; flex-direction:column; gap:8px; }
.blocker-item { display:flex; align-items:flex-start; gap:8px; font-size:0.82rem; color:var(--text-secondary); line-height:1.5; }
.blocker-item::before { content:'⊘'; color:var(--accent); flex-shrink:0; font-weight:700; }

/* ── Kickoff Readiness ───────────────────────────────────── */
.kickoff-badge { display:inline-flex; align-items:center; gap:7px; font-size:0.82rem; font-weight:700; padding:8px 16px; border-radius:var(--radius-md); }
.kickoff-ready { background:var(--risk-low-bg); color:var(--risk-low); border:1px solid rgba(16,185,129,0.3); }
.kickoff-not-ready { background:var(--risk-medium-bg); color:var(--risk-medium); border:1px solid rgba(245,158,11,0.3); }
.kickoff-blocked { background:var(--risk-critical-bg); color:var(--accent); border:1px solid var(--accent-b); }

/* ── Delivery Plan Section ───────────────────────────────── */
.delivery-plan-section { padding:0 0 18px; }
.delivery-plan-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.delivery-plan-header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.delivery-plan-header h4 { margin-bottom:0; }
.delivery-plan-timeline-total { font-size:0.78rem; font-weight:700; color:var(--accent); }
.delivery-plan-body { padding:14px 20px; display:flex; flex-direction:column; gap:8px; }
.plan-row { display:flex; align-items:center; gap:12px; padding:10px 14px; background:var(--bg-input); border:1px solid var(--border); border-radius:var(--radius-sm); }
.plan-row-num { font-size:0.68rem; font-weight:800; color:var(--accent); width:16px; flex-shrink:0; background:var(--accent-glow); border:1px solid var(--accent-b); border-radius:50%; width:20px; height:20px; display:flex; align-items:center; justify-content:center; }
.plan-row-name { font-size:0.85rem; font-weight:600; color:var(--text-primary); flex:1; }
.plan-row-owner { font-size:0.75rem; color:var(--text-muted); }
.plan-row-dur { font-size:0.75rem; font-weight:600; color:var(--text-secondary); white-space:nowrap; padding:2px 10px; border-radius:20px; background:rgba(255,255,255,0.05); border:1px solid var(--border); }

/* ── Client Comms Card ───────────────────────────────────── */
.comms-section { padding:0 0 18px; }
.comms-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.comms-header { padding:16px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.comms-header h4 { margin-bottom:0; }
.comms-body { padding:18px 20px; font-size:0.86rem; color:var(--text-secondary); line-height:1.8; white-space:pre-wrap; background:var(--bg-input); margin:0; }

/* ── Events Timeline ─────────────────────────────────────── */
.events-section { padding:0 0 18px; }
.events-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; }
.events-header { padding:14px 20px; border-bottom:1px solid var(--border); }
.events-header h4 { margin-bottom:0; }
.event-log { display:flex; flex-direction:column; gap:0; padding:12px 20px; }
.event-item { display:flex; align-items:flex-start; gap:14px; padding:10px 0; border-bottom:1px solid var(--border); }
.event-item:last-child { border-bottom:none; }
.event-dot { width:8px; height:8px; border-radius:50%; background:var(--accent); flex-shrink:0; margin-top:5px; }
.event-type { font-size:0.83rem; font-weight:600; color:var(--text-primary); text-transform:capitalize; margin-bottom:2px; }
.event-detail { font-size:0.77rem; color:var(--text-secondary); margin-bottom:2px; }
.event-time { font-size:0.73rem; color:var(--text-muted); }

/* ── Impact ──────────────────────────────────────────────── */
.impact-section { padding:0 0 12px; }
.impact-list { list-style:none; display:flex; flex-direction:column; gap:8px; }
.impact-list li { display:flex; align-items:flex-start; gap:10px; font-size:0.88rem; color:var(--text-secondary); line-height:1.55; }
.impact-list li::before { content:'✓'; color:var(--risk-low); font-weight:700; flex-shrink:0; margin-top:1px; }
.result-actions { display:flex; gap:12px; flex-wrap:wrap; padding:0 0 60px; }

/* ── Proves / Case Study ─────────────────────────────────── */
.proves-section { padding:0 0 52px; }
.proves-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.proves-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px 18px; display:flex; flex-direction:column; gap:8px; transition:var(--transition); }
.proves-card:hover { border-color:rgba(225,29,72,0.25); transform:translateY(-2px); }
.proves-card-icon { font-size:1.4rem; line-height:1; }
.proves-card-title { font-size:0.85rem; font-weight:700; color:var(--text-primary); }
.proves-card-desc { font-size:0.76rem; color:var(--text-muted); line-height:1.6; }

/* ── Explore ──────────────────────────────────────────────── */
.explore-section { padding:0 0 52px; }
.explore-label { font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--accent); margin-bottom:14px; }
.explore-dual { display:grid; grid-template-columns:1fr 1fr 1fr; gap:12px; }
.explore-card { background:linear-gradient(135deg,var(--accent-glow),rgba(225,29,72,0.02)); border:1px solid var(--accent-b); border-radius:var(--radius-xl); padding:20px; }
.explore-card--amber { background:linear-gradient(135deg,rgba(245,158,11,0.06),rgba(245,158,11,0.02)); border-color:rgba(245,158,11,0.18); }
.explore-card--teal { background:linear-gradient(135deg,rgba(16,185,129,0.06),rgba(16,185,129,0.02)); border-color:rgba(16,185,129,0.18); }
.explore-card--purple { background:linear-gradient(135deg,rgba(139,92,246,0.06),rgba(139,92,246,0.02)); border-color:rgba(139,92,246,0.18); }
.explore-inner { display:flex; flex-direction:column; gap:10px; height:100%; }
.explore-icon { font-size:1.6rem; line-height:1; }
.explore-body { flex:1; }
.explore-title { font-size:0.88rem; font-weight:700; color:var(--text-primary); margin-bottom:5px; }
.explore-desc { font-size:0.78rem; color:var(--text-secondary); line-height:1.55; margin-bottom:10px; }
.explore-cta { display:inline-flex; align-items:center; font-size:0.8rem; font-weight:700; color:var(--risk-low); text-decoration:none; transition:var(--transition); }
.explore-cta:hover { color:#34d399; }
.explore-cta--amber { color:var(--risk-medium); }
.explore-cta--amber:hover { color:#fcd34d; }
.explore-cta--purple { color:#a78bfa; }
.explore-cta--purple:hover { color:#c4b5fd; }

/* ── Bottom CTA ───────────────────────────────────────────── */
.cta-section { padding:0 0 72px; }
.cta-card { background:linear-gradient(135deg,var(--bg-card),var(--bg-card-hover)); border:1px solid var(--accent-b); border-radius:var(--radius-xl); padding:48px 40px; text-align:center; }
.cta-eyebrow { font-size:0.68rem; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:var(--accent); margin-bottom:10px; }
.cta-card h2 { font-size:1.6rem; margin-bottom:14px; }
.cta-sub { font-size:0.9rem; color:var(--text-secondary); line-height:1.7; max-width:480px; margin:0 auto 24px; }
.cta-actions { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }

/* ══════════════════════════════════════════════════════════
   ADMIN PANEL
   ══════════════════════════════════════════════════════════ */
.admin-page { padding:40px 0 80px; }
.admin-header { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom:20px; flex-wrap:wrap; gap:14px; }
.admin-header h2 { font-size:1.4rem; margin-bottom:2px; }
.filter-bar { display:flex; gap:6px; flex-wrap:wrap; }
.filter-btn { background:transparent; border:1px solid var(--border); color:var(--text-secondary); font-family:inherit; font-size:0.78rem; font-weight:600; padding:5px 14px; border-radius:20px; cursor:pointer; transition:var(--transition); }
.filter-btn:hover { color:var(--text-primary); background:rgba(255,255,255,0.04); }
.filter-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.admin-stats { display:grid; grid-template-columns:repeat(5,1fr); gap:12px; margin-bottom:20px; }
.admin-stat-card { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); padding:18px 16px; text-align:center; }
.admin-stat-num { font-size:2rem; font-weight:800; line-height:1; letter-spacing:-0.04em; color:var(--text-primary); }
.admin-stat-label { font-size:0.7rem; font-weight:600; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-muted); margin-top:4px; }
.stat-accent { color:var(--accent); }
.stat-ready  { color:var(--risk-low); }
.stat-blocked{ color:var(--accent); }
.stat-review { color:#8b5cf6; }

/* ── Pipeline View (Admin Kanban) ────────────────────────── */
.pipeline-view-section { margin-bottom:20px; }
.pipeline-view { display:flex; gap:8px; overflow-x:auto; padding-bottom:8px; scrollbar-width:none; }
.pipeline-view::-webkit-scrollbar { display:none; }
.pv-col { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-md); padding:12px 14px; min-width:100px; display:flex; flex-direction:column; gap:6px; flex-shrink:0; }
.pv-col-label { font-size:0.6rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); white-space:nowrap; }
.pv-col-count { font-size:1.5rem; font-weight:800; line-height:1; letter-spacing:-0.04em; }
.pv-col.has-items { border-color:var(--border-md); }
.pv-col.is-blocked { background:rgba(225,29,72,0.06); border-color:rgba(225,29,72,0.25); }
.pv-col.is-blocked .pv-col-count { color:var(--accent); }
.pv-col.is-kickoff { background:rgba(16,185,129,0.06); border-color:rgba(16,185,129,0.25); }
.pv-col.is-kickoff .pv-col-count { color:var(--risk-low); }

/* ── Admin Table ─────────────────────────────────────────── */
.leads-table-wrap { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); overflow:hidden; box-shadow:var(--shadow-card); }
.leads-table { width:100%; border-collapse:collapse; }
.leads-table th { padding:12px 16px; text-align:left; font-size:0.7rem; font-weight:700; text-transform:uppercase; letter-spacing:0.07em; color:var(--text-muted); border-bottom:1px solid var(--border); background:rgba(255,255,255,0.02); cursor:pointer; user-select:none; white-space:nowrap; }
.leads-table th:hover { color:var(--text-secondary); }
.leads-table td { padding:14px 16px; font-size:0.85rem; border-bottom:1px solid var(--border); vertical-align:middle; }
.leads-table tr:last-child td { border-bottom:none; }
.leads-table tbody tr { cursor:pointer; transition:background 0.12s; }
.leads-table tbody tr:hover { background:rgba(255,255,255,0.04); }
.table-name { font-weight:600; color:var(--text-primary); }
.table-company { color:var(--text-secondary); font-size:0.78rem; }
.table-date { color:var(--text-muted); font-size:0.78rem; white-space:nowrap; }

/* Stage badges — small */
.badge-sm { display:inline-flex; align-items:center; gap:5px; font-size:0.7rem; font-weight:700; padding:3px 10px; border-radius:20px; text-transform:uppercase; letter-spacing:0.04em; white-space:nowrap; }
.badge-submitted { background:rgba(85,90,112,0.15); color:var(--stage-submitted); }
.badge-analyzed  { background:rgba(59,130,246,0.12); color:var(--stage-analyzed); }
.badge-scoped    { background:rgba(16,185,129,0.12); color:var(--stage-scoped); }
.badge-info_needed { background:rgba(245,158,11,0.13); color:var(--stage-info); }
.badge-internal_review { background:rgba(139,92,246,0.12); color:var(--stage-review); }
.badge-approved  { background:rgba(16,185,129,0.12); color:var(--stage-approved); }
.badge-planning  { background:rgba(59,130,246,0.12); color:var(--stage-planning); }
.badge-kickoff_ready { background:rgba(16,185,129,0.15); color:var(--stage-kickoff); }
.badge-blocked   { background:rgba(225,29,72,0.12); color:var(--accent); }
.badge-client_updated { background:rgba(16,185,129,0.12); color:var(--stage-updated); }
.badge-completed { background:rgba(85,90,112,0.12); color:var(--stage-completed); }

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.72); backdrop-filter:blur(4px); z-index:300; display:none; align-items:flex-end; justify-content:center; padding:20px; }
.modal-overlay.active { display:flex; }
@media (min-width:768px) { .modal-overlay { align-items:center; } }
.modal { background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-xl); width:100%; max-width:760px; max-height:90vh; overflow-y:auto; box-shadow:var(--shadow-lg); animation:slideUp 0.22s ease; }
@keyframes slideUp { from { transform:translateY(20px); opacity:0; } to { transform:none; opacity:1; } }
.modal-header { display:flex; align-items:center; justify-content:space-between; padding:22px 24px 14px; border-bottom:1px solid var(--border); position:sticky; top:0; background:var(--bg-card); z-index:1; border-radius:var(--radius-xl) var(--radius-xl) 0 0; }
.modal-name { font-size:1rem; font-weight:700; color:var(--text-primary); }
.modal-sub { font-size:0.8rem; color:var(--text-muted); margin-top:2px; }
.modal-close { background:none; border:none; color:var(--text-muted); font-size:1.1rem; cursor:pointer; padding:4px 6px; border-radius:var(--radius-sm); transition:var(--transition); }
.modal-close:hover { color:var(--text-primary); background:rgba(255,255,255,0.06); }
.modal-tabs { display:flex; gap:0; border-bottom:1px solid var(--border); padding:0 24px; overflow-x:auto; scrollbar-width:none; }
.modal-tabs::-webkit-scrollbar { display:none; }
.modal-tab { background:none; border:none; color:var(--text-muted); font-family:inherit; font-size:0.82rem; font-weight:600; padding:10px 14px; cursor:pointer; transition:var(--transition); border-bottom:2px solid transparent; margin-bottom:-1px; white-space:nowrap; }
.modal-tab:hover { color:var(--text-secondary); }
.modal-tab.active { color:var(--accent); border-bottom-color:var(--accent); }
.modal-body { padding:20px 24px 24px; }
.modal-tab-content { display:none; }
.modal-tab-content.active { display:block; }
.detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.detail-item { display:flex; flex-direction:column; gap:4px; padding:12px; background:var(--bg-input); border-radius:var(--radius-sm); }
.detail-item.full { grid-column:1/-1; }
.detail-key { font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:var(--text-muted); }
.detail-val { font-size:0.85rem; color:var(--text-primary); line-height:1.5; }
.empty-state { text-align:center; padding:60px 32px; }
.empty-state-icon { font-size:2.5rem; margin-bottom:16px; opacity:0.4; }
.empty-state h3 { font-size:1rem; margin-bottom:8px; color:var(--text-primary); }
.empty-state p { font-size:0.85rem; color:var(--text-muted); }

/* ── Result Header ───────────────────────────────────────── */
.result-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; gap:12px; flex-wrap:wrap; padding-top:32px; }
.result-header-back { display:flex; align-items:center; gap:6px; color:var(--text-secondary); font-size:0.85rem; cursor:pointer; background:none; border:none; font-family:inherit; transition:var(--transition); }
.result-header-back:hover { color:var(--text-primary); }
.result-name-line { font-size:1rem; font-weight:700; color:var(--text-primary); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width:1000px) {
  .result-3col { grid-template-columns:1fr; }
  .analysis-badges { grid-template-columns:repeat(2,1fr); }
  .admin-stats { grid-template-columns:repeat(3,1fr); }
  .explore-dual { grid-template-columns:1fr; }
}
@media (max-width:768px) {
  .nav { padding:0 16px; height:56px; }
  .nav-links .nav-link:not(.nav-link--demo) { display:none; }
  .nav-link--demo { font-size:0.76rem; padding:5px 10px; }
  .nav-logo { font-size:0.82rem; gap:6px; }
  .nav-logo-sep { display:none; }
  .hero { padding:36px 0 28px; }
  .hero h1 { font-size:1.75rem; }
  .container, .container--wide { padding:0 16px; }
  .form-grid { grid-template-columns:1fr; }
  .form-grid .full-width { grid-column:1; }
  .card { padding:20px 16px; }
  .submit-area { flex-direction:column; gap:10px; }
  .btn-primary { width:100%; justify-content:center; }
  .case-summary-row { flex-direction:column; }
  .case-summary-divider { width:auto; height:1px; }
  .analysis-badges { grid-template-columns:1fr 1fr; }
  .proves-grid { grid-template-columns:1fr; }
  .cta-card { padding:32px 20px; }
  .admin-stats { grid-template-columns:repeat(2,1fr); }
  .admin-header { flex-direction:column; gap:12px; }
  .modal { max-height:88vh; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
  .modal-overlay { padding:0; align-items:flex-end; }
  .detail-grid { grid-template-columns:1fr; }
  .how-steps { flex-wrap:wrap; gap:6px; justify-content:center; }
  .how-connector { display:none; }
  .result-header { flex-direction:column; align-items:flex-start; gap:10px; }
  .result-actions { flex-direction:column; }
  .result-actions .btn-primary, .result-actions .btn-secondary { width:100%; justify-content:center; text-align:center; }
}
@media (max-width:540px) {
  .admin-stats { grid-template-columns:repeat(2,1fr); }
  .analysis-badges { grid-template-columns:1fr; }
}
