/* ============================================================
   EQ — Enterprise Quotient · Design System
   Light theme · Poppins · Purple #7C3AED · Gradient accent
   Signature: the L1–L5 cascade (purple→blue→green→amber→pink)
   ============================================================ */

:root {
  /* ink */
  --ink: #17131f;
  --ink-2: #3d3849;
  --muted: #6a6577;
  --faint: #9a95a8;

  /* surfaces */
  --paper: #ffffff;
  --tint: #f7f6fb;
  --tint-2: #f1eefa;
  --line: #e9e6f2;
  --line-2: #dcd7ea;

  /* brand */
  --purple: #7c3aed;
  --purple-deep: #5b21b6;
  --purple-soft: #f3edff;
  --pink: #ec1e79;
  --orange: #f59e42;
  --grad: linear-gradient(93deg, #7c3aed 0%, #c026d3 38%, #ec1e79 68%, #f59e42 100%);
  --grad-soft: linear-gradient(135deg, #faf7ff, #f4eeff 55%, #eef2ff);

  /* cascade levels — the signature */
  --l1: #7c3aed;
  --l2: #3b82f6;
  --l3: #16a34a;
  --l4: #d97706;
  --l5: #e11d5b;

  /* status */
  --green: #15803d; --green-bg: #f0fdf4; --green-line: #c4ebcf;
  --amber: #d97706; --amber-bg: #fffbeb; --amber-line: #f6dfae;
  --red: #dc2626;   --red-bg: #fef2f2;   --red-line: #f7cdd9;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 19, 31, .04), 0 8px 28px rgba(23, 19, 31, .07);
  --shadow-lg: 0 2px 6px rgba(23, 19, 31, .05), 0 24px 64px rgba(92, 33, 182, .13);
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--purple); outline-offset: 2px; border-radius: 4px;
}

/* ---------- typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.02em; line-height: 1.16; color: var(--ink); }
.display { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; letter-spacing: -.03em; }
.h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); line-height: 1.7; font-weight: 400; }
.small { font-size: .875rem; color: var(--muted); }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* eyebrow with cascade dots — signature device */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
}
.eyebrow .dots { display: inline-flex; gap: 4px; }
.eyebrow .dots i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.eyebrow .dots i:nth-child(1) { background: var(--l1); }
.eyebrow .dots i:nth-child(2) { background: var(--l2); }
.eyebrow .dots i:nth-child(3) { background: var(--l3); }
.eyebrow .dots i:nth-child(4) { background: var(--l4); }
.eyebrow .dots i:nth-child(5) { background: var(--l5); }

/* ---------- layout ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 880px; }

.section { padding: 96px 0; }
.section.tight { padding: 72px 0; }
.section.band { background: var(--tint); }
.section.band-grad { background: var(--grad-soft); }
.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head .lead { margin-top: 16px; }

.grid { display: grid; gap: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  padding: 14px 26px; border-radius: 12px; border: none; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 8px 22px rgba(124, 58, 237, .32);
}
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(124, 58, 237, .4); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 24px rgba(236, 30, 121, .28); }
.btn-grad:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(236, 30, 121, .36); }
.btn-ghost {
  background: var(--paper); color: var(--ink);
  border: 1.5px solid var(--line-2);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); transform: translateY(-2px); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(23, 19, 31, .06); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.nav-logo { display: flex; align-items: center; gap: 11px; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo .word { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo .word b { font-size: .82rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); }
.nav-logo .word span { font-size: .6rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--ink-2);
  padding: 9px 15px; border-radius: 10px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--purple); background: var(--purple-soft); }
.nav-links a.active { color: var(--purple); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; font-size: .88rem; }
.nav-burger {
  display: none; background: none; border: none; cursor: pointer; padding: 8px;
  color: var(--ink-2);
}
.nav-mobile { display: none; background: var(--paper); border-top: 1px solid var(--line); padding: 12px 24px 24px; }
.nav-mobile a:not(.btn) { display: block; padding: 13px 14px; font-weight: 500; color: var(--ink-2); border-radius: 10px; }
.nav-mobile a:not(.btn):hover { background: var(--purple-soft); color: var(--purple); }
.nav-mobile .btn { width: 100%; margin-top: 12px; }
.nav-mobile.open { display: block; }

main { padding-top: var(--nav-h); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.card .ic {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--purple-soft); color: var(--purple); margin-bottom: 18px; font-size: 20px;
}
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { margin: 0; font-size: .92rem; color: var(--muted); line-height: 1.65; }

/* persona / list checks */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; padding: 7px 0; font-size: .95rem; color: var(--ink-2); }
.check-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px;
  background: var(--purple-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 11px; background-position: center; background-repeat: no-repeat;
}

