/* ==========================================================================
   Witcode · Simulador de gasto en IA
   Tokens tomados de witcode.com.ar
   ========================================================================== */
:root {
  --bg-dark: #05070d;
  --bg-dark-soft: #0b0f1c;
  --bg-dark-card: #0f1424;
  --bg-dark-card-2: #131a2e;
  --bg-light: #f4f6fb;
  --ink: #eef1f8;
  --ink-muted: #99a2ba;
  --ink-faint: #6b7590;
  --ink-dark: #0b0e17;
  --ink-dark-muted: #5b6478;
  --blue: #2f6bff;
  --blue-2: #1547c9;
  --violet: #7c5cff;
  --cyan: #00d0ff;
  --amber: #ffb23f;
  --red: #ff5470;
  --green: #2fd59a;
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--violet) 100%);
  --grad-brand-soft: linear-gradient(135deg, rgba(47, 107, 255, 0.16) 0%, rgba(124, 92, 255, 0.16) 100%);
  --grad-text: linear-gradient(100deg, #7fa6ff 0%, #a98dff 55%, #5fe1ff 100%);
  --border-dark: rgba(238, 241, 248, 0.09);
  --border-dark-strong: rgba(238, 241, 248, 0.16);
  --shadow-lg: 0 30px 80px -30px rgba(4, 8, 20, 0.55);
  --shadow-md: 0 16px 40px -18px rgba(4, 8, 20, 0.4);
  --shadow-glow: 0 0 0 1px rgba(124, 92, 255, 0.25), 0 20px 50px -20px rgba(47, 107, 255, 0.45);
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --container: 1240px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 600;
}
p {
  margin: 0;
}
::selection {
  background: rgba(124, 92, 255, 0.45);
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, opacity 0.2s;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.4), 0 26px 60px -18px rgba(47, 107, 255, 0.7);
}
.btn-primary .arrow {
  transition: transform 0.25s var(--ease);
}
.btn-primary:hover .arrow {
  transform: translateX(4px);
}
.btn-ghost {
  border: 1px solid var(--border-dark-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

/* ------------------------------------------------------------------- nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 76px;
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--border-dark);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: #fff;
}
.logo small {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 14px;
  color: var(--ink-muted);
}
.nav-links a:hover {
  color: #fff;
}

/* -------------------------------------------------------- backgrounds */
.bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
}
.glow-a {
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.55), transparent 70%);
  top: -180px;
  right: -120px;
}
.glow-b {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%);
  bottom: -220px;
  left: -160px;
}
.grid-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  pointer-events: none;
}

/* ================================================================ LANDING */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 80px;
  overflow: hidden;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  margin: 22px 0 24px;
}
.hero .lead {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--ink-muted);
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  font-size: 13px;
  color: var(--ink-faint);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

