/* Elvo — ExpoVision. One stylesheet, no frameworks, no web fonts. */

:root {
  --bg: #07080a;
  --panel: #0b0d0f;
  --panel-2: #101315;
  --line: #1c2024;
  --line-2: #2a3036;
  --text: #f4f6f7;
  --soft: #c5cbd0;
  --grey: #98a1a9;
  --dim: #626b73;
  --green: #638604;        /* the Elvo mark */
  --lime: #a5d21c;         /* the same green, bright enough to read on black */
  --btn: #8ab80c;
  --btn-hover: #9dce12;
  --red: #f0555a;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "JetBrains Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--lime); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
b, strong { color: var(--text); font-weight: 600; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--btn); color: #0a0d00; padding: 10px 14px; border-radius: 8px; }
.mono { font-family: var(--mono); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 10, .84);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--grey); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { height: 21px; width: auto; }
.brand .slash { color: var(--dim); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 30px); margin: 0 auto; }
.nav a { color: var(--text); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--lime); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 46px; padding: 0 22px; border-radius: 8px; white-space: nowrap;
  font: 600 15px var(--sans);
  background: var(--btn); color: #0a0d00; border: 1px solid transparent;
  transition: background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--btn-hover); text-decoration: none; }
.btn .arrow { font-family: var(--mono); font-weight: 400; }
.btn.line {
  height: 38px; padding: 0 16px; border-radius: 7px;
  font: 600 13px var(--sans);
  background: rgba(165, 210, 28, .07); color: var(--lime); border-color: rgba(165, 210, 28, .34);
}
.btn.line:hover { background: rgba(165, 210, 28, .14); border-color: rgba(165, 210, 28, .6); }

/* ── Shared type ────────────────────────────────────────────────────────── */
.eyebrow {
  display: flex; align-items: center; gap: 16px; margin: 0;
  font: 500 12.5px var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--lime);
}
.eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--lime); opacity: .8; }
h1 {
  margin: 0 0 20px; font-size: clamp(2.3rem, 5vw, 3.65rem); line-height: 1.08;
  letter-spacing: -0.032em; font-weight: 650;
}
h1 .soft { display: block; color: var(--soft); font-weight: 540; text-wrap: balance; }
.lede { font-size: clamp(1rem, 2vw, 1.125rem); line-height: 1.65; color: var(--grey); max-width: 58ch; margin: 0; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 32px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -260px; width: 760px; height: 760px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 134, 4, .13), rgba(99, 134, 4, 0) 70%);
}
.hero .wrap { position: relative; }

/* The console: a camera view on the left, readouts on the right. */
.console {
  margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 24%);
  border: 1px solid var(--line); border-radius: 14px; background: rgba(11, 13, 15, .86); overflow: hidden;
}
.view { display: flex; flex-direction: column; min-width: 0; }
.view-bar {
  display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line);
  font: 500 11.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--grey);
}
.view-bar .live { color: var(--lime); display: inline-flex; align-items: center; gap: 8px; }
.view-bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.view svg { width: 100%; height: auto; margin-block: auto; }

.pass-edge { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 9; }
.plate .edge { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.plate.bad .edge { stroke: var(--red); stroke-width: 2; }
.plate .box { fill: none; stroke: var(--lime); stroke-width: 1.6; stroke-linecap: square; }
.plate text { font: 500 12px var(--mono); letter-spacing: .08em; fill: var(--lime); text-anchor: middle; }
.plate text.sub { fill: var(--grey); letter-spacing: .12em; font-size: 11px; }
.plate.bad .box { stroke: var(--red); }
.plate.bad text { fill: var(--red); }
.plate.arrive { animation: arrive .5s ease-out; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }

.readouts { border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.readout { padding: 16px 22px; border-bottom: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 66px; min-width: 0; }
.readout:last-child { border-bottom: 0; }
.readout dt { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--grey); margin: 0 0 6px; }
.readout dd { margin: 0; font: 500 21px/1.2 var(--mono); letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.readout dd.small { font-size: 17px; }
.readout dd.ok { color: var(--lime); }
.readout dd.bad { color: var(--red); }
dl.readouts { margin: 0; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.cta-row p { margin: 0; font-size: 14px; color: var(--grey); }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 60px 0; }
main > section + section { border-top: 1px solid var(--line); }
.sec-head { margin-bottom: 34px; }
.sec-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.05rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 640;
}
.sec-head p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--grey); max-width: 60ch; }

.grid { display: grid; gap: 14px; }
.grid.overview { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card { border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 13, 15, .82); padding: 24px 24px 26px; }
.card .tag { display: block; margin: 0 0 12px; font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.card h3 { margin: 0 0 10px; font-size: 1.12rem; font-weight: 620; letter-spacing: -0.012em; }
.card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey); }
.intro-cards { padding: 0 0 44px; }
.overview .card { padding: 22px; border: 0; border-radius: 0; background: var(--panel); }
#features .grid { column-gap: 28px; }
#features .card { padding: 18px 0 10px; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; background: transparent; }

