:root {
  color-scheme: dark;
  --bg: #06131f;
  --bg-soft: #081a27;
  --panel: #0b2030;
  --panel-2: #102a3e;
  --panel-3: #071925;
  --text: #f5f1e7;
  --muted: #9fb2bf;
  --muted-2: #718897;
  --gold: #d7b568;
  --gold-strong: #e4c678;
  --green: #66d5a5;
  --red: #ff918c;
  --blue: #7bb8e6;
  --line: #1b3b50;
  --line-soft: rgba(255,255,255,.07);
  --shadow: 0 28px 80px rgba(0,0,0,.36);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -8%, rgba(28,77,108,.56), transparent 34%),
    radial-gradient(circle at 85% 10%, rgba(70,55,20,.22), transparent 24%),
    linear-gradient(180deg, var(--bg), #071723 56%, var(--bg));
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(102,213,165,.85); outline-offset: 3px; }
::selection { background: rgba(215,181,104,.35); color: var(--text); }

.skip-link {
  position: fixed;
  left: 14px;
  top: 12px;
  transform: translateY(-160%);
  z-index: 100;
  background: var(--gold);
  color: #101820;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6,19,31,.86);
  backdrop-filter: blur(16px);
}
.nav-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #08131d;
  background: linear-gradient(145deg, var(--gold-strong), #b99142);
  box-shadow: 0 10px 30px rgba(215,181,104,.16);
  font-weight: 950;
  letter-spacing: -.08em;
}
.brand-copy { min-width: 0; display: grid; gap: 2px; }
.brand-name { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .16em; white-space: nowrap; }
.brand-product { color: var(--muted); font-size: 10px; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links > a:not(.button) { color: var(--muted); font-size: 13px; text-decoration: none; }
.nav-links > a:not(.button):hover { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--gold); color: #101820; box-shadow: 0 12px 30px rgba(215,181,104,.15); }
.button-primary:hover { background: var(--gold-strong); }
.button-secondary { background: #102b3d; border-color: var(--line); color: var(--text); }
.button-secondary:hover { border-color: #315b73; }
.button-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.button[disabled] { opacity: .4; cursor: not-allowed; transform: none; }

.eyebrow { color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.hero { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 52px; padding: 88px 0 74px; }
.hero h1 { max-width: 720px; margin: 16px 0 18px; font-size: clamp(44px, 6vw, 66px); line-height: .99; letter-spacing: -.045em; }
.hero .lede { max-width: 720px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.66; }
.cta-row { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.hero-note { margin-top: 17px; color: var(--muted-2); font-size: 11px; line-height: 1.5; }
.proof-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; }
.proof-row span { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.proof-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--green); box-shadow: 0 0 0 4px rgba(102,213,165,.08); }

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #0d2132, #081a27);
  padding: 18px;
  box-shadow: var(--shadow);
}
.product-card::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  left: -100px;
  top: -110px;
  border-radius: 50%;
  background: rgba(215,181,104,.09);
  filter: blur(16px);
}
.product-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 4px 2px 16px; }
.kicker { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.ticker { margin-top: 3px; font-size: 17px; font-weight: 900; }
.status-badge { flex: 0 0 auto; color: var(--green); border: 1px solid #2b5b52; border-radius: 999px; padding: 7px 10px; font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric-card { border: 1px solid var(--line); border-radius: 13px; background: var(--panel-3); padding: 14px; }
.metric-label { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.metric-value { margin-top: 6px; font-size: 23px; font-weight: 880; letter-spacing: -.02em; }
.metric-detail { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.good { color: var(--green); }
.bad { color: var(--red); }
.product-strip { margin-top: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel-3); padding: 8px 14px; }
.product-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 12px; }
.product-row:last-child { border-bottom: 0; }
.product-row span:first-child { color: var(--muted); }
.product-row span:last-child { color: var(--gold); text-align: right; }

.section { padding: 72px 0; }
.section-tight { padding: 52px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head h2 { margin: 10px 0 11px; font-size: clamp(31px, 4vw, 42px); line-height: 1.05; letter-spacing: -.03em; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.68; font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 228px; border: 1px solid var(--line); background: linear-gradient(180deg,#0b1f2f,#081924); border-radius: var(--radius); padding: 23px; }
.feature-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #173349; color: var(--gold); font-size: 12px; font-weight: 900; }
.feature-card h3 { margin: 20px 0 8px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.workflow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.workflow-step { min-height: 154px; border: 1px solid var(--line); border-radius: 14px; background: #0a1c2a; padding: 17px; }
.workflow-step small { color: var(--green); font-size: 11px; font-weight: 900; }
.workflow-step strong { display: block; margin: 10px 0 7px; }
.workflow-step span { color: var(--muted); font-size: 12px; line-height: 1.58; }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.compare-card h3 { margin: 0 0 16px; font-size: 17px; }
.compare-list { display: grid; gap: 11px; }
.compare-item { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.compare-icon { color: var(--gold); font-weight: 900; }
.compare-card.after { border-color: #2b5b52; background: #09251f; }
.compare-card.after .compare-icon { color: var(--green); }

.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.trust-card { border: 1px solid #2b5b52; border-radius: var(--radius); background: #09251f; padding: 24px; }
.trust-card.gold { border-color: #5a4c2e; background: #211d11; }
.trust-card h3 { margin: 0 0 10px; }
.trust-card p { margin: 0; color: var(--muted); line-height: 1.67; font-size: 14px; }
.quote { margin-top: 25px; max-width: 940px; border-left: 3px solid var(--gold); padding-left: 18px; color: #e9dfc8; font-size: clamp(22px, 3vw, 29px); line-height: 1.38; letter-spacing: -.015em; }

.acceptance-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.acceptance-card { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px; }
.acceptance-card strong { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.acceptance-card strong span:last-child { color: var(--green); font-size: 11px; }
.acceptance-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.pilot-shell { display: grid; grid-template-columns: 1.05fr .95fr; gap: 26px; align-items: stretch; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(135deg,#102a3e,#0b1d2b); padding: 34px; }
.pilot-price { margin: 14px 0 6px; font-size: 38px; font-weight: 900; letter-spacing: -.03em; }
.pilot-price small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.pilot-list { margin: 20px 0 0; padding-left: 19px; color: var(--muted); font-size: 14px; line-height: 1.85; }
.pilot-card { height: 100%; border: 1px solid var(--line); border-radius: 17px; background: var(--panel-3); padding: 22px; }
.pilot-card h3 { margin: 0 0 8px; font-size: 18px; }
.pilot-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.pilot-card .cta-row { margin-top: 19px; }
.pilot-fine { margin-top: 12px; color: var(--muted-2); font-size: 11px; line-height: 1.55; }

.faq { display: grid; gap: 10px; max-width: 900px; }
details.faq-item { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 17px; }
details.faq-item summary { cursor: pointer; padding: 16px 0; font-weight: 760; }
details.faq-item p { margin: 0; padding: 0 0 17px; color: var(--muted); font-size: 13px; line-height: 1.65; }

.contact-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 28px; }
.contact-panel h2 { margin: 8px 0 9px; font-size: 30px; }
.contact-panel p { margin: 0; color: var(--muted); line-height: 1.65; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.footer { margin-top: 54px; border-top: 1px solid var(--line-soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 42px; color: var(--muted-2); font-size: 11px; line-height: 1.55; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* Demo */
.demo-shell { min-height: 100vh; min-width: 0; display: grid; grid-template-columns: 252px minmax(0,1fr); }
.demo-sidebar { position: sticky; top: 0; align-self: start; min-width: 0; height: 100vh; border-right: 1px solid var(--line); background: #06131f; padding: 22px 16px; }
.demo-home { display: inline-flex; margin-bottom: 24px; color: var(--muted); font-size: 12px; text-decoration: none; }
.demo-home:hover { color: var(--text); }
.demo-steps { display: grid; min-width: 0; max-width: 100%; gap: 8px; }
.demo-step { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #0a1d2b; color: var(--muted); text-align: left; cursor: pointer; }
.demo-step strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 13px; }
.demo-step span { font-size: 11px; }
.demo-step.is-active { border-color: #4b7e71; background: #0b2822; color: #c1ddd2; }
.demo-main { min-width: 0; max-width: 100vw; padding: 34px clamp(20px,4vw,54px) 42px; }
.demo-progress-track { height: 3px; border-radius: 999px; background: #102a3e; overflow: hidden; margin-bottom: 30px; }
.demo-progress { height: 100%; width: 20%; background: var(--gold); transition: width .2s ease; }
.demo-screen { max-width: 1120px; margin-inline: auto; }
.demo-screen[hidden] { display: none !important; }
.demo-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 22px; margin-bottom: 22px; }
.demo-title { margin: 7px 0 7px; font-size: clamp(32px,4vw,48px); line-height: 1.03; letter-spacing: -.035em; }
.demo-sub { max-width: 780px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.demo-panel { border: 1px solid var(--line); border-radius: 17px; background: #0b1d2b; padding: 18px; }
.demo-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.demo-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel-3); padding: 14px; }
.demo-value { margin-top: 7px; font-size: 24px; font-weight: 850; }
.demo-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin-top: 13px; }
.demo-table { width: 100%; border-collapse: collapse; min-width: 680px; background: var(--panel-3); }
.demo-table th, .demo-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 12px; vertical-align: top; }
.demo-table tr:last-child td { border-bottom: 0; }
.demo-table th { color: var(--muted); background: var(--panel-2); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.pill { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 5px 8px; color: var(--gold); font-size: 10px; }
.source-line { margin-top: 10px; border-radius: 9px; background: #04111a; padding: 11px; color: #c4d2db; font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.timeline { display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; }
.timeline-item { min-height: 105px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel-3); padding: 13px; }
.timeline-item strong { display: block; margin-bottom: 9px; }
.timeline-item span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.model-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 15px; }
.sheet { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.sheet-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; padding: 10px 11px; border-bottom: 1px solid var(--line); background: var(--panel-3); font-size: 12px; }
.sheet-row:last-child { border-bottom: 0; }
.sheet-row.sheet-head { background: var(--panel-2); color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.control-box { border: 1px solid #2b5b52; border-radius: 12px; background: #09251f; padding: 15px; color: var(--muted); font-size: 12px; line-height: 1.72; }
.control-box strong { color: var(--green); }
.demo-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.demo-kpi { border: 1px solid var(--line); border-radius: 11px; background: var(--panel-2); padding: 13px; }
.demo-kpi strong { display: block; margin-top: 5px; }
.presenter-note { display: none; margin-top: 14px; border-left: 3px solid var(--gold); border-radius: 0 10px 10px 0; background: #0b1d2b; padding: 12px 14px; color: #d9d2c2; font-size: 12px; line-height: 1.6; }
.presenter-mode .presenter-note { display: block; }
.demo-controls { max-width: 1120px; margin: 18px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.demo-control-buttons { display: flex; gap: 9px; }
.demo-counter { color: var(--muted); font-size: 12px; }
.demo-footer-cta { max-width: 1120px; margin: 28px auto 0; border: 1px solid var(--line); border-radius: 15px; background: var(--panel); padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.demo-footer-cta p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

/* Pilot page */
.pilot-hero { max-width: 920px; padding: 76px 0 30px; }
.pilot-hero h1 { margin: 12px 0 14px; font-size: clamp(42px,6vw,64px); line-height: 1; letter-spacing: -.045em; }
.pilot-hero p { max-width: 780px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.pilot-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pilot-detail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 23px; }
.pilot-detail h2 { margin: 0 0 10px; font-size: 20px; }
.pilot-detail ul { margin: 0; padding-left: 19px; color: var(--muted); line-height: 1.8; font-size: 14px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 62px; }
  .feature-grid, .acceptance-grid { grid-template-columns: 1fr; }
  .workflow-grid { grid-template-columns: repeat(2,1fr); }
  .pilot-shell, .contact-panel { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { position: relative; width: 100%; max-width: 100vw; height: auto; overflow: hidden; border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .demo-home { margin-bottom: 12px; }
  .demo-steps { display: flex; width: 100%; max-width: 100%; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; padding-bottom: 3px; }
  .demo-step { min-width: 175px; }
  .demo-grid { grid-template-columns: repeat(2,1fr); }
  .timeline { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
  .wrap { width: min(100% - 32px, var(--max)); }
  .nav-inner { min-height: 64px; }
  .brand-name { font-size: 10px; letter-spacing: .12em; }
  .brand-product { display: none; }
  .nav-links > a:not(.button) { display: none; }
  .nav-links .button { padding-inline: 12px; }
  .hero { gap: 34px; padding: 54px 0 52px; }
  .hero .lede { font-size: 16px; }
  .metric-grid, .workflow-grid, .compare, .trust-grid, .pilot-detail-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .pilot-shell { padding: 23px; }
  .footer-inner { flex-direction: column; }
  .demo-main { padding: 24px 16px 34px; }
  .demo-top { flex-direction: column; }
  .demo-grid, .timeline, .demo-kpis { grid-template-columns: 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .demo-controls { align-items: flex-end; }
  .demo-footer-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .brand-mark { width: 29px; height: 29px; }
  .brand-name { max-width: 168px; overflow: hidden; text-overflow: ellipsis; }
  .nav-links .button { min-height: 38px; font-size: 12px; }
  .hero h1 { font-size: 42px; }
  .product-top { flex-direction: column; }
  .status-badge { align-self: flex-start; }
  .pilot-price { font-size: 33px; }
  .contact-panel { padding: 22px; }
  .demo-control-buttons .button { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
