/* Clinerviq website. Brand: deep navy, royal blue, metallic gold, white (from the brand sheet). */
:root {
  --navy-900: #061633;
  --navy-800: #0a2350;
  --navy-700: #0e2f6b;
  --royal: #1d4fbf;
  --royal-500: #2a62d8;
  --gold: #c99a2e;
  --gold-500: #d9ad42;
  --gold-300: #f0cd73;
  --ink: #0f1b33;
  --text: #2b3a55;
  --muted: #5d6c86;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(10, 35, 80, 0.06), 0 8px 24px rgba(10, 35, 80, 0.08);
  --shadow-lg: 0 20px 50px rgba(6, 22, 51, 0.18);
  --gold-grad: linear-gradient(135deg, #f3d37c 0%, #d9ad42 45%, #b9861f 100%);
  --navy-grad: radial-gradient(1200px 600px at 85% -10%, rgba(42, 98, 216, 0.55), transparent 60%),
    linear-gradient(160deg, #0b2a5e 0%, #071a3d 55%, #050f26 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); text-decoration: none; }
a:hover { color: var(--navy-800); }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 6px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico.sm { width: 16px; height: 16px; }
.ico.lg { width: 30px; height: 30px; }
.ico.xl { width: 96px; height: 96px; stroke-width: 1.3; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; font-family: inherit; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold-grad); color: var(--navy-900); box-shadow: 0 6px 18px rgba(201, 154, 46, 0.35); }
.btn-gold:hover { color: var(--navy-900); box-shadow: 0 10px 24px rgba(201, 154, 46, 0.45); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--royal); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.06); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand .wordmark { font-size: 1.7rem; color: var(--navy-800); line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--ink); font-weight: 600; font-size: 0.95rem; padding: 10px 12px; border-radius: 10px; background: none; border: 0; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 4px; }
.nav-link:hover { background: var(--bg-alt); color: var(--royal); }
.nav .btn { margin-left: 8px; }
.caret { width: 16px; height: 16px; transition: transform 0.2s; }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 640px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { opacity: 1; visibility: visible; }
.has-mega:hover .caret, .has-mega.open .caret { transform: rotate(180deg); }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--radius-sm); color: var(--ink); }
.mega-item:hover { background: var(--bg-alt); color: var(--ink); }
.mega-item .ico { color: var(--royal); margin-top: 2px; }
.mega-item b { display: block; font-size: 0.95rem; }
.mega-item small { color: var(--muted); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; background: var(--navy-grad); color: #d9e2f5; padding: 96px 0 110px; }
.hero h1 { color: #fff; }
.hero .gold, .gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.15rem; color: #c8d4ee; max-width: 600px; }
.hero-swoosh { position: absolute; left: -10%; right: -10%; bottom: -205px; height: 260px; border-top: 3px solid transparent; border-radius: 50%; background: linear-gradient(var(--navy-900), var(--navy-900)) padding-box, linear-gradient(90deg, transparent 5%, #b9861f 30%, #f3d37c 55%, #b9861f 75%, transparent 95%) border-box; opacity: 0.9; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--royal); margin-bottom: 12px; }
.eyebrow.light { color: var(--gold-300); }

.hero-visual { display: flex; justify-content: center; }
.orbit { position: relative; width: min(460px, 100%); aspect-ratio: 1; }
.orbit::before, .orbit::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1px dashed rgba(240, 205, 115, 0.35); }
.orbit::after { inset: 27%; border: 1px solid rgba(255, 255, 255, 0.1); }
.orbit-mark { position: absolute; left: 50%; top: 50%; width: 34%; transform: translate(-50%, -50%); filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45)); }
.orbit-node { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; margin: -36px 0 0 -48px; color: #fff; font-size: 0.78rem; font-weight: 600; text-align: center; }
.orbit-node .ico { width: 48px; height: 48px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(240, 205, 115, 0.45); color: var(--gold-300); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25); }
.orbit-node em { font-style: normal; }
/* eight nodes on a circle of radius 41% */
.n0 { left: 50%; top: 9%; } .n1 { left: 79%; top: 21%; } .n2 { left: 91%; top: 50%; } .n3 { left: 79%; top: 79%; }
.n4 { left: 50%; top: 91%; } .n5 { left: 21%; top: 79%; } .n6 { left: 9%; top: 50%; } .n7 { left: 21%; top: 21%; }

/* ------------------------------------------------------------ sections */
.section { padding: 96px 0; scroll-margin-top: 74px; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-head.light h2 { color: #fff; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-grid.three { grid-template-columns: repeat(3, 1fr); }
.product-card { display: flex; flex-direction: column; color: var(--text); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; position: relative; overflow: hidden; }
.product-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #cfd8ea; color: var(--text); }
.product-card:hover::after { transform: scaleX(1); }
.product-card .eyebrow { margin: 16px 0 4px; font-size: 0.7rem; }
.product-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.badge-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--navy-700), var(--royal)); color: var(--gold-300); box-shadow: 0 8px 18px rgba(29, 79, 191, 0.3); }
.badge-ico .ico { width: 26px; height: 26px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--royal); font-size: 0.9rem; }

