/* ============ TOKENS ============ */
:root {
  --bg: #0e0f12;
  --bg-2: #15171c;
  --bg-3: #1c1f26;
  --line: #2a2e37;
  --line-2: #363b46;
  --fg: #f2f3f5;
  --muted: #9aa1ad;
  --muted-2: #6b7280;
  --accent: #ff6a1a;
  --accent-2: #ff8a3d;
  --accent-soft: rgba(255, 106, 26, 0.14);
  --pressure: #ff6a1a;
  --suction: #38bdf8;
  --seal: #a78bfa;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --maxw: 1200px;
  --font-display: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: var(--fg); font-weight: 700; }

/* ============ BUTTONS ============ */
.btn {
  --pad: 12px 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.01em;
  padding: var(--pad);
  border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #150a02; box-shadow: 0 8px 24px rgba(255,106,26,.28); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--lg { --pad: 15px 28px; font-size: 1rem; }
.btn--sm { --pad: 7px 14px; font-size: 0.78rem; }

/* ============ TAGS ============ */
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-soft);
  border: 1px solid rgba(255,106,26,.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 20px;
}
.tag--dark { color: var(--accent-2); }

/* ============ NAV ============ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(14,15,18,.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--line); background: rgba(14,15,18,.9); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); }
.brand__mark { color: var(--accent); display: grid; place-items: center; }
.brand__text { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand__text strong { color: var(--accent-2); font-weight: 900; }
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.92rem; transition: color .2s; }
.nav__links a:hover { color: var(--fg); }
.nav__cta { margin-left: 4px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: auto; }
.nav__burger span { width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: .3s; }

/* ============ HERO ============ */
.hero { position: relative; padding: 150px 24px 90px; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, #000 0%, transparent 75%);
  opacity: .5;
}
.hero::after {
  content: ""; position: absolute; top: -10%; right: -5%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,106,26,.22), transparent 62%);
  filter: blur(20px); pointer-events: none;
}
.hero__inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
}
.hero__title {
  font-family: var(--font-display); font-weight: 900; line-height: 1.02;
  font-size: clamp(2.4rem, 6vw, 4.4rem); letter-spacing: -0.02em; margin-bottom: 22px;
}
.hero__title .accent {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(255,106,26,.35);
}
.hero__lead { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero__stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats dt { font-family: var(--font-display); font-weight: 900; font-size: 2.4rem; color: var(--fg); line-height: 1; }
.hero__stats dd { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%; border-radius: var(--radius);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
.hero__badge {
  position: absolute; bottom: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .1em;
  background: rgba(14,15,18,.8); border: 1px solid var(--line-2);
  color: var(--muted); padding: 6px 12px; border-radius: 999px;
}

/* ============ MARQUEE ============ */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.marquee__track {
  display: flex; gap: 28px; white-space: nowrap; width: max-content;
  animation: scroll 32s linear infinite;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .08em;
  color: var(--muted-2); font-size: 1rem;
}
.marquee__track span:nth-child(3n+1) { color: var(--accent-2); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: 96px 24px; }
.section--alt { max-width: none; background: var(--bg-2); border-block: 1px solid var(--line); }
.section--alt > * { max-width: var(--maxw); margin-inline: auto; }
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.6vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.section__sub { color: var(--muted); font-size: 1.05rem; }

/* ============ TECH ============ */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.tech__diagram { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.tech__diagram svg { width: 100%; height: auto; }
.tech__legend { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; margin-top: 22px; font-size: 0.85rem; color: var(--muted); }
.tech__legend li { display: flex; align-items: center; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot--suction { background: var(--suction); }
.dot--pressure { background: var(--pressure); }
.dot--seal { background: var(--seal); }
.tech__features { display: flex; flex-direction: column; gap: 8px; }
.feat { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); transition: border-color .25s, transform .25s; }
.feat:hover { border-color: var(--line-2); transform: translateX(4px); }
.feat h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feat h3::before { content: ""; flex: none; width: 0; height: 0; border-left: 9px solid var(--accent); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.feat p { color: var(--muted); font-size: 0.95rem; }

/* ============ CARDS ============ */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 56px; }
.card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; transition: border-color .25s, transform .25s; }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.card--accent { border-color: rgba(255,106,26,.4); background: linear-gradient(160deg, var(--accent-soft), transparent 60%); }
.card__code { font-family: var(--font-mono); font-weight: 700; font-size: 0.8rem; letter-spacing: .16em; color: var(--accent-2); margin-bottom: 12px; }
.card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.card__range-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-family: var(--font-mono); font-size: 0.74rem; padding: 4px 8px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); color: var(--muted); }
.card--accent .chip { border-color: rgba(255,106,26,.25); }

