:root,
[data-theme="light"] {
  --bg: #F4F6F8;
  --bg-elev: #E8ECF1;
  --bg-card: #FFFFFF;
  --line: #D0D7E0;
  --text: #141820;
  --muted: #5A6474;
  --dim: #8791A1;
  --amber: #E85A1C;
  --amber-dim: rgba(232, 90, 28, 0.12);
  --cyan: #0A7F96;
  --cyan-dim: rgba(10, 127, 150, 0.1);
  --green: #1A9B63;
  --green-dim: rgba(26, 155, 99, 0.12);
  --red: #D9382E;
  --shadow: 0 18px 50px rgba(20, 24, 32, 0.1);
  --header-bg: rgba(244, 246, 248, 0.88);
  --grid-line: rgba(20, 24, 32, 0.045);
  --code-bg: #12151A;
  --code-fg: #E8ECF1;
  --code-muted: #8A93A3;
  --code-accent: #FF8A4C;
  --code-kw: #7DD3FC;
  --code-str: #86EFAC;
  --btn-primary-fg: #fff;
  --hero-glow: rgba(232, 90, 28, 0.18);
  --font: "Manrope", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

[data-theme="dark"] {
  --bg: #0C0E11;
  --bg-elev: #13161B;
  --bg-card: #191D24;
  --line: #2A3038;
  --text: #F2F4F7;
  --muted: #8A9099;
  --dim: #5C6370;
  --amber: #FF5E1E;
  --amber-dim: rgba(255, 94, 30, 0.15);
  --cyan: #00D4E6;
  --cyan-dim: rgba(0, 212, 230, 0.12);
  --green: #2EE59D;
  --green-dim: rgba(46, 229, 157, 0.12);
  --red: #FF3B30;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --header-bg: rgba(12, 14, 17, 0.88);
  --grid-line: rgba(255, 255, 255, 0.04);
  --code-bg: #0A0C0F;
  --btn-primary-fg: #0C0E11;
  --hero-glow: rgba(255, 94, 30, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light dark; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--amber);
}
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* Motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}
@keyframes scanLine {
  0% { transform: translateY(-20%); opacity: 0; }
  20% { opacity: 0.7; }
  80% { opacity: 0.7; }
  100% { transform: translateY(120%); opacity: 0; }
}
.rise { animation: rise 0.7s ease both; }
.rise-d1 { animation-delay: 0.08s; }
.rise-d2 { animation-delay: 0.16s; }
.rise-d3 { animation-delay: 0.24s; }

.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.header.scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 68px;
}
.logo {
  display: grid; grid-template-columns: 36px auto; column-gap: 10px; row-gap: 3px;
  align-items: center; line-height: 1;
  font-weight: 800; letter-spacing: 0.02em; font-size: 21px;
}
.logo::before {
  content: ""; grid-row: 1 / span 2; width: 36px; height: 36px;
  background: url("../brand/mark-light.svg") center / contain no-repeat;
}
[data-theme="dark"] .logo::before { background-image: url("../brand/mark-dark.svg"); }
.logo span {
  font-size: 11px; font-weight: 500; color: var(--muted);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; }
.nav a { font-size: 14px; color: var(--muted); transition: color 0.15s; white-space: nowrap; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-right { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--dim); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, filter 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--amber); color: var(--btn-primary-fg); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: var(--bg-card); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--dim); transform: translateY(-1px); }
.burger { display: none; background: none; border: 0; color: var(--text); font-size: 22px; cursor: pointer; }

