:root {
  --font-head: 'Bricolage Grotesque', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --tr: .22s cubic-bezier(.4,0,.2,1);
  --brand: #17e8c4;
  --brand-2: #0ec2a3;
  --accent: #ffb130;
  --green: #35e0a0;
  --orange: #ffb130;
  --red: #ff4d5e;
}

html[data-theme="dark"] {
  --bg: #04070a;
  --bg-2: #070d12;
  --panel: #0b131a;
  --panel-2: #101c25;
  --border: #1c2c34;
  --border-bright: #2c4650;
  --text: #eaf6f7;
  --text-dim: #90aab0;
  --muted: #5c7278;
  --input: #060b0f;
  --glass: rgba(4,7,10,.78);
  --soft-brand: rgba(23,232,196,.12);
  --soft-orange: rgba(255,177,48,.13);
  --soft-red: rgba(255,77,94,.13);
  --shadow: 0 30px 90px rgba(0,0,0,.5);
  --shadow-soft: 0 14px 44px rgba(0,0,0,.32);
  --grid-line: rgba(23,232,196,.055);
}

html[data-theme="light"] {
  --bg: #f2f7f8;
  --bg-2: #e8eff0;
  --panel: #ffffff;
  --panel-2: #f2f7f8;
  --border: #d7e4e6;
  --border-bright: #b9d0d3;
  --text: #0a1c20;
  --text-dim: #47646a;
  --muted: #7c9298;
  --brand: #00a087;
  --brand-2: #00846f;
  --accent: #cc7a10;
  --green: #128a63;
  --orange: #cc7a10;
  --red: #d8384a;
  --input: #ffffff;
  --glass: rgba(242,247,248,.85);
  --soft-brand: rgba(0,160,135,.10);
  --soft-orange: rgba(204,122,16,.10);
  --soft-red: rgba(216,56,74,.10);
  --shadow: 0 30px 80px rgba(20,50,55,.14);
  --shadow-soft: 0 14px 40px rgba(20,50,55,.09);
  --grid-line: rgba(0,160,135,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
::selection { background: var(--brand); color: #012019; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  background: var(--brand);
  color: #012019;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 108px 0; }
.section-alt { background: color-mix(in srgb, var(--bg-2) 76%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- ambient backdrop: signal grid + drifting scan glows ---------- */
.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(0,0,0,.7), transparent 75%);
}
.orb { position: fixed; width: 460px; height: 460px; filter: blur(110px); opacity: .16; border-radius: 50%; pointer-events: none; z-index: -2; }
.orb-a { background: var(--brand); top: 90px; right: -200px; animation: driftA 13s ease-in-out infinite alternate; }
.orb-b { background: var(--accent); top: 720px; left: -260px; opacity: .09; animation: driftB 15s ease-in-out infinite alternate; }
@keyframes driftA { to { transform: translate(-90px, 80px) scale(1.15); } }
@keyframes driftB { to { transform: translate(110px, -60px) scale(.9); } }

/* ---------- HUD corner-bracket frame, used on key instrument panels ---------- */
.hud-frame { position: relative; }
.hud-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--brand); opacity: .85; pointer-events: none; z-index: 2; }
.hud-corner.tl { top: -1px; left: -1px; border-right: none; border-bottom: none; border-top-left-radius: 4px; }
.hud-corner.tr { top: -1px; right: -1px; border-left: none; border-bottom: none; border-top-right-radius: 4px; }
.hud-corner.bl { bottom: -1px; left: -1px; border-right: none; border-top: none; border-bottom-left-radius: 4px; }
.hud-corner.br { bottom: -1px; right: -1px; border-left: none; border-top: none; border-bottom-right-radius: 4px; }

.mono-tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .02em;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.mono-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); flex: 0 0 auto; }
.mono-tag .dot.live { animation: ledBlink 1.8s ease-in-out infinite; }
@keyframes ledBlink { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #012019;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent), 0 10px 26px color-mix(in srgb, var(--brand) 25%, transparent);
}
.brand-mark svg { width: 22px; height: 22px; stroke-width: 2.6; }
.brand-mark.mini { width: 30px; height: 30px; border-radius: 8px; }
.brand-mark.mini svg { width: 16px; height: 16px; }
.brand-text, .preview-brand { font-family: var(--font-head); font-weight: 600; letter-spacing: -.02em; }
.brand-text { font-size: 1.18rem; }
.brand-text strong, .preview-brand strong { font-weight: 800; }
.desktop-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.desktop-nav a, .footer-links a { color: var(--text-dim); font-size: .89rem; font-weight: 700; transition: color var(--tr); font-family: var(--font-mono); letter-spacing: -.01em; }
.desktop-nav a:hover, .footer-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--tr);
}
.icon-button:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.icon-button svg { width: 19px; height: 19px; }
.menu-toggle { display: none; }
.mobile-menu { display: none; border-top: 1px solid var(--border); background: var(--bg); }
.mobile-menu-inner { display: grid; gap: 8px; padding: 18px 0 24px; }
.mobile-menu-inner > a:not(.btn) { padding: 12px 4px; color: var(--text-dim); font-weight: 700; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: .88rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: .91rem;
  transition: transform var(--tr), border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #012019; box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 50%, transparent), 0 14px 30px color-mix(in srgb, var(--brand) 24%, transparent); }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); box-shadow: 0 0 0 1px var(--brand), 0 0 34px color-mix(in srgb, var(--brand) 55%, transparent); }
.btn-secondary { background: var(--panel); color: var(--text); }
.btn-secondary:hover { border-color: color-mix(in srgb, var(--brand) 65%, var(--border)); color: var(--brand); }
.btn-large { min-height: 52px; padding: 13px 21px; border-radius: 12px; }
.btn-small { min-height: 42px; }

/* ---------- hero ---------- */
.hero { padding-top: 90px; padding-bottom: 84px; position: relative; }
.hero-grid { display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 54px; }
.eyebrow.mono-tag { text-transform: none; border: 1px solid var(--border-bright); background: var(--soft-brand); padding: 7px 13px 7px 11px; border-radius: 99px; font-weight: 700; }
.hero h1, .section-head h2, .control-copy h2, .org-panel h2, .org-copy h2, .cta-copy h2 {
  font-family: var(--font-head);
  letter-spacing: -.05em;
  line-height: .98;
  margin: 0;
}
.hero h1 { font-size: clamp(3.2rem, 5.9vw, 5.9rem); margin-top: 22px; }
.hero h1 span { background: linear-gradient(100deg, var(--brand), var(--brand-2) 60%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 630px; color: var(--text-dim); font-size: 1.07rem; margin: 26px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 30px; color: var(--text-dim); font-size: .82rem; font-weight: 700; font-family: var(--font-mono); }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 15px; height: 15px; color: var(--brand); }

.hero-visual { position: relative; min-width: 0; }
.radar { position: absolute; width: 620px; height: 620px; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: -1; pointer-events: none; opacity: .8; }
.radar-ring { position: absolute; border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent); border-radius: 50%; }
.radar-ring.r1 { inset: 0; }
.radar-ring.r2 { inset: 12%; }
.radar-ring.r3 { inset: 24%; }
.radar-ring.r4 { inset: 36%; }
.radar-sweep {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, color-mix(in srgb, var(--brand) 65%, transparent), transparent 30%, transparent 100%);
  animation: radarSpin 5.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes radarSpin { to { transform: rotate(360deg); } }
