/* HivOps — shared stylesheet. Design: "univers spatial" (docs/design-proposals, proposition 2).
   Deep night background, the HivOps yellow is the light at the core. */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
    --yellow:   #fbbe15;
    --black:    #0f172a;
    --bg:       #060a18;   /* page background */
    --bg-alt:   #0a1023;   /* alternate band */
    --dark:     #03050d;   /* darkest band, footer */
    --panel:    #0d1429;   /* opaque surface (dropdown, mobile menu) */
    --surface:  rgba(255,255,255,0.035);
    --surface-2: rgba(255,255,255,0.07);
    --text:     #e9edf6;
    --muted:    #98a3bb;
    --line:     rgba(255,255,255,0.09);
    --line-strong: rgba(255,255,255,0.18);
    --accent:   var(--yellow);
    --accent-ink: #fcd34d;  /* yellow for small text on dark */
    --accent-soft: rgba(251,190,21,0.10);
    --white:    #ffffff;   /* base for translucent whites (surfaces, lines) */
    --accent-label: #fcd97a; /* report titles, tags */
    --red:      #f87171;
    --red-soft: #fca5a5;
    --green:    #34d399;
    --orange:   #fb923c;
    --blue:     #60a5fa;
    --star:     #ffffff;
    --star-blue: #cfd8ff;
    --star-warm: #fde68a;
    --orbit:    #dbe3ff;
    --satellite: #e0e7ff;
    --slate:    #64748b;
    --chip-light: #f1f5f9;  /* light chip behind client logos */
    --sev-crit: #ef4444; --sev-high: #f97316; --sev-mod: #eab308; --sev-low: #94a3b8;
    --term-bg:  #02040a; --term-bar: #0a0f1e; --term-dot: #334155; --term-text: #cbd5e1;
    --placeholder: #6b7790;
    --font:     'Plus Jakarta Sans', system-ui, sans-serif;
    --mono:     ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --radius:   12px;
    --radius-sm: 8px;
    --radius-pill: 999px;
    --shadow:   0 20px 60px rgba(0,0,0,0.45);
    --max:      1200px;
    --nav-h:    76px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: clip; padding-top: var(--nav-h); -webkit-font-smoothing: antialiased; }
/* sparse, static star field */
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
    background-image: radial-gradient(1px 1px at 12% 18%, var(--star), transparent), radial-gradient(1px 1px at 72% 12%, var(--star), transparent),
    radial-gradient(1px 1px at 38% 64%, var(--star-blue), transparent), radial-gradient(1.5px 1.5px at 88% 52%, var(--star-warm), transparent),
    radial-gradient(1px 1px at 22% 86%, var(--star), transparent), radial-gradient(1px 1px at 58% 38%, var(--star-blue), transparent),
    radial-gradient(1px 1px at 94% 88%, var(--star), transparent), radial-gradient(1px 1px at 6% 52%, var(--star), transparent);
    background-size: 640px 640px; }