/* ============ ASSEMBLIES ============ */
.assemblies { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--bg-2); }
.assemblies__media img { border-radius: var(--radius-sm); }
.assemblies__list h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin-bottom: 8px; }
.assemblies__intro { color: var(--muted); margin-bottom: 18px; }
.assemblies__list ul { list-style: none; display: grid; gap: 8px; }
.assemblies__list li { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 0.95rem; color: var(--muted); }
.assemblies__list li span { font-family: var(--font-mono); font-weight: 700; color: var(--accent-2); min-width: 66px; }

/* ============ CONFIGURATOR ============ */
.cfg { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: start; }
.cfg__panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.cfg__progress { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; counter-reset: step; }
.cfg__progress li { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted-2); padding: 5px 10px; border-radius: 999px; border: 1px solid transparent; transition: .2s; }
.cfg__progress li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 0.7rem; }
.cfg__progress li.is-active { color: var(--fg); border-color: rgba(255,106,26,.35); background: var(--accent-soft); }
.cfg__progress li.is-active::before { background: var(--accent); color: #150a02; border-color: var(--accent); }
.cfg__progress li.is-done::before {
  content: ""; border-color: var(--accent-2); color: transparent;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='none' stroke='%23ff8a3d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M5 12l4 4 10-10'/></svg>") center/12px no-repeat, var(--bg-3);
}
.cfg__progress li.is-done { color: var(--accent-2); }

.step { border: 0; }
.step legend { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; margin-bottom: 6px; }
.step__hint { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span { font-size: 0.82rem; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 6px; }

.opts { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.opts--grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.opts--sections { display: grid; grid-template-columns: repeat(3, 1fr); }
.opt { flex: 1 1 130px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  padding: 20px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--muted); font-weight: 600; font-size: 0.92rem;
  transition: .2s; height: 100%;
}
.opt__box em { font-style: normal; font-size: 1.7rem; line-height: 1; color: var(--muted-2); transition: .2s; display: inline-flex; align-items: center; justify-content: center; height: 30px; }
.opt__box em.em-text { font-family: var(--font-display); font-weight: 800; }
.opt__box em svg { width: 30px; height: 30px; stroke: currentColor; }
.opt:hover .opt__box { border-color: var(--line-2); color: var(--fg); }
.opt input:checked + .opt__box {
  border-color: var(--accent); background: var(--accent-soft); color: var(--fg);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.opt input:checked + .opt__box em { color: var(--accent); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.cfg__nav { display: flex; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.cfg__nav .btn--primary { margin-left: auto; }
#btnPrev { margin-right: auto; }

/* summary + codebox */
.summary { display: grid; gap: 8px; margin-bottom: 20px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.summary__row span:first-child { color: var(--muted); }
.summary__row span:last-child { color: var(--fg); font-weight: 600; text-align: right; }
.codebox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--bg); border: 1px solid var(--accent); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 22px; }
.codebox__label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.codebox code { font-family: var(--font-mono); font-weight: 700; color: var(--accent-2); font-size: 1rem; flex: 1; word-break: break-all; }

/* preview */
.cfg__preview { position: sticky; top: 96px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.preview__stage {
  background: radial-gradient(circle at 50% 40%, var(--bg-3), var(--bg));
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px; min-height: 280px; display: grid; place-items: center;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px), radial-gradient(circle at 50% 40%, var(--bg-3), var(--bg));
  background-size: 22px 22px, 22px 22px, 100% 100%;
}
.preview__stage svg { width: 100%; height: auto; }
.preview__spec { margin-top: 18px; display: grid; gap: 7px; }
.preview__spec .prow { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.preview__spec .prow span:first-child { color: var(--muted); }
.preview__spec .prow span:last-child { color: var(--fg); font-weight: 600; font-family: var(--font-mono); }
.preview__spec .prow--empty span:last-child { color: var(--muted-2); font-family: var(--font-body); font-style: italic; font-weight: 400; }

/* ============ CONTACT ============ */
.contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact__list { list-style: none; display: grid; gap: 12px; }
.contact__list li { display: grid; gap: 4px; padding: 16px 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.contact__list li span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.contact__list a { color: var(--accent-2); font-weight: 600; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 32px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted-2); font-size: 0.85rem; }

/* ============ MODAL ============ */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal[hidden] { display: none; }
.modal__card { position: relative; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px; max-width: 560px; width: 100%; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.modal__close:hover { color: var(--fg); }
.modal__card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 16px; }
.modal__body { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); white-space: pre-wrap; max-height: 320px; overflow: auto; margin-bottom: 18px; }
.modal__actions { display: flex; gap: 12px; justify-content: flex-end; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero__inner, .tech, .assemblies, .contact, .cfg { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .cards { grid-template-columns: 1fr; }
  .cfg__preview { position: static; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 24px 16px;
  }
  .nav.is-open .nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .opts--grid, .opts--sections, .grid2 { grid-template-columns: 1fr 1fr; }
  .hero__stats { gap: 24px; }
  .section { padding: 64px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; scroll-behavior: auto; }
}