.radar-blip { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px 2px var(--brand); animation: blipPulse 2.6s ease-in-out infinite; }
.radar-blip.b1 { top: 22%; left: 62%; animation-delay: .2s; }
.radar-blip.b2 { top: 68%; left: 30%; animation-delay: 1.1s; }
.radar-blip.b3 { top: 40%; left: 20%; animation-delay: 1.9s; }
@keyframes blipPulse { 0%,100% { opacity: .3; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }

.mock-shadow { position: absolute; inset: 12% 8% -6%; background: var(--brand); filter: blur(95px); opacity: .11; border-radius: 40%; }
.app-window { position: relative; background: var(--bg-2); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); animation: windowFloat 6.5s ease-in-out infinite; }
@keyframes windowFloat { 50% { transform: perspective(1400px) rotateY(-1deg) rotateX(.5deg) translateY(-7px); } }
.browser-bar { height: 44px; display: grid; grid-template-columns: 90px 1fr 40px; align-items: center; gap: 8px; padding: 0 13px; border-bottom: 1px solid var(--border); background: var(--panel); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.browser-dots span:first-child { background: var(--red); }
.browser-dots span:nth-child(2) { background: var(--orange); }
.browser-dots span:nth-child(3) { background: var(--brand); }
.browser-url { justify-self: center; min-width: 0; width: min(280px,100%); height: 26px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--muted); font-size: .62rem; font-family: var(--font-mono); background: var(--input); }
.browser-url svg, .browser-action svg { width: 12px; height: 12px; }
.browser-action { color: var(--muted); display: grid; place-items: center; }
.app-preview { display: grid; grid-template-columns: 150px 1fr; min-height: 455px; }
.preview-sidebar { border-right: 1px solid var(--border); background: var(--bg-2); padding: 16px 11px; display: flex; flex-direction: column; }
.preview-brand { display: flex; align-items: center; gap: 7px; font-size: .72rem; margin-bottom: 18px; padding: 0 4px; }
.preview-nav-item { display: flex; align-items: center; gap: 8px; border-radius: 7px; padding: 8px 9px; color: var(--muted); font-size: .60rem; font-weight: 700; margin-bottom: 3px; font-family: var(--font-mono); }
.preview-nav-item svg { width: 13px; height: 13px; }
.preview-nav-item.active { background: var(--brand); color: #012019; }
.preview-nav-item.muted { opacity: .7; }
.preview-spacer { flex: 1; }
.preview-main { min-width: 0; }
.preview-topbar { height: 48px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: color-mix(in srgb, var(--bg) 86%, transparent); }
.preview-user { display: flex; align-items: center; gap: 6px; }
.preview-user span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #012019; font-size: .55rem; font-weight: 900; }
.preview-user div { width: 46px; height: 6px; border-radius: 10px; background: var(--border); }
.preview-content { padding: 18px; }
.preview-heading span { color: var(--brand); font-family: var(--font-mono); font-size: .48rem; font-weight: 700; letter-spacing: .04em; }
.preview-heading h3 { margin: 3px 0 1px; font-family: var(--font-head); font-size: 1rem; }
.preview-heading p { margin: 0; color: var(--muted); font-size: .53rem; }
.preview-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 13px; }
.preview-stat { border: 1px solid var(--border); background: var(--panel); border-radius: 8px; padding: 10px; }
.ps-icon { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 5px; background: var(--panel-2); color: var(--brand); margin-bottom: 7px; }
.ps-icon svg { width: 11px; height: 11px; }
.preview-stat.green .ps-icon { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.preview-stat.orange .ps-icon { color: var(--orange); background: var(--soft-orange); }
.preview-stat.red .ps-icon { color: var(--red); background: var(--soft-red); }
.preview-stat strong { display: block; font-family: var(--font-mono); font-size: 1rem; line-height: 1; }
.preview-stat small { color: var(--muted); font-size: .45rem; }
.preview-panels { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9px; margin-top: 10px; }
.preview-panel { background: var(--panel); border: 1px solid var(--border); border-radius: 9px; padding: 10px; min-width: 0; }
.preview-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.preview-panel-title strong { font-size: .57rem; }
.preview-panel-title span { font-size: .42rem; color: var(--muted); font-family: var(--font-mono); background: var(--panel-2); padding: 2px 6px; border-radius: 99px; }
.alert-row, .check-row { display: flex; align-items: center; gap: 7px; padding: 8px 0; border-top: 1px solid var(--border); }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto; }
.status-dot.orange { background: var(--orange); box-shadow: 0 0 0 3px var(--soft-orange); }
.status-dot.red { background: var(--red); box-shadow: 0 0 0 3px var(--soft-red); }
.status-dot.green { background: var(--green); box-shadow: 0 0 0 3px var(--soft-brand); }
.alert-row > div, .check-row > div { min-width: 0; flex: 1; }
.alert-row b, .check-row b { display: block; font-size: .48rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-row small, .check-row small { color: var(--muted); font-size: .43rem; }
.alert-row em { font-style: normal; color: var(--muted); font-size: .43rem; font-family: var(--font-mono); }
.check-row svg { width: 11px; height: 11px; color: var(--green); }
.check-row.warn svg { color: var(--orange); }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--border-bright);
  border-radius: 12px;
  padding: 11px 14px;
  box-shadow: var(--shadow-soft);
  font-size: .74rem;
}
.float-card strong { display: block; font-size: .78rem; }
.float-card small { color: var(--muted); font-size: .66rem; }
.float-icon { width: 32px; height: 32px; border-radius: 8px; background: var(--soft-brand); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.float-icon svg { width: 16px; height: 16px; }
.float-icon.orange { background: var(--soft-orange); color: var(--orange); }
.float-card-a { top: -6%; right: -7%; }
.float-card-b { bottom: 4%; left: -9%; }

/* ---------- ticker ---------- */
.ticker { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); overflow: hidden; padding: 15px 0; }
.ticker-track { display: flex; width: max-content; gap: 56px; animation: tickerScroll 26s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: .82rem; color: var(--text-dim); white-space: nowrap; }
.ticker-item svg { width: 15px; height: 15px; color: var(--brand); }
.ticker-item strong { color: var(--text); font-weight: 700; }
.ticker-sep { color: var(--border-bright); }