.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex; align-items: center;
  padding: 48px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, var(--hero-glow), transparent 70%),
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: auto, 44px 44px, 44px 44px;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
}
.overline {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--cyan); text-transform: uppercase; margin-bottom: 16px;
}
h1 {
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.1; font-weight: 700;
  letter-spacing: -0.03em; margin-bottom: 18px;
}
h1 .accent { color: var(--amber); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 38ch; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.micro-proof { font-size: 13px; color: var(--dim); }
.micro-proof strong { color: var(--muted); font-weight: 500; }

.visual {
  position: relative;
  min-height: 340px;
  border-radius: 0;
  display: grid; place-items: center;
}
.visual-glow {
  position: absolute; width: 70%; height: 70%; border-radius: 50%;
  background: var(--hero-glow); filter: blur(40px);
  animation: glowPulse 5s ease-in-out infinite;
}
.device {
  position: relative;
  width: min(280px, 70%);
  aspect-ratio: 10 / 18;
  background: linear-gradient(160deg, #1a1f28, #0d1016);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 18px 14px;
  overflow: hidden;
  color: #E8ECF1;
}
.device-screen {
  height: 100%;
  border-radius: 16px;
  background: #0a0c10;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 16px 14px;
  font-family: var(--mono); font-size: 11px; line-height: 1.55;
  display: flex; flex-direction: column; gap: 10px;
}
.device-screen .label { color: var(--code-muted); text-transform: uppercase; letter-spacing: 0.08em; font-size: 10px; }
.device-screen .code-line { color: #FF8A4C; word-break: break-all; }
.device-screen .ok { color: #86EFAC; }
.scan-beam {
  position: absolute; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, transparent, #00D4E6, transparent);
  box-shadow: 0 0 16px #00D4E6;
  animation: scanLine 2.8s ease-in-out infinite;
  top: 28%;
}

.code-card {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.code-card-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.code-card-bar .dots { display: flex; gap: 6px; }
.code-card-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.code-card-bar .fname { font-family: var(--mono); font-size: 12px; color: var(--code-muted); }
.code-card pre {
  margin: 0; padding: 20px 18px 22px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.65;
  color: var(--code-fg); overflow-x: auto;
}
.code-card .kw { color: var(--code-kw); }
.code-card .str { color: var(--code-str); }
.code-card .cm { color: var(--code-muted); }
.code-card .fn { color: var(--code-accent); }

section { padding: 80px 0; position: relative; z-index: 1; }
section.alt { background: var(--bg-elev); }
.sec-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em;
  color: var(--amber); text-transform: uppercase; margin-bottom: 10px;
}
.sec-head { margin-bottom: 36px; max-width: 640px; }
.sec-head h2 {
  font-size: clamp(24px, 3vw, 34px); line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.sec-head p { color: var(--muted); font-size: 16px; }

.paths, .steps, .boxes, .split {
  display: grid; gap: 14px;
}
.paths { grid-template-columns: 1fr 1fr; }
.steps { grid-template-columns: repeat(3, 1fr); }
.boxes { grid-template-columns: repeat(2, 1fr); }
.split { grid-template-columns: 1fr 1fr; }

.path, .step, .box, .split-card {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.path:hover, .box:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--amber) 35%, var(--line)); }
.path h3, .step h3, .box h3 { font-size: 20px; margin-bottom: 8px; }
.path p, .step p, .box p { color: var(--muted); font-size: 14.5px; margin-bottom: 16px; }
.path .cta-row { margin-bottom: 0; }
.step .n {
  font-family: var(--mono); font-size: 12px; color: var(--amber);
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.box.core {
  border-color: color-mix(in srgb, var(--amber) 45%, var(--line));
  background: linear-gradient(180deg, var(--amber-dim), var(--bg-card));
}
.box .tag {
  align-self: flex-start; display: inline-block;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 8px; border-radius: 6px;
  border: 1px solid var(--line); color: var(--dim); background: var(--bg);
  margin-bottom: 10px;
}
.box.core .tag { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 40%, var(--line)); }
.box .meta {
  font-size: 13px; color: var(--text); padding-top: 10px;
  border-top: 1px solid var(--line); font-family: var(--mono);
}
.box .meta strong { color: var(--amber); font-weight: 600; }

.split-card.out {
  background: linear-gradient(180deg, var(--amber-dim), var(--bg-card));
  border-color: color-mix(in srgb, var(--amber) 40%, var(--line));
}
.split-card ul {
  padding-left: 18px; color: var(--muted); display: grid; gap: 8px; font-size: 14.5px;
}
.split-card.in li::marker { color: var(--red); }
.split-card.out li::marker { color: var(--green); }

.table-wrap {
  overflow-x: auto; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg-card);
}
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14px; }
th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim); font-weight: 500; background: var(--bg-elev);
}
tr:last-child td { border-bottom: 0; }
td.model { font-weight: 600; }
.yes { color: var(--green); font-family: var(--mono); font-size: 13px; font-weight: 600; }
.no { color: var(--dim); font-family: var(--mono); font-size: 13px; }
.table-note { margin-top: 14px; font-size: 13px; color: var(--dim); }

.faq { max-width: 720px; display: grid; gap: 8px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); overflow: hidden;
}
.faq-item summary {
  padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--amber); font-family: var(--mono); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 18px 16px; color: var(--muted); font-size: 14.5px; }

