:root {
  --bg: #05070d;
  --bg-1: #070a12;
  --panel: #0b0f1a;
  --panel-2: #0e1420;
  --panel-3: #101827;
  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(96, 165, 250, .35);
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --accent-dim: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, .35);
  --text: #f1f5f9;
  --text-soft: #cbd5e1;
  --muted: #8b98ab;
  --muted-2: #64748b;
  --success: #22c55e;
  --warning: #f5b942;
  --danger: #f2617a;
  --line: rgba(148, 163, 184, .14);
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 30px 70px rgba(0, 0, 0, .45);
  --sidebar-w: 248px;
  --container: 1240px;
  font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-2); }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.screen { display: none; }
.screen.active { display: block; }
.hidden { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--panel-2); color: var(--text); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border-strong); }
.skip-link:focus { top: 16px; }

/* ---------- App shell / sidebar ---------- */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--panel), var(--bg-1));
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; border-bottom: 1px solid var(--border); text-decoration: none; }
.sidebar-brand .brand-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; background: #fff; padding: 3px; }
.sidebar-brand-text { display: flex; flex-direction: column; gap: 1px; }
.sidebar-brand-name { font-weight: 800; letter-spacing: .06em; font-size: 16px; color: var(--text); line-height: 1.2; text-decoration: none; }
.sidebar-brand-tagline { font-size: 9.5px; font-weight: 600; letter-spacing: .02em; color: var(--muted); line-height: 1.2; text-decoration: none; white-space: nowrap; }

.sidebar-nav { padding: 18px 12px; display: grid; gap: 4px; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sidebar-nav-item:hover { background: var(--panel-3); color: var(--text); }
.sidebar-nav-item.active {
  background: rgba(59, 130, 246, .12);
  border-color: var(--border-strong);
  color: #dbeafe;
}
.sidebar-nav-item .nav-icon { width: 18px; height: 18px; flex: none; display: grid; place-items: center; opacity: .9; }
.sidebar-nav-item .nav-icon svg { width: 100%; height: 100%; }

.sidebar-spacer { flex: 1; }

.sidebar-security {
  margin: 14px 12px; padding: 16px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--border);
}
.sidebar-security .security-icon { width: 20px; height: 20px; color: var(--accent-2); margin-bottom: 8px; }
.sidebar-security strong { display: block; font-size: 13px; color: var(--text); margin-bottom: 4px; }
.sidebar-security p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.sidebar-footer { padding: 14px 20px 20px; border-top: 1px solid var(--border); }
.admin-link {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 13px; font-weight: 700; color: var(--muted);
}
.admin-link:hover { color: var(--accent-2); }

.shell-main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; min-height: 100vh; }

/* ---------- Slim topbar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 13, .85); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); }
.header-inner { min-height: 60px; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.header-meta { display: flex; align-items: center; gap: 14px; }
.secure-pill {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border-strong);
  background: rgba(59, 130, 246, .1);
  color: #bfdbfe;
  border-radius: 999px; padding: 7px 13px; font-size: 12px; font-weight: 700;
}
.secure-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(34,197,94,.18); }

@media (max-width: 640px) {
  .header-inner { min-height: 56px; gap: 10px; }
  .secure-pill { padding: 6px 10px; font-size: 11px; }
}

.loading-wrap { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 16px; color: var(--muted); }
.spinner { width: 44px; height: 44px; border: 4px solid var(--panel-3); border-top-color: var(--accent); border-radius: 50%; animation: spin .85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 8%, rgba(59,130,246,.16), transparent 40%), var(--bg); }
.hero-grid { min-height: 540px; display: grid; grid-template-columns: 1fr; align-items: center; gap: 56px; padding-block: 56px 40px; }
.hero-copy { position: relative; z-index: 2; max-width: 620px; }
.hero-copy .eyebrow-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow { display: inline-block; color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow.light { color: var(--accent-2); }
.eyebrow-rule { flex: 1; max-width: 220px; height: 1px; background: linear-gradient(90deg, var(--border-strong), transparent); }
.hero-copy h1 { max-width: 620px; margin: 0 0 20px; font-size: clamp(38px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.03em; color: var(--text); font-weight: 800; }
.hero-lead { max-width: 560px; color: var(--text-soft); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.btn-large .btn-arrow { width: 17px; height: 17px; margin-left: 2px; vertical-align: -3px; transition: transform .15s ease; }
.btn-large:hover .btn-arrow { transform: translateX(3px); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.hero-proof span::before { content: "✓"; margin-right: 7px; color: var(--success); font-weight: 800; }

.how-it-works-link { display: inline-flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 14px; font-weight: 700; text-decoration: none; }
.how-it-works-link .play-dot { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent-2); }
.how-it-works-link span.sub { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }

/* ---------- Hero visual (full-bleed, integrated into hero background) ---------- */
.hero-grid { position: relative; }
.hero-media {
  position: absolute;
  top: 0; right: calc((100% - var(--container)) / -2 - 20px);
  bottom: 0;
  width: 58%;
  min-width: 480px;
  pointer-events: none;
}
.hero-media-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 48%;
  display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 12%, #000 26%);
}

