/* ==========================================================================
   VEETOR — Systematized Fixturing for Wire-Cut EDM
   Global stylesheet
   ========================================================================== */

:root {
  --ink: #11161c;
  --ink-2: #3d4753;
  --ink-3: #6b7684;
  --line: #e2e7ec;
  --line-2: #eef1f4;
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --bg-tint: #eef3f8;

  --brand: #0a6fb5;
  --brand-dark: #075a94;
  --brand-light: #4a9fd4;
  --accent: #e8833a;
  --accent-dark: #c96c26;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 22, 28, .06);
  --shadow: 0 2px 12px rgba(17, 22, 28, .08);
  --shadow-lg: 0 8px 32px rgba(17, 22, 28, .12);

  --wrap: 1240px;
  --header-h: 68px;

  --sans: "Inter", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 76px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 48px 0; }

.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow--accent { color: var(--accent-dark); }

.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 68ch; }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: .93rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--onDark { border-color: rgba(255,255,255,.45); color: #fff; background: transparent; }
.btn--onDark:hover { background: #fff; color: var(--brand-dark); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 34px; height: 34px;
  border-radius: 3px;
  background: linear-gradient(140deg, var(--brand) 0%, var(--brand-light) 100%);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.04em;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-weight: 800; font-size: 1.12rem; letter-spacing: .01em; }
.logo__tag { font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 13px;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-2);
}
.nav a:hover { background: var(--bg-tint); color: var(--brand); }
.nav a.is-active { color: var(--brand); font-weight: 600; }
.nav .btn { margin-left: 10px; padding: 9px 18px; font-size: .86rem; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, #0d1b28 0%, #143347 55%, #1b4a68 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .accent { color: #ffb37a; }
.hero__lede { font-size: 1.1rem; color: rgba(255,255,255,.82); max-width: 56ch; margin-bottom: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero__badge {
  font-size: .74rem; font-weight: 600; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9);
}
.hero__figure {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.hero__figure img { border-radius: var(--radius); }
.hero__caption {
  margin-top: 14px; font-size: .78rem; color: var(--ink-3); text-align: center;
}

.hero-stats {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.16);
}
.hero-stats .wrap {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-top: 26px; padding-bottom: 26px;
}
.hero-stats div { text-align: center; }
.hero-stats b { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-stats span { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(150deg, #0d1b28, #17415c);
  color: #fff;
  padding: 56px 0;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 66ch; margin: 0; }

.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb a:hover { color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s, border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.card:hover { box-shadow: var(--shadow); border-color: #cfd8e0; transform: translateY(-2px); }
.card__media {
  background: linear-gradient(180deg, #fbfcfd, #f2f5f8);
  border-bottom: 1px solid var(--line-2);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 18px;
}
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 6px; font-size: 1.05rem; }
.card__body p { font-size: .89rem; color: var(--ink-2); margin-bottom: 14px; }
.card__foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }

.model {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--brand);
  background: var(--bg-tint);
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
}
.chip {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 100px;
  margin: 0 6px 6px 0;
}

/* ---------- Feature list ---------- */
.features { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.feature { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature__icon {
  width: 40px; height: 40px; border-radius: var(--radius);
  background: var(--bg-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 14px;
}
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: .88rem; color: var(--ink-2); margin: 0; }

/* ---------- Product rows ---------- */
.prod-group { margin-bottom: 64px; }
.prod-group__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 16px; margin-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}
.prod-group__head h2 { margin: 0; }
.prod-group__head p { margin: 4px 0 0; font-size: .9rem; color: var(--ink-3); }

.prod-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.prod-item:last-child { border-bottom: 0; }
.prod-item__media {
  background: linear-gradient(180deg, #fbfcfd, #f2f5f8);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: grid; place-items: center;
  padding: 16px;
}
.prod-item__media img { width: 100%; height: 100%; object-fit: contain; }
.prod-item__body h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.prod-item__body > p { font-size: .92rem; color: var(--ink-2); }

.spec-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; }
.spec-list li {
  position: relative; padding-left: 20px;
  font-size: .88rem; color: var(--ink-2);
}
.spec-list li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-light);
}
.spec-list li b { color: var(--ink); font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: .84rem;
  min-width: 460px;
  background: #fff;
}
table.spec caption {
  text-align: left; padding: 12px 16px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
table.spec th, table.spec td {
  padding: 9px 16px; text-align: left; border-bottom: 1px solid var(--line-2);
}
table.spec thead th {
  background: var(--bg-soft);
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-3); white-space: nowrap;
}
table.spec tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; }
table.spec tbody tr:hover { background: #fafbfc; }
table.spec td.num { font-family: var(--mono); font-size: .8rem; }

/* ---------- Filter tabs ---------- */
.tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 36px; padding-bottom: 4px;
}
.tab {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: #fff;
  font-size: .86rem; font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .16s;
}
.tab:hover { border-color: var(--brand-light); color: var(--brand); }
.tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(140deg, #0d1b28, #17415c);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; max-width: 60ch; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: .92rem; color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .16s, box-shadow .16s;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(10,111,181,.12);
}
.form-note { font-size: .78rem; color: var(--ink-3); }
.form-status { display: none; padding: 12px 16px; border-radius: var(--radius); font-size: .88rem; font-weight: 500; }
.form-status.is-ok { display: block; background: #e8f6ee; color: #1a6b3d; border: 1px solid #b9e3cb; }
.form-status.is-err { display: block; background: #fdecea; color: #a32318; border: 1px solid #f5c6c2; }

/* ---------- Info blocks ---------- */
.info-grid { display: grid; gap: 24px; grid-template-columns: 1.1fr .9fr; align-items: start; }
.info-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}
.info-card h3 { font-size: 1rem; margin-bottom: 14px; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.info-list svg { flex-shrink: 0; margin-top: 3px; color: var(--brand); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  padding: 18px 40px 18px 0; cursor: pointer; position: relative;
  font-weight: 600; font-size: .98rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--brand); font-weight: 400; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 18px; font-size: .9rem; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #0d1b28; color: rgba(255,255,255,.66); padding: 60px 0 28px; margin-top: 0; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: rgba(255,255,255,.66); font-size: .88rem; }
.footer-grid a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo:hover { color: #fff; }
.site-footer .logo__tag { color: rgba(255,255,255,.5); }
.site-footer p { font-size: .88rem; max-width: 40ch; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: rgba(255,255,255,.45);
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
[hidden] { display: none !important; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; padding-top: 64px; padding-bottom: 64px; }
  .hero__figure { max-width: 560px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .info-grid { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; padding: 40px 32px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 14px 24px 22px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .prod-item { grid-template-columns: 1fr; gap: 20px; }
  .prod-item__media { max-width: 380px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .section { padding: 52px 0; }
  .grid--2, .grid--3, .grid--4, .features { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-stats .wrap { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .cta { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
}

@media print {
  .site-header, .site-footer, .cta, .btn, .nav-toggle { display: none; }
  body { color: #000; }
  .prod-item { break-inside: avoid; }
}