/* ---------- status pills / chips ---------- */
.pill { font-size: .68rem; font-weight: 600; letter-spacing: .02em; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.pill.green { color: var(--green); background: var(--green-bg); }
.pill.amber { color: var(--amber); background: var(--amber-bg); }
.pill.red { color: var(--red); background: var(--red-bg); }
.pill.purple { color: var(--purple-deep); background: var(--purple-soft); }
.pill.lag { background: var(--l1); color: #fff; }
.pill.lead-p { background: var(--l5); color: #fff; }

.chip { font-size: .68rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
.chip.g { background: var(--green-bg); color: var(--green); }
.chip.b { background: #eaf1fe; color: #1e40af; }
.chip.a { background: var(--amber-bg); color: var(--amber); }

/* ---------- product illustration primitives ---------- */
.ui-frame {
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.ui-frame-bar {
  display: flex; align-items: center; gap: 7px; padding: 12px 18px;
  border-bottom: 1px solid var(--line); background: #fbfafd;
}
.ui-frame-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.ui-frame-bar .dot.r { background: #ff5f57; } .ui-frame-bar .dot.y { background: #febc2e; } .ui-frame-bar .dot.g { background: #28c840; }
.ui-frame-bar .url { margin-left: 10px; font-size: .72rem; color: var(--faint); font-weight: 500; }
.ui-frame-bar .tag {
  margin-left: auto; font-size: .62rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--purple); background: var(--purple-soft); border: 1px solid #e6d9ff;
  padding: 4px 10px; border-radius: 999px;
}
.ui-stage { padding: 24px; }

/* metric card used inside illustrations */
.mcard { background: var(--paper); border: 1px solid var(--line); border-radius: 13px; padding: 15px 15px 13px; }
.mcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.mcard-top .t { font-size: .8rem; font-weight: 500; color: var(--ink-2); line-height: 1.3; }
.mcard-mid { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.mcard-mid .v { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin: 0 auto; }
.mcard-mid .tr { font-size: .68rem; font-weight: 600; }
.mcard-mid .tr.up { color: var(--green); } .mcard-mid .tr.down { color: var(--red); }
.mcard-foot { display: flex; gap: 10px; background: var(--tint); border-radius: 9px; padding: 8px 11px; }
.mcard-foot > div { flex: 1; }
.mcard-foot label { display: block; font-size: .58rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); margin-bottom: 1px; }
.mcard-foot b { font-size: .8rem; font-weight: 600; }
.mcard-foot b.tgt { color: var(--green); }

/* cascade level labels */
.lvl-tag { font-weight: 700; letter-spacing: -.01em; }
.lvl-tag.l1 { color: var(--l1); } .lvl-tag.l2 { color: var(--l2); } .lvl-tag.l3 { color: var(--l3); }
.lvl-tag.l4 { color: var(--l4); } .lvl-tag.l5 { color: var(--l5); }

/* ---------- comparison table ---------- */
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
.cmp-table th, .cmp-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-table thead th {
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid var(--line-2);
}
.cmp-table td:first-child { font-weight: 600; color: var(--ink); }
.cmp-table td.eq-col { background: var(--purple-soft); font-weight: 500; color: var(--purple-deep); }
.cmp-table thead th.eq-col { color: var(--purple); background: var(--purple-soft); border-radius: 12px 12px 0 0; }
.cmp-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow); }

/* ---------- forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 11px;
  padding: 13px 16px; transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6577' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}
.field textarea { resize: vertical; min-height: 110px; }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checks label {
  display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 500; color: var(--ink-2);
  border: 1.5px solid var(--line-2); border-radius: 11px; padding: 11px 14px; cursor: pointer;
  transition: border-color .15s, background .15s; margin-bottom: 0;
}
.checks label:has(input:checked) { border-color: var(--purple); background: var(--purple-soft); color: var(--purple-deep); }
.checks input { accent-color: var(--purple); width: 16px; height: 16px; }

/* ---------- footer ---------- */
.footer { background: var(--tint); border-top: 1px solid var(--line); padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand img { height: 36px; margin-bottom: 14px; }
.footer-brand p { margin: 0; font-size: .85rem; color: var(--muted); max-width: 300px; }
.footer-col h4 { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: .9rem; color: var(--ink-2); padding: 5px 0; }
.footer-col a:hover { color: var(--purple); }
.footer-base {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .82rem; color: var(--faint);
}

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--ink); border-radius: 28px; padding: 72px 48px; text-align: center; }
.cta-band::before {
  content: ""; position: absolute; inset: -40%;
  background:
    radial-gradient(600px 340px at 20% 15%, rgba(124, 58, 237, .45), transparent 60%),
    radial-gradient(520px 320px at 80% 85%, rgba(236, 30, 121, .35), transparent 60%),
    radial-gradient(420px 300px at 60% 20%, rgba(245, 158, 66, .22), transparent 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .75); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid.cols-4, .grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 720px) {
  body { overflow-x: clip; }
  .btn { white-space: normal; max-width: 100%; }
  .section { padding: 64px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .grid.cols-5 { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .cta-band { padding: 56px 24px; border-radius: 20px; }
  .nav-cta .btn-primary { padding: 9px 14px; font-size: .8rem; white-space: nowrap; }
}
@media (max-width: 460px) {
  .nav-logo .word { display: none; }
}