/* Hero mock: live spend console */
.console {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 26, 46, 0.9), rgba(11, 15, 28, 0.92));
  border: 1px solid var(--border-dark-strong);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(124, 92, 255, 0.08);
  padding: 22px;
  backdrop-filter: blur(10px);
}
.console::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(47, 107, 255, 0.6), transparent 40%, transparent 60%, rgba(124, 92, 255, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.console-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
}
.live::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: ping 1.8s infinite;
}
@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(47, 213, 154, 0.6);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(47, 213, 154, 0);
  }
}
.console-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}
.console-total .k {
  font-size: 12px;
  color: var(--ink-faint);
}
.console-total .v {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.console-total .budget {
  text-align: right;
  font-size: 12px;
  color: var(--ink-muted);
}
.meter {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin-top: 8px;
  width: 160px;
}
.meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 0.8s var(--ease);
}
.console-rows {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.crow {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dark);
  font-size: 13px;
  transition: border-color 0.4s, background 0.4s;
}
.crow .ic {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--grad-brand-soft);
  color: #a9b9ff;
}
.crow .ic svg {
  width: 16px;
  height: 16px;
}
.crow .n {
  font-weight: 500;
}
.crow .s {
  font-size: 11.5px;
  color: var(--ink-faint);
}
.crow .amt {
  font-family: var(--font-display);
  font-weight: 600;
}
.crow.blocked {
  border-color: rgba(255, 84, 112, 0.45);
  background: rgba(255, 84, 112, 0.07);
}
.crow.blocked .ic {
  background: rgba(255, 84, 112, 0.15);
  color: var(--red);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 600;
}
.tag-red {
  background: rgba(255, 84, 112, 0.14);
  color: #ff8fa2;
}
.tag-green {
  background: rgba(47, 213, 154, 0.12);
  color: #6ff0be;
}
.tag-amber {
  background: rgba(255, 178, 63, 0.14);
  color: #ffc875;
}
.approval {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  font-size: 12.5px;
  color: var(--ink);
  transform-origin: top;
  animation: pop 0.6s var(--ease) both;
}
.approval .av {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #4a154b;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.approval .acts {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.approval .acts span {
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11.5px;
}
.approval .ok {
  background: var(--green);
  color: #05230f;
}
.approval .no {
  background: rgba(255, 255, 255, 0.08);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* sections */
section {
  position: relative;
}
.section {
  padding: 120px 0;
}
.section-head {
  max-width: 760px;
  margin-bottom: 60px;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: clamp(32px, 4.2vw, 54px);
  margin: 18px 0 18px;
}
.section-head p {
  font-size: 18px;
  color: var(--ink-muted);
}
.section-light {
  background: var(--bg-light);
  color: var(--ink-dark);
}
.section-light .section-head p,
.section-light .muted {
  color: var(--ink-dark-muted);
}
.section-light .eyebrow {
  color: var(--ink-dark-muted);
}

/* problem statements */
.stmt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stmt {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid rgba(11, 14, 23, 0.07);
  box-shadow: 0 12px 30px -24px rgba(11, 14, 23, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.stmt:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -28px rgba(11, 14, 23, 0.45);
}
.stmt .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 20px;
}
.stmt .ic svg {
  width: 22px;
  height: 22px;
}
.stmt h3 {
  font-size: 19px;
  margin-bottom: 8px;
}
.stmt p {
  font-size: 14.5px;
  color: var(--ink-dark-muted);
}

/* pillars */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.pillar {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-dark-card), var(--bg-dark-soft));
  border: 1px solid var(--border-dark);
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.22), transparent 70%);
  transition: transform 0.6s var(--ease);
}
.pillar:hover::after {
  transform: translate(-30px, -30px);
}
.pillar .num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.pillar h3 {
  font-size: 26px;
  margin: 18px 0 10px;
}
.pillar p {
  color: var(--ink-muted);
  font-size: 15px;
}
.pillar-quote {
  margin-top: 40px;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: var(--ink);
}

/* dimensions */
.dims-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.dims {
  display: grid;
  gap: 14px;
}
.dim {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: #fff;
  border: 1px solid rgba(11, 14, 23, 0.07);
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.dim:hover {
  transform: translateX(6px);
  border-color: rgba(47, 107, 255, 0.35);
}
.dim .n {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--blue);
  background: rgba(47, 107, 255, 0.08);
}
.dim h4 {
  font-size: 18px;
}
.dim p {
  font-size: 14px;
  color: var(--ink-dark-muted);
}
.radar-demo {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #eef1fa 70%);
  box-shadow: inset 0 0 0 1px rgba(11, 14, 23, 0.05), 0 40px 80px -50px rgba(47, 107, 255, 0.5);
  padding: 8px;
  display: grid;
  place-items: center;
}

/* layer diagram */
.layer {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}
.layer-col {
  display: grid;
  gap: 12px;
}
.layer-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  font-size: 14px;
  font-weight: 500;
}
.layer-chip svg {
  width: 18px;
  height: 18px;
  color: #a9b9ff;
}
.layer-core {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.2), rgba(124, 92, 255, 0.18));
  border: 1px solid rgba(124, 92, 255, 0.45);
  box-shadow: var(--shadow-glow);
  text-align: center;
}
.layer-core h3 {
  font-size: 22px;
  margin-bottom: 14px;
}
.layer-core ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-muted);
}
.layer-core li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.layer-core li svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}
.flow-line {
  position: relative;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(124, 92, 255, 0.6), transparent);
  overflow: hidden;
}
.flow-line::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -20px;
  width: 20px;
  height: 6px;
  border-radius: 6px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: flow 1.8s linear infinite;
}
@keyframes flow {
  to {
    left: 100%;
  }
}