a { color: inherit; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Nav ─────────────────────────────────────────────────── */
nav#main-nav { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 5%; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.logo img { height: 44px; width: auto; display: block; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2.2rem; }
.nav-links > li > a, .nav-drop-btn { text-decoration: none; font: 400 0.9rem var(--font); color: var(--text); background: none; border: 0; cursor: pointer; }
.nav-links > li > a:hover, .nav-drop-btn:hover, .nav-links > li > a[aria-current="page"]:not(.cta-nav) { color: var(--accent-ink); }
.nav-dropdown { position: static; }
.nav-drop-btn { display: flex; align-items: center; gap: 0.35rem; padding: 0.3rem 0; }
.nav-drop-btn::after { content: none; }
.nav-drop-btn svg { width: 14px; height: 14px; transition: transform 200ms; }
.nav-dropdown.open .nav-drop-btn svg { transform: rotate(180deg); }
.dropdown-menu { position: absolute; top: 70px; right: 5%; width: min(1040px, 90vw); display: grid; grid-template-columns: 1fr 2fr 0.9fr; gap: 0.5rem 1.5rem; padding: 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity 200ms, transform 200ms, visibility 200ms; }
.dropdown-menu::before { content: ''; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav-dropdown:hover .dropdown-menu, .nav-dropdown.open .dropdown-menu, .nav-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.mega-col:nth-child(2) { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; align-content: start; }
.mega-col:nth-child(2) .mega-title { grid-column: 1 / -1; }
.mega-also { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.mega-title { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin: 0 0 0.5rem 0.6rem; }
.dropdown-menu a { display: flex; gap: 0.7rem; padding: 0.55rem 0.6rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.dropdown-menu a:hover, .dropdown-menu a[aria-current="page"] { background: var(--surface-2); }
.dd-icon { flex: 0 0 20px; height: 20px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.dd-icon svg { width: 18px; height: 18px; }
.dd-label { display: block; font-size: 0.86rem; font-weight: 600; line-height: 1.3; }
.dd-sub { display: block; font-size: 0.76rem; color: var(--muted); line-height: 1.4; }
.nav-links > li > a.cta-nav { background: var(--accent); color: var(--black) !important; padding: 0.55rem 1.1rem; border-radius: 8px; font-weight: 600 !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── Buttons, labels, links ─────────────────────────────── */
.btns { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.btns-center { justify-content: center; }
.btn { display: inline-block; padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 2px solid transparent; transition: background-color 150ms, border-color 150ms; }
.btn-primary { background: var(--accent); color: var(--black); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-secondary { color: var(--text); border-color: color-mix(in srgb, var(--white) 22%, transparent); }
.btn-secondary:hover { border-color: var(--text); }
.btn:active, .nav-links > li > a.cta-nav:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.svc:active { transform: translateY(1px); }
.label, .hero-tag { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-bottom: 1rem; }
.label::before, .hero-tag::before { content: ''; width: 18px; height: 2px; background: var(--accent); }
.link { font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }
.slogan { display: flex; align-items: center; gap: 0.7rem; font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; color: var(--accent-ink); margin-bottom: 1.4rem; }
.slogan::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.todo { display: inline-block; font-size: 0.8em; font-weight: 600; color: var(--accent-ink); background: color-mix(in srgb, var(--yellow) 8%, transparent); border: 1px dashed color-mix(in srgb, var(--yellow) 60%, transparent); border-radius: 6px; padding: 0.05rem 0.45rem; }
.badge-example { display: inline-block; font-size: 0.72rem; font-weight: 800; color: var(--black); background: var(--accent); padding: 0.22rem 0.65rem; border-radius: 6px; }

/* ── Sections ───────────────────────────────────────────── */
.sec { padding: 6rem 5%; position: relative; }
.sec-alt { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--white) 2%, transparent) 20%, color-mix(in srgb, var(--white) 2%, transparent) 80%, transparent); }
.sec-head { max-width: var(--max); margin: 0 auto 2.8rem; text-align: left; }
.sec-head-left { max-width: var(--max); text-align: left; margin-bottom: 2rem; }
.sec-head h2, .contact h2, .iot h2, .systeam h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 0.9rem; }
.sec-head h2 { max-width: 22ch; }
.sec-head p { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.sec-foot { max-width: var(--max); margin: 1.8rem auto 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; color: var(--muted); font-size: 0.93rem; }
.sec-foot-center { justify-content: flex-start; }
.sec-dark { background: var(--dark); }
#references .sec-foot { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.sec-dark .sec-head p { color: var(--muted); }

/* Orbits (decoration, hero only) */
.orbits { position: absolute; z-index: 0; pointer-events: none; color: var(--orbit); width: 900px; height: 900px; right: -180px; top: 50%; transform: translateY(-50%); }
.orbits .orbit { transform-origin: 400px 400px; animation: spin 80s linear infinite; }
.orbits .o2 { animation-duration: 140s; animation-direction: reverse; }
.orbits .o3 { animation-duration: 220s; }
.orbits .sat { fill: var(--satellite); }
.orbits .sat.dim { fill: var(--slate); }
.orbits .core { fill: var(--accent); }
.orbits .core-glow { fill: color-mix(in srgb, var(--yellow) 16%, transparent); filter: blur(8px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Hero (homepage) ────────────────────────────────────── */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: 5rem 5%; background: radial-gradient(ellipse 55% 60% at 75% 45%, color-mix(in srgb, var(--yellow) 5%, transparent), transparent 70%); }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.hero-inner > * { min-width: 0; }
.hero h1, .page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); font-weight: 800; line-height: 1.07; letter-spacing: -0.03em; margin-bottom: 1.4rem; }
.hero h1 em, .page-hero h1 em, .contact h2 em { display: block; font-style: normal; color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--muted); line-height: 1.75; max-width: 600px; margin-bottom: 2.2rem; }
.hosts { margin-top: 2.6rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hosts-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }
.hosts-list { display: flex; flex-wrap: wrap; gap: 0.3rem 1.5rem; font-weight: 800; font-size: 1.02rem; }
.hosts-list .alt { font-weight: 400; font-style: italic; color: var(--muted); }

/* Report card (hero and service examples); content follows the real HivOps PDF reports */
.report { background: var(--panel); border: 1px solid color-mix(in srgb, var(--white) 10%, transparent); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); }
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.3rem; }
.report-title { font-size: 0.95rem; font-weight: 600; color: var(--accent-label); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7rem; margin-bottom: 1.3rem; }
.kpi { background: color-mix(in srgb, var(--white) 3%, transparent); border: 1px solid var(--line); border-radius: 14px; padding: 0.9rem; }
.kpi-label { display: block; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin: 0.2rem 0; }
.kpi-sub { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.35; }
.report-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.report-table th { text-align: left; font-weight: 400; }
.report-table thead th { font-size: 0.76rem; color: var(--muted); font-weight: 600; padding: 0 0 0.5rem; }
.report-table tbody th, .report-table td { padding: 0.55rem 0; border-top: 1px solid var(--line); }
.report-note { margin-top: 0.9rem; font-size: 0.75rem; color: var(--muted); font-style: italic; }
.report-sub { font-size: 0.78rem; color: var(--muted); margin: -0.8rem 0 1.1rem; }
.report-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem 1.2rem; margin-bottom: 1.1rem; padding: 0.75rem 0.95rem; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--white) 3%, transparent); border-radius: 0 10px 10px 0; font-size: 0.8rem; }
.report-meta dt { font-size: 0.74rem; color: var(--muted); font-weight: 600; }
.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi.tone-crit strong { color: var(--red); }
.kpi.tone-warn strong, .kpi.tone-grade strong { color: var(--accent); }
.report-h { font-size: 0.88rem; font-weight: 600; color: var(--accent-label); margin: 1.4rem 0 0.6rem; }
.report-repo { font-family: var(--mono); font-size: 0.75rem; color: var(--text); margin-bottom: 0.5rem; }
.report-chip { font-family: var(--font); font-size: 0.66rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 0.05rem 0.5rem; margin-left: 0.4rem; }
.report-lead { font-size: 0.74rem; color: var(--muted); margin-bottom: 0.5rem; }
.report-scroll { overflow-x: auto; }
.report-table th + td, .report-table td + td, .report-table thead th + th { padding-left: 0.9rem; }
.report-audit .report-table { font-size: 0.76rem; }
.report-table td.mono { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.report-table tbody td, .report-table tbody th { vertical-align: top; }
.tone { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; white-space: nowrap; }
.tone::before { content: ''; flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--green); }
.tone-warn::before { background: var(--accent); }
.tone-crit::before { background: var(--red); }
.tone.tone-crit { color: var(--red-soft); font-weight: 600; }
.report-more { font-size: 0.74rem; color: var(--muted); margin-top: 0.6rem; }
.report-secaudit .kpi strong { font-size: 1.6rem; margin: 0 0 0.15rem; }
.kpi.kpi-hl { background: var(--accent); border-color: var(--accent); }
.kpi.kpi-hl strong, .kpi.kpi-hl .kpi-label { color: var(--black); }
.report-conf { font-size: 0.72rem; color: var(--muted); margin: -0.5rem 0 0.2rem; }
.report-secaudit .report-table { font-size: 0.78rem; }
.sevs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin: -0.6rem 0 1.1rem; }
.sevc { border-radius: 10px; padding: 0.55rem 0.6rem; border: 1px solid var(--line); background: color-mix(in srgb, var(--white) 3%, transparent); min-width: 0; }
.sevc strong { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.sevc span { display: block; font-size: 0.68rem; font-weight: 600; color: var(--muted); line-height: 1.3; }
.sevc-crit { background: color-mix(in srgb, var(--red) 12%, transparent); border-color: color-mix(in srgb, var(--red) 35%, transparent); } .sevc-crit strong { color: var(--red); }
.sevc-high { background: color-mix(in srgb, var(--orange) 12%, transparent); border-color: color-mix(in srgb, var(--orange) 35%, transparent); } .sevc-high strong { color: var(--orange); }
.sevc-mod { background: color-mix(in srgb, var(--yellow) 10%, transparent); border-color: color-mix(in srgb, var(--yellow) 35%, transparent); } .sevc-mod strong { color: var(--accent); }
.sevc-low { background: color-mix(in srgb, var(--blue) 10%, transparent); border-color: color-mix(in srgb, var(--blue) 32%, transparent); } .sevc-low strong { color: var(--blue); }
.sevc-info strong { color: var(--muted); }
.report-h-sm { font-size: 0.64rem; margin: 0.9rem 0 0.4rem; }
.report-plan { padding-left: 1.1rem; font-size: 0.78rem; color: var(--muted); display: grid; gap: 0.2rem; }
.report-toc { list-style: none; border: 1px solid var(--line); border-radius: 10px; font-size: 0.78rem; }
.report-toc li { padding: 0.42rem 0.8rem; border-top: 1px solid var(--line); font-weight: 600; }
.report-toc li:first-child { border-top: 0; }
.report-toc span { display: inline-block; width: 2rem; color: var(--accent-label); font-size: 0.7rem; font-weight: 600; }
.report-table th.mono { font-family: var(--mono); font-size: 0.72rem; font-weight: 400; }
.doc-caption { font-size: 0.8rem; color: var(--muted); font-style: italic; margin-top: 0.8rem; }
.proof-doc { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: start; }
.proof-doc > * { min-width: 0; }
.proof-doc .panel-table { max-width: none; margin: 0; }
.doc-solo { max-width: 760px; margin: 0 auto; }
.proof-doc .sev { white-space: nowrap; }
.panel-horizons { max-width: var(--max); margin: 1.6rem auto 0; }
.panel-horizons .panel-lead { margin-top: 0; }

/* Report card */

/* Services, two families */
.families { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 2.5rem; }
.families > * { min-width: 0; }
.family-title { font-size: 0.85rem; font-weight: 600; color: var(--muted); padding-bottom: 0.8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--accent); }
.svc-list { display: grid; gap: 0.8rem; }
.family:nth-child(2) .svc-list { grid-template-columns: 1fr 1fr; }
.svc { display: grid; grid-template-columns: 24px 1fr auto; gap: 1rem; align-items: start; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: var(--text); backdrop-filter: blur(4px); transition: transform 200ms, box-shadow 200ms; }
.svc:hover { border-color: color-mix(in srgb, var(--yellow) 55%, transparent); background: var(--surface-2); }
.svc-icon, .card-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.svc-icon svg, .card-icon svg { width: 22px; height: 22px; }
.svc-arrow svg { width: 18px; height: 18px; }
.svc:hover .svc-arrow { color: var(--accent); }
.svc strong { display: block; font-size: 1rem; font-weight: 800; margin-bottom: 0.2rem; }
.svc-body span { font-size: 0.85rem; color: var(--muted); line-height: 1.5; }
.svc-arrow { display: flex; color: var(--muted); transition: color 150ms; }

