:root{
  --ink:#12141a;
  --panel:#1a1d24;
  --panel-line:#2a2e37;
  --steel:#9aa2ae;
  --steel-dim:#6b717c;
  --paper:#f4f5f7;
  --signal:#3d7bff;
  --signal-dim:#25406e;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--ink);
  color:var(--paper);
  font-family:'Inter', sans-serif;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
@media (prefers-reduced-motion: reduce){ html{scroll-behavior:auto;} }
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
:focus-visible{outline:2px solid var(--signal); outline-offset:3px;}
.wrap{max-width:1040px; margin:0 auto; padding:0 24px;}
h1,h2{font-family:'Big Shoulders', sans-serif; text-transform:uppercase; line-height:1.02;}

.eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family:'IBM Plex Mono', monospace;
  font-size:12px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--signal);
  margin-bottom:22px;
}
.eyebrow .dot{font-size:9px;}
.eyebrow::after{content:""; flex:1; height:1px; background:var(--panel-line);}
.eyebrow.centered{justify-content:center;}
.eyebrow.centered::after{display:none;}

/* ---------- NAV ---------- */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(18,20,26,0.94);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--panel-line);
}
.nav{display:flex; align-items:center; justify-content:space-between; padding:13px 24px;}
.brand{display:flex; align-items:center; gap:10px;}
.brand img.mark{height:32px; width:32px; border-radius:6px;}
.brand-text{display:flex; flex-direction:column; line-height:1.15;}
.brand-text .word img{height:17px; width:auto;}
.brand-text .tag{font-family:'IBM Plex Mono', monospace; font-size:9px; letter-spacing:.1em; color:var(--steel-dim);}
.nav-links{display:flex; gap:26px; font-size:14px; font-weight:500; color:var(--steel);}
.nav-links a:hover{color:var(--paper);}
@media (max-width:760px){ .nav-links{display:none;} }

/* ---------- HERO (with photo backdrop) ---------- */
.hero{
  position:relative;
  padding:74px 0 60px;
  border-bottom:1px solid var(--panel-line);
  overflow:hidden;
  isolation:isolate;
}
.hero-bg{position:absolute; inset:0; z-index:-2;}
.hero-bg img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:0;
  filter:grayscale(0.35) brightness(0.38) contrast(1.05);
  animation:heroFade 16s infinite;
}
.hero-bg img:nth-child(1){animation-delay:0s;}
.hero-bg img:nth-child(2){animation-delay:4s;}
.hero-bg img:nth-child(3){animation-delay:8s;}
.hero-bg img:nth-child(4){animation-delay:12s;}
.hero-overlay{
  position:absolute; inset:0; z-index:-1;
  background:linear-gradient(180deg, rgba(12,13,17,.72) 0%, rgba(12,13,17,.88) 70%, var(--ink) 100%);
}
@keyframes heroFade{
  0%{opacity:0;}
  6%{opacity:1;}
  25%{opacity:1;}
  32%{opacity:0;}
  100%{opacity:0;}
}
@media (prefers-reduced-motion: reduce){
  .hero-bg img{animation:none; opacity:0;}
  .hero-bg img:first-child{opacity:1;}
}
.hero h1{font-size:clamp(28px,4.6vw,44px); color:var(--paper); margin-bottom:14px; max-width:20ch;}
.hero h1 span{color:var(--signal);}
.hero p{color:var(--steel); font-size:15.5px; max-width:68ch;}
.hero p.contact-line{margin-top:14px; font-size:14px; color:var(--steel-dim);}
.hero p.contact-line a{color:var(--signal); border-bottom:1px solid var(--signal-dim);}
.hero p.contact-line a:hover{border-color:var(--signal);}

/* ---------- GENERIC SECTION ---------- */
section.block{padding:50px 0; border-bottom:1px solid var(--panel-line);}

/* ---------- HOW IT WORKS ---------- */
.flow{display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--panel-line); border:1px solid var(--panel-line);}
.flow-step{background:var(--ink); padding:24px 20px; text-align:center;}
.flow-num{
  width:28px; height:28px; border-radius:50%; background:var(--signal); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-family:'IBM Plex Mono', monospace; font-size:12.5px; font-weight:600;
  margin:0 auto 12px;
}
.flow-step h3{font-size:16px; font-weight:600; color:var(--paper); margin-bottom:6px;}
.flow-step p{font-size:13.5px; color:var(--steel);}
@media (max-width:680px){ .flow{grid-template-columns:1fr;} }

/* ---------- OFFERS ---------- */
.offer-grid{display:grid; grid-template-columns:1.4fr 1fr; gap:22px; align-items:start;}
.checklist{list-style:none;}
.checklist li{display:flex; gap:12px; padding:11px 0; border-bottom:1px solid var(--panel-line); font-size:14px; color:var(--steel);}
.checklist li:first-child{border-top:1px solid var(--panel-line);}
.checklist .check{color:var(--signal); flex-shrink:0; font-family:'IBM Plex Mono',monospace; font-weight:600;}
.stat-col{display:flex; flex-direction:column; gap:12px;}
.stat-pill{background:var(--panel); border:1px solid var(--panel-line); border-radius:6px; padding:18px; text-align:center;}
.stat-pill .num{font-family:'Big Shoulders', sans-serif; font-size:32px; color:var(--paper); line-height:1;}
.stat-pill .cap{font-family:'IBM Plex Mono', monospace; font-size:10.5px; color:var(--signal); margin-top:6px; letter-spacing:.05em;}
@media (max-width:680px){ .offer-grid{grid-template-columns:1fr;} }