/* why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.checklist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
}
.checklist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 16.5px;
}
.checklist li svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--blue);
}
.big-stat {
  padding: 40px;
  border-radius: var(--r-lg);
  background: var(--bg-dark);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.big-stat .q {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
}
.big-stat .q em {
  font-style: normal;
}
.big-stat .foot {
  margin-top: 26px;
  font-size: 14px;
  color: var(--ink-muted);
}

/* about */
.about {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  padding: 26px;
  border-radius: var(--r-md);
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
}
.stat .v {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.stat .k {
  font-size: 13.5px;
  color: var(--ink-muted);
}

/* final CTA */
.cta-final {
  position: relative;
  overflow: hidden;
  padding: 90px 40px;
  border-radius: 32px;
  text-align: center;
  background: radial-gradient(ellipse at top, rgba(47, 107, 255, 0.35), transparent 60%),
    linear-gradient(180deg, var(--bg-dark-card), var(--bg-dark-soft));
  border: 1px solid var(--border-dark-strong);
}
.cta-final h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  max-width: 820px;
  margin: 18px auto;
}
.cta-final p {
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 34px;
}
.slots {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-muted);
}
.slots i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--grad-brand);
}

.footer {
  padding: 50px 0;
  border-top: 1px solid var(--border-dark);
  color: var(--ink-faint);
  font-size: 13.5px;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.reveal[data-d='1'] {
  transition-delay: 0.08s;
}
.reveal[data-d='2'] {
  transition-delay: 0.16s;
}
.reveal[data-d='3'] {
  transition-delay: 0.24s;
}

/* ============================================================== SIMULATOR */
.sim-body {
  min-height: 100vh;
  min-height: 100svh;
  background: radial-gradient(ellipse at 80% -10%, rgba(47, 107, 255, 0.18), transparent 55%),
    radial-gradient(ellipse at -10% 110%, rgba(124, 92, 255, 0.14), transparent 55%), var(--bg-dark);
}
.sim-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
}
.sim-top-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.sim-top .logo {
  font-size: 21px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--ink-muted);
  border: 1px solid var(--border-dark);
  transition: color 0.2s, background 0.2s;
}
.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.icon-btn svg {
  width: 15px;
  height: 15px;
}

.progress {
  padding: 12px 0 14px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.progress-label b {
  color: #fff;
  font-weight: 600;
}
.segs {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
}
.seg {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.seg i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-brand);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}

/* intro */
.intro {
  position: relative;
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 60px 0;
  overflow: hidden;
}
.intro-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.intro h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  margin: 20px 0 24px;
}
.intro .lead {
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 600px;
}
.intro .lead + .lead {
  margin-top: 14px;
}
.features3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 34px 0 38px;
  max-width: 640px;
}
.f3 {
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
}
.f3 svg {
  width: 20px;
  height: 20px;
  color: var(--cyan);
  margin-bottom: 10px;
}
.f3 b {
  display: block;
  font-size: 14px;
}
.f3 span {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.intro-foot {
  margin-top: 26px;
  font-size: 13px;
  color: var(--ink-faint);
}
.resume {
  margin-top: 18px;
  display: none;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-muted);
}
.resume.show {
  display: flex;
  flex-wrap: wrap;
}
.link-btn {
  color: #a9b9ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* chat layout */
.chat-layout {
  display: none;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
  align-items: start;
}
.chat-layout.show {
  display: grid;
}
.chat-col {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 64px - 64px - 56px);
}
.messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
}
.msg {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  max-width: 88%;
  animation: msgIn 0.45s var(--ease) both;
}
.msg.fast {
  animation: none;
}
@keyframes msgIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.msg .avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  box-shadow: 0 6px 20px -8px rgba(47, 107, 255, 0.8);
}
.msg .avatar.ghost {
  visibility: hidden;
}
.bubble {
  padding: 13px 17px;
  border-radius: 18px;
  font-size: 15.5px;
  line-height: 1.55;
  background: var(--bg-dark-card-2);
  border: 1px solid var(--border-dark);
  border-bottom-left-radius: 6px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.bubble strong {
  color: #fff;
  font-weight: 600;
}
.msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg.user .bubble {
  background: var(--grad-brand);
  border: 0;
  color: #fff;
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  box-shadow: 0 10px 30px -14px rgba(47, 107, 255, 0.8);
}
.msg.user .bubble.skipped {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
  font-style: italic;
  box-shadow: none;
}
.msg.rich {
  max-width: 100%;
  width: 100%;
}
.msg.rich .bubble {
  padding: 0;
  background: none;
  border: 0;
  width: 100%;
}
.typing {
  display: inline-flex;
  gap: 5px;
  padding: 16px 18px;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-muted);
  animation: blink 1.2s infinite both;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* product card inside chat */
.pcard {
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.14), rgba(124, 92, 255, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.35);
}
.pcard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b9c6ff;
  margin-bottom: 16px;
}
.pcard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
.pcard-flow {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.pcard-col {
  display: grid;
  gap: 6px;
}
.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(5, 7, 13, 0.55);
  border: 1px solid var(--border-dark);
  white-space: nowrap;
  text-align: center;
}
.pcard-arrow {
  height: 2px;
  min-width: 18px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0.1), rgba(124, 92, 255, 0.8));
  position: relative;
}
.pcard-arrow::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: rgba(124, 92, 255, 0.9);
  border-right: 0;
}
.pcard-core {
  padding: 14px 12px;
  border-radius: 14px;
  text-align: center;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
}
.pcard-core strong {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
}
.pcard-core small {
  font-size: 11px;
  opacity: 0.85;
}

