/* ============ Tokens ============ */
:root {
  --bg: #ffffff;
  --panel: #f4f6fa;
  --tint: #e8f0ff;
  --tint-2: #d6e4ff;
  --line: rgba(12,32,56,.10);
  --line-strong: rgba(12,32,56,.16);

  --navy: #0c2038;
  --navy-2: #163257;
  --fg: #0c2038;
  --body: #46546b;
  --quiet: #76829a;
  --faint: #a3adbd;

  --accent: #2c74fc;
  --accent-soft: rgba(44,116,252,.10);
  --high: #d9480f;  --high-bg: #fff1e8;
  --med:  #b7791f;  --med-bg:  #fff7e1;
  --ok:   #1e8a5a;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1120px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --r: 12px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-win: 0 1px 2px rgba(12,32,56,.06), 0 12px 32px -8px rgba(12,32,56,.14), 0 40px 80px -32px rgba(12,32,56,.22);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: rgba(44,116,252,.22); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 600; }
h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--fg);
  font-weight: 500; font-size: 15px; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(12,32,56,.05);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--panel); border-color: rgba(12,32,56,.26); }
.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 1px 2px rgba(12,32,56,.25), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--tint); border-color: var(--tint); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

/* ============ Brand ============ */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.015em; color: var(--navy); }
.mark { width: 34px; height: 22px; display: block; }
.mark rect { fill: none; stroke-width: 8.5; }
.mark .a { stroke: var(--navy); }
.mark .b { stroke: var(--accent); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.links { display: flex; gap: 28px; font-size: 15px; color: var(--body); }
.links a:hover { color: var(--fg); }

/* ============ Hero ============ */
.hero { padding-top: clamp(48px, 7vh, 84px); }
.hero-copy { text-align: center; }
.hero h1 {
  margin: 0 auto;
  max-width: 20ch;
  font-size: clamp(40px, 5.6vw, 70px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.benefits {
  width: fit-content;
  margin: 24px auto 0;
  display: grid; justify-items: start; gap: 8px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.45;
  color: var(--body);
}
.benefits li { display: inline-flex; align-items: flex-start; gap: 10px; text-align: left; }
.benefits svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: .25em; color: var(--accent); }
.cta { display: flex; justify-content: center; gap: 10px; margin-top: 30px; flex-wrap: wrap; }

/* Stage: tinted panel the product window sits on */
.stage {
  margin-top: clamp(44px, 6vw, 72px);
  padding-top: clamp(40px, 5vw, 64px);
  background:
    radial-gradient(70% 90% at 50% 100%, var(--tint-2) 0%, var(--tint) 45%, rgba(232,240,255,0) 100%),
    linear-gradient(180deg, #fff 0%, var(--tint) 100%);
  border-bottom: 1px solid var(--line);
}
.window {
  position: relative;
  margin-bottom: -56px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-win);
  overflow: hidden;
  font-size: 13.5px;
  line-height: 1.45;
}
.win-bar {
  display: flex; align-items: center; gap: 14px;
  height: 46px; padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #e3e7ee; display: block; }
.win-title { flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-id { color: var(--quiet); font-weight: 400; margin-right: 8px; }
.win-status { display: inline-flex; align-items: center; gap: 8px; color: var(--body); white-space: nowrap; font-size: 12.5px; }
.win-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.win-body { display: grid; grid-template-columns: 272px 1fr; }
.win-side { border-right: 1px solid var(--line); background: #fbfcfe; padding: 14px 10px 18px; }
.side-head { display: flex; justify-content: space-between; padding: 0 8px 10px; font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); }
.win-side li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--body); }
.win-side li i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: 0 0 7px; }
.win-side li.high i { background: var(--high); }
.win-side li.med i { background: var(--med); }
.win-side li.pass { color: var(--quiet); }
.win-side li.pass i { background: var(--ok); opacity: .6; }
.win-side li em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--quiet); }
.win-side li.sel { background: #fff; border: 1px solid var(--line-strong); color: var(--fg); font-weight: 500; box-shadow: 0 1px 2px rgba(12,32,56,.05); }
.win-main { padding: 22px 26px 26px; }
.detail-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.detail-head h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 5px; }
.tag.high { color: var(--high); background: var(--high-bg); }
.cite { margin-left: auto; font-size: 12.5px; color: var(--quiet); }
.detail { margin-top: 18px; display: grid; gap: 10px; }
.detail > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.detail dt { font-size: 11.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--quiet); margin-bottom: 4px; }
.detail dd { color: var(--fg); }
.detail .fix { border-color: rgba(44,116,252,.35); background: #f3f7ff; }
.detail .fix dt { color: var(--accent); }
.detail-acts { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.detail-note { margin-left: auto; font-size: 12.5px; color: var(--quiet); }
.btn-mock { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--line-strong); background: #fff; font-size: 13px; font-weight: 500; }
.btn-mock.primary { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============ Statement ============ */
.statement { padding-top: calc(56px + var(--section)); padding-bottom: var(--section); }
.statement p {
  max-width: 980px;
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.22;
  letter-spacing: -0.022em;
  font-weight: 500;
  color: var(--quiet);
  text-wrap: pretty;
}
.statement strong { color: var(--fg); font-weight: 500; }

/* ============ How it works ============ */
.how { padding-bottom: var(--section); }
.panel { background: var(--panel); border-radius: var(--r-lg); padding: clamp(32px, 4.5vw, 56px); }
.how-head { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px 48px; align-items: end; }
.how-head p { color: var(--body); font-size: 17px; max-width: 520px; }
.steps { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps h3 { margin-top: 18px; }
.steps p { margin-top: 6px; color: var(--body); font-size: 15px; line-height: 1.55; }
.how-note { margin-top: clamp(28px, 3.5vw, 44px); padding-top: 22px; border-top: 1px solid var(--line-strong); color: var(--body); font-size: 15px; }

/* vignettes */
.vig {
  position: relative; height: 168px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px;
  font-size: 12px; line-height: 1.4; color: var(--body);
  box-shadow: 0 1px 2px rgba(12,32,56,.04);
}
.vig-spec { display: grid; gap: 9px; align-content: start; }
.vig-spec .vl { display: block; height: 7px; border-radius: 4px; background: #e6eaf1; }
.vig-spec .w90 { width: 90%; } .vig-spec .w80 { width: 80%; } .vig-spec .w70 { width: 70%; } .vig-spec .w60 { width: 60%; } .vig-spec .w50 { width: 50%; }
.vig-spec .hl {
  height: auto; width: 100%; padding: 6px 8px 6px 10px; border-radius: 6px;
  background: #f3f7ff; border-left: 2px solid var(--accent); color: var(--fg); font-weight: 500; font-size: 11.5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mail-head { display: flex; align-items: center; gap: 10px; }
.mail-head > span:last-child { display: grid; line-height: 1.25; }
.mail-head b { color: var(--fg); font-weight: 600; font-size: 12.5px; }
.mail-head small { color: var(--quiet); font-size: 11px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; flex: 0 0 28px; }
.vig-mail p { margin-top: 12px; color: var(--fg); font-size: 12.5px; line-height: 1.5; }
.vig-mail mark { background: rgba(44,116,252,.14); color: var(--navy); border-radius: 3px; padding: 0 3px; font-weight: 500; }
.vig-dwg { padding: 10px; color: var(--navy); background: #fff; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 16px 16px; }
.vig-dwg svg { width: 100%; height: 100%; display: block; }
.vf-top { display: flex; align-items: center; gap: 8px; }
.vf-top b { color: var(--fg); font-weight: 600; font-size: 13px; }
.vig-flag p { margin-top: 9px; padding: 7px 10px; border-radius: 7px; background: #f3f7ff; border: 1px solid rgba(44,116,252,.3); color: var(--fg); font-size: 12px; }
.vig-flag p span { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-bottom: 2px; }
.vf-acts { display: flex; gap: 6px; margin-top: 10px; }
.vf-acts .btn-mock { height: 26px; padding: 0 10px; font-size: 12px; }

/* ============ Close ============ */
.close { padding-bottom: var(--section); }
.close-panel {
  text-align: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(56px, 7vw, 88px) var(--gutter);
  background-image: radial-gradient(60% 80% at 50% 110%, rgba(44,116,252,.45), transparent 70%);
}
.close-panel h2 { max-width: 18ch; margin-inline: auto; font-size: clamp(30px, 4vw, 46px); }
.close-panel .btn { margin-top: 30px; }
.trust { margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.62); }

/* ============ Footer ============ */
footer { border-top: 1px solid var(--line); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 24px 40px;
  font-size: 14px; color: var(--quiet);
}
.footer-inner .brand { font-size: 15px; }
.footer-inner .mark { width: 28px; height: 18px; }
.footer-inner a:hover { color: var(--fg); }

/* ============ Motion ============ */
.rise { opacity: 0; transform: translateY(10px); animation: rise .7s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .how-head { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .links { display: none; }
  .win-body { grid-template-columns: 1fr; }
  .win-side { display: none; }
  .cite { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(36px, 10vw, 44px); }
  .benefits { max-width: 360px; }
  .cta .btn { flex: 1 1 100%; max-width: 320px; }
  .window { margin-bottom: -32px; border-radius: 12px; }
  .win-status { display: none; }
  .win-main { padding: 16px; }
  .detail-note { display: none; }
  .statement { padding-top: calc(32px + var(--section)); }
  .steps { grid-template-columns: 1fr; }
  .panel { border-radius: 18px; }
}