.final {
  background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 80px 0;
}
.final-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.final h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; letter-spacing: -0.02em; }
.final .lead { color: var(--muted); margin-bottom: 16px; }
.final-points { display: grid; gap: 10px; margin-top: 18px; }
.final-points div {
  display: grid; grid-template-columns: 22px 1fr; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.final-points .tick {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-dim); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.form {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: grid; gap: 12px; box-shadow: var(--shadow);
}
.form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form select {
  height: 44px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); padding: 0 12px;
}
.form input:focus, .form select:focus { outline: 1px solid var(--amber); border-color: var(--amber); }
.form .hint { font-size: 12px; color: var(--dim); }
.form-success { display: none; text-align: center; padding: 36px 16px; }
.form-success.show { display: block; }
.form-success h3 { color: var(--green); margin-bottom: 8px; }
.form.sent .fields { display: none; }

.flow {
  display: grid; gap: 10px;
  font-family: var(--mono); font-size: 13px;
  background: var(--code-bg); color: var(--code-fg);
  border-radius: 14px; padding: 22px 20px; border: 1px solid var(--line);
}
.flow .arrow { color: var(--code-accent); padding-left: 8px; }

/* Device / printer catalog */
.legend { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot-s { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-s.ok { background: var(--green); }
.dot-s.wip { background: var(--amber); }
.dot-s.plan { background: var(--dim); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.vendor {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; display: grid; gap: 4px;
}
.vendor b { font-size: 15px; display: flex; align-items: center; gap: 8px; }
.vendor small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.catalog-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-tabs button {
  height: 38px; padding: 0 16px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--muted); font-weight: 600; font-size: 14px;
}
.catalog-tabs button.active { border-color: var(--amber); color: var(--amber); background: var(--amber-dim); }
.catalog-panel[hidden] { display: none; }

/* Apps that start working */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 20px; display: grid; gap: 8px; align-content: start;
}
.app-card .pill {
  justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  background: var(--red); color: #fff;
}
.app-card .pill.fixed { background: var(--green); }
.app-card h3 { font-size: 17px; }
.app-card p { color: var(--muted); font-size: 14px; }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ba-col { border-radius: 12px; padding: 22px; border: 1px solid var(--line); background: var(--bg-card); }
.ba-col h3 { font-size: 16px; margin-bottom: 12px; font-family: var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.ba-col.bad h3 { color: var(--red); }
.ba-col.good h3 { color: var(--green); }
.ba-col.good { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
.ba-col ul { padding-left: 18px; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; }

/* Instructions */
.howto { counter-reset: step; display: grid; gap: 12px; max-width: 760px; }
.howto li {
  list-style: none; position: relative; padding: 18px 20px 18px 64px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
}
.howto li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--amber); color: var(--btn-primary-fg);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.howto b { display: block; margin-bottom: 4px; }
.howto span { color: var(--muted); font-size: 14.5px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px;
}
.price-card.featured {
  border-color: var(--amber); box-shadow: var(--shadow);
  background: linear-gradient(180deg, var(--amber-dim), var(--bg-card) 45%);
}
.price-card .tier { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); }
.price-card h3 { font-size: 20px; }
.price-card .amount { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.price-card .amount small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-card ul { padding-left: 18px; display: grid; gap: 6px; color: var(--muted); font-size: 14px; flex: 1; }
.price-card li::marker { color: var(--green); }
.price-note { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* Volume calculator */
.calc {
  margin-top: 28px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
.calc label { display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.calc input[type="range"] { width: 100%; accent-color: var(--amber); }
.calc .calc-count { font-size: 28px; font-weight: 700; color: var(--text); }
.calc .calc-out { display: grid; gap: 6px; }
.calc .calc-total { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.calc .calc-meta { font-size: 13.5px; color: var(--muted); font-family: var(--mono); }
.calc .calc-save { color: var(--green); font-weight: 600; }

footer { padding: 48px 0 28px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px;
}
.footer-grid h4 {
  font-size: 12px; color: var(--dim); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 12px;
}
.footer-grid a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 36ch; margin: 10px 0; }
.footer-brand .slogan { color: var(--amber); font-family: var(--mono); font-size: 12px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 16px;
  font-size: 12px; color: var(--dim);
}

@media (max-width: 1100px) {
  .nav { display: none; }
  .nav.mobile-open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; background: var(--bg-card); padding: 16px 20px;
    border-bottom: 1px solid var(--line); gap: 12px;
  }
  .burger { display: block; }
}

@media (max-width: 960px) {
  .hero { min-height: auto; padding-top: 36px; }
  .hero-inner, .paths, .steps, .boxes, .split, .final-grid, .footer-grid,
  .apps, .ba, .pricing, .calc {
    grid-template-columns: 1fr;
  }
  .visual { min-height: 280px; order: -1; }
}
