/* ==========================================================================
   CS Takeoff — site styles
   Fonts are self-hosted (CSP allows only same-origin fonts).
   ========================================================================== */

@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PlexMono"; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --ink: #0a0f24;
  --ink-2: #111836;
  --ink-3: #1a2350;
  --ink-line: rgba(255,255,255,.09);
  --on-ink: #e8ebf7;
  --on-ink-muted: #9aa3c4;

  --text: #161b2e;
  --muted: #5b6479;
  --line: #e4e7f0;
  --bg: #ffffff;
  --bg-soft: #f5f6fb;
  --bg-tint: #eef0fe;

  --brand: #5b5cf6;
  --brand-a: #5468f8;
  --brand-b: #684dfe;
  --brand-ink: #3d3fd1;

  --amber: #f5b83d;
  --teal: #1fb6a2;
  --rose: #f0627e;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.07);
  --shadow-lg: 0 30px 80px rgba(8,10,40,.35);

  --sans: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "PlexMono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: .9em; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .82em 1.35em; border-radius: 10px; font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s; cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-solid { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; box-shadow: 0 6px 20px rgba(91,92,246,.35), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(91,92,246,.45), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { color: var(--on-ink); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.35); }
.btn-line { color: var(--text); border-color: var(--line); background: #fff; }
.btn-line:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-big { font-size: 1.05rem; padding: 1em 1.6em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .25s ease, box-shadow .25s ease, border-color .25s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(10,15,36,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom-color: var(--ink-line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 14px rgba(91,92,246,.4); }
.brand-word { font-size: 1.42rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.brand.on-light { color: var(--text); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--on-ink-muted); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav .nav-cta { color: #fff; margin-left: 10px; padding: .6em 1.1em; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.22); color: #fff; font: inherit; font-weight: 500; padding: 7px 14px; border-radius: 8px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-ink); padding: 150px 0 110px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(104,77,254,.32), transparent 60%),
    radial-gradient(700px 500px at 8% 90%, rgba(84,104,248,.20), transparent 60%);
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500; color: var(--on-ink); background: rgba(255,255,255,.06); border: 1px solid var(--ink-line); padding: 6px 14px 6px 6px; border-radius: 999px; margin-bottom: 26px; }
.pill b { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); color: #fff; font-weight: 600; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .grad { background: linear-gradient(100deg, #a9b0ff 0%, #8e7dff 45%, #f5b83d 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--on-ink-muted); max-width: 34em; margin-bottom: 32px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: .9rem; color: var(--on-ink-muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--teal); }

.hero-art { position: relative; }
.app-window { border-radius: 14px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08); overflow: hidden; transform: perspective(1800px) rotateY(-7deg) rotateX(3deg); transition: transform .6s ease; }
.hero-art:hover .app-window { transform: perspective(1800px) rotateY(-2deg) rotateX(1deg); }
.float-card { position: absolute; background: rgba(255,255,255,.97); color: var(--text); border-radius: 12px; padding: 12px 14px; box-shadow: 0 18px 40px rgba(5,8,30,.35); font-size: .82rem; line-height: 1.35; display: flex; gap: 10px; align-items: center; }
.float-card .dot { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.float-card .dot svg { width: 16px; height: 16px; }
.float-card strong { display: block; font-size: .86rem; }
.float-card span { color: var(--muted); }
.fc-1 { left: -34px; bottom: 54px; }
.fc-1 .dot { background: #fff4dc; color: #b77b00; }
.fc-2 { right: -18px; top: -22px; }
.fc-2 .dot { background: var(--bg-tint); color: var(--brand-ink); }

/* Standards strip */
.standards { border-top: 1px solid var(--ink-line); margin-top: 84px; padding-top: 28px; display: flex; align-items: center; gap: 18px 40px; flex-wrap: wrap; }
.standards p { margin: 0; font-size: .88rem; color: var(--on-ink-muted); }
.standards ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; }
.standards li { font-family: var(--mono); font-weight: 500; font-size: 1.02rem; color: #cdd2ee; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.soft { background: var(--bg-soft); }
.dark { background: var(--ink); color: var(--on-ink); }
.dark h2, .dark h3 { color: #fff; }
.eyebrow { font-family: var(--mono); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 14px; }
.dark .eyebrow { color: #a3a9ff; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-lead { font-size: 1.12rem; color: var(--muted); }
.dark .section-lead { color: var(--on-ink-muted); }

/* ---------- Numbers band ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); margin-top: -56px; position: relative; z-index: 2; }
.facts div { padding: 30px 30px 26px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts span { color: var(--muted); font-size: .95rem; }

/* ---------- Workflow pipeline ---------- */
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin-bottom: 18px; }
.stage { position: relative; padding: 26px 22px 24px; background: #fff; border: 1px solid var(--line); margin-left: -1px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background .2s, border-color .2s; }
.stage:first-child { border-radius: var(--radius) 0 0 var(--radius); margin-left: 0; }
.stage:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stage:hover { background: var(--bg-tint); }
.stage .no { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.stage h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.stage p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.stage::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; background: #fff; border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.stage:hover::after { background: var(--bg-tint); }
.stage:last-child::after { display: none; }
.ai-rail { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(84,104,248,.10), rgba(104,77,254,.10)); border: 1px dashed rgba(91,92,246,.45); color: var(--brand-ink); font-size: .95rem; }
.ai-rail svg { width: 20px; height: 20px; flex: none; }
.ai-rail b { font-weight: 600; }

/* ---------- Module tabs ---------- */
.tabs { margin-top: 64px; }
.tablist { display: flex; gap: 6px; padding: 6px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; margin-bottom: 36px; }
.tab { font: inherit; font-size: .95rem; font-weight: 500; color: var(--muted); background: none; border: 0; padding: 10px 18px; border-radius: 10px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.panel { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.js .panel[hidden] { display: none; }
.panel h3 { font-size: 1.75rem; letter-spacing: -.025em; }
.panel > div > p { color: var(--muted); font-size: 1.05rem; }
.feat-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 26px; }
.feat-list li { position: relative; padding-left: 30px; font-size: .95rem; line-height: 1.5; }
.feat-list li b { display: block; font-weight: 600; margin-bottom: 2px; }
.feat-list li span { color: var(--muted); }
.feat-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: var(--bg-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%235b5cf6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Mock "screens" inside panels */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: .86rem; }
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f3f4f8; border-bottom: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5d8e3; }
.mock-bar em { font-style: normal; margin-left: 8px; }
.mock-body { padding: 16px; }
.mono { font-family: var(--mono); }

.cond { display: grid; grid-template-columns: 14px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 6px; border-bottom: 1px solid var(--line); }
.cond:last-child { border-bottom: 0; }
.sw { width: 12px; height: 12px; border-radius: 3px; }
.sw.a { background: var(--amber); } .sw.t { background: var(--teal); } .sw.r { background: var(--rose); } .sw.b { background: var(--brand); } .sw.g { background: #8a93ab; }
.cond .u { color: var(--muted); font-size: .78rem; font-family: var(--mono); }
.cond .q { font-family: var(--mono); font-weight: 500; text-align: right; min-width: 70px; }
.mock-tag { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--bg-tint); color: var(--brand-ink); }

table.bill { width: 100%; border-collapse: collapse; font-size: .82rem; }
table.bill th { font-weight: 400; color: #6b7286; background: #f3f4f7; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.bill td { padding: 8px 10px; border-bottom: 1px solid #eef0f4; vertical-align: top; }
table.bill td.n, table.bill th.n { text-align: right; font-family: var(--mono); white-space: nowrap; }
table.bill tr.hd td { font-weight: 600; background: #fafbfd; }
table.bill tr.tot td { font-weight: 600; border-top: 2px solid var(--text); border-bottom: 0; }

.gantt { display: grid; grid-template-columns: 140px 1fr; font-size: .8rem; }
.gantt .g-h { color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.gantt .g-weeks { display: grid; grid-template-columns: repeat(8, 1fr); border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: .72rem; }
.gantt .g-weeks span { padding: 6px 0 6px 4px; border-left: 1px solid #eef0f4; }
.gantt .g-name { padding: 9px 8px 9px 0; border-bottom: 1px solid #f0f1f5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt .g-track { position: relative; border-bottom: 1px solid #f0f1f5; background-image: linear-gradient(90deg, #eef0f4 1px, transparent 1px); background-size: 12.5% 100%; }
.bar { position: absolute; top: 9px; height: 16px; border-radius: 4px; background: #9aa3c4; }
.bar.crit { background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); }
.bar.ms { width: 12px !important; height: 12px; top: 11px; border-radius: 2px; transform: rotate(45deg); background: var(--amber); }
.b1 { left: 0; width: 16%; } .b2 { left: 14%; width: 26%; } .b3 { left: 38%; width: 30%; } .b4 { left: 52%; width: 22%; } .b5 { left: 66%; width: 24%; } .b6 { left: 88%; }
.legend { display: flex; gap: 16px; padding: 12px 0 0; color: var(--muted); font-size: .76rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 8px; border-radius: 2px; background: #9aa3c4; }
.legend i.c { background: var(--brand); }
.legend i.m { width: 8px; background: var(--amber); transform: rotate(45deg); }

.cert-row { display: flex; justify-content: space-between; padding: 9px 2px; border-bottom: 1px dashed #e6e8ef; }
.cert-row span:last-child { font-family: var(--mono); }
.cert-row.total { border-bottom: 0; border-top: 2px solid var(--text); font-weight: 600; margin-top: 4px; padding-top: 12px; }
.ccy { display: flex; gap: 6px; margin-bottom: 12px; }
.ccy span { font-family: var(--mono); font-size: .74rem; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.ccy span.on { border-color: var(--brand); color: var(--brand-ink); background: var(--bg-tint); }

.chat { display: grid; gap: 12px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 12px; line-height: 1.45; }
.msg.me { justify-self: end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.ai { background: #f3f4f8; border-bottom-left-radius: 4px; }
.proposal { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.proposal .p-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 600; font-size: .84rem; }
.proposal .work { font-family: var(--mono); font-size: .76rem; color: var(--muted); background: #fafbfd; border-radius: 8px; padding: 8px 10px; line-height: 1.6; }
.proposal .acts { display: flex; gap: 8px; margin-top: 10px; }
.proposal .acts span { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 7px; border: 1px solid var(--line); }
.proposal .acts span.ok { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- Work your way ---------- */
.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 30px; position: relative; overflow: hidden; }
.mode .lvl { display: flex; gap: 5px; margin-bottom: 22px; }
.mode .lvl i { width: 28px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.mode .lvl i.on { background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); }
.mode h3 { font-size: 1.3rem; }
.mode p { color: var(--on-ink-muted); font-size: .97rem; }
.mode ul { margin: 18px 0 0; padding: 18px 0 0; border-top: 1px solid var(--ink-line); list-style: none; display: grid; gap: 9px; font-size: .92rem; color: #cfd4ec; }
.mode li::before { content: "—"; color: #8e93ff; margin-right: 10px; }

/* ---------- Audiences ---------- */
.aud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.aud { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .25s ease, border-color .2s; }
.aud:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(16,24,40,.10); border-color: #d3d6f8; }
.aud-ico { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 20px; background: var(--bg-tint); color: var(--brand-ink); }
.aud-ico svg { width: 25px; height: 25px; }
.aud-ico.amber { background: #fff4dc; color: #a46c00; }
.aud-ico.teal { background: #dff6f2; color: #0d8474; }
.aud-ico.rose { background: #fde8ed; color: #c33a59; }
.aud h3 { font-size: 1.22rem; margin-bottom: 6px; }
.aud > p { color: var(--muted); font-size: .95rem; }
.aud ul { list-style: none; padding: 0; margin: 4px 0 22px; display: grid; gap: 8px; font-size: .92rem; }
.aud li { display: flex; gap: 10px; }
.aud li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-top: .6em; }
.aud .fit { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.aud .fit b { color: var(--text); font-weight: 600; }

.edu { margin-top: 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 44px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #1b1f6b 0%, #3a2fb0 55%, #5b4cf0 100%); color: #fff; position: relative; overflow: hidden; }
.edu::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 50px solid rgba(255,255,255,.06); }
.edu h3 { font-size: 1.9rem; letter-spacing: -.025em; color: #fff; }
.edu p { color: #d6d8ff; }
.edu .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.edu .tags span { font-size: .82rem; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.edu-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 18px; padding: 26px; position: relative; z-index: 1; }
.edu-card .price { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.edu-card .price small { font-size: .95rem; font-weight: 400; color: #c9ccff; letter-spacing: 0; }
.edu-card ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: .92rem; color: #e3e5ff; }
.edu-card li::before { content: "✓"; margin-right: 10px; color: var(--amber); font-weight: 700; }
.edu-card .btn { background: #fff; color: #2a2390; box-shadow: none; }

/* ---------- Compare ---------- */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .96rem; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: #f7f8fb; font-weight: 500; color: var(--muted); font-size: .86rem; }
.compare thead th.us { color: var(--brand-ink); background: var(--bg-tint); }
.compare td:first-child { font-weight: 600; width: 22%; }
.compare td.old { color: var(--muted); width: 36%; }
.compare td.us { background: #fafaff; }
.compare td.us::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='%235b5cf6'/%3E%3Cpath d='M5.5 10.5l3 3 6-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Trust grid ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.trust div { background: #fff; padding: 32px 30px; }
.trust svg { width: 26px; height: 26px; color: var(--brand); margin-bottom: 16px; }
.trust h3 { font-size: 1.08rem; }
.trust p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Editions ---------- */
.editions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; }
.ed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.ed.pop { border: 2px solid var(--brand); box-shadow: 0 24px 50px rgba(91,92,246,.18); }
.ed .badge { position: absolute; top: -12px; left: 22px; font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); padding: 4px 10px; border-radius: 99px; }
.ed .tier { font-family: var(--mono); font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ed h3 { font-size: 1.08rem; margin: 6px 0 8px; min-height: 2.5em; }
.ed > p { color: var(--muted); font-size: .88rem; min-height: 4.4em; }
.ed ul { list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: .87rem; }
.ed li { padding-left: 22px; position: relative; line-height: 1.4; }
.ed li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-8' fill='none' stroke='%235b5cf6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ed li.plus { font-weight: 600; color: var(--muted); padding-left: 0; font-size: .8rem; }
.ed li.plus::before { display: none; }
.ed .btn { margin-top: auto; justify-content: center; }
.addon { margin-top: 20px; display: flex; align-items: center; gap: 22px; padding: 22px 26px; border-radius: var(--radius-lg); background: var(--ink); color: var(--on-ink); }
.addon .ai-badge { flex: none; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); }
.addon .ai-badge svg { width: 26px; height: 26px; color: #fff; }
.addon h3 { color: #fff; margin: 0 0 2px; font-size: 1.08rem; }
.addon p { margin: 0; color: var(--on-ink-muted); font-size: .93rem; }
.addon .btn { margin-left: auto; }

/* Licence steps */
.lic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 64px; counter-reset: s; }
.lic li { list-style: none; position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.lic li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -13px; left: 0; background: var(--bg-soft); padding-right: 12px; font-family: var(--mono); font-size: .85rem; color: var(--brand); font-weight: 500; }
.lic h3 { font-size: 1rem; margin-bottom: 4px; }
.lic p { color: var(--muted); font-size: .92rem; margin: 0; }
.lic-wrap { padding: 0; margin: 0; }

/* ---------- Download ---------- */
.download { background: var(--ink); color: var(--on-ink); padding: 112px 0; position: relative; overflow: hidden; isolation: isolate; }
.download::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 85% 0%, rgba(104,77,254,.30), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(84,104,248,.18), transparent 60%); }
.download-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.download h2 { color: #fff; }
.download .meta { color: var(--on-ink-muted); font-size: .92rem; margin-top: 16px; }
.reqs { margin-top: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; }
.reqs div { padding: 14px 18px; border-bottom: 1px solid var(--ink-line); font-size: .9rem; }
.reqs div:nth-child(odd) { color: var(--on-ink-muted); border-right: 1px solid var(--ink-line); }
.reqs div:nth-last-child(-n+2) { border-bottom: 0; }
.verify { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius-lg); padding: 30px; }
.verify h3 { color: #fff; display: flex; align-items: center; gap: 10px; }
.verify h3 svg { width: 22px; height: 22px; color: var(--teal); }
.verify p { color: var(--on-ink-muted); font-size: .94rem; }
.hash { display: block; word-break: break-all; background: #070a1a; border: 1px solid var(--ink-line); color: #b9c0ff; padding: 14px; border-radius: 10px; margin: 14px 0; font-size: .84rem; }
.small { font-size: .86rem; }
.small code { color: #cfd4ec; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 5px; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 600; font-size: 1.04rem; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { color: var(--muted); padding-right: 40px; margin-top: -4px; padding-bottom: 6px; }

/* ---------- Contact ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand-a), var(--brand-b)); border-radius: 28px; padding: 64px; color: #fff; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 36px 36px; -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e4e4ff; font-size: 1.08rem; }
.contact-list { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 16px; padding: 16px 18px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 14px; text-decoration: none; color: #fff; transition: background .2s, transform .15s; }
.contact-item:hover { background: rgba(255,255,255,.2); transform: translateX(3px); }
.contact-item .ci { width: 42px; height: 42px; border-radius: 11px; background: #fff; color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.contact-item .ci svg { width: 21px; height: 21px; }
.contact-item small { display: block; color: #d9d9ff; font-size: .8rem; }
.contact-item strong { font-weight: 600; font-size: 1.02rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 72px 0 36px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--ink-line); }
.foot-grid p { max-width: 30em; margin-top: 18px; }
.foot-grid h4 { color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: 0; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { color: var(--on-ink-muted); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 26px; font-size: .85rem; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .app-window, .hero-art:hover .app-window { transform: none; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.nf .brand { margin-bottom: 40px; }
.nf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.nf .lead { margin-inline: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .editions { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1020px) {
  .hero-grid, .panel, .download-grid, .faq-grid, .cta-band, .edu { grid-template-columns: 1fr; }
  .hero { padding-top: 130px; }
  .app-window { transform: none; }
  .fc-1 { left: 10px; } .fc-2 { right: 10px; }
  .aud-grid, .modes, .trust { grid-template-columns: 1fr 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stage, .stage:first-child, .stage:last-child { border-radius: var(--radius); margin-left: 0; }
  .stage::after { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .lic { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .faq-grid { gap: 24px; }
}
@media (max-width: 860px) {
  .menu-btn { display: inline-block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--ink); padding: 12px 24px 24px; border-bottom: 1px solid var(--ink-line); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 6px; }
  .nav .nav-cta { margin: 10px 0 0; justify-content: center; }
  .site-header.menu-open { background: var(--ink); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section, .download { padding: 80px 0; }
  .aud-grid, .modes, .trust, .editions, .feat-list, .reqs, .lic { grid-template-columns: 1fr; }
  .reqs div:nth-child(odd) { border-right: 0; border-bottom: 0; padding-bottom: 2px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div { padding: 22px 18px; }
  .facts b { font-size: 1.9rem; }
  .pipeline { grid-template-columns: 1fr; }
  .float-card { display: none; }
  .edu, .cta-band { padding: 32px 24px; }
  .addon { flex-direction: column; align-items: flex-start; }
  .addon .btn { margin-left: 0; }
  .compare th, .compare td { padding: 12px; font-size: .88rem; }
  .compare td:first-child { width: auto; }
  .ed h3, .ed > p { min-height: 0; }
  .gantt { grid-template-columns: 100px 1fr; }
  .tablist { width: 100%; }
}

.contact-cta { background: #fff; color: var(--brand-ink); box-shadow: 0 10px 30px rgba(10,10,60,.25); }
.contact-cta:hover { transform: translateY(-1px); }
.foot-grid .brand { color: #fff; }
.stage { display: flex; flex-direction: column; justify-content: flex-start; }
.fc-1 { bottom: -26px; }
@media (max-width: 1020px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } .foot-base { flex-direction: column; } }

/* Hero workflow graphic (replaces app screenshot) */
.hero { padding-top: 170px; }
.flow { position: relative; display: grid; gap: 14px; padding: 28px; border-radius: 22px; background: rgba(255,255,255,.04); border: 1px solid var(--ink-line); }
.flow::before { content: ""; position: absolute; left: 55px; top: 56px; bottom: 96px; width: 2px; background: linear-gradient(var(--brand-a), var(--brand-b)); opacity: .5; }
.flow-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--ink-line); transition: transform .2s, border-color .2s; }
.flow-step:hover { transform: translateX(4px); border-color: rgba(142,125,255,.5); }
.flow-step b { display: block; color: #fff; font-weight: 600; font-size: 1.05rem; }
.flow-step span { color: var(--on-ink-muted); font-size: .9rem; }
.flow-step i { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .8rem; color: #6d74a8; }
.fs-ico { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; }
.fs-ico svg { width: 22px; height: 22px; }
.fs-ico.a { background: rgba(245,184,61,.15); color: var(--amber); }
.fs-ico.b { background: rgba(91,92,246,.22); color: #a9b0ff; }
.fs-ico.t { background: rgba(31,182,162,.16); color: var(--teal); }
.fs-ico.r { background: rgba(240,98,126,.16); color: var(--rose); }
.flow-ai { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 12px; border-radius: 12px; border: 1px dashed rgba(142,125,255,.5); color: #c3c7ff; font-size: .9rem; }
.flow-ai svg { width: 18px; height: 18px; }

/* Module panels without mock screens */
.panel { grid-template-columns: 1fr; max-width: 980px; }
.panel .feat-list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .panel .feat-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .panel .feat-list { grid-template-columns: 1fr; } .flow::before { display: none; } .flow { padding: 16px; } }

/* Edition quote actions */
.ed-acts { margin-top: auto; display: grid; gap: 10px; text-align: center; }
.ed-acts .btn { justify-content: center; }
.ed-mail { font-size: .85rem; color: var(--muted); }
.ed-mail:hover { color: var(--brand-ink); }
.edu-card .price small { display: block; margin-top: 10px; }