.flow-title { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 32px 0 14px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.flow.care { grid-template-columns: repeat(7, 1fr); }
.flow.people { grid-template-columns: repeat(5, 1fr); }
.flow li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 16px; box-shadow: var(--shadow); }
.flow li:not(:last-child)::after { content: ''; position: absolute; right: -10px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); transform: translateY(-50%) rotate(45deg); }
.flow .step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-800); color: var(--gold-300); font-size: 0.8rem; font-weight: 700; margin-bottom: 10px; }
.flow b { display: block; color: var(--ink); }
.flow small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; display: block; margin-top: 2px; }
.flow.people .step { background: var(--gold-grad); color: var(--navy-900); }

.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.who-card .ico { color: var(--royal); margin-bottom: 14px; }
.who-card p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.navy-band { background: var(--navy-grad); color: #c8d4ee; }
.found-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.found .ico { color: var(--gold-300); margin-bottom: 14px; }
.found h3 { color: #fff; }
.found p { font-size: 0.95rem; margin: 0; }

/* ------------------------------------------------------------ demo */
.demo-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 24px; align-items: stretch; }
.demo-card.navy { background: var(--navy-grad); color: #c8d4ee; border: 0; display: flex; flex-direction: column; align-items: flex-start; }
.demo-card.navy h3 { color: #fff; font-size: 1.5rem; margin-top: 16px; }
.demo-card.navy .ico.lg { color: var(--gold-300); }
.demo-card.navy p { flex: 1; }
.demo-form { display: grid; gap: 16px; }
.demo-form h3 { font-size: 1.5rem; margin: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.demo-form input, .demo-form select, .demo-form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid #ccd5e6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 3px rgba(29, 79, 191, 0.15); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: 0.88rem; color: var(--ink); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid #ccd5e6; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.chip input:checked + span { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.chip input:focus-visible + span { outline: 3px solid var(--gold-500); outline-offset: 2px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin: 0; }
.demo-form .btn { justify-self: start; }

/* ------------------------------------------------------------ product page */
.product-hero { padding: 64px 0 100px; }
.crumbs { font-size: 0.85rem; color: #9fb0d4; margin-bottom: 28px; }
.crumbs a { color: #c8d4ee; }
.crumbs span { margin: 0 6px; }
.product-hero-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: center; }
.sub-h { font-size: 1.4rem; color: var(--gold-300); font-weight: 700; margin-bottom: 16px; }
.product-emblem { justify-self: center; width: 240px; height: 240px; border-radius: 48px; display: grid; place-items: center; color: var(--gold-300); background: linear-gradient(145deg, rgba(42, 98, 216, 0.55), rgba(10, 35, 80, 0.6)); border: 2px solid rgba(240, 205, 115, 0.6); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card h3 { padding-bottom: 12px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; font-size: 0.95rem; }
.checks .ico { color: var(--gold); margin-top: 4px; stroke-width: 2.6; }
.note { margin-top: 24px; padding: 14px 18px; border-left: 4px solid var(--gold); background: #fdf8ea; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); }
.who-line { display: flex; gap: 18px; align-items: center; margin-top: 24px; }
.who-line .ico { color: var(--royal); }
.who-line .eyebrow { margin: 0; }
.who-line p { margin: 0; color: var(--ink); font-weight: 600; }
.lead.dark { color: var(--muted); font-size: 1.1rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--navy-900); color: #a9b7d6; padding: 72px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.foot-brand { display: inline-flex; align-items: center; gap: 12px; }
.foot-brand img { width: 48px; height: auto; }
.wordmark { font-size: 1.9rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.wordmark span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-tag { color: #fff; font-weight: 600; margin-top: 14px; }
.site-footer .muted { color: #a9b7d6; }
.site-footer h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.site-footer a { color: #c8d4ee; }
.site-footer a:hover { color: var(--gold-300); }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 32px; padding: 22px 0 28px; font-size: 0.85rem; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .who-grid, .found-grid { grid-template-columns: repeat(2, 1fr); }
  .flow.care { grid-template-columns: repeat(4, 1fr); }
  .flow.care li:nth-child(4)::after { display: none; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  /* backdrop-filter would make the header the containing block of the fixed menu panel */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-toggle { display: flex; }
  .nav { position: fixed; inset: 74px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px; gap: 2px; overflow-y: auto; transform: translateX(100%); transition: transform 0.25s; }
  .nav.open { transform: none; }
  .nav-link { padding: 14px 12px; font-size: 1.05rem; justify-content: space-between; }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
  .mega { position: static; transform: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; }
  .has-mega.open .mega { display: grid; }
  .has-mega:hover .mega { display: none; }
  .has-mega.open:hover .mega { display: grid; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-grid, .product-hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 96px; }
  .product-emblem { display: none; }
  .demo-grid { grid-template-columns: 1fr; }
  .product-grid.three { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .brand img { height: 38px; }
  .section { padding: 64px 0; }
  .product-grid, .product-grid.three, .who-grid, .found-grid, .cap-grid, .fields { grid-template-columns: 1fr; }
  .flow.care, .flow.people { grid-template-columns: 1fr; }
  .flow li::after { display: none; }
  .orbit-node { width: 72px; margin: -30px 0 0 -36px; font-size: 0.68rem; }
  .orbit-node .ico { width: 40px; height: 40px; padding: 10px; border-radius: 12px; }
  .foot-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
