:root {
  --ink: #14141a;
  --ink-2: #3a3a44;
  --muted: #6b6b76;
  --line: #e6e4df;
  --line-2: #d3d1c7;
  --paper: #ffffff;
  --paper-2: #f7f6f2;
  --paper-3: #f1efe8;
  --night: #14141a;
  --night-2: #1e1e26;
  --accent: #534ab7;
  --accent-ink: #3c3489;
  --accent-bg: #eeedfe;
  --teal: #0f6e56;
  --teal-bg: #e1f5ee;
  /* expanded / eccentric palette */
  --violet: #7c3aed;
  --indigo: #4338ca;
  --cyan: #22d3ee;
  --emerald: #10b981;
  --magenta: #ec4899;
  --amber: #f59e0b;
  --volt: #c8f135;            /* electric accent — used in small doses */
  --ink-deep: #0a0820;        /* full-bleed dark base */
  --radius: 12px;
  --maxw: 1320px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* nav */
nav.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; }
.brand .mark { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); position: relative; }
.brand .mark::after { content:""; position:absolute; inset:6px; border:2px solid var(--paper); border-radius:50%; }
nav.top .links { display: flex; gap: 22px; margin-left: 8px; font-size: 14px; color: var(--ink-2); }
nav.top .links a:hover { color: var(--ink); }
nav.top .spacer { flex: 1; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; padding: 9px 16px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
  cursor: pointer; transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--paper-2); border-color: var(--ink-2); }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.grad { background: linear-gradient(110deg, #6366f1, #9747ff 50%, #db2777); background-size: 180% 180%; color: #fff; border: none; box-shadow: 0 8px 22px -8px rgba(124,58,237,0.6); transition: background-position .4s ease, transform .15s ease, box-shadow .15s; }
.btn.grad:hover { background-position: 100% 50%; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(124,58,237,0.7); }
.btn.lg { padding: 12px 22px; font-size: 15px; }

/* sections */
section { padding: 88px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--paper-2); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-bg); padding: 5px 12px; border-radius: 99px; margin-bottom: 18px;
}
.eyebrow.teal { color: var(--teal); background: var(--teal-bg); }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 20px; font-weight: 600; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 16px; font-weight: 600; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--ink-2); max-width: 60ch; margin: 0 0 28px; }
p { margin: 0 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.grad-text { background: linear-gradient(110deg, #6366f1 0%, #9747ff 45%, #db2777 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.section-sep { height: 1px; max-width: var(--maxw); margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.center .lead { margin-left: auto; margin-right: auto; }

/* hero */
@keyframes flowGradient { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
.hero {
  background-image: linear-gradient(103deg, rgba(9,6,28,0.95) 0%, rgba(13,9,36,0.7) 44%, rgba(13,9,36,0.30) 100%), url('hero-bg.png');
  background-size: cover; background-position: center right; background-repeat: no-repeat;
  color: #f3f2ef; border-bottom: none; padding: 104px 0 96px; position: relative; overflow: hidden;
}
.hero::after { content:""; position:absolute; inset:0; background: radial-gradient(120% 80% at 82% -10%, rgba(45,212,191,0.18), transparent 60%); pointer-events:none; }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero .lead { color: #c9c8d2; }
.hero .eyebrow { color: #cecbf6; background: rgba(83,74,183,0.25); }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.hero .btn { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); color: #f3f2ef; }
.hero .btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.hero .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.hero .btn.primary:hover { background: #e9e8e3; }
.trust { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: 13px; color: #9a99a6; margin-top: 8px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #5dcaa5; display: inline-block; }

/* floating hero product card */
.hero-card { margin-top:40px; background: rgba(255,255,255,0.97); border-radius:16px; padding:14px; box-shadow: 0 40px 80px -30px rgba(8,5,30,0.65), 0 8px 24px -12px rgba(8,5,30,0.4); max-width:560px; }
.hero-card .bar { display:flex; align-items:center; gap:7px; padding:4px 6px 12px; }
.hero-card .bar i { width:10px; height:10px; border-radius:50%; background:#e2e0f0; display:inline-block; }
.hero-card .bar span { font-size:12px; color:var(--muted); margin-left:8px; }
.hero-row { display:flex; align-items:center; justify-content:space-between; padding:12px 14px; border-radius:10px; background:var(--paper-2); margin-top:8px; }
.hero-row .l { display:flex; align-items:center; gap:9px; font-size:13.5px; color:var(--ink); font-weight:500; }
.hero-row .live { width:8px; height:8px; border-radius:50%; background:#10b981; box-shadow:0 0 0 3px rgba(16,185,129,0.18); display:inline-block; }
.hero-row .r { font-size:12.5px; color:var(--muted); }
.hero-row .tag { font-size:11px; font-weight:600; color:var(--accent-ink); background:var(--accent-bg); padding:3px 9px; border-radius:99px; }

/* outcome chip in hero */
.metric-chip { display:inline-flex; align-items:baseline; gap:10px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.14); border-radius: 99px; padding: 7px 16px; margin-bottom: 22px; }
.metric-chip b { font-size: 20px; color: #9fe1cb; font-weight: 600; }
.metric-chip span { font-size: 13px; color: #c9c8d2; }

/* grids & cards */
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px){ .g3,.g4,.g2 { grid-template-columns: 1fr; } nav.top .links { display:none; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgba(20,20,45,0.04), 0 10px 28px -12px rgba(20,20,45,0.10); transition: transform .18s ease, box-shadow .18s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,20,45,0.05), 0 18px 40px -14px rgba(20,20,45,0.16); }
.card.soft { background: var(--paper-2); border-color: transparent; box-shadow: none; }
.card .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-bg); color: var(--accent-ink); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:600; margin-bottom: 14px; }
.ic .ig { width: 21px; height: 21px; display:block; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.card.teal .ic { background: var(--teal-bg); color: var(--teal); }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.card .doclink { display:inline-block; margin-top:12px; font-size:13px; font-weight:500; color: var(--accent-ink); }

/* steps */
.steps { counter-reset: s; display: grid; gap: 14px; }
.step { display:flex; gap:16px; align-items:flex-start; background:var(--paper-2); border-radius:var(--radius); padding:18px 20px; }
.step .n { counter-increment:s; flex:none; width:30px; height:30px; border-radius:50%; background:var(--ink); color:#fff; font-size:14px; font-weight:600; display:flex; align-items:center; justify-content:center; }
.step .n::before { content: counter(s); }

/* governance checklist */
.wedge {
  background: linear-gradient(110deg, #6366f1 0%, #9747ff 35%, #2dd4bf 70%, #fb7185 100%);
  background-size: 200% 200%; animation: flowGradient 14s ease-in-out infinite alternate;
  color: #fff; border-radius: 22px; padding: 48px; box-shadow: 0 24px 60px -24px rgba(99,102,241,0.55);
}
.wedge .eyebrow { background: rgba(255,255,255,0.16); color:#fff; }
.wedge h2 { color:#fff; }
.wedge .lead { color: #e3e1fb; }
.checks { display:grid; grid-template-columns: 1fr 1fr; gap:14px; margin-top: 8px; }
@media (max-width:860px){ .checks { grid-template-columns:1fr; } }
.check { display:flex; gap:12px; align-items:flex-start; background: rgba(255,255,255,0.1); border-radius: 12px; padding: 16px; }
.check b { display:block; font-size:15px; margin-bottom:3px; }
.check span { font-size:13.5px; color:#dad8f7; }
.check .tick { flex:none; width:24px; height:24px; border-radius:50%; background:#fff; color:var(--accent-ink); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; }

/* code */
.code { background: var(--night-2); color:#d7d5e6; border-radius: 14px; padding: 22px; font-family: var(--mono); font-size: 13.5px; line-height: 1.75; overflow:auto; }
.code .k { color:#9fe1cb; }
.code .a { color:#85b7eb; }
.code .c { color:#7d7c8c; }

/* engineer section dark */
.dark { background: var(--night); color:#e7e6ee; border-bottom:none; }
.dark h2 { color:#fff; }
.dark .lead { color:#c0bfcd; }
.dark .card { background: var(--night-2); border-color: rgba(255,255,255,0.08); }
.dark .card h3 { color:#fff; }
.dark .card p { color:#b6b5c4; }
.dark .card .ic { background: rgba(133,183,235,0.16); color:#b5d4f4; }
.dark .eyebrow { background: rgba(133,183,235,0.16); color:#b5d4f4; }

/* table */
.cmp { width:100%; border-collapse:collapse; font-size:14.5px; }
.cmp th, .cmp td { text-align:left; padding:14px 16px; border-bottom:1px solid var(--line); vertical-align:top; }
.cmp thead th { font-size:13px; text-transform:uppercase; letter-spacing:.03em; color:var(--muted); }
.cmp tbody td:first-child { color:var(--muted); width: 30%; }
.cmp .ll { background: linear-gradient(180deg, rgba(99,102,241,0.10), rgba(45,212,191,0.10)); color: var(--accent-ink); font-weight:500; border-left:1px solid rgba(124,58,237,0.18); border-right:1px solid rgba(124,58,237,0.18); }
.cmp thead th.ll { background: linear-gradient(110deg, #6366f1, #7c3aed 60%, #2dd4bf); color:#fff; border-radius: 10px 10px 0 0; border:none; }
.cmp tbody tr:last-child .ll { border-radius: 0 0 10px 10px; border-bottom:1px solid rgba(124,58,237,0.18); }

/* tldr split */
.split2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:860px){ .split2 { grid-template-columns:1fr; } }
.useblock { border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
.useblock.ll { border-color: var(--accent); background: var(--accent-bg); }
.useblock h3 { font-size:16px; }
.useblock p { font-size:14.5px; color:var(--ink-2); margin:0; }

/* pull quote */
.quote { font-size: 22px; line-height:1.4; font-weight:500; letter-spacing:-0.01em; max-width: 30ch; }
.quote .by { display:block; font-size:14px; font-weight:400; color:var(--muted); margin-top:14px; }

/* pricing */
.tier { border:1px solid var(--line); border-radius:var(--radius); padding:24px; }
.tier.feat { border:2px solid var(--accent); }
.tier .name { font-weight:600; font-size:17px; margin-bottom:6px; }
.tier .desc { font-size:14px; color:var(--ink-2); }
.badge { display:inline-block; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:.04em; color:var(--accent-ink); background:var(--accent-bg); padding:3px 9px; border-radius:99px; margin-bottom:10px; }

/* footer */
footer { padding: 56px 0; background: var(--paper-2); }
footer .wrap { display:flex; flex-wrap:wrap; gap:24px; align-items:center; justify-content:space-between; }
footer .ftrust { font-size:13px; color:var(--muted); display:flex; gap:8px 18px; flex-wrap:wrap; }
.banner { background: linear-gradient(110deg, #7c3aed 0%, #db2777 48%, #2dd4bf 100%); background-size:200% 200%; animation: flowGradient 14s ease-in-out infinite alternate; color:#fff; border-radius:22px; padding:52px; text-align:center; box-shadow: 0 24px 60px -28px rgba(124,58,237,0.6); }
.banner h2 { color:#fff; }
.banner .lead { color:#c9c8d2; margin-left:auto; margin-right:auto; }
.banner .btn { border-color:rgba(255,255,255,0.25); background:rgba(255,255,255,0.06); color:#fff; }
.banner .btn.primary { background:#fff; color:var(--ink); border-color:#fff; }
.note { font-size:13px; color:var(--muted); }
.mt0 { margin-top:0; } .mb0 { margin-bottom:0; }

/* ============ maximalist concept layer ============ */

/* ambient aurora — screen-filling animated background */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.aurora b { position:absolute; border-radius:50%; filter: blur(80px); opacity:0.20; }
.aurora .b1 { width:540px;height:540px; background:#6366f1; top:-140px; left:-100px; animation: drift1 24s ease-in-out infinite alternate; }
.aurora .b2 { width:480px;height:480px; background:#2dd4bf; top:34%; right:-140px; animation: drift2 28s ease-in-out infinite alternate; }
.aurora .b3 { width:520px;height:520px; background:#db2777; bottom:-160px; left:32%; opacity:0.16; animation: drift3 32s ease-in-out infinite alternate; }
.aurora .b4 { width:420px;height:420px; background:#9747ff; top:62%; left:-120px; animation: drift1 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(120px,90px) scale(1.18); } }
@keyframes drift2 { to { transform: translate(-110px,70px) scale(1.12); } }
@keyframes drift3 { to { transform: translate(90px,-80px) scale(1.22); } }

/* grid + dot overlays */
.grid-ov { position:absolute; inset:0; pointer-events:none; background-image: linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px); background-size: 46px 46px; -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(120% 90% at 50% 0%, #000, transparent 75%); }
.float { animation: floaty 7s ease-in-out infinite; }
.float.d1 { animation-delay: -2.5s; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-12px); } }

/* logo marquee */
.marquee { overflow:hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display:flex; gap:54px; width:max-content; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee .logo { display:flex; align-items:center; gap:9px; font-weight:600; font-size:18px; color:var(--muted); white-space:nowrap; opacity:.72; }
.marquee .logo .g { width:18px;height:18px;border-radius:5px; background:linear-gradient(135deg,#6366f1,#2dd4bf); }

/* live pulse */
.pulse { box-shadow:0 0 0 0 rgba(16,185,129,.45); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(16,185,129,.45);} 70%{box-shadow:0 0 0 7px rgba(16,185,129,0);} 100%{box-shadow:0 0 0 0 rgba(16,185,129,0);} }

/* scroll reveal (gated behind .js so no-JS / screenshots still show content) */
.js .reveal { opacity:0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity:1; transform:none; }

/* animated workflow connector */
.flow-line { stroke-dasharray:6 7; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -26; } }

/* animated gradient border */
.glow { position:relative; }
.glow::before { content:''; position:absolute; inset:-1.5px; border-radius:18px; padding:1.5px; background:linear-gradient(110deg,#6366f1,#2dd4bf,#db2777,#6366f1); background-size:300% 300%; animation: flowGradient 9s linear infinite; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events:none; }

/* browser frame for fake screenshots */
.frame { background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow: 0 40px 90px -38px rgba(15,10,46,0.42), 0 10px 30px -16px rgba(15,10,46,0.18); overflow:hidden; }
.frame .chrome { display:flex; align-items:center; gap:7px; padding:11px 14px; background:var(--paper-2); border-bottom:1px solid var(--line); }
.frame .chrome i { width:11px;height:11px;border-radius:50%;background:#e0def0; display:inline-block; }
.frame .chrome .url { margin-left:10px; font-size:12px; color:var(--muted); background:#fff; border:1px solid var(--line); border-radius:8px; padding:5px 14px; flex:1; max-width:360px; }

/* fake console UI */
.console { display:grid; grid-template-columns: 184px 1fr; min-height:392px; }
@media (max-width:720px){ .console { grid-template-columns:1fr; } .cs-side{ display:none; } }
.cs-side { background:var(--paper-2); border-right:1px solid var(--line); padding:16px 12px; }
.cs-brand { display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; margin-bottom:16px; }
.cs-brand .m { width:18px;height:18px;border-radius:5px;background:linear-gradient(135deg,#6366f1,#9747ff); }
.cs-nav { display:flex; flex-direction:column; gap:3px; }
.cs-nav a { font-size:13px; color:var(--ink-2); padding:8px 10px; border-radius:8px; }
.cs-nav a.on { background:#fff; color:var(--accent-ink); font-weight:500; box-shadow:0 1px 2px rgba(20,20,45,.06); }
.cs-main { padding:18px 20px; }
.cs-h { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.cs-h h4 { margin:0; font-size:16px; font-weight:600; }
.tiles { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:14px; }
.tile { background:var(--paper-2); border-radius:12px; padding:13px 14px; }
.tile .n { font-size:21px; font-weight:600; letter-spacing:-.01em; }
.tile .l { font-size:11.5px; color:var(--muted); margin-top:2px; }
.tile .n .up { color:var(--teal); font-size:12px; font-weight:500; margin-left:5px; }
.spark { display:flex; align-items:flex-end; gap:5px; height:54px; margin-top:10px; }
.spark b { flex:1; background:linear-gradient(180deg,#9747ff,#6366f1); border-radius:4px 4px 0 0; transform-origin:bottom; animation: grow 1.1s ease both; }
@keyframes grow { from { transform: scaleY(0); } }
.arow { display:flex; align-items:center; justify-content:space-between; padding:11px 12px; border-radius:10px; }
.arow + .arow { border-top:1px solid var(--line); }
.arow .l { display:flex; align-items:center; gap:9px; font-size:13.5px; font-weight:500; }
.arow .live { width:8px;height:8px;border-radius:50%;background:#10b981; display:inline-block; }
.arow .r { font-size:12px; color:var(--muted); }
.chip { font-size:11px; font-weight:600; padding:3px 9px; border-radius:99px; }
.chip.ok { color:var(--teal); background:var(--teal-bg); }
.chip.run { color:var(--accent-ink); background:var(--accent-bg); }

/* audit trace timeline */
.trace { padding:6px 4px; }
.trace .ev { position:relative; padding:9px 0 9px 20px; border-left:2px solid var(--line); }
.trace .ev::before { content:''; position:absolute; left:-6px; top:13px; width:10px;height:10px;border-radius:50%; background:#10b981; box-shadow:0 0 0 3px var(--teal-bg); }
.trace .ev.k::before { background:#9747ff; box-shadow:0 0 0 3px var(--accent-bg); }
.trace .ev .t { font-size:13px; font-weight:500; }
.trace .ev .m { font-size:11.5px; color:var(--muted); font-family:var(--mono); }

/* count-up number */
.count { font-variant-numeric: tabular-nums; }

/* section that carries a vivid full-bleed gradient backdrop */
.showcase { position:relative; background: radial-gradient(120% 120% at 50% -20%, #1b1740, #0f0a2e 60%); color:#e9e8f2; overflow:hidden; }
.showcase h2 { color:#fff; }
.showcase .lead { color:#c0bfd4; }
.showcase .eyebrow { background: rgba(133,183,235,0.16); color:#b5d4f4; }

/* =====================================================================
   RESPONSIVE / MOBILE LAYER  (breakpoints 900 / 600 / 400)
   Desktop look untouched — every rule is inside a max-width query or an
   additive guard.
   ===================================================================== */

/* ---- global overflow + replaced-element guards (all widths) ---- */
html, body { overflow-x: clip; }
img, svg, video, canvas { max-width: 100%; height: auto; }
table { max-width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cmp td { overflow-wrap: anywhere; word-break: break-word; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .cmp { min-width: 520px; }

/* mobile hamburger button (hidden on desktop) */
.navt-btn { display: none; }

/* ===================== <= 900px : mobile nav ===================== */
@media (max-width: 900px){
  nav.top .wrap { flex-wrap: wrap; }
  .navt-btn{
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; margin-left: auto; flex: none;
    border: 1px solid var(--line-2); border-radius: 10px;
    font-size: 20px; line-height: 1; color: var(--ink);
    background: var(--paper); cursor: pointer;
  }
  nav.top .links { display: none; }
  nav.top .wrap > .btn { display: none; }
  nav.top .spacer { display: none; }
  /* dropdown panel when the hamburger is checked */
  nav.top .navt-cb:checked ~ .links{
    display: flex; flex-direction: column; flex-basis: 100%; order: 5;
    gap: 2px; margin: 8px 0 0; padding: 8px 0 2px;
    border-top: 1px solid var(--line);
  }
  nav.top .navt-cb:checked ~ .links a{
    padding: 11px 8px; font-size: 15.5px; border-radius: 8px; color: var(--ink-2);
  }
  nav.top .navt-cb:checked ~ .links a:hover{ background: var(--paper-2); color: var(--ink); }
  nav.top .navt-cb:checked ~ .btn{
    display: inline-flex; flex-basis: 100%; order: 6;
    justify-content: center; margin: 6px 0 0; min-height: 44px;
  }
}

/* ===================== <= 600px : phone layout ===================== */
@media (max-width: 600px){
  section        { padding: 56px 0; }
  section.tight  { padding: 40px 0; }
  .hero          { padding: 64px 0 56px; }
  .wedge         { padding: 32px 22px; border-radius: 18px; }
  .banner        { padding: 36px 22px; border-radius: 18px; }
  .showcase      { }

  .btn           { padding: 11px 18px; font-size: 15px; min-height: 44px; }
  .btn.lg        { min-height: 48px; }
  .card .doclink { display: inline-block; padding: 6px 0; min-height: 32px; }
  footer .wrap   { gap: 16px; }

  .cmp           { font-size: 13px; }
  .cmp th, .cmp td { padding: 10px 10px; }
  .cmp tbody td:first-child { width: auto; }

  .hero{
    background-position: left center;
    background-image:
      linear-gradient(160deg, rgba(9,6,28,0.95) 0%, rgba(13,9,36,0.62) 100%),
      url('hero-bg.png');
  }
  .metric-chip   { flex-wrap: wrap; }
  .trust         { gap: 6px 14px; font-size: 12px; }

  .frame.float   { margin-top: 28px !important; }
  .float         { animation: none; }

  .tiles         { grid-template-columns: 1fr 1fr; }
  .tile          { padding: 11px 12px; }
  .tile .n       { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .spark         { height: 42px; gap: 3px; }
  .spark b:nth-child(n+9) { display: none; }
  .arow          { flex-wrap: wrap; gap: 4px 8px; padding: 9px 10px; }
  .arow .r       { flex-basis: 100%; order: 3; font-size: 11px; }

  .badge, .chip, .metric-chip span, .tile .l, .trace .ev .m { font-size: 12px; }
}

/* ===================== <= 400px : narrowest phones ===================== */
@media (max-width: 400px){
  section        { padding: 48px 0; }
  .hero          { padding: 56px 0 48px; }
  .wrap          { padding: 0 18px; }
  .card, .tier, .useblock { padding: 18px; }
  .cta-row       { gap: 10px; }
  .cta-row .btn  { flex: 1 1 100%; justify-content: center; }
  .spark         { display: none; }
  .code          { font-size: 12px; }
}

/* ===================== Agency sub-brand (teal / emerald) ===================== */
.brand .sub { font-size:12px; font-weight:600; color:#0f6e56; background:var(--teal-bg); padding:2px 9px; border-radius:7px; margin-left:1px; letter-spacing:.01em; }
body.agency .brand .mark { background:linear-gradient(135deg,#0f9b76,#2dd4bf); }
body.agency .hero{
  background-image:linear-gradient(103deg, rgba(3,18,15,0.95) 0%, rgba(5,26,22,0.7) 44%, rgba(6,32,27,0.30) 100%), url('agency-hero.png');
}
body.agency .hero .eyebrow{ color:#bff3e3; background:rgba(15,110,86,0.34); }
body.agency .eyebrow{ color:#0f6e56; background:var(--teal-bg); }
body.agency .grad-text{ background:linear-gradient(110deg,#0f9b76,#14b8a6 50%,#2dd4bf); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
body.agency .btn.grad{ background:linear-gradient(110deg,#0f9b76,#14b8a6 55%,#2dd4bf); box-shadow:0 8px 22px -8px rgba(15,155,118,0.6); }
body.agency .wedge{ background:linear-gradient(110deg,#0f9b76 0%,#14b8a6 45%,#34d399 100%); box-shadow:0 24px 60px -24px rgba(15,155,118,0.5); }
body.agency .banner{ background:linear-gradient(110deg,#0f9b76 0%,#14b8a6 50%,#2dd4bf 100%); box-shadow:0 24px 60px -28px rgba(15,155,118,0.6); }
body.agency .card .ic{ background:var(--teal-bg); color:#0f6e56; }
body.agency .card.teal .ic{ background:#cdeee3; color:#0b5e49; }
body.agency .badge, body.agency .tier .badge{ color:#0f6e56; background:var(--teal-bg); }
body.agency .tier.feat{ border-color:#14b8a6; }
body.agency .doclink{ color:#0f6e56; }
body.agency .useblock.ll{ border-color:#14b8a6; background:var(--teal-bg); }
body.agency .aurora .b1{ background:#0f9b76; }
body.agency .aurora .b2{ background:#2dd4bf; }
body.agency .aurora .b3{ background:#34d399; }
body.agency .aurora .b4{ background:#14b8a6; }
body.agency .metric-chip b{ color:#9fe1cb; }

/* =====================================================================
   v2 — BOLD / FULL-BLEED / ECCENTRIC ENTERPRISE LAYER
   ===================================================================== */
.wrap-wide { max-width: 1500px; margin: 0 auto; padding: 0 24px; }
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }

/* full-bleed dark image sections */
.scene { position: relative; color: #eceaf6; background: var(--ink-deep); overflow: hidden; }
.scene > .wrap, .scene > .wrap-wide { position: relative; z-index: 2; }
.scene .bgimg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: .9; }
.scene .bgimg::after { content:""; position:absolute; inset:0; background:
  linear-gradient(100deg, rgba(8,6,28,0.92) 0%, rgba(8,6,28,0.64) 48%, rgba(8,6,28,0.42) 100%); }
.scene h1, .scene h2 { color: #fff; }
.scene .lead { color: #c4c2da; }
.scene.center { text-align:center; }

/* eccentric diagonal edges (corporate but sharp) */
.slant-b { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3.5vw), 0 100%); }
.slant-t { clip-path: polygon(0 3.5vw, 100% 0, 100% 100%, 0 100%); margin-top: -3.5vw; }
.slant-tb { clip-path: polygon(0 3.5vw, 100% 0, 100% calc(100% - 3.5vw), 0 100%); }

/* oversized kicker label with a volt blade */
.kicker { display:inline-flex; align-items:center; gap:12px; font-size:12.5px; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase; color:var(--accent-ink); margin-bottom:18px; }
.kicker::before { content:""; width:30px; height:3px; background:linear-gradient(90deg,var(--violet),var(--cyan)); border-radius:2px; }
.scene .kicker { color:#bcd0ff; }
.scene .kicker::before { background:linear-gradient(90deg,var(--cyan),var(--volt)); }

h1.mega { font-size: clamp(40px, 6.4vw, 86px); line-height:1.02; letter-spacing:-0.03em; font-weight:600; margin:0 0 22px; }
.tag-it { color: var(--volt); }
.hero.tall { min-height: 88vh; display:flex; align-items:center; padding: 120px 0 90px; }

/* stat band */
.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:0; border-top:1px solid rgba(255,255,255,.12); border-bottom:1px solid rgba(255,255,255,.12); }
.stats .s { padding:26px 22px; border-left:1px solid rgba(255,255,255,.10); }
.stats .s:first-child { border-left:none; }
.stats .s .n { font-size:clamp(30px,3.4vw,46px); font-weight:600; letter-spacing:-0.02em; line-height:1; background:linear-gradient(120deg,#fff,#9fd0ff); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; }
.stats .s .l { font-size:13.5px; color:#bbb9d8; margin-top:9px; line-height:1.4; }
@media (max-width:760px){ .stats{ grid-template-columns:1fr 1fr; } .stats .s:nth-child(3){ border-left:none; } }

/* the engine — named primitives */
.engine { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:900px){ .engine{ grid-template-columns:1fr; } }
.prim { position:relative; border:1px solid rgba(255,255,255,.12); border-radius:16px; padding:24px; background:rgba(255,255,255,.03); overflow:hidden; transition:transform .2s, border-color .2s; }
.prim:hover { transform:translateY(-4px); border-color:rgba(124,58,237,.55); }
.prim::before { content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:linear-gradient(180deg,var(--cyan),var(--violet)); }
.prim .cn { font-family:var(--mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase; color:#7fd0ff; }
.prim h3 { color:#fff; font-size:21px; margin:8px 0 8px; }
.prim h3 sup { font-size:11px; color:#8a88b0; font-weight:500; }
.prim p { color:#b6b4cf; font-size:14.5px; margin:0; line-height:1.55; }
.prim .ig { width:24px; height:24px; color:#9fd0ff; margin-bottom:6px; }

/* four pillars */
.pillars { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; counter-reset:p; }
@media (max-width:860px){ .pillars{ grid-template-columns:1fr 1fr; } }
@media (max-width:520px){ .pillars{ grid-template-columns:1fr; } }
.pillar { position:relative; padding:24px 20px 22px; border-radius:14px; background:var(--paper); border:1px solid var(--line); box-shadow:0 10px 28px -16px rgba(20,20,45,.16); }
.pillar .pn { counter-increment:p; font-family:var(--mono); font-size:13px; color:var(--accent-ink); }
.pillar .pn::before { content:"0" counter(p); }
.pillar h3 { margin:12px 0 6px; font-size:19px; }
.pillar p { margin:0; font-size:14px; color:var(--ink-2); }
.pillar::after { content:""; position:absolute; left:20px; right:20px; bottom:0; height:3px; border-radius:3px;
  background:linear-gradient(90deg,var(--violet),var(--cyan)); transform:scaleX(.3); transform-origin:left; transition:transform .25s; }
.pillar:hover::after { transform:scaleX(1); }

/* dual-entity split */
.duo { display:grid; grid-template-columns:1fr auto 1fr; align-items:stretch; gap:0; }
@media (max-width:860px){ .duo{ grid-template-columns:1fr; } }
.duo .half { padding:34px; border:1px solid var(--line); }
.duo .half:first-child { border-radius:16px 0 0 16px; }
.duo .half:last-child { border-radius:0 16px 16px 0; }
.duo .x { display:flex; align-items:center; justify-content:center; width:64px; font-size:26px; font-weight:600; color:var(--accent-ink); background:var(--paper-2); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
@media (max-width:860px){ .duo .half:first-child{ border-radius:16px 16px 0 0; } .duo .half:last-child{ border-radius:0 0 16px 16px; } .duo .x{ width:auto; padding:10px; border-left:1px solid var(--line); border-right:1px solid var(--line); } }
.duo .half h3 { font-size:22px; margin:10px 0 8px; }
.duo .half.platform { background:linear-gradient(160deg, var(--accent-bg), var(--paper)); }
.duo .half.solutions { background:linear-gradient(160deg, var(--teal-bg), var(--paper)); }
.duo .tagm { font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.duo .platform .tagm { color:var(--accent-ink); }
.duo .solutions .tagm { color:var(--teal); }

/* volt accents */
.volt { color:#5b6b00; background:var(--volt); padding:3px 9px; border-radius:6px; font-weight:600; font-size:12px; }
.scene .volt { color:#1a2200; }

@media (max-width:600px){
  .hero.tall{ min-height:auto; padding:80px 0 56px; }
  .slant-b,.slant-t,.slant-tb{ clip-path:none; margin-top:0; }
  .stats .s{ padding:18px 14px; }
  .duo .half{ padding:24px; }
}

/* buttons on any dark scene */
.scene .btn { border-color:rgba(255,255,255,.22); background:rgba(255,255,255,.05); color:#f3f2ef; }
.scene .btn:hover { background:rgba(255,255,255,.12); border-color:rgba(255,255,255,.4); }
.scene .btn.primary { background:#fff; color:var(--ink); border-color:#fff; }
.scene .btn.primary:hover { background:#e9e8e3; }
.scene .doclink { color:#9fd0ff; }
.scene .card { background:rgba(255,255,255,.04); border-color:rgba(255,255,255,.12); color:#e7e6f2; }
.scene .card h3 { color:#fff; } .scene .card p { color:#bdbbd6; }

/* enterprise footer responsive */
@media (max-width:820px){ footer .grid { grid-template-columns:1fr 1fr !important; gap:26px 18px !important; } }
@media (max-width:460px){ footer .grid { grid-template-columns:1fr !important; } }

/* keep agency hero scene overlay teal (sub-brand) */
body.agency .scene .bgimg::after { background: linear-gradient(100deg, rgba(3,18,15,0.93) 0%, rgba(4,24,20,0.66) 48%, rgba(5,30,26,0.4) 100%); }

/* synthwave visualization gallery */
.viz { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:34px; }
@media (max-width:760px){ .viz { grid-template-columns:1fr; } }
.viz figure { position:relative; margin:0; border-radius:16px; overflow:hidden; border:1px solid rgba(255,255,255,.14); aspect-ratio:16/10; box-shadow:0 30px 70px -36px rgba(0,0,0,.7); }
.viz figure img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .6s ease; }
.viz figure:hover img { transform:scale(1.06); }
.viz figcaption { position:absolute; left:0; right:0; bottom:0; padding:40px 22px 20px; background:linear-gradient(transparent, rgba(6,3,22,.55) 40%, rgba(6,3,22,.92)); }
.viz figcaption .cn { font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:#ff7ae0; }
.viz figcaption .t { display:block; font-weight:600; font-size:19px; color:#fff; margin-top:5px; }
.viz figcaption .d { display:block; font-size:13.5px; color:#c9c6e6; margin-top:4px; }
.viz figure::after { content:""; position:absolute; inset:0; border-radius:16px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); pointer-events:none; }

/* agentic mesh hero image */
.viz-hero { position:relative; margin:30px 0 0; border-radius:18px; overflow:hidden; border:1px solid rgba(255,255,255,.14); box-shadow:0 44px 100px -44px rgba(0,0,0,.75); }
.viz-hero img { width:100%; display:block; }
.viz-hero figcaption { position:absolute; left:0; right:0; bottom:0; padding:64px 30px 26px; background:linear-gradient(transparent, rgba(6,3,22,.55) 45%, rgba(6,3,22,.94)); }
.viz-hero .cn { font-family:var(--mono); color:#ff7ae0; font-size:11.5px; letter-spacing:.16em; text-transform:uppercase; }
.viz-hero .t { display:block; font-weight:600; font-size:23px; color:#fff; margin-top:6px; }
.viz-hero .d { display:block; font-size:14.5px; color:#cbc9e6; margin-top:5px; max-width:64ch; }
