:root {
  --navy: #0b2a4a;
  --navy-800: #081f38;
  --navy-600: #163a5c;
  --teal: #2a9bb5;
  --teal-600: #2189a1;
  --teal-100: #d7eef3;
  --ivory: #f6f3ec;
  --ivory-2: #efeae0;
  --ink: #0b2a4a;
  --muted: #5b6b7a;
  --line: rgba(11, 42, 74, 0.12);
  --white: #ffffff;
  --forest: #2f6b4f;
  --shadow: 0 18px 40px -24px rgba(11, 42, 74, 0.35);
  --radius: 18px;
  --max: 1120px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 18px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: 0.16s ease;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-800); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-600); }
.btn-full { width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 243, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 16px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .nav-drop summary {
  padding: 8px 12px; border-radius: 8px; text-decoration: none;
  font-size: 0.92rem; font-weight: 500; color: var(--navy-600); cursor: pointer;
  list-style: none;
}
.nav-links a:hover, .nav-drop summary:hover { color: var(--navy); background: rgba(11,42,74,0.05); }
.nav-links a[aria-current="page"] { color: var(--navy); background: rgba(11,42,74,0.06); }
.nav-drop { position: relative; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop[open] .drop-panel { display: grid; }
.drop-panel {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; box-shadow: var(--shadow);
}
.drop-panel a { display: block; padding: 10px 12px; border-radius: 8px; font-size: 0.9rem; }
.nav-cta { display: flex; gap: 8px; align-items: center; margin-left: auto; }
.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff;
}
.mobile-panel {
  display: none; padding: 8px 0 18px; border-top: 1px solid var(--line);
}
.mobile-panel a { display: block; padding: 10px 0; text-decoration: none; font-weight: 500; }

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px;
  align-items: center; padding: 56px 0 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08;
  letter-spacing: -0.03em; margin: 0;
}
.hero p { color: var(--muted); font-size: 1.12rem; max-width: 38ch; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero-art {
  position: relative; min-height: 280px;
  background:
    radial-gradient(circle at 70% 40%, rgba(42,155,181,0.18), transparent 55%),
    radial-gradient(circle at 40% 70%, rgba(11,42,74,0.08), transparent 50%);
  overflow: hidden;
}
.orbit {
  position: absolute; inset: 18% 8% 18% 18%;
  border-radius: 50%; border: 1px solid rgba(42,155,181,0.25);
  animation: orbit 18s linear infinite;
}
.orbit:nth-child(2) { inset: 28% 18% 28% 28%; animation-duration: 12s; animation-direction: reverse; }
.dot {
  position: absolute; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 6px rgba(42,155,181,0.15);
}
.hero-mark {
  position: absolute; right: 6%; top: 50%; transform: translateY(-50%);
  width: min(280px, 70%); filter: drop-shadow(0 20px 40px rgba(11,42,74,0.12));
  mix-blend-mode: multiply;
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.stat { padding: 28px 20px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 2.2rem; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 0.92rem; }
.caption { text-align: center; color: var(--muted); font-size: 0.8rem; margin: 10px 0 0; }

.section { padding: 64px 0; }
.section h2 { font-size: 1.85rem; letter-spacing: -0.02em; margin: 0 0 8px; scroll-margin-top: 88px; }
.lede { color: var(--muted); max-width: 56ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card-logo { height: 52px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.lockup { display: block; margin: 6px 0 14px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card h3 { margin: 0 0 6px; font-size: 1.7rem; }
.card p { color: var(--muted); margin: 0 0 12px; flex: 1; }
.card-visual {
  height: 118px; margin: 4px 0 16px; display: grid; place-items: center;
  background: linear-gradient(180deg, #f3f7f9, #eef3f6); border-radius: 12px;
  overflow: hidden;
}
.card-visual .compass { margin: 0; width: 72px; height: 72px; }
.card-visual .bars { width: 78%; height: 72px; padding: 0; }
.snap-mark {
  position: relative; width: 92px; height: 92px;
  display: grid; place-items: center;
}
.snap-corner {
  position: absolute; width: 20px; height: 20px;
  border: 3px solid #2a9bb5;
}
.snap-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
.snap-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
.snap-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 4px; }
.snap-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 4px 0; }
.snap-doc {
  position: relative; width: 42px; height: 54px;
  background: #fff; border: 2px solid #0b2a4a; border-radius: 3px 8px 3px 3px;
  overflow: hidden;
}
.snap-doc i { display: block; height: 3px; margin: 8px 6px 0; background: #c5d0d8; border-radius: 2px; }
.snap-doc i:first-child { margin-top: 12px; width: 58%; }
.snap-doc .scan-line { left: 0; right: 0; }
.more { color: var(--teal-600); font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.access {
  margin-top: 28px; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 28px 32px;
  display: grid; grid-template-columns: 1.4fr auto; gap: 20px; align-items: center;
}
.access h2 { color: #fff; }
.access p { color: rgba(255,255,255,0.72); margin: 6px 0 0; }
.access-logos { display: flex; gap: 12px; align-items: center; margin: 14px 0; }
.access-logos a {
  background: #fff; border-radius: 10px; padding: 8px 10px; display: grid; place-items: center;
}
.access-logos img { height: 32px; width: auto; }

.industries {
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none;
  padding: 0; margin: 22px 0 0;
}
.industries li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 16px; font-weight: 600; font-size: 0.92rem;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.step b { color: var(--teal-600); font-size: 0.8rem; letter-spacing: 0.12em; }
.step h3 { margin: 8px 0 8px; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }
.quotes { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.quotes-4 { grid-template-columns: 1fr 1fr; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.quote img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 12px;
  margin-bottom: 14px;
}
.photo {
  width: 100%;
  display: block;
  border-radius: 16px;
  background: #e8edf2;
}
.photo-43 {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 20%;
}
.photo-wide {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 35%;
}
.photo-ceo {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 18% 8%;
}
.story-photo {
  margin: 0 auto;
  max-width: 680px;
}
.story-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.quote blockquote { margin: 0; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.quote .who { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }

.site-footer {
  border-top: 1px solid var(--line); padding: 36px 0 40px; color: var(--muted);
}
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px;
  align-items: start; padding-bottom: 18px;
}
.footer-brand p { margin: 10px 0 0; max-width: 28ch; }
.footer-grid img { height: 36px; }
.footer-col h3 {
  margin: 0 0 10px; font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy);
}
.footer-col a { display: block; text-decoration: none; padding: 4px 0; }
.footer-col a:hover { color: var(--navy); }
.close-cta {
  background: var(--navy); color: #fff; padding: 48px 0;
  margin-top: 24px;
}
.close-cta h2 { color: #fff; margin: 0 0 8px; }
.close-cta p { color: rgba(255,255,255,0.72); margin: 0 0 18px; max-width: 48ch; }
.prose { max-width: 68ch; }
.prose p, .prose li { color: var(--muted); }
.news-list { display: grid; gap: 16px; margin-top: 22px; }
.news-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.news-item time { color: var(--teal-600); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; }
.news-item h2 { margin: 6px 0 8px; font-size: 1.2rem; }
.criteria { display: grid; gap: 14px; margin-top: 22px; }
.criteria article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.criteria h3 { margin: 0 0 6px; }
.service-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.service-list li {
  display: grid; grid-template-columns: 2.6rem 1fr; gap: 14px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow);
}
.service-list b { color: var(--teal-600); font-size: 1.05rem; letter-spacing: 0.04em; padding-top: 2px; }
.service-list h3 { margin: 0 0 4px; font-size: 1.12rem; }
.service-list p { margin: 0; color: var(--muted); }

.page-hero { padding: 48px 0 12px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; margin: 0 0 10px; }
.kicker { color: var(--teal-600); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.75rem; }

.browser {
  background: #e8edf2; border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #d7dee6;
}
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #b9c4cf; display: block; }
.browser-bar span { margin-left: 8px; font-size: 0.75rem; color: #5b6b7a; }
body[data-page="demo"] .browser-bar span { display: none; }

.mock-northstar, .mock-snap, .mock-analytics {
  min-height: 280px; padding: 14px; display: grid; gap: 10px;
}
.mock-northstar { background: #f4f7f5; color: #24302a; }
.mock-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { background: #fff; border-radius: 10px; padding: 10px; border: 1px solid #d9e2dc; }
.kpi b { display: block; font-size: 1.1rem; }
.kpi small { color: #66756c; }
.queue { background: #fff; border-radius: 10px; border: 1px solid #d9e2dc; }
.queue-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; padding: 8px 12px; font-size: 0.82rem; border-top: 1px solid #edf1ee; }
.queue-row:first-child { border-top: 0; font-weight: 600; color: #66756c; }
.pill { border-radius: 999px; padding: 2px 8px; font-size: 0.72rem; font-weight: 600; }
.pill-ok { background: #e4f4ea; color: #1f6b43; }
.pill-warn { background: #fff3d6; color: #8a5a12; }
.pill-hot { background: #fde4e1; color: #9b2c2c; }

.mock-snap { grid-template-columns: 0.9fr 1.1fr; background: #f7f5f0; }
.scan-pane { position: relative; background: #1e4a8a; color: #fff; border-radius: 12px; padding: 16px; overflow: hidden; }
.scan-line {
  position: absolute; left: 8%; right: 8%; height: 2px; top: 18%;
  background: linear-gradient(90deg, transparent, #c98a2b, transparent);
  animation: scan 5.6s ease-in-out infinite;
}
.fields { background: #fff; border-radius: 12px; padding: 12px; }
.fields dl { margin: 0; display: grid; gap: 6px; }
.fields div { display: flex; justify-content: space-between; gap: 8px; font-size: 0.85rem; border-bottom: 1px solid #eee; padding-bottom: 6px; }
.fields dt { color: #6b7280; }

.mock-analytics { background: #101826; color: #e8eef7; }
.mock-analytics .kpi { background: #182233; border-color: #243246; color: #e8eef7; }
.mock-analytics .kpi small { color: #93a1b3; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 8px 4px 0; }
.bars span {
  flex: 1; background: linear-gradient(180deg, #5ec4d6, #2a9bb5); border-radius: 4px 4px 0 0;
  animation: rise 1.2s ease both;
}

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-box b { display: block; font-size: 2rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 22px 22px; border-left: 2px solid var(--teal-100); }
.timeline li::before {
  content: ""; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--teal);
}
.timeline strong { display: block; }

.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.person img { width: 100%; height: 176px; object-fit: cover; object-position: center 18%; border-radius: 14px; }
.person h3 { margin: 12px 0 0; }
.person .role { color: var(--teal-600); font-weight: 600; font-size: 0.9rem; }

.form { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
label { font-size: 0.88rem; font-weight: 600; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; color: var(--ink);
}
.checks { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 500; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.form-msg { padding: 12px 14px; border-radius: 10px; background: #e8f6ee; color: #1f6b43; display: none; }
.form-msg.err { background: #fde8e6; color: #9b2c2c; }
.form-msg.show { display: block; }

.picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.picker a {
  display: grid; gap: 10px; place-items: center; text-align: center; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 18px;
  box-shadow: var(--shadow);
}
.picker a:hover { border-color: var(--teal); }
.picker img { height: 64px; width: auto; }

.login-shell { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 32px 0 64px; }
.login-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0 0 6px; }
.login-brand { display: grid; place-items: center; gap: 8px; margin-bottom: 18px; }
.login-brand img { height: 52px; }
.demo-box { margin-top: 16px; background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 0.85rem; }
.demo-box code { font-family: ui-monospace, monospace; }

.chat-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--navy); color: #fff; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 30px rgba(11,42,74,0.3);
}
.chat-panel {
  position: fixed; right: 20px; bottom: 88px; z-index: 50; width: min(360px, calc(100vw - 32px));
  height: min(520px, calc(100vh - 140px)); background: #fff; border: 1px solid var(--line);
  border-radius: 16px; display: none; flex-direction: column; overflow: hidden; box-shadow: var(--shadow);
}
.chat-panel.open { display: flex; }
.chat-head { background: var(--navy); color: #fff; padding: 14px 16px; font-weight: 600; }
.chat-log { flex: 1; overflow: auto; padding: 14px; display: grid; gap: 10px; align-content: start; }
.bubble { max-width: 85%; padding: 8px 11px; border-radius: 12px; font-size: 0.9rem; }
.bubble.bot { background: var(--ivory-2); }
.bubble.user { background: var(--navy); color: #fff; justify-self: end; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form button:disabled { opacity: 0.55; cursor: wait; }
.bubble.typing { opacity: 0.65; letter-spacing: 0.2em; }

.compass {
  width: 84px; height: 84px; margin: 8px 0 0 auto;
  animation: spin 12s linear infinite;
}
.motion-bars span:nth-child(1) { height: 28%; animation-delay: 0.05s; }
.motion-bars span:nth-child(2) { height: 46%; animation-delay: 0.12s; }
.motion-bars span:nth-child(3) { height: 62%; animation-delay: 0.18s; }
.motion-bars span:nth-child(4) { height: 40%; animation-delay: 0.24s; }
.motion-bars span:nth-child(5) { height: 78%; animation-delay: 0.3s; }
.motion-bars span:nth-child(6) { height: 54%; animation-delay: 0.36s; }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scan {
  0%, 12% { top: 18%; opacity: 0; }
  20% { opacity: 1; }
  55% { top: 82%; opacity: 1; }
  62%, 100% { opacity: 0; top: 82%; }
}
@keyframes rise { from { transform: scaleY(0.2); transform-origin: bottom; } to { transform: scaleY(1); transform-origin: bottom; } }

@media (max-width: 900px) {
  .hero, .cards, .quotes, .quotes-4, .picker, .split, .stat-row, .team, .mock-snap, .access, .steps, .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .nav-links { display: none; }
  .nav-cta { display: flex; }
  .menu-btn { display: grid; place-items: center; }
  .mobile-panel.open { display: block; }
  .hero-art { min-height: 200px; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .orbit, .scan-line, .compass, .bars span { animation: none !important; }
}