/* ---------- Hero scene animation (lightweight "video" treatment) ----------
   No video file: an animated cinematic layer over the enterprise artwork —
   slow drift/zoom, a roaming light sweep, and faint rising signal-particles.
   Zero extra network weight, cannot fail to load, seamless loop, and
   respects prefers-reduced-motion. */
.hero-scene { position: relative; width: 100%; height: 100%; overflow: hidden; }
.hero-scene .hero-media-img {
  animation: heroSceneDrift 22s ease-in-out infinite alternate;
  transform-origin: 58% 46%;
  will-change: transform;
}
@keyframes heroSceneDrift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  100% { transform: scale(1.045) translate3d(-0.6%, -0.4%, 0); }
}

.hero-scene-glow {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(56,189,248,.30), transparent 55%);
  background-repeat: no-repeat;
  background-size: 170% 170%;
  mix-blend-mode: screen;
  opacity: .65;
  animation: heroSceneGlow 17s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroSceneGlow {
  0%, 100% { background-position: 8% 18%; opacity: .45; }
  50%      { background-position: 88% 68%; opacity: .75; }
}

.hero-scene-particles { position: absolute; inset: 0; pointer-events: none; }
.hero-scene-particles span {
  position: absolute; bottom: -6%;
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(148, 214, 255, .95);
  box-shadow: 0 0 7px 1.5px rgba(56,189,248,.75);
  opacity: 0;
  animation: heroParticleRise linear infinite;
}
@keyframes heroParticleRise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .9; }
  85%  { opacity: .35; }
  100% { transform: translate3d(var(--drift, 12px), -230px, 0) scale(1); opacity: 0; }
}
.hero-scene-particles span:nth-child(1) { left: 12%; --drift: 8px;  animation-duration: 9s;  animation-delay: 0s; }
.hero-scene-particles span:nth-child(2) { left: 24%; --drift: -6px; animation-duration: 11s; animation-delay: 1.4s; }
.hero-scene-particles span:nth-child(3) { left: 38%; --drift: 10px; animation-duration: 8s;  animation-delay: 2.6s; }
.hero-scene-particles span:nth-child(4) { left: 52%; --drift: -9px; animation-duration: 12s; animation-delay: .8s; }
.hero-scene-particles span:nth-child(5) { left: 63%; --drift: 6px;  animation-duration: 10s; animation-delay: 3.5s; }
.hero-scene-particles span:nth-child(6) { left: 74%; --drift: -7px; animation-duration: 9.5s; animation-delay: 1.9s; }
.hero-scene-particles span:nth-child(7) { left: 85%; --drift: 9px;  animation-duration: 13s; animation-delay: 4.2s; }
.hero-scene-particles span:nth-child(8) { left: 94%; --drift: -5px; animation-duration: 10.5s; animation-delay: 2.1s; }