/* composer */
.composer {
  position: sticky;
  bottom: 0;
  padding: 16px 0 18px;
}
.composer-inner {
  padding: 14px;
  border-radius: 20px;
  background: rgba(15, 20, 36, 0.92);
  border: 1px solid var(--border-dark-strong);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(10px);
  animation: msgIn 0.35s var(--ease) both;
}
.composer-inner:empty {
  display: none;
}
.composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}
.composer input[type='text'],
.composer input[type='email'],
.composer textarea {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  padding: 13px 15px;
  font: inherit;
  font-size: 15.5px;
  color: #fff;
  outline: none;
  resize: none;
  transition: border-color 0.2s, background 0.2s;
}
.composer textarea {
  min-height: 52px;
  max-height: 180px;
  line-height: 1.5;
}
.composer input:focus,
.composer textarea:focus {
  border-color: rgba(124, 92, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}
.composer input::placeholder,
.composer textarea::placeholder {
  color: var(--ink-faint);
}
.send {
  flex: none;
  height: 52px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s, transform 0.2s;
}
.send:hover {
  transform: translateY(-1px);
}
.send:disabled {
  opacity: 0.35;
  transform: none;
  cursor: not-allowed;
}
.send svg {
  width: 16px;
  height: 16px;
}
.composer-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--ink-faint);
  min-height: 22px;
}
.composer-foot .left {
  display: flex;
  gap: 14px;
  align-items: center;
}
.foot-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 12.5px;
  padding: 3px 0;
}
.foot-btn:hover {
  color: #fff;
}
.foot-btn svg {
  width: 13px;
  height: 13px;
}
.err {
  color: #ff8fa2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 13px;
  font-size: 14.5px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark-strong);
  color: var(--ink);
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.chip:hover {
  background: rgba(47, 107, 255, 0.12);
  border-color: rgba(47, 107, 255, 0.55);
  transform: translateY(-1px);
}
.chip .key {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-faint);
  border: 1px solid var(--border-dark-strong);
}
.chip .box {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-faint);
  display: grid;
  place-items: center;
  transition: background 0.18s, border-color 0.18s;
}
.chip .box svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  color: #fff;
}
.chip.on {
  background: rgba(47, 107, 255, 0.18);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15);
}
.chip.on .box {
  background: var(--blue);
  border-color: var(--blue);
}
.chip.on .box svg {
  opacity: 1;
}
.chip.rec {
  border-color: rgba(0, 208, 255, 0.45);
}
.chip .star {
  color: var(--cyan);
  font-size: 13px;
}
.chip.dim {
  opacity: 0.4;
}
.other-row {
  display: none;
  margin-top: 10px;
}
.other-row.show {
  display: flex;
}
.scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.scale button {
  height: 60px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark-strong);
  transition: all 0.18s;
}
.scale button:hover {
  background: var(--grad-brand);
  border-color: transparent;
  transform: translateY(-2px);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* profile panel */
.profile {
  position: sticky;
  top: 150px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 26, 46, 0.9), rgba(11, 15, 28, 0.9));
  border: 1px solid var(--border-dark-strong);
  box-shadow: var(--shadow-md);
}
.profile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.profile-toggle {
  display: none;
}
.level {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
}
.level-ring {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
}
.level-ring svg {
  width: 64px;
  height: 64px;
  transform: rotate(-90deg);
}
.level-ring .track {
  stroke: rgba(255, 255, 255, 0.08);
}
.level-ring .val {
  stroke: url(#ringGrad);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s var(--ease);
}
.level-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 18px;
}
.level-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
}
.level-sub {
  font-size: 12.5px;
  color: var(--ink-faint);
}
.calibrating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-muted);
}
.calibrating::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  border-top-color: var(--cyan);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pbars {
  display: grid;
  gap: 14px;
}
.pbar-top {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.pbar-top span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.3s;
}
.pbar-track {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.pbar-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-brand);
  transition: width 1s var(--ease), background 0.4s;
}
.pbar.flash .pbar-top span:last-child {
  color: var(--cyan);
}
.risk-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 84, 112, 0.07);
  border: 1px solid rgba(255, 84, 112, 0.28);
  display: none;
}
.risk-card.show {
  display: block;
  animation: pop 0.5s var(--ease) both;
}
.risk-card .k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff9fb0;
}
.risk-card .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 4px 0 2px;
}
.risk-card .s {
  font-size: 12px;
  color: var(--ink-faint);
}
.profile-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-faint);
  line-height: 1.5;
}