/* Works with */
.card h3 label { cursor: pointer; }
.pos-pick { position: relative; margin: 14px 0 12px; }
.pos-pick select {
  width: 100%; height: 50px; padding: 0 46px 0 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text);
  font: 500 15px var(--sans); appearance: none; -webkit-appearance: none; color-scheme: dark;
}
.pos-pick select:hover { border-color: rgba(165, 210, 28, .5); }
.pos-pick::after { content: "▾"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--lime); pointer-events: none; font-size: 15px; }
.card p.pos-result { margin: 0 0 12px; color: var(--lime); font-weight: 500; min-height: 1.8em; }
.pos-more { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
#pos-connection-note { font-size: 14px; }
.card p.connection-result:not(:empty):not([hidden]) { margin-top: 10px; }
.card p.marks { margin-top: 14px; font-size: 12px; color: var(--dim); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.need { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.need + p { margin-top: 14px; }
.need li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.65; color: var(--grey); }
.need li::before { content: "→"; position: absolute; left: 0; color: var(--lime); }

/* Questions */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 20px 44px 20px 0; font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 22px var(--mono); color: var(--lime); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; font-size: 15px; line-height: 1.65; color: var(--grey); max-width: 62ch; }

/* Closing call */
main > .close { padding-top: 0; border-top: 0; }
.close .box { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 32px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 40px; background: linear-gradient(120deg, rgba(99, 134, 4, .16), rgba(11, 13, 15, .86) 55%); }
.close h2 { margin: 0 0 10px; font-size: clamp(1.7rem, 3.2vw, 2.3rem); letter-spacing: -0.028em; font-weight: 650; line-height: 1.12; }
.close .box > p { grid-column: 1; margin: 0; font-size: 15px; line-height: 1.65; color: var(--grey); max-width: 58ch; }
.close .cta-row { grid-column: 2; grid-row: 1 / 3; margin: 0; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 44px; background: rgba(7, 8, 10, .7); }
footer .wrap { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 40px; }
footer .brand { margin-bottom: 16px; }
footer p { margin: 0; font-size: 14px; color: var(--grey); max-width: 44ch; }
footer h4 { margin: 4px 0 14px; font: 500 11.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--dim); }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer li a { color: var(--text); font-size: 14.5px; }
footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); max-width: none; }

/* Privacy and terms */
.prose { max-width: 780px; padding: 60px 0 40px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 20px 0 10px; }
.prose .updated { font: 13.5px var(--mono); color: var(--dim); margin: 0 0 34px; }
.prose h2 { font-size: 1.22rem; font-weight: 630; letter-spacing: -0.012em; margin: 38px 0 10px; }
.prose p, .prose li { color: var(--soft); line-height: 1.7; }
.prose ul { padding-left: 22px; }
.prose li { margin: 7px 0; }

/* ── Smaller screens ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .console { grid-template-columns: 1fr; }
  .readouts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-left: 0; border-top: 1px solid var(--line); }
  .readout { grid-column: span 2; border-right: 1px solid var(--line); }
  .readout:nth-child(3), .readout:last-child { border-right: 0; }
  .readout:nth-last-child(-n+2) { grid-column: span 3; border-bottom: 0; }
  .grid.overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, 1fr); }
  footer .wrap { grid-template-columns: 1fr 1fr; }
  footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 850px) {
  html { scroll-padding-top: 96px; }
  .top .wrap { flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding-block: 10px; }
  .nav { order: 1; flex-basis: 100%; justify-content: center; gap: clamp(8px, 4vw, 28px); margin: 0; }
  .nav a { font-size: clamp(12px, 3.5vw, 14.5px); }
}
@media (max-width: 760px) {
  .wrap { padding-inline: 20px; }
  .hero { padding-top: 44px; }
  .eyebrow { letter-spacing: .18em; font-size: 11.5px; }
  .eyebrow::before { width: 26px; }
  .grid.three, .split { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
  .sec-head { margin-bottom: 24px; }
  .close .box { display: block; padding: 28px 22px; }
  .close .cta-row { margin-top: 20px; }
}
@media (max-width: 520px) {
  /* The logo and the button need the whole bar; the product name is in the headline just below. */
  .top .brand .slash, .top .brand span { display: none; }
  .grid.overview { grid-template-columns: 1fr; }
  .readout dt { letter-spacing: .04em; font-size: 10px; }
  .readout { padding: 10px 12px; }
  .readout dd, .readout dd.small { font-size: 14px; }
  .view-bar { font-size: 10px; letter-spacing: .06em; padding: 12px; }
  .plate text { font-size: 15px; }
  .plate text.sub { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .view-bar .live::before, .plate.arrive { animation: none; }
}