@media (prefers-reduced-motion: reduce) {
  .hero-scene .hero-media-img,
  .hero-scene-glow,
  .hero-scene-particles span { animation: none !important; }
}

/* Floating readiness cards on the hero visual (Automation / Technology) —
   Operations / People are already baked into the source photo's top-right / bottom-right corners. */
.hero-float-card {
  position: absolute;
  padding: 12px 14px;
  background: rgba(9, 13, 22, .82);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  backdrop-filter: blur(8px);
  min-width: 150px;
  pointer-events: none;
}
.hfc-head {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 700; color: var(--text-soft);
  margin-bottom: 8px;
}
.hfc-head svg { width: 13px; height: 13px; color: var(--muted); }
.hfc-value { font-size: 19px; font-weight: 800; line-height: 1.1; }
.hfc-value.high { color: #34d9b4; }
.hfc-value.medium { color: var(--warning); }
.hfc-label { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hfc-spark { width: 70px; height: 24px; position: absolute; right: 12px; bottom: 12px; color: var(--accent-2); }
.hfc-gauge { width: 40px; height: 40px; position: absolute; right: 12px; bottom: 10px; color: var(--warning); }

.card-automation { top: 5%; left: 49%; }
.card-technology { top: 33%; left: 43%; }

@media (max-width: 1220px) {
  .card-automation { left: 46%; }
  .card-technology { left: 40%; }
}

/* ---------- Enterprise trust row ---------- */
.trust-row { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-1); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; padding: 26px 28px; border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: 0; }
.trust-icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(59,130,246,.12); border: 1px solid var(--border-strong); display: grid; place-items: center; color: var(--accent-2); }
.trust-icon svg { width: 20px; height: 20px; }
.trust-item h3 { margin: 0 0 4px; color: var(--text); font-size: 15px; }
.trust-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 11px; border: 1px solid transparent; padding: 11px 20px; text-decoration: none; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--accent-glow); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, var(--accent-dim), var(--accent)); color: #fff; box-shadow: 0 14px 30px rgba(37, 99, 235, .32); }
.btn-primary:hover { box-shadow: 0 18px 36px rgba(37, 99, 235, .4); }
.btn-secondary { color: var(--text-soft); border-color: var(--border-strong); background: var(--panel-2); }
.btn-secondary:hover { background: var(--panel-3); }
.btn-light { color: var(--bg); background: #fff; }
.btn-outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.4); }
.btn-large { min-height: 52px; padding-inline: 28px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- Sections ---------- */
.section-block { padding-block: 76px; }
.section-heading { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-heading.compact { margin-bottom: 26px; }
.section-heading.left-heading { margin-inline: 0; text-align: left; }
.section-heading h2 { margin: 8px 0 12px; color: var(--text); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14; letter-spacing: -.02em; }
.section-heading p { color: var(--muted); font-size: 16px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-card { overflow: hidden; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.product-card img { width: 100%; height: 240px; object-fit: cover; object-position: center 50%; background: var(--panel-3); filter: saturate(.92) brightness(.9); }
.product-card > div { padding: 22px; }
.product-index { color: var(--accent-2); font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.product-card h3 { margin: 7px 0 9px; color: var(--text); font-size: 21px; }
.product-card p { margin: 0; color: var(--muted); }

.mode-section { background: var(--bg-1); border-block: 1px solid var(--border); }
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mode-card { position: relative; min-height: 260px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); box-shadow: 0 8px 26px rgba(0,0,0,.22); cursor: pointer; transition: border .18s ease, transform .18s ease, box-shadow .18s ease; }
.mode-card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.mode-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px var(--accent-glow); }
.mode-card input { position: absolute; opacity: 0; pointer-events: none; }
.mode-card .mode-tag { align-self: flex-start; padding: 6px 10px; border-radius: 999px; background: rgba(59,130,246,.14); color: #bfdbfe; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mode-card h3 { margin: 16px 0 8px; color: var(--text); font-size: 22px; }
.mode-card p { color: var(--muted); margin: 0; }
.mode-meta { margin-top: auto; display: grid; gap: 7px; padding-top: 20px; font-size: 13px; color: var(--text-soft); }
.mode-meta span::before { content: "•"; margin-right: 8px; color: var(--accent-2); }
.center-action { display: flex; justify-content: center; margin-top: 30px; }

/* ---------- Profile form (assessment shell) ---------- */
.assessment-shell { padding-block: 44px 90px; }
.narrow-shell { max-width: 980px; }
.step-header { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: start; margin-bottom: 30px; }
.step-header h1 { margin: 7px 0 8px; color: var(--text); font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; }
.step-header p { color: var(--muted); font-size: 16px; }
.back-link { border: 0; background: transparent; color: var(--accent-2); padding: 8px 0; cursor: pointer; text-align: left; font-weight: 700; }
.profile-form { display: grid; gap: 22px; }
.form-section { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.form-section h2 { margin: 0 0 18px; color: var(--text); font-size: 20px; }
.form-help { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.form-grid.three-col { grid-template-columns: repeat(3, 1fr); }
label { display: grid; gap: 7px; color: var(--text-soft); font-weight: 700; font-size: 13px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--border-strong); border-radius: 10px;
  background: var(--panel-3); color: var(--text); padding: 11px 12px; outline: none;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
textarea { resize: vertical; min-height: 100px; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.use-case-grid { grid-template-columns: repeat(3, 1fr); }
.check-option { position: relative; display: block; }
.check-option input { position: absolute; opacity: 0; }
.check-option span { min-height: 74px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 15px 12px 42px; background: var(--panel-3); color: var(--text-soft); cursor: pointer; transition: border .15s ease, background .15s ease; }
.check-option span::before { content: ""; position: absolute; left: 15px; top: 50%; width: 17px; height: 17px; transform: translateY(-50%); border: 2px solid var(--muted); border-radius: 5px; background: transparent; }
.check-option small { color: var(--muted); font-weight: 500; line-height: 1.35; }
.check-option input:checked + span { border-color: var(--accent); background: rgba(59,130,246,.1); }
.check-option input:checked + span::before { content: "✓"; display: grid; place-items: center; color: #fff; background: var(--accent); border-color: var(--accent); font-size: 11px; }
.check-option input:focus-visible + span { outline: 3px solid var(--accent-glow); outline-offset: 2px; }
.consent-panel { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 20px; background: rgba(59,130,246,.06); }
.consent-item { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; margin-bottom: 12px; font-weight: 600; color: var(--text-soft); font-size: 14px; }
.consent-item input { width: 18px; height: 18px; margin-top: 2px; }
.consent-panel p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-error { min-height: 22px; color: var(--danger); font-size: 14px; font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; }

/* ---------- Assessment topbar / progress ---------- */
.assessment-topbar { position: sticky; top: 60px; z-index: 40; background: rgba(5,7,13,.9); border-bottom: 1px solid var(--border); backdrop-filter: blur(10px); }
.assessment-topbar .container { padding-block: 14px; }
.assessment-progress-copy { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.assessment-progress-copy strong { color: var(--text); }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: var(--panel-3); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-dim), var(--accent-2)); transition: width .25s ease; }

/* ---------- Assessment layout: dimension nav styled as branded panel ---------- */
.assessment-layout { display: grid; grid-template-columns: 268px minmax(0,1fr); gap: 28px; padding-block: 34px 90px; }
.dimension-nav {
  position: sticky; top: 128px; align-self: start;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel-2); overflow: hidden;
}
.dimension-nav-title { padding: 16px 18px; background: var(--panel-3); color: var(--text); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--border); }
.dimension-nav ol { list-style: none; margin: 0; padding: 8px; counter-reset: dim; }
.dimension-nav li button {
  width: 100%; border: 0; border-radius: 10px; background: transparent;
  padding: 11px 12px; color: var(--muted); text-align: left; cursor: pointer; font-size: 13px; font-weight: 600;
}
.dimension-nav li.current button { background: rgba(59,130,246,.14); color: #dbeafe; font-weight: 800; }
.dimension-nav li.complete button::after { content: "✓"; float: right; color: var(--success); font-weight: 800; }
.save-note { padding: 13px 18px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 11px; }

.question-panel { min-width: 0; }
.question-header h1 { margin: 7px 0 9px; color: var(--text); font-size: clamp(27px, 3.8vw, 40px); line-height: 1.14; }
.question-header p { color: var(--muted); font-size: 15px; }
.scale-legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 22px 0 16px; }
.scale-legend div { border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); padding: 8px; text-align: center; color: var(--muted); font-size: 11px; }
.scale-legend strong { display: block; color: var(--text); font-size: 12px; }
.question-list { display: grid; gap: 14px; }
.question-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); padding: 20px; }
.question-card.answered { border-color: rgba(34,197,94,.4); }
.question-number { color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.question-card h2 { margin: 8px 0 16px; color: var(--text); font-size: 17px; line-height: 1.45; }
.scale-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-button { min-height: 56px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel-3); color: var(--text-soft); cursor: pointer; font-weight: 800; }
.scale-button span { display: block; color: var(--muted); font-size: 10px; font-weight: 600; }
.scale-button:hover { border-color: var(--accent); background: rgba(59,130,246,.08); }
.scale-button.selected { border-color: var(--accent); background: rgba(59,130,246,.16); color: #dbeafe; box-shadow: 0 0 0 1px var(--accent); }
.question-details { margin-top: 12px; color: var(--muted); font-size: 12px; }
.question-details summary { cursor: pointer; color: var(--accent-2); font-weight: 700; }
.evidence-panel { margin-top: 16px; border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px; background: rgba(59,130,246,.06); }
.evidence-panel h2 { margin: 0 0 7px; font-size: 17px; color: var(--text); }
.evidence-panel p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.evidence-options { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence-options button { border: 1px solid var(--border-strong); border-radius: 999px; background: var(--panel-3); padding: 8px 12px; cursor: pointer; color: var(--text-soft); }
.evidence-options button.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.assessment-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 20px; }

/* ---------- Results ---------- */
.result-hero { color: #fff; background: radial-gradient(circle at 85% 8%, rgba(59,130,246,.22), transparent 40%), var(--bg-1); border-bottom: 1px solid var(--border); padding-block: 54px 64px; }
.result-hero h1 { margin: 8px 0 8px; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; }
.result-hero p { color: var(--muted); font-size: 16px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.result-content { padding-block: 0 90px; }
.card { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0,0,0,.28); }
.score-overview { display: grid; grid-template-columns: 240px 1fr; gap: 34px; align-items: center; margin-top: -30px; padding: 32px; position: relative; }
.score-ring { --score: 0; width: 200px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) calc(var(--score) * 1%), var(--panel-3) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: var(--panel-2); }
.score-ring > div { position: relative; text-align: center; }
.score-ring strong { display: block; color: var(--text); font-size: 54px; line-height: 1; }
.score-ring span { color: var(--muted); font-weight: 700; }
.status-badge { display: inline-flex; border-radius: 999px; padding: 7px 11px; background: rgba(59,130,246,.14); color: #bfdbfe; font-size: 12px; font-weight: 800; }
.score-copy h2 { margin: 10px 0 8px; color: var(--text); font-size: 31px; }
.score-copy > p { color: var(--muted); }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.metric-row div { padding: 13px; border-radius: 12px; background: var(--panel-3); }
.metric-row span, .metric-row strong { display: block; }
.metric-row span { color: var(--muted); font-size: 11px; }
.metric-row strong { color: var(--text); margin-top: 3px; }
.result-section { margin-top: 60px; }
.fit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fit-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--panel-2); }
.fit-card h3 { margin: 0; color: var(--text); }
.fit-score { display: flex; justify-content: space-between; align-items: end; margin: 16px 0 9px; }
.fit-score strong { color: var(--accent-2); font-size: 36px; line-height: 1; }
.fit-score span { color: var(--muted); font-size: 12px; font-weight: 700; }
.fit-track, .dimension-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--panel-3); }
.fit-track span, .dimension-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-dim), var(--accent-2)); }
.result-grid { display: grid; gap: 16px; margin-top: 38px; }
.two-result-col { grid-template-columns: repeat(2, 1fr); }
.result-grid .card { padding: 24px; }
.result-grid h2 { margin: 8px 0 14px; color: var(--text); }
.highlight-result strong { display: block; color: var(--accent-2); font-size: 23px; }
.highlight-result span { color: var(--muted); }
.dimension-results { display: grid; gap: 13px; }
.dimension-row { display: grid; grid-template-columns: minmax(200px, .9fr) 2fr 60px; gap: 18px; align-items: center; }
.dimension-row h3 { margin: 0; color: var(--text); font-size: 14px; }
.dimension-row p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.dimension-score { text-align: right; color: var(--accent-2); font-size: 18px; font-weight: 850; }
.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.priority-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--panel-2); }
.priority-card::before { content: attr(data-index); position: absolute; right: 14px; top: 2px; color: var(--panel-3); font-size: 58px; font-weight: 900; line-height: 1; }
.priority-card h3 { position: relative; margin: 0 0 10px; color: var(--text); }
.priority-card p { position: relative; color: var(--muted); }
.priority-card .priority-action { color: var(--accent-2); font-weight: 800; }
.pilot-card { display: grid; grid-template-columns: 1.35fr .65fr; gap: 34px; margin-top: 60px; padding: 34px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, var(--bg-1), var(--panel-3)); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.pilot-card h2 { margin: 8px 0 10px; font-size: 30px; }
.pilot-card p { color: var(--text-soft); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag-list span { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border-strong); font-size: 12px; }
.pilot-measures { border-left: 1px solid var(--border); padding-left: 26px; }
.pilot-measures h3 { margin-top: 0; }
.pilot-measures ul { margin: 0; padding-left: 18px; color: var(--text-soft); }
.pilot-measures li { margin-bottom: 8px; }
.next-step-card { display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 38px; padding: 28px; }
.next-step-card h2 { margin: 7px 0 8px; color: var(--text); }
.next-step-card p { margin: 0; color: var(--muted); max-width: 750px; }
.result-disclaimer { margin-top: 22px; padding: 15px; border-left: 3px solid var(--border-strong); color: var(--muted); background: var(--panel-2); font-size: 12px; border-radius: 0 10px 10px 0; }