/* generating overlay */
.generating {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 13, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 24px;
}
.generating.show {
  display: flex;
  animation: fade 0.4s both;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.gen-box {
  width: 100%;
  max-width: 440px;
  text-align: center;
}
.gen-orb {
  width: 96px;
  height: 96px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--blue), var(--violet), var(--cyan), var(--blue));
  animation: spin 2.4s linear infinite;
  position: relative;
  filter: drop-shadow(0 0 30px rgba(47, 107, 255, 0.6));
}
.gen-orb::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: var(--bg-dark);
}
.gen-box h3 {
  font-size: 24px;
  margin-bottom: 22px;
}
.gen-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.gen-steps li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dark);
  font-size: 14px;
  color: var(--ink-faint);
  transition: color 0.3s, border-color 0.3s;
}
.gen-steps li .st {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--ink-faint);
  flex: none;
  display: grid;
  place-items: center;
}
.gen-steps li.active {
  color: #fff;
  border-color: rgba(124, 92, 255, 0.4);
}
.gen-steps li.active .st {
  border-color: var(--ink-faint);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
.gen-steps li.done {
  color: var(--ink);
}
.gen-steps li.done .st {
  border-color: var(--green);
  background: var(--green);
}
.gen-steps li.done .st::after {
  content: '';
  width: 6px;
  height: 3px;
  border-left: 2px solid #05230f;
  border-bottom: 2px solid #05230f;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ================================================================ REPORT */
.report {
  display: none;
  padding: 40px 0 80px;
}
.report.show {
  display: block;
}
.r-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 30px;
}
.r-head h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin-top: 14px;
}
.r-head .meta {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 14.5px;
}
.r-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.r-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.card {
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(19, 26, 46, 0.85), rgba(11, 15, 28, 0.9));
  border: 1px solid var(--border-dark);
  padding: 28px;
  break-inside: avoid;
}
.card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.card .sub {
  color: var(--ink-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.c-score {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.c-score::after {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -150px;
  background: radial-gradient(circle, rgba(47, 107, 255, 0.28), transparent 70%);
  pointer-events: none;
}
.c-radar {
  grid-column: span 7;
}
.score-wrap {
  display: flex;
  gap: 26px;
  align-items: center;
  margin: 10px 0 22px;
}
.score-ring {
  position: relative;
  width: 150px;
  height: 150px;
  flex: none;
}
.score-ring svg {
  width: 150px;
  height: 150px;
  transform: rotate(-90deg);
}
.score-ring .num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}
.score-ring .num b {
  display: block;
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}
.score-ring .num small {
  font-size: 12px;
  color: var(--ink-faint);
}
.lvl-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tone-crit {
  background: rgba(255, 84, 112, 0.15);
  color: #ff8fa2;
}
.tone-warn {
  background: rgba(255, 178, 63, 0.15);
  color: #ffc875;
}
.tone-mid {
  background: rgba(0, 208, 255, 0.12);
  color: #7fe6ff;
}
.tone-good {
  background: rgba(47, 107, 255, 0.16);
  color: #9db7ff;
}
.tone-great {
  background: rgba(47, 213, 154, 0.14);
  color: #6ff0be;
}
.lvl-name {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  margin: 10px 0 6px;
  letter-spacing: -0.02em;
}
.lvl-blurb {
  color: var(--ink-muted);
  font-size: 15px;
}
.ladder {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.ladder div {
  font-size: 11px;
  color: var(--ink-faint);
  text-align: center;
}
.ladder div i {
  display: block;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}
.ladder div.on i {
  background: var(--grad-brand);
}
.ladder div.cur {
  color: #fff;
  font-weight: 600;
}
.radar-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.radar-svg text {
  font-family: var(--font-body);
}
.dim-list {
  display: grid;
  gap: 14px;
}
.dim-row .top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}
.dim-row .top b {
  font-family: var(--font-display);
}
.dim-row small {
  display: block;
  color: var(--ink-faint);
  font-size: 12px;
  margin-top: 4px;
}

.c-kpis {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  background: none;
  border: 0;
}
.kpi {
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(19, 26, 46, 0.85), rgba(11, 15, 28, 0.9));
  border: 1px solid var(--border-dark);
  padding: 22px;
}
.kpi .k {
  font-size: 12.5px;
  color: var(--ink-muted);
}
.kpi .v {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.kpi .s {
  font-size: 12px;
  color: var(--ink-faint);
}
.kpi.alert {
  border-color: rgba(255, 84, 112, 0.35);
  background: linear-gradient(180deg, rgba(255, 84, 112, 0.1), rgba(11, 15, 28, 0.9));
}
.kpi.alert .v {
  color: #ff9fb0;
}

.c-findings {
  grid-column: span 7;
}
.c-strengths {
  grid-column: span 5;
}
.finding {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border-dark);
}
.finding:first-of-type {
  border-top: 0;
  padding-top: 4px;
}
.sev {
  margin-top: 3px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  height: fit-content;
  white-space: nowrap;
}
.sev-4 {
  background: rgba(255, 84, 112, 0.16);
  color: #ff8fa2;
}
.sev-3 {
  background: rgba(255, 140, 80, 0.16);
  color: #ffb08a;
}
.sev-2 {
  background: rgba(255, 178, 63, 0.14);
  color: #ffc875;
}
.sev-1 {
  background: rgba(0, 208, 255, 0.12);
  color: #7fe6ff;
}
.finding h4 {
  font-size: 16.5px;
  margin-bottom: 4px;
}
.finding p {
  font-size: 14px;
  color: var(--ink-muted);
}
.finding .fix {
  margin-top: 8px;
  font-size: 12.5px;
  color: #a9b9ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.finding .fix svg {
  width: 13px;
  height: 13px;
}
.str-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}
.str-list li {
  display: flex;
  gap: 12px;
  font-size: 14.5px;
}
.str-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--green);
}
.quote {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--violet);
  font-size: 14px;
  color: var(--ink-muted);
  font-style: italic;
}
.quote b {
  display: block;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.c-solution {
  grid-column: span 12;
}
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sol {
  position: relative;
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dark);
}
.sol.pick {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(160deg, rgba(47, 107, 255, 0.12), rgba(124, 92, 255, 0.08));
}
.sol .ic {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-brand);
  margin-bottom: 14px;
}
.sol .ic svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.sol h4 {
  font-size: 16.5px;
  margin-bottom: 6px;
}
.sol p {
  font-size: 13.5px;
  color: var(--ink-muted);
}
.sol .badges {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  gap: 6px;
}

