/* Arc 360 website, enterprise edition: deep navy, one calm accent, thin borders,
   measured motion. Diagrams carry the colour. Reduced-motion visitors get stillness. */

:root {
  --bg: #070b16;
  --bg-2: #0b1120;
  --panel: #0e1526;
  --panel-2: #121b30;
  --line: rgba(148, 163, 196, .16);
  --line-2: rgba(148, 163, 196, .28);
  --text: #f2f5fb;
  --muted: #a4aec4;
  --dim: #6b7690;
  --accent: #5b7cfa;
  --cyan: #22d3ee;
  --indigo: #6366f1;
  --pink: #f472b6;
  --ok: #34d399;
  --warn: #fbbf24;
  --bad: #fb7185;
  --grad: linear-gradient(95deg, #7dd3fc, #818cf8 55%, #c4b5fd);
  --radius: 14px;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* A faint dot grid behind the top of the page, and one soft light */
.backdrop { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 72% 8%, rgba(91, 124, 250, .16), transparent 70%),
    radial-gradient(circle, rgba(148, 163, 196, .13) 1px, transparent 1.4px) 0 0 / 28px 28px;
  mask-image: linear-gradient(#000, transparent 85%); }
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: .55em; font: 600 15px/1 Inter, sans-serif; border-radius: 10px; padding: .9em 1.25em; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn-sm { padding: .7em 1em; font-size: 14px; }
.btn-lg { padding: 1.05em 1.5em; font-size: 16px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 24px -10px rgba(91, 124, 250, .8); }
.btn-primary:hover { background: #6e8cff; transform: translateY(-1px); }
.btn-primary svg { transition: transform .2s var(--ease); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); background: rgba(255,255,255,.03); }

/* ── Nav ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; gap: 28px; padding: 16px max(16px, calc((100vw - var(--wrap)) / 2)); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s, padding .3s; }
.nav.scrolled { padding-top: 10px; padding-bottom: 10px; background: rgba(7, 11, 22, .82); backdrop-filter: blur(12px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.wordmark { font: 700 20px/1 Inter, sans-serif; letter-spacing: -.03em; }
.wordmark b { font-weight: 500; color: var(--muted); margin-left: 3px; }
.brand:hover .mark-ring { animation: turn 1.2s var(--ease); transform-origin: 32px 32px; }
@keyframes turn { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle { display: none; }

/* ── Hero ── */
.hero { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; min-height: 100vh; padding: 130px 16px 70px; display: grid; grid-template-columns: 1.02fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font: 500 13px/1.4 "JetBrains Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: ping 2.4s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
h1 { font-size: clamp(38px, 5.2vw, 66px); line-height: 1.06; font-weight: 700; }
.w { display: inline-block; opacity: 0; transform: translateY(.5em); animation: rise .7s calc(var(--d) * 70ms + 150ms) var(--ease) forwards; }
.rise { opacity: 0; transform: translateY(16px); animation: rise .8s calc(var(--d) * 70ms + 150ms) var(--ease) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 560px; margin-top: 24px; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.hero-viz { position: relative; }
.hero-viz svg { width: 100%; height: auto; overflow: visible; }
.core { filter: drop-shadow(0 0 30px rgba(99,102,241,.45)); }
.chip rect { fill: var(--panel); stroke: var(--line-2); stroke-width: 1; }
.chip text { fill: var(--text); font: 500 12.5px Inter, sans-serif; }
.chip text.tag { fill: var(--warn); font: 500 10px "JetBrains Mono", monospace; }
.chip-paused { opacity: .55; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; justify-content: center; color: var(--dim); font-size: 13px; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.s-ok { fill: var(--ok); background: var(--ok); } .s-new { fill: var(--cyan); background: var(--cyan); }
.s-reg { fill: var(--indigo); background: var(--indigo); } .s-warn { fill: var(--warn); background: var(--warn); } .s-off { fill: var(--dim); background: var(--dim); }

/* ── Marquee and facts ── */
.marquee { position: relative; z-index: 1; border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 44s linear infinite; }
.marquee-track span { font: 500 15px/1 Inter, sans-serif; color: var(--dim); white-space: nowrap; }
.marquee-track i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
@keyframes marquee { to { transform: translateX(-50%); } }
.facts { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 34px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font: 600 40px/1 Inter, sans-serif; letter-spacing: -.03em; white-space: nowrap; }
.fact span { display: block; margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* ── Sections ── */
.wrap { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 110px 16px 0; }
.head { max-width: 720px; margin-bottom: 56px; }
.kicker { margin-bottom: 14px; font: 500 12.5px/1 "JetBrains Mono", monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.12; }

/* ── Feature rows with diagrams ── */
.row { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.row.flip .row-copy { order: 2; }
.num { font: 500 13px/1 "JetBrains Mono", monospace; color: var(--dim); }
.row h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin: 14px 0 14px; }
.row p { color: var(--muted); }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text); font-size: 15.5px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 11px; height: 6px; border: solid var(--ok); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.hint { margin-top: 10px; color: var(--dim); font-size: 14px; }

.dg { border-radius: 18px; border: 1px solid var(--line); padding: 14px; transition: border-color .3s, transform .5s var(--ease);
  background: radial-gradient(circle, rgba(148,163,196,.10) 1px, transparent 1.4px) 0 0 / 22px 22px, radial-gradient(420px 300px at 50% 45%, rgba(91,124,250,.10), transparent 70%), var(--bg-2); }
.dg:hover { border-color: var(--line-2); }
.dg svg { width: 100%; height: auto; overflow: visible; }
.lane { fill: none; stroke: rgba(148,163,196,.26); stroke-width: 1.6; }
.lane.dash { stroke-dasharray: 4 6; }
.lane-bad { stroke: rgba(251,113,133,.5); stroke-dasharray: 5 5; }
.n rect { fill: var(--panel); stroke: rgba(148,163,196,.34); stroke-width: 1.3; }
.n text { fill: var(--text); font: 600 14px Inter, sans-serif; text-anchor: middle; }
.n text.sub { fill: var(--dim); font: 400 10.5px "JetBrains Mono", monospace; }
.n text.mono { font: 500 11.5px "JetBrains Mono", monospace; }
.n text.big { font: 700 24px Inter, sans-serif; }
.n-gate rect { stroke: url(#g3); stroke-width: 2.2; filter: url(#glow); }
.n-bad rect { stroke: var(--bad); stroke-dasharray: 5 4; }
.hub { fill: var(--panel); stroke: url(#g3); stroke-width: 2; filter: url(#glow); }
.pk { fill: #9ad8ff; filter: drop-shadow(0 0 5px var(--cyan)); }
.pk2 { fill: #b4b8ff; filter: drop-shadow(0 0 5px var(--indigo)); }
.pk3 { fill: #f8b4d9; filter: drop-shadow(0 0 5px var(--pink)); }
.pk.bad { fill: var(--bad); filter: drop-shadow(0 0 7px var(--bad)); }
.cap { fill: var(--dim); font: 400 11px "JetBrains Mono", monospace; text-anchor: middle; }
.bad-t { fill: #fda4b4; }
.spin-slow { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.rows rect:first-child { fill: rgba(255,255,255,.035); stroke: var(--line); }
.rows .bar, .bar { fill: rgba(148,163,196,.3); }
.rows g { opacity: 0; animation: rowin 7s calc(var(--i) * .7s) infinite; }
@keyframes rowin { 0% { opacity: 0; transform: translateX(-8px); } 8%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.chk circle { fill: var(--panel); stroke: #3a3f66; stroke-width: 2; }
.chk path { fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.chk text { fill: var(--muted); font: 500 12px Inter, sans-serif; text-anchor: middle; }
.n-go text { fill: var(--ok); }

.refused rect { fill: rgba(251,113,133,.1); stroke: rgba(251,113,133,.55); }
.refused text { fill: #fda4b4; font: 500 11.5px "JetBrains Mono", monospace; text-anchor: middle; }
.refused { animation: refused 3s infinite; }
@keyframes refused { 0%, 45% { opacity: 0; } 55%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* kill switch */
.switch { display: inline-flex; align-items: center; gap: 12px; margin-top: 24px; padding: 8px 16px 8px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 15px Inter, sans-serif; cursor: pointer; transition: border-color .2s; }
.switch:hover { border-color: var(--muted); }
.knob { position: relative; width: 46px; height: 26px; border-radius: 999px; background: var(--ok); transition: background .3s; }
.knob::after { content: ""; position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .3s var(--ease); }
.switch[aria-pressed="true"] .knob { background: var(--bad); }
.switch[aria-pressed="true"] .knob::after { left: 3px; }
.meter text { fill: var(--dim); font: 400 10.5px "JetBrains Mono", monospace; }
.meter .track { fill: rgba(148,163,196,.18); } .meter .fill { fill: var(--ok); }
.stopped { opacity: 0; transition: opacity .4s; }
.stopped rect { fill: rgba(251,113,133,.1); stroke: rgba(251,113,133,.55); }
.stopped text { fill: #fda4b4; font: 500 11.5px "JetBrains Mono", monospace; text-anchor: middle; }
.flow, .n-agent, .meter { transition: opacity .4s; }
.paused .flow { opacity: 0; } .paused .meter { opacity: .25; } .paused .stopped { opacity: 1; }
.paused .n-agent rect { stroke: var(--bad); stroke-dasharray: 6 5; } .paused .n-agent { opacity: .6; }
.paused .lane { stroke: rgba(148,163,196,.12); }

/* drift */
.decl path { fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.decl text { fill: var(--muted); font: 400 11px "JetBrains Mono", monospace; text-anchor: start; }
.badge circle { fill: var(--bad); animation: pulse 1.6s infinite; transform-box: fill-box; transform-origin: center; }
.badge text { fill: #fff; font: 700 15px Inter, sans-serif; text-anchor: middle; }
@keyframes pulse { 50% { transform: scale(1.18); } }

/* cost streams */
.streams path { fill: none; stroke: var(--cyan); opacity: .35; stroke-dasharray: 14 8; animation: flow 1.4s linear infinite; }
.streams .s2 { stroke: var(--indigo); } .streams .s3 { stroke: var(--pink); }
@keyframes flow { to { stroke-dashoffset: -22; } }

/* ── Bento ── */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cell { position: relative; padding: 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .3s var(--ease); }
.cell:hover { border-color: var(--line-2); transform: translateY(-2px); }
.cell::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--cx, 50%) var(--cy, 50%), rgba(91,124,250,.14), transparent 60%); }
.cell:hover::before { opacity: 1; }
.c-wide { grid-column: span 2; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.cell h3 { font-size: 18px; } .cell p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.mini { width: 100%; max-width: 240px; margin-top: auto; overflow: visible; }
.c-wide .mini { flex: none; width: 240px; margin: 0; }
.ringbg { fill: none; stroke: rgba(148,163,196,.16); stroke-width: 9; }
.ringfg { fill: none; stroke: url(#g3); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 264; transition: stroke-dasharray 1.4s .2s var(--ease); }
.in .ringfg { stroke-dasharray: 232 264; }
.grade { fill: var(--text); font: 700 26px Inter, sans-serif; text-anchor: middle; }
.scorebars rect { fill: var(--accent); transform-box: fill-box; transform-origin: left; transform: scaleX(0); transition: transform 1s .3s var(--ease); opacity: .85; }
.in .scorebars rect { transform: scaleX(var(--w)); }
.policy rect:not(.bar) { fill: rgba(255,255,255,.03); stroke: var(--line); }
.blink { animation: blink 1.4s infinite; } @keyframes blink { 50% { opacity: .3; } }
.graph path { fill: none; stroke: rgba(148,163,196,.3); stroke-width: 1.3; }
.graph circle { fill: var(--panel-2); stroke: var(--accent); stroke-width: 1.6; }
.graph .hot { fill: var(--cyan); stroke: none; animation: pulse 2s infinite; transform-box: fill-box; transform-origin: center; }
.a2a > rect:first-child { fill: rgba(255,255,255,.03); stroke: var(--line-2); }
.skill { fill: rgba(91,124,250,.25); stroke: rgba(91,124,250,.6); opacity: 0; transition: opacity .5s calc(var(--i) * .2s + .4s); }
.in .skill { opacity: 1; }
.spark { fill: none; stroke: url(#g3); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; transition: stroke-dashoffset 1.8s .2s var(--ease); }
.in .spark { stroke-dashoffset: 0; }
.sparkfill { fill: url(#g3v); opacity: 0; transition: opacity 1s 1s; } .in .sparkfill { opacity: .12; }
.chain path:first-child { fill: none; stroke: rgba(148,163,196,.3); stroke-width: 1.5; }
.chain rect { fill: var(--panel-2); stroke: var(--line-2); } .chain .approve { stroke: var(--ok); }
.chain .tk { fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ── Steps, trust, band ── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { position: relative; padding: 32px; background: var(--panel); border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0; transition: transform .9s calc(var(--i) * .25s + .2s) var(--ease); }
.step.in::after { transform: scaleX(1); }
.step span { font: 500 13px "JetBrains Mono", monospace; color: var(--accent); }
.step h3 { font-size: 20px; margin: 14px 0 8px; } .step p { color: var(--muted); font-size: 15.5px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.trust-item svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.trust-item h3 { font-size: 17px; margin-bottom: 8px; } .trust-item p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(120deg, rgba(91,124,250,.10), rgba(34,211,238,.05)), var(--panel); }
.band p:not(.kicker) { color: var(--muted); margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 14.5px; color: var(--muted); }

/* ── CTA, footer ── */
.cta { position: relative; z-index: 1; max-width: var(--wrap); margin: 110px auto 0; padding: 90px 16px 100px; text-align: center; border-top: 1px solid var(--line); }
.cta-mark { width: 64px; height: 64px; margin: 0 auto 26px; animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.cta h2 { font-size: clamp(32px, 4.6vw, 52px); }
.cta p { color: var(--muted); font-size: 18px; margin: 16px auto 32px; max-width: 580px; }
.footer { position: relative; z-index: 1; max-width: var(--wrap); margin: 0 auto; padding: 30px 16px 48px; display: flex; align-items: center; gap: 30px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14.5px; }
.footer-tag { color: var(--dim); font-size: 13.5px; padding-left: 16px; border-left: 1px solid var(--line); }
.footer nav { display: flex; gap: 22px; margin-left: auto; } .footer nav a:hover { color: var(--text); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 120px; }
  .hero-viz { max-width: 520px; margin: 0 auto; width: 100%; }
  .row, .band { grid-template-columns: 1fr; gap: 28px; }
  .row.flip .row-copy { order: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); } .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .bento, .trust { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; gap: 6px; margin-left: auto; width: 42px; height: 42px; place-content: center; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; }
  .nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .3s; }
  .nav.open { background: rgba(7,11,22,.96); }
  .nav.open .nav-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 16px; right: 16px; padding: 18px; gap: 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-2); }
  .nav.open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav.open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .wrap { padding-top: 80px; } .head { margin-bottom: 36px; }
  .fact { padding: 22px 14px; } .fact strong { font-size: 30px; }
  .bento, .trust, .steps { grid-template-columns: 1fr; }
  .c-wide { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .step { border-left: 0; border-top: 1px solid var(--line); } .step:first-child { border-top: 0; }
  .band { padding: 28px; }
  .legend { flex-wrap: wrap; gap: 12px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 14px; } .footer-tag { padding-left: 0; border-left: 0; } .footer nav { margin-left: 0; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .w, .rise, .rows g, .refused { opacity: 1 !important; transform: none !important; }
  .ringfg { stroke-dasharray: 232 264; } .scorebars rect { transform: scaleX(var(--w)); } .skill { opacity: 1; } .spark { stroke-dashoffset: 0; }
}