/* ---------- Contact ---------- */
.contact-section { padding: 90px 24px; background: var(--bg-1); border-top: 1px solid var(--border); }
.contact-container { width: min(1100px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.contact-label { display: inline-block; margin-bottom: 14px; color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-info h2 { margin: 0 0 18px; color: var(--text); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.14; }
.contact-info p { max-width: 500px; margin: 0 0 28px; color: var(--muted); line-height: 1.7; }
.contact-details { display: grid; gap: 14px; }
.contact-details a { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; }
.contact-details strong { font-size: 12px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .08em; }
.contact-form { padding: 28px; background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel-3); color: var(--text); font: inherit; outline: none; }
.contact-form textarea { margin-bottom: 14px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.contact-form button { width: 100%; padding: 13px 20px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--accent-dim), var(--accent)); color: #fff; font-weight: 800; cursor: pointer; }
.contact-form button:hover { box-shadow: 0 14px 30px rgba(37,99,235,.32); }

/* ---------- Footer / toast ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-1); }
.footer-inner { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer-inner div strong, .footer-inner div span { display: block; }
.footer-inner strong { color: var(--text); letter-spacing: .08em; }
.footer-inner span { font-size: 12px; }
.footer-inner p { font-size: 13px; }
footer.site-footer:last-of-type { padding: 22px; text-align: center; font-size: 12px; color: var(--muted-2); }

.toast { position: fixed; right: 22px; bottom: 22px; z-index: 80; max-width: 360px; padding: 12px 16px; border-radius: 12px; background: var(--panel-3); border: 1px solid var(--border-strong); color: var(--text); box-shadow: var(--shadow); opacity: 0; transform: translateY(15px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .app-sidebar { transform: translateX(-100%); transition: transform .2s ease; }
  .shell-main { margin-left: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-left: 0; border-top: 1px solid var(--border); }
  .trust-item:first-child { border-top: 0; }
}

@media (max-width: 980px) {
  .hero-grid { min-height: auto; }
  .hero-media { position: static; width: 100%; min-width: 0; height: 260px; margin-top: 26px; }
  .hero-media-img { -webkit-mask-image: none; mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.6) 10%, #000 22%); }
  .hero-float-card { display: none; }
  .hero-copy { max-width: none; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .mode-grid, .priority-grid { grid-template-columns: 1fr; }
  .product-card { display: grid; grid-template-columns: 200px 1fr; }
  .product-card img { height: 100%; min-height: 200px; }
  .form-grid.three-col { grid-template-columns: repeat(2, 1fr); }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .assessment-layout { grid-template-columns: 1fr; }
  .dimension-nav { position: static; }
  .dimension-nav ol { display: grid; grid-template-columns: repeat(4, 1fr); }
  .dimension-nav li button { text-align: center; }
  .save-note { display: none; }
  .score-overview { grid-template-columns: 200px 1fr; }
  .fit-grid { grid-template-columns: 1fr; }
  .pilot-card { grid-template-columns: 1fr; }
  .pilot-measures { border-left: 0; border-top: 1px solid var(--border); padding: 22px 0 0; }
  .contact-container { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 26px), var(--container)); }
  .hero-grid { padding-block: 40px; gap: 32px; }
  .hero-copy h1 { font-size: 36px; }
  .hero-lead { font-size: 16px; }
  .section-block { padding-block: 56px; }
  .product-card { grid-template-columns: 1fr; }
  .product-card img { height: 220px; }
  .step-header { grid-template-columns: 1fr; }
  .form-grid.two-col, .form-grid.three-col, .check-grid, .use-case-grid { grid-template-columns: 1fr; }
  .form-section { padding: 18px; }
  .assessment-topbar { top: 56px; }
  .assessment-layout { padding-top: 22px; }
  .dimension-nav ol { grid-template-columns: repeat(2, 1fr); }
  .scale-legend { display: none; }
  .scale-options { grid-template-columns: 1fr; }
  .scale-button { min-height: 46px; display: flex; justify-content: space-between; align-items: center; padding: 9px 13px; text-align: left; }
  .scale-button span { display: inline; }
  .question-card { padding: 16px; }
  .assessment-actions { position: sticky; bottom: 0; z-index: 20; background: rgba(5,7,13,.96); padding-block: 12px; margin-inline: -16px; padding-inline: 16px; }
  .score-overview { grid-template-columns: 1fr; margin-top: -24px; padding: 20px; }
  .score-ring { margin-inline: auto; }
  .metric-row { grid-template-columns: 1fr; }
  .two-result-col { grid-template-columns: 1fr; }
  .dimension-row { grid-template-columns: 1fr 48px; gap: 8px 12px; }
  .dimension-row > div:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .dimension-score { grid-column: 2; grid-row: 1; }
  .pilot-card { padding: 22px; }
  .next-step-card { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 26px; }
  .contact-section { padding: 56px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }
}

@media print {
  .app-sidebar, .site-header, .site-footer, .no-print, #toast { display: none !important; }
  .shell-main { margin-left: 0; }
  body { background: #fff; color: #111; }
  .screen { display: none !important; }
  #results-screen { display: block !important; }
  .result-hero { color: #111; background: #fff; border-bottom: 2px solid #111; padding: 20px 0; }
  .result-hero p { color: #555; }
  .result-content { padding: 20px 0; }
  .score-overview { margin-top: 0; }
  .card, .fit-card, .priority-card, .pilot-card { box-shadow: none; break-inside: avoid; border-color: #ccc; }
  .pilot-card { color: #111; background: #f2f6f9; }
  .pilot-card p, .pilot-measures ul { color: #444; }
  .result-section { margin-top: 28px; }
}