/* ---------- section heads ---------- */
.section-head { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; align-items: end; margin-bottom: 52px; }
.section-head.centered { grid-template-columns: 1fr; justify-items: center; text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--text-dim); margin: 0; max-width: 440px; }
.section-head.centered p { max-width: 100%; }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}
.feature-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.feature-card:hover .hud-corner { opacity: 1; }
.feature-card .hud-corner { opacity: 0; transition: opacity var(--tr); }
.feature-large { grid-column: span 2; }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--soft-brand); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.feature-icon svg { width: 21px; height: 21px; }
.feature-icon.orange { background: var(--soft-orange); color: var(--orange); border-color: color-mix(in srgb, var(--orange) 30%, transparent); }
.feature-kicker { display: block; font-family: var(--font-mono); font-size: .74rem; color: var(--brand); margin-bottom: 9px; }
.feature-kicker::before { content: '▸ '; }
.feature-card h3 { font-family: var(--font-head); font-size: 1.28rem; letter-spacing: -.02em; margin: 0 0 9px; line-height: 1.2; }
.feature-card p { color: var(--text-dim); margin: 0; font-size: .93rem; }
.feature-cta { display: flex; flex-direction: column; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-weight: 800; margin-top: auto; padding-top: 14px; font-size: .9rem; }
.text-link svg { width: 15px; height: 15px; transition: transform var(--tr); }
.text-link:hover svg { transform: translateX(3px); }