.c-roadmap {
  grid-column: span 12;
}
.road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}
.road-col {
  padding: 22px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-dark);
}
.road-col .rng {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.road-col h4 {
  font-size: 24px;
  margin: 6px 0 14px;
}
.road-col h4 span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.road-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.road-col li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.road-col li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.c-cta {
  grid-column: span 12;
  text-align: center;
  padding: 50px 30px;
  background: radial-gradient(ellipse at top, rgba(47, 107, 255, 0.3), transparent 65%),
    linear-gradient(180deg, rgba(19, 26, 46, 0.9), rgba(11, 15, 28, 0.95));
  border-color: var(--border-dark-strong);
}
.c-cta h3 {
  font-size: clamp(26px, 3vw, 36px);
  margin: 14px auto 12px;
  max-width: 700px;
}
.c-cta p {
  color: var(--ink-muted);
  max-width: 600px;
  margin: 0 auto 28px;
}
.c-cta .btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.disclaimer {
  grid-column: span 12;
  font-size: 12px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1.6;
}
.print-only {
  display: none;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 30px);
  opacity: 0;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-dark);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  transition: all 0.35s var(--ease);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .stmt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .layer {
    grid-template-columns: 1fr;
  }
  .flow-line {
    width: 2px;
    height: 40px;
    margin: 0 auto;
    background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.6), transparent);
  }
  .flow-line::after {
    left: -2px;
    top: -20px;
    width: 6px;
    height: 20px;
    animation: flowV 1.8s linear infinite;
  }
  @keyframes flowV {
    to {
      top: 100%;
    }
  }
  .layer-col {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}