/* Cards */
.cards { max-width: var(--max); margin: 0 auto; display: grid; gap: 1.2rem; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card .card-icon { margin-bottom: 1rem; }
.card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 0.45rem; }
.card p { font-size: 0.9rem; color: var(--muted); }
.card.app strong { display: block; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.01em; }
.card.app span { color: var(--muted); font-size: 0.9rem; }
/* What we do (service pages): full-width rows, title left, description right */
.rows { max-width: var(--max); margin: 0 auto; list-style: none; }
.rows > li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.rows > li:last-child { border-bottom: 1px solid var(--line); }
.rows h3 { font-size: 1.05rem; font-weight: 800; display: flex; align-items: baseline; gap: 0.8rem; }
.rows h3::before { content: ''; flex: 0 0 18px; height: 2px; background: var(--accent); transform: translateY(-0.3em); }
.rows p { font-size: 0.95rem; color: var(--muted); max-width: 62ch; }
.card.what h3::before { content: ''; display: block; width: 24px; height: 2px; background: var(--accent); margin-bottom: 1rem; }

/* Engagement modes */
.modes { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.mode { position: relative; padding: 1.8rem; border-left: 1px solid var(--line); }
.mode::before { content: ''; position: absolute; left: -4px; top: 2rem; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mode-num { font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--accent-ink); }
.mode h3 { font-size: 1.2rem; font-weight: 800; margin: 0.3rem 0 0.4rem; }
.mode p { color: var(--muted); font-size: 0.92rem; }

/* References */
.refs { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.ref { background: color-mix(in srgb, var(--white) 4%, transparent); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }
.ref-logo { height: 40px; display: flex; align-items: center; margin-bottom: 1rem; }
.ref-logo img { max-height: 32px; max-width: 120px; object-fit: contain; }
.ref-logo img.chip { box-sizing: content-box; max-height: 24px; padding: 0.35rem 0.6rem; background: var(--chip-light); border-radius: 6px; }
.ref-logo img.invert { filter: brightness(0) invert(1); }
.ref-tag { display: inline-block; font-size: 0.76rem; font-weight: 600; color: var(--accent-label); border: 1px solid color-mix(in srgb, var(--yellow) 30%, transparent); border-radius: var(--radius-pill); padding: 0.15rem 0.65rem; margin-bottom: 0.7rem; }
.ref p { color: var(--muted); font-size: 0.9rem; }
.ref-todo { text-align: left; max-width: var(--max); margin: 0 auto; }

/* IoT band */
.sec-iot { padding-top: 4rem; padding-bottom: 4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.iot { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: center; margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line-strong); }
.iot > * { min-width: 0; }
.iot-small { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.iot h2 { font-size: 1.6rem; margin: 0.2rem 0 0.6rem; }
.iot p { color: var(--muted); max-width: 640px; }
.iot-logos { display: flex; gap: 1.5rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

.iot-logos img { box-sizing: content-box; max-height: 36px; max-width: 130px; object-fit: contain; background: var(--chip-light); padding: 0.55rem 0.9rem; border-radius: 10px; }

/* Contact / CTA band */
.sec-contact { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-contact::before { content: none; }
.contact { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: center; }
.contact p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.contact-mail { display: inline-block; font-weight: 800; font-size: 1.1rem; text-decoration: none; }
.contact-actions { justify-self: end; display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 1rem 1.8rem; }
.contact h2 { margin-bottom: 0.7rem; }
.contact .btns { justify-content: flex-end; }
.contact-mail:hover { color: var(--accent); }

/* ── Inner pages ────────────────────────────────────────── */
.page-hero { position: relative; overflow: hidden; padding: 4.5rem 5% 3.5rem; background: radial-gradient(ellipse 50% 80% at 85% 50%, color-mix(in srgb, var(--yellow) 8%, transparent), transparent 70%); border-bottom: 1px solid var(--line); }
.page-hero + .sec { padding-top: 4.5rem; }
.page-hero .orbits { width: 720px; height: 720px; right: -200px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; font-size: 0.85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 0.4rem; color: var(--line-strong); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs [aria-current] { color: var(--text); }
.page-hero-inner { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; }
.page-hero .lead { max-width: 640px; }
.page-hero-small { padding: 4rem 5% 2.5rem; }
.page-hero-small h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0; }
.page-center { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; text-align: center; border-bottom: 0; }
.page-center .page-hero-inner { width: 100%; }
.page-center .lead { margin-left: auto; margin-right: auto; }
.page-center .orbits { right: 50%; transform: translate(50%, -50%); opacity: 0.6; }

.scope-sub { display: block; font-size: 0.84rem; color: var(--muted); font-style: italic; margin-bottom: 1rem; }
.ticks { list-style: none; display: grid; gap: 0.5rem; }
.ticks li { position: relative; padding-left: 1.6rem; font-size: 0.9rem; color: var(--muted); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.3rem; width: 15px; height: 15px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.7 5.3a1 1 0 0 1 0 1.4l-11 11a1 1 0 0 1-1.4 0l-5-5a1 1 0 1 1 1.4-1.4L9 15.6 19.3 5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.7 5.3a1 1 0 0 1 0 1.4l-11 11a1 1 0 0 1-1.4 0l-5-5a1 1 0 1 1 1.4-1.4L9 15.6 19.3 5.3a1 1 0 0 1 1.4 0z'/%3E%3C/svg%3E") center / contain no-repeat; }
.note { max-width: var(--max); margin: 1.6rem auto 0; padding: 1.1rem 1.4rem; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.95rem; }
.pills { max-width: var(--max); margin: 0 auto; list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.pill { font-size: 0.88rem; font-weight: 400; padding: 0.45rem 0.85rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line-strong); }
.whom { max-width: var(--max); margin: 0 auto; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.whom li { padding: 1.2rem 0 0; border-top: 1px solid var(--line-strong); font-weight: 600; font-size: 1rem; line-height: 1.5; }

/* Proof blocks */
.tiles { max-width: var(--max); margin: 0 auto 2.5rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.tile { padding: 1.6rem; border-radius: var(--radius); background: color-mix(in srgb, var(--white) 3%, transparent); border: 1px solid var(--line); }
.tile strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1.1; }
.tile-label { display: block; font-weight: 600; margin: 0.5rem 0 0.3rem; }
.tile p { font-size: 0.84rem; color: var(--muted); }
.proof-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.2rem; }
.proof-grid > * { min-width: 0; }
.panel { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.panel h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.8rem; }
.panel h3:not(:first-child) { margin-top: 1.4rem; }
.panel p { font-size: 0.9rem; color: var(--muted); }
.panel-table { max-width: 960px; margin: 0 auto; }
.panel-table > .badge-example { position: absolute; top: -0.7rem; right: 1.5rem; }
.panel-foot, .example-note { margin-top: 1rem; }
.example-note { font-style: italic; font-size: 0.8rem !important; }
.panel-lead { margin: 1.8rem 0 1rem; color: var(--text) !important; font-weight: 600; }
.horizons { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: h; }
.horizons li { padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: color-mix(in srgb, var(--white) 2%, transparent); }
.horizons strong { display: block; color: var(--accent-ink); margin-bottom: 0.3rem; }
.horizons span { font-size: 0.88rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data thead th { text-align: left; font-size: 0.8rem; color: var(--muted); font-weight: 600; padding: 0 0.8rem 0.7rem 0; }
table.data tbody th, table.data td { text-align: left; padding: 0.8rem 0.8rem 0.8rem 0; border-top: 1px solid var(--line); color: var(--muted); vertical-align: top; }
table.data tbody th { color: var(--text); font-weight: 600; }
table.data .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data .strong { color: var(--text); font-weight: 800; }
table.data tr.total th, table.data tr.total td { color: var(--accent); font-weight: 800; border-top: 1px solid var(--line-strong); }
.status { font-size: 0.75rem; font-weight: 600; padding: 0.15rem 0.6rem; border-radius: var(--radius-pill); }
.status-core { background: var(--accent); color: var(--black); }
.status-opt { border: 1px solid var(--line-strong); color: var(--muted); }
.sev::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 0.5rem; }
.sev-0::before { background: var(--sev-crit); } .sev-1::before { background: var(--sev-high); } .sev-2::before { background: var(--sev-mod); } .sev-3::before { background: var(--sev-low); }
.providers { max-width: var(--max); margin: 1.2rem auto 0; padding: 1.5rem 1.7rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.providers h3 { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.providers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.provider strong { display: block; }
.provider span { font-size: 0.85rem; color: var(--muted); }
.fineprint { max-width: var(--max); margin: 1.2rem auto 0; font-size: 0.76rem; color: var(--muted); }
.chain { max-width: var(--max); margin: 0 auto; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4rem; }
.chain-step { position: relative; padding: 1.6rem; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.chain-step:not(:last-child)::after { content: ''; position: absolute; right: -1.9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4l4.3-4.3H4a1 1 0 1 1 0-2h13.6l-4.3-4.3a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13.3 5.3a1 1 0 0 1 1.4 0l6 6a1 1 0 0 1 0 1.4l-6 6a1 1 0 0 1-1.4-1.4l4.3-4.3H4a1 1 0 1 1 0-2h13.6l-4.3-4.3a1 1 0 0 1 0-1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.chain-icon { width: 32px; height: 32px; margin: 0 auto 0.8rem; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.chain-icon svg { width: 22px; height: 22px; }
.chain-step strong { display: block; }
.chain-step span:not(.chain-icon) { display: block; font-size: 0.84rem; color: var(--muted); margin-top: 0.3rem; }

/* Open source page */
.value-num { font-size: 0.8rem; font-weight: 800; color: var(--accent-ink); display: block; margin-bottom: 0.6rem; }
.value-hl { background: linear-gradient(160deg, color-mix(in srgb, var(--yellow) 16%, transparent), color-mix(in srgb, var(--yellow) 4%, transparent)); border-color: color-mix(in srgb, var(--yellow) 45%, transparent); }
.rules { max-width: var(--max); margin: 0 auto; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; counter-reset: rule; }
.rules li { counter-increment: rule; padding: 1.8rem; border-top: 2px solid var(--accent); background: var(--surface); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.rules li::before { content: counter(rule, decimal-leading-zero); font-size: 0.8rem; font-weight: 800; color: var(--accent-ink); }
.rules h3 { font-size: 1.1rem; margin: 0.4rem 0 0.5rem; }
.rules p { color: var(--muted); font-size: 0.92rem; }
.systeam { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: center; }
.systeam > * { min-width: 0; }
.systeam p { color: var(--muted); margin-bottom: 1.4rem; }
.systeam .pills { margin: 0 0 1.4rem; }
.pill-dark { background: transparent; border-color: var(--line-strong); font-weight: 400; }
.terminal { background: var(--term-bg); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.terminal-bar { display: flex; gap: 6px; padding: 0.65rem 0.9rem; border-bottom: 1px solid var(--line); background: var(--term-bar); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--term-dot); }
.terminal pre { font-family: var(--mono); font-size: 0.86rem; line-height: 1.9; padding: 1.2rem 1.3rem 1.4rem; color: var(--term-text); white-space: pre-wrap; }
.terminal .prompt { color: var(--green); }
.terminal .out-key { color: var(--accent-ink); }

/* Technologies page */
.tech { max-width: 1000px; margin: 0 auto; }
.tech-row { display: grid; grid-template-columns: 260px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.tech-row:last-child { border-bottom: 1px solid var(--line); }
.tech-row h2 { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.tech-row ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tech-row li { font-size: 0.92rem; font-weight: 600; padding: 0.35rem 0.85rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong); }

/* Legal pages */
.legal-dl { max-width: 900px; margin: 0 auto; }
.legal-dl > div { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.legal-dl > div:last-child { border-bottom: 1px solid var(--line); }
.legal-dl dt { font-weight: 600; }
.legal-dl dd { color: var(--muted); }
.legal-dl a, .legal-body a { color: var(--accent-ink); }
.legal-layout { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 3.5rem; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 1.5rem); max-height: calc(100svh - var(--nav-h) - 3rem); overflow-y: auto; padding: 1.3rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.toc-title { font-size: 0.82rem; font-weight: 600; color: var(--muted); margin-bottom: 0.7rem; }
.toc ol { list-style: none; display: grid; gap: 0.15rem; }
.toc a { display: block; font-size: 0.84rem; color: var(--muted); text-decoration: none; padding: 0.3rem 0.5rem; border-radius: 6px; line-height: 1.4; }
.toc a span { color: var(--accent-ink); font-weight: 600; }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.legal-version { display: inline-block; font-size: 0.85rem; color: var(--muted); margin-bottom: 2rem; padding: 0.4rem 0.9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); }
.legal-body article { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.legal-body h2 { font-size: 1.25rem; margin-bottom: 0.8rem; }
.legal-body h2 span { color: var(--accent-ink); }
.legal-body h3 { font-size: 1rem; margin: 1.2rem 0 0.5rem; }
.legal-body p, .legal-body li { color: var(--muted); }
.legal-body ul { padding-left: 1.2rem; margin-top: 0.5rem; }
.legal-body .table-wrap { margin-top: 0.8rem; }
.plan { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr 1fr 1fr; gap: 2.5rem; }
.plan h2 { font-size: 0.9rem; font-weight: 600; color: var(--muted); padding-bottom: 0.7rem; margin-bottom: 0.9rem; border-bottom: 2px solid var(--accent); }
.plan h3 { font-size: 0.82rem; color: var(--accent-ink); margin: 1rem 0 0.4rem; }
.plan h3:first-of-type { margin-top: 0; }
.plan ul { list-style: none; display: grid; gap: 0.45rem; }
.plan a { text-decoration: none; }
.plan a:hover { color: var(--accent); }
.plan-foot { max-width: var(--max); margin: 3rem auto 0; color: var(--muted); font-size: 0.9rem; }
.plan-foot a { color: var(--accent-ink); }

/* ── Footer ─────────────────────────────────────────────── */
footer { background: var(--dark); border-top: 1px solid var(--line); padding: 4rem 5% 2rem; }
.footer-grid { max-width: var(--max); margin: 0 auto 2.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 48px; width: auto; }
.footer-slogan { font-weight: 600; color: var(--accent); margin: 1rem 0 0.6rem; }
.footer-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }
.footer-col h2 { font-size: 0.82rem; font-weight: 600; margin-bottom: 1rem; color: color-mix(in srgb, var(--white) 85%, transparent); }
.footer-col ul { list-style: none; display: grid; gap: 0.5rem; }
.footer-col a, .footer-bottom a { color: var(--muted); text-decoration: none; font-size: 0.86rem; }
.footer-col a:hover, .footer-bottom a:hover { color: var(--accent); }
.footer-bottom { max-width: var(--max); margin: 0 auto; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); text-align: center; }
.footer-bottom a { font-size: 0.8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.6rem 2rem; text-align: left; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    .proof-doc { grid-template-columns: minmax(0, 1fr); }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
    .families, .systeam, .contact { grid-template-columns: minmax(0, 1fr); }
    .contact-actions { justify-self: start; justify-content: flex-start; }
    .contact .btns { justify-content: flex-start; }
    .cards-4, .tiles, .refs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid, .plan { grid-template-columns: 1fr 1fr; }
    .legal-layout { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; max-height: none; }
    .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .chain-step:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
    .nav-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 5% 1rem; background: var(--bg-alt); border-bottom: 1px solid var(--line); max-height: calc(100svh - var(--nav-h)); overflow-y: auto; }
    .nav-links.open { display: flex; }
    .nav-links > li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
    .nav-links > li:last-child { border-bottom: 0; }
    .nav-drop-btn { width: 100%; font-size: 1rem; }
    .dropdown-menu { position: static; width: auto; display: none; grid-template-columns: 1fr; padding: 0.6rem 0 0; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
    .nav-dropdown:hover .dropdown-menu { display: none; }
    .nav-dropdown.open .dropdown-menu { display: grid; }
    .mega-col:nth-child(2) { grid-template-columns: 1fr; }
    .mega-also { border-left: 0; padding-left: 0; }
    .cta-nav { display: inline-block; }
}
@media (max-width: 720px) {
    .kpis { gap: 0.5rem; }
    .kpi { padding: 0.7rem; }
    .kpi strong { font-size: 1.15rem; }
    .kpi-label { font-size: 0.7rem; }
    .kpi-sub { font-size: 0.66rem; }
    .report { padding: 1.3rem; }
    .kpis-4, .report-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .report-audit .report-table { min-width: 560px; }
    .sec { padding: 4rem 6%; }
    .hero, .page-hero { padding: 3.5rem 6%; }
    .page-hero + .sec { padding-top: 3.5rem; }
    .hero { min-height: 0; }
    .page-hero-small { padding: 3rem 6% 2rem; }
    .family:nth-child(2) .svc-list, .refs, .cards-4, .cards-3, .modes, .tiles, .proof-grid, .providers-grid, .whom, .iot, .rules, .horizons, .chain { grid-template-columns: minmax(0, 1fr); }
    .cards-apps.cards-4 { grid-template-columns: 1fr 1fr; }
    .card.app { padding: 1.2rem; }
    .chain-step:not(:last-child)::after { right: 50%; top: auto; bottom: -1.8rem; transform: translateX(50%) rotate(90deg); }
    .iot-logos { justify-content: flex-start; }
    .orbits { width: 600px; height: 600px; right: -320px; top: 260px; transform: none; opacity: 0.6; }
    .page-hero .orbits { width: 520px; height: 520px; right: -300px; top: 40px; }
    .tech-row, .legal-dl > div, .rows > li { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
    .footer-grid, .plan { grid-template-columns: minmax(0, 1fr); }
    .panel { padding: 1.3rem; }
}
/* REQUEA's logo is white: shown straight on the dark band, without the light chip */
.iot-logos img.on-light-dark { background: transparent; padding-left: 0; padding-right: 0; }