.mini-bag { margin-top: 18px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.mini-bag-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; background: var(--panel-2); font-size: .82rem; font-weight: 800; }
.mini-bag-head span { display: inline-flex; align-items: center; gap: 7px; }
.mini-bag-head svg { width: 15px; height: 15px; color: var(--brand); }
.mini-bag-head small { font-family: var(--font-mono); color: var(--muted); font-weight: 600; }
.pocket-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; font-size: .84rem; border-top: 1px solid var(--border); color: var(--text-dim); }
.pocket-row b { color: var(--text); font-family: var(--font-mono); font-size: .8rem; }

.status-list { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: .82rem; font-family: var(--font-mono); color: var(--text-dim); }
.status-list span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot.orange { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.dot.red { background: var(--red); box-shadow: 0 0 6px var(--red); }

.check-demo { margin-top: 18px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--panel-2); }
.check-ok { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #012019; display: grid; place-items: center; flex: 0 0 auto; }
.check-ok svg { width: 14px; height: 14px; }
.check-demo div { flex: 1; min-width: 0; }
.check-demo strong { display: block; font-size: .85rem; }
.check-demo small { color: var(--muted); font-size: .74rem; font-family: var(--font-mono); }
.badge-ui { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; color: var(--green); background: var(--soft-brand); padding: 5px 10px; border-radius: 99px; flex: 0 0 auto; }

.flow-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.flow-pills span { font-family: var(--font-mono); font-size: .76rem; border: 1px solid var(--border); border-radius: 99px; padding: 6px 13px; color: var(--text-dim); }

.timeline-mini { margin-top: 18px; display: flex; flex-direction: column; gap: 0; }
.timeline-mini > div { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); position: relative; }
.timeline-mini > div:first-child { border-top: none; }
.timeline-mini span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 5px; flex: 0 0 auto; box-shadow: 0 0 6px var(--green); }
.timeline-mini .warn span { background: var(--orange); box-shadow: 0 0 6px var(--orange); }
.timeline-mini b { display: block; font-size: .85rem; }
.timeline-mini small { color: var(--muted); font-size: .74rem; font-family: var(--font-mono); }

