/* JuriaOS marketing site — base layer.
   Ported from the Infinite Fusion "OS family" landing kit (the JuriaOS page),
   with the JuriaOS navy/brass palette fixed in (brand guidelines v1.0).
   Section-specific styles for the parts only JuriaOS has (lifecycle, website
   builder, client portal, Malta band) live in landing-sections.css and
   landing-story.css. Plain static CSS, not Tailwind: this page doesn't load
   the app stylesheet at all. */
:root {
  --paper: #F5F7F6;
  --surface: #FFFFFF;
  --surface-2: #FAFCFB;
  --ink: #0F1A17;
  --body: #46554F;
  --muted: #86948E;
  --line: #E5EBE8;
  --line-strong: #D3DDD8;
  --brand: #1B2A4A;
  --brand-ink: #121826;
  --brand-tint: color-mix(in srgb, var(--brand) 8%, transparent);
  --brand-tint-2: color-mix(in srgb, var(--brand) 15%, transparent);
  --accent: #C9A24B;
  --accent-ink: #D4B56F;
  --ok: #0E9F6E;
  --ok-bg: rgba(14, 159, 110, 0.10);
  --warn: #C2680B;
  --warn-bg: rgba(194, 104, 11, 0.11);
  --risk: #D92D20;
  --risk-bg: rgba(217, 45, 32, 0.09);
  --band-bg: #121826;
  --band-surface: #202633;
  --band-line: #262A55;
  --band-fg: #E7E9FB;
  --band-muted: #A6ABD6;
  --band-brand: color-mix(in srgb, var(--brand) 50%, white);
  --shadow-sm: 0 1px 2px rgba(15, 26, 23, 0.05), 0 1px 3px rgba(15, 26, 23, 0.04);
  --shadow-md: 0 8px 24px -6px rgba(15, 26, 23, 0.12), 0 2px 6px rgba(15, 26, 23, 0.05);
  --shadow-lg: 0 30px 60px -18px rgba(15, 26, 23, 0.26), 0 8px 20px -8px rgba(15, 26, 23, 0.14);
  --r-sm: 9px; --r-md: 14px; --r-lg: 22px;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
  --maxw: 1140px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--body);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; line-height: 1.1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; flex: none; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 600; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 600px) { .wrap { padding-inline: 24px; } }
.eyebrow { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); }

.btn { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; font-size: 0.95rem; line-height: 1; border-radius: 999px; padding: 0.82em 1.35em; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease; white-space: nowrap; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(15,26,23,0.18), inset 0 1px 0 rgba(255,255,255,0.18); }
.btn-primary:hover { background: var(--brand-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); }
.btn-sm { padding: 0.6em 1.05em; font-size: 0.86rem; }
.btn-white { background: #fff; color: var(--brand-ink); }
.btn-white:hover { color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.seal { width: 34px; height: 34px; border-radius: 8px; display: block; flex: none; box-shadow: 0 4px 10px -3px var(--brand-tint-2); }
.brand-name { font-weight: 800; font-size: 1.22rem; color: var(--ink); letter-spacing: -0.025em; }
.brand-name .os { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--body); transition: color 0.15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 920px) { .nav-links { display: none; } }
@media (max-width: 420px) { .nav-cta .btn-ghost { display: none; } }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 26px 26px; -webkit-mask-image: radial-gradient(130% 80% at 72% 0%, #000 0%, transparent 62%); mask-image: radial-gradient(130% 80% at 72% 0%, #000 0%, transparent 62%); opacity: 0.8; }
.hero-glow { position: absolute; pointer-events: none; width: 46rem; height: 46rem; right: -14rem; top: -18rem; border-radius: 50%; background: radial-gradient(circle, var(--brand-tint-2), transparent 62%); filter: blur(8px); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 7vw, 5.5rem); }
@media (max-width: 940px) { .hero-inner { grid-template-columns: 1fr; gap: 2.8rem; } }
.tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.85rem; font-size: 0.8rem; font-weight: 500; color: var(--body); box-shadow: var(--shadow-sm); margin-bottom: 1.4rem; }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
h1.hero-title { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h1.hero-title .hl { color: var(--accent); }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.15rem); max-width: 40ch; margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero-note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 0.45rem; }