@media (max-width: 960px) {
  .nav-links {
    display: none;
  }
  .hero-grid,
  .intro-grid,
  .dims-wrap,
  .why-grid,
  .about {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .pillars {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 84px 0;
  }
  .chat-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }
  .profile {
    position: sticky;
    top: 120px;
    z-index: 20;
    order: -1;
    margin: 0 -24px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 12px 24px;
    background: rgba(11, 15, 28, 0.94);
    backdrop-filter: blur(12px);
  }
  .profile-toggle {
    display: inline-flex;
  }
  .profile .profile-body {
    display: none;
  }
  .profile.open .profile-body {
    display: block;
  }
  .profile .level {
    margin: 10px 0 6px;
  }
  .profile .level-ring,
  .profile .level-ring svg {
    width: 44px;
    height: 44px;
  }
  .profile .level-ring b {
    font-size: 14px;
  }
  .level-name {
    font-size: 17px;
  }
  .chat-col {
    min-height: calc(100svh - 230px);
    padding-top: 18px;
  }
  .r-grid > .card,
  .c-score,
  .c-radar,
  .c-findings,
  .c-strengths {
    grid-column: span 12;
  }
  .c-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .sol-grid,
  .road {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .container {
    padding: 0 16px;
  }
  .profile {
    margin: 0 -16px;
    padding: 10px 16px;
  }
  .hero {
    padding-top: 110px;
  }
  .stmt-grid,
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .stmt-grid {
    grid-template-columns: 1fr;
  }
  .features3 {
    grid-template-columns: 1fr;
  }
  .msg {
    max-width: 96%;
  }
  .bubble {
    font-size: 15px;
  }
  .radar-box {
    grid-template-columns: 1fr;
  }
  .score-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
  .c-kpis {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 22px;
  }
  .pcard-flow {
    grid-template-columns: 1fr;
  }
  .pcard-arrow {
    width: 2px;
    height: 16px;
    min-width: 0;
    margin: 0 auto;
  }
  .pcard-arrow::after {
    display: none;
  }
  .pcard-col {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }
  .send span {
    display: none;
  }
  .cta-final {
    padding: 60px 22px;
  }
  .sim-top .logo small {
    display: none;
  }
  .approval {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ================================================================= PRINT */
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  body,
  .sim-body {
    background: #fff !important;
    color: #0b0e17;
  }
  .sim-top,
  .chat-layout,
  .intro,
  .r-actions,
  .toast,
  .generating,
  .c-cta .btns,
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block;
  }
  .report {
    display: block !important;
    padding: 0;
  }
  .container {
    max-width: none;
    padding: 0;
  }
  .card,
  .kpi,
  .sol,
  .road-col {
    background: #fff !important;
    border: 1px solid #dde2ee !important;
    box-shadow: none !important;
    color: #0b0e17;
  }
  .card::after,
  .c-score::after {
    display: none;
  }
  .r-head {
    border-color: #dde2ee;
  }
  .r-head .meta,
  .card .sub,
  .lvl-blurb,
  .finding p,
  .sol p,
  .kpi .k,
  .kpi .s,
  .dim-row small,
  .disclaimer,
  .quote {
    color: #5b6478 !important;
  }
  .road-col li,
  .str-list li {
    color: #0b0e17;
  }
  .finding {
    border-color: #e6e9f2;
  }
  .kpi.alert .v {
    color: #d6334f;
  }
  .grad-text,
  .road-col h4 span {
    -webkit-text-fill-color: initial;
    color: #2f6bff;
    background: none;
  }
  .radar-svg .grid-line {
    stroke: #dde2ee;
  }
  .radar-svg .axis-label {
    fill: #0b0e17;
  }
  .c-cta {
    background: #f4f6fb !important;
  }
  .r-grid {
    gap: 12px;
  }
  .c-score,
  .c-radar,
  .c-findings,
  .c-strengths {
    grid-column: span 12;
  }
  .c-solution,
  .c-roadmap {
    break-before: page;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