/* ---------- steps ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr) ; gap: 0; align-items: stretch; }
.step-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.step-num { display: block; font-family: var(--font-mono); font-size: .78rem; color: var(--brand); letter-spacing: .06em; margin-bottom: 14px; }
.step-num::before { content: '// '; color: var(--muted); }
.step-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--soft-brand); color: var(--brand); display: grid; place-items: center; margin-bottom: 16px; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.step-icon svg { width: 20px; height: 20px; }
.step-card h3 { font-family: var(--font-head); font-size: 1.12rem; margin: 0 0 8px; letter-spacing: -.02em; }
.step-card p { margin: 0; color: var(--text-dim); font-size: .88rem; }
.step-connector { display: grid; place-items: center; color: var(--border-bright); }
.step-connector svg { width: 20px; height: 20px; }

/* ---------- control section ---------- */
.control-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; }
.control-copy h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-top: 14px; }
.control-copy p { color: var(--text-dim); margin: 18px 0 0; max-width: 480px; }
.check-list { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.check-list li { display: flex; align-items: center; gap: 11px; font-size: .93rem; }
.check-list li span { width: 22px; height: 22px; border-radius: 6px; background: var(--soft-brand); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; }
.check-list li span svg { width: 12px; height: 12px; }

.control-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}
.control-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.control-card-head span { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.control-card-head strong { display: block; font-family: var(--font-head); font-size: 1.15rem; margin-top: 2px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .7rem; font-weight: 700; color: var(--green); background: var(--soft-brand); padding: 6px 11px; border-radius: 99px; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); display: block; box-shadow: 0 0 6px var(--green); animation: ledBlink 1.6s ease-in-out infinite; }
.control-field { margin-bottom: 12px; }
.control-field label { display: block; font-family: var(--font-mono); font-size: .68rem; color: var(--muted); margin-bottom: 7px; }
.fake-select { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--border); background: var(--input); border-radius: 9px; padding: 11px 13px; font-size: .87rem; font-weight: 700; }
.fake-select span { display: inline-flex; align-items: center; gap: 9px; }
.fake-select svg { width: 15px; height: 15px; color: var(--brand); }
.fake-select > svg { width: 15px; height: 15px; color: var(--muted); }
.control-sections { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.section-chip { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 9px; padding: 8px 11px; font-size: .78rem; font-weight: 700; color: var(--text-dim); }
.section-chip svg { width: 13px; height: 13px; }
.section-chip small { font-family: var(--font-mono); background: var(--panel-2); border-radius: 99px; padding: 1px 6px; color: var(--muted); }
.section-chip.active { border-color: var(--brand); color: var(--brand); background: var(--soft-brand); }
.section-chip.active small { background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
.control-item-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.item-check { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); flex: 0 0 auto; }
.item-check svg { width: 13px; height: 13px; }
.item-check.checked { background: var(--green); border-color: var(--green); color: #012019; }
.control-item-row > div { flex: 1; min-width: 0; }
.control-item-row strong { display: block; font-size: .88rem; }
.control-item-row small { color: var(--muted); font-size: .74rem; font-family: var(--font-mono); }
.item-status { font-family: var(--font-mono); font-size: .68rem; font-weight: 700; padding: 5px 10px; border-radius: 99px; flex: 0 0 auto; }
.item-status.ok { color: var(--green); background: var(--soft-brand); }
.item-status.neutral { color: var(--muted); background: var(--panel-2); }
.control-submit { width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--brand); color: #012019; border: none; border-radius: 10px; padding: 13px; font-weight: 800; font-size: .9rem; cursor: pointer; transition: var(--tr); }
.control-submit:hover { background: var(--brand-2); box-shadow: 0 0 24px color-mix(in srgb, var(--brand) 45%, transparent); }
.control-submit svg { width: 16px; height: 16px; }

/* ---------- organisation ---------- */
.org-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; }
.org-panel, .org-copy { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.org-copy { background: transparent; border: none; padding: 32px 0 32px 8px; }
.org-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.org-panel h2, .org-copy h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 12px; }
.org-panel p, .org-copy p { color: var(--text-dim); margin: 16px 0 0; }
.shield-badge { width: 46px; height: 46px; border-radius: 12px; background: var(--soft-brand); color: var(--brand); display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.shield-badge svg { width: 22px; height: 22px; }
.role-list { display: grid; gap: 10px; margin-top: 22px; }
.role-row { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; background: var(--panel-2); }
.role-row:nth-child(2) { border-left-color: var(--orange); }
.role-row:nth-child(3) { border-left-color: var(--border-bright); }
.role-icon { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.role-icon svg { width: 17px; height: 17px; }
.role-icon.admin { background: var(--soft-brand); color: var(--brand); }
.role-icon.referent { background: var(--soft-orange); color: var(--orange); }
.role-icon.user { background: var(--panel); color: var(--muted); border: 1px solid var(--border); }
.role-row > div { flex: 1; min-width: 0; }
.role-row strong { display: block; font-size: .92rem; }
.role-row small { color: var(--muted); font-size: .8rem; }
.role-tag { font-family: var(--font-mono); font-size: .66rem; font-weight: 700; color: var(--text-dim); background: var(--panel); border: 1px solid var(--border); padding: 5px 9px; border-radius: 99px; flex: 0 0 auto; }
.org-points { display: grid; gap: 16px; margin-top: 24px; }
.org-points > div { display: flex; gap: 14px; align-items: flex-start; }
.org-points svg { width: 20px; height: 20px; color: var(--brand); flex: 0 0 auto; margin-top: 2px; }
.org-points strong { display: block; font-size: .93rem; }
.org-points small { color: var(--muted); font-size: .82rem; }

/* ---------- CTA ---------- */
.cta-section { padding-bottom: 130px; }
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border-bright);
  border-radius: 22px;
  padding: 60px 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-glow { position: absolute; width: 480px; height: 480px; background: var(--brand); filter: blur(130px); opacity: .16; border-radius: 50%; top: -180px; right: -140px; }
.cta-copy { position: relative; max-width: 560px; }
.cta-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 12px; }
.cta-copy p { color: var(--text-dim); margin: 16px 0 0; }
.cta-actions { position: relative; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- proof-strip fallback (kept for no-js / print) ---------- */
.proof-strip { display: none; }

/* ---------- breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); padding-top: 22px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span[aria-current] { color: var(--text); font-weight: 700; }
.breadcrumb .sep { color: var(--border-bright); }

/* ---------- secondary page hero ---------- */
.page-hero { padding: 34px 0 58px; }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-family: var(--font-head); letter-spacing: -.045em; line-height: 1.04; margin: 0 0 18px; font-size: clamp(2.1rem, 4vw, 3.1rem); }
.page-hero .lead { color: var(--text-dim); font-size: 1.05rem; max-width: 700px; margin: 0; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- long-form prose (guides, FAQ intros) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-head); font-size: 1.55rem; letter-spacing: -.02em; margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-head); font-size: 1.15rem; margin: 26px 0 10px; }
.prose p { color: var(--text-dim); margin: 0 0 16px; }
.prose ul, .prose ol { color: var(--text-dim); padding-left: 22px; margin: 0 0 18px; display: grid; gap: 9px; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--text); }
.prose a { color: var(--brand); font-weight: 700; }
.prose .callout { border: 1px solid var(--border-bright); background: var(--soft-brand); border-radius: var(--radius-sm); padding: 16px 18px; color: var(--text-dim); margin: 0 0 20px; font-size: .93rem; }
.prose .callout strong { color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 800px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel); overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 17px 20px; font-weight: 800; font-family: var(--font-head); font-size: 1rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--brand); font-size: 1.3rem; flex: 0 0 auto; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { margin: 0; padding: 15px 20px 19px; color: var(--text-dim); }