/* ---- window chrome + pills (hero video frame, panels) ---- */
.mock-bar { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 0.95rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.mock-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.mock-bar .mock-title { margin-left: 0.5rem; font-size: 0.74rem; font-weight: 600; color: var(--muted); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; padding: 0.22em 0.6em; border-radius: 999px; color: var(--warn); background: var(--warn-bg); white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.brand { color: var(--brand); background: var(--brand-tint-2); }
.live { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 2.4s ease-in-out infinite; flex: none; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- trust strip ---- */
.strip { border-block: 1px solid var(--line); background: var(--surface-2); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.4rem; padding-block: 1.1rem; justify-content: space-between; }
.strip-lead { font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.strip-items { display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; }
.strip-item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 500; }
.strip-item svg { color: var(--brand); }

/* ---- generic sections ---- */
.sec { padding-block: clamp(4rem, 8.5vw, 7rem); }
.sec.alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4vw, 3.2rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin-top: 0.7rem; }
.sec-head p { margin-top: 0.9rem; font-size: 1.05rem; }

.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 760px) { .cmp { grid-template-columns: 1fr; } }
.cmp-card { border-radius: var(--r-md); padding: 1.5rem 1.5rem 1.6rem; border: 1px solid var(--line); background: var(--surface); }
.cmp-card.them { background: var(--paper); }
.cmp-card.us { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow-md); }
.cmp-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.cmp-card.us .cmp-tag { color: var(--brand); }
.cmp-li { display: flex; gap: 0.7rem; padding: 0.6rem 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.cmp-li:first-of-type { border-top: none; }
.cmp-li svg { margin-top: 3px; }
.cmp-card.them svg { color: var(--risk); }
.cmp-card.us svg { color: var(--ok); }
.cmp-li b { color: var(--ink); font-weight: 600; }

.grid-feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grid-feat { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid-feat { grid-template-columns: 1fr; } }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem 1.4rem 1.5rem; transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.ficon { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: 1rem; }
.fcard h3 { font-size: 1.04rem; margin-bottom: 0.45rem; }
.fcard p { font-size: 0.9rem; }
.ftag { display: inline-block; margin-top: 0.85rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--muted); padding: 0.2em 0.55em; border: 1px solid var(--line); border-radius: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split .split-visual { order: -1; } }
.checklist { display: flex; flex-direction: column; gap: 0.85rem; margin-top: 1.6rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.94rem; }
.check .cb { width: 22px; height: 22px; border-radius: 7px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; margin-top: 1px; }
.check b { display: block; color: var(--ink); font-weight: 600; }
.check .cs { font-size: 0.9rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.panel-head { padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; background: var(--surface-2); }
.panel-head .pt { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.panel-head .pc { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.panel-body { padding: 1.1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.ev { display: flex; gap: 0.7rem; padding: 0.7rem 0.8rem; border: 1px solid var(--line); border-radius: 11px; align-items: flex-start; }
.ev .evic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.ev.ok .evic { background: var(--ok-bg); color: var(--ok); }
.ev.warn .evic { background: var(--warn-bg); color: var(--warn); }
.ev.brand .evic { background: var(--brand-tint-2); color: var(--brand); }
.ev .evt { font-size: 0.85rem; color: var(--ink); min-width: 0; }
.ev .evs { display: block; color: var(--muted); font-size: 0.74rem; font-family: var(--font-mono); margin-top: 2px; }
.ev .evb { margin-left: auto; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.2em 0.5em; border-radius: 999px; flex: none; }
.ev.ok .evb { color: var(--ok); background: var(--ok-bg); }
.ev.warn .evb { color: var(--warn); background: var(--warn-bg); }
.ev.brand .evb { color: var(--brand); background: var(--brand-tint-2); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live { animation: none; }
  .fcard:hover, .btn:hover { transform: none; transition: none; }
}
.sec-head.flush { margin-bottom: 0; }