/* ---------- THE OFFER ---------- */
.deal-list{list-style:none; max-width:72ch;}
.deal-list li{display:flex; gap:12px; padding:11px 0; border-bottom:1px solid var(--panel-line); font-size:14.5px; color:var(--steel);}
.deal-list li:first-child{border-top:1px solid var(--panel-line);}
.deal-list .check{color:var(--signal); flex-shrink:0; font-family:'IBM Plex Mono',monospace; font-weight:600;}
.deal-list strong{color:var(--paper);}

/* ---------- MACHINE LINEUP ---------- */
.machine-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:14px;}
.machine-card{background:var(--panel); border:1px solid var(--panel-line); border-radius:6px; padding:16px; text-align:center;}
.machine-photo{background:#fff; border-radius:4px; height:160px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; overflow:hidden; padding:8px;}
.machine-photo img{max-height:100%; max-width:100%; object-fit:contain;}
.machine-card h3{font-size:15px; font-weight:600; color:var(--paper); margin-bottom:4px;}
.machine-card .specs{font-size:11.5px; color:var(--steel); margin-bottom:10px; line-height:1.4;}
.tag-label{display:inline-block; font-family:'IBM Plex Mono', monospace; font-size:9.5px; letter-spacing:.06em; color:var(--signal); border:1px solid var(--signal-dim); padding:3px 9px; border-radius:20px;}
.more-link{
  display:inline-block; margin-top:12px;
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.03em;
  color:var(--steel); border-bottom:1px solid var(--panel-line);
  padding-bottom:2px;
}
.more-link:hover{color:var(--signal); border-color:var(--signal);}
@media (max-width:820px){ .machine-grid{grid-template-columns:repeat(2,1fr);} }
@media (max-width:460px){ .machine-grid{grid-template-columns:1fr;} }

/* ---------- CONTACT / LEAD FORM (single submit button lives here) ---------- */
.contact-block{padding:50px 0 56px; border-bottom:none;}
.contact-head{text-align:center; margin-bottom:34px;}
.contact-head h2{font-size:clamp(24px,3.6vw,34px); color:var(--paper); margin-bottom:12px;}
.contact-head p{color:var(--steel); font-size:14.5px; max-width:56ch; margin:0 auto;}
.lead-form{
  max-width:640px; margin:0 auto;
  background:var(--panel); border:1px solid var(--panel-line); border-radius:8px;
  padding:32px;
}
.form-row{display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:16px;}
.field{display:flex; flex-direction:column; gap:6px;}
.field.full{grid-column:1 / -1;}
.field label{font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.04em; color:var(--steel);}
.field input, .field textarea{
  background:var(--ink); border:1px solid var(--panel-line); border-radius:4px;
  padding:11px 12px; color:var(--paper); font-family:'Inter', sans-serif; font-size:14px;
  resize:vertical;
}
.field input:focus, .field textarea:focus{border-color:var(--signal);}
.btn-email{
  font-family:'IBM Plex Mono', monospace; font-size:13.5px; font-weight:500;
  background:var(--signal); color:#fff;
  padding:13px 24px; border-radius:3px; display:inline-block;
  border:none; cursor:pointer; width:100%; text-align:center;
}
.btn-email:hover{background:#2f68e6;}
.form-note{font-size:11.5px; color:var(--steel-dim); margin-top:12px; text-align:center;}
@media (max-width:560px){ .form-row{grid-template-columns:1fr;} .lead-form{padding:24px;} }

/* ---------- FOOTER ---------- */
footer{padding:22px 0; border-top:1px solid var(--panel-line);}
.foot-grid{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px;}
footer p{font-family:'IBM Plex Mono', monospace; font-size:11.5px; color:var(--steel-dim);}
footer a{color:var(--steel);}
footer a:hover{color:var(--paper);}

/* ---------- MACHINE DETAIL PAGE ---------- */
.detail-hero{padding:36px 0 8px;}
.back-link{
  font-family:'IBM Plex Mono', monospace; font-size:12px; color:var(--steel);
  display:inline-block; margin-bottom:20px;
}
.back-link:hover{color:var(--paper);}
.detail-grid{display:grid; grid-template-columns:0.9fr 1.1fr; gap:40px; align-items:start; padding:12px 0 50px;}
.detail-photo{background:#fff; border-radius:8px; padding:24px; display:flex; align-items:center; justify-content:center;}
.detail-photo img{max-height:420px; width:auto;}
.detail-info h1{font-size:clamp(26px,3.6vw,38px); color:var(--paper); margin-bottom:10px;}
.detail-info .tag-label{margin-bottom:16px;}
.detail-info p.blurb{color:var(--steel); font-size:15px; margin:14px 0 26px;}
.spec-table{width:100%; border-collapse:collapse; margin-bottom:26px;}
.spec-table tr{border-bottom:1px solid var(--panel-line);}
.spec-table tr:first-child{border-top:1px solid var(--panel-line);}
.spec-table td{padding:11px 0; font-size:14px; color:var(--steel);}
.spec-table td:first-child{
  font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.04em;
  color:var(--steel-dim); text-transform:uppercase; width:38%;
}
.spec-table td:last-child{color:var(--paper);}
.detail-cta{
  font-family:'IBM Plex Mono', monospace; font-size:13.5px; font-weight:500;
  background:var(--signal); color:#fff;
  padding:13px 24px; border-radius:3px; display:inline-block;
}
.detail-cta:hover{background:#2f68e6;}
@media (max-width:760px){ .detail-grid{grid-template-columns:1fr;} }