/* ---------- hub link cards (fonctionnalités, solutions, ressources) ---------- */
.link-card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.article-card .mono-tag { margin-bottom: 14px; }
.article-meta { font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-top: 14px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.contact-card h3 { font-family: var(--font-head); font-size: 1.2rem; margin: 14px 0 8px; }
.contact-card p { color: var(--text-dim); margin: 0 0 18px; }
.contact-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--soft-brand); color: var(--brand); display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.contact-icon svg { width: 20px; height: 20px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 50px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 26px; align-items: start; }
.footer-col strong { display: block; font-family: var(--font-mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 13px; }
.footer-brand p { color: var(--muted); margin: 12px 0 0; font-size: .87rem; max-width: 280px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .8rem; font-family: var(--font-mono); text-align: right; }
.footer-dot { display: none; }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1.is-visible { transition-delay: .08s; }
.reveal-delay-2.is-visible { transition-delay: .16s; }
.reveal-delay-3.is-visible { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .app-window, .orb, .radar-sweep, .radar-blip, .ticker-track, .pulse-dot, .live-pill i { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-large { grid-column: span 2; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .step-connector { display: none; }
  .org-grid { grid-template-columns: 1fr; }
  .org-copy { padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 940px) {
  .desktop-nav, .desktop-login { display: none; }
  .menu-toggle { display: grid; }
  .mobile-menu.open { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 60px; }
  .hero-visual { margin-top: 20px; order: -1; }
  .radar { width: 420px; height: 420px; }
  .float-card { display: none; }
  .control-grid { grid-template-columns: 1fr; }
  .section-head { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .footer-bottom { text-align: left; grid-column: 1 / -1; }
  .link-card-grid, .audience-grid, .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .section-pad { padding: 76px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: span 1; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  .cta-card { padding: 40px 26px; flex-direction: column; align-items: flex-start; }
  .app-preview { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
}
