/* Computer Engineered Solutions, Inc. — Modern Business Site */
:root {
  --navy: #0b1f3a;
  --navy-mid: #123056;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --accent: #f59e0b;
  --slate: #64748b;
  --slate-dark: #334155;
  --light: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 12px 40px rgba(11, 31, 58, 0.12);
  --radius: 12px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--slate-dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--teal); }
ul { list-style: none; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
  text-decoration: none;
}

.logo:hover { color: var(--white); }

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.5px;
  color: var(--white);
  flex-shrink: 0;
}

.logo-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: rgba(255,255,255,0.8);
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .nav a {
    padding: 0.4rem 0.45rem;
    font-size: 0.78rem;
  }
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.08);
}

.nav .btn-nav {
  background: var(--teal);
  color: var(--white) !important;
  margin-left: 0.35rem;
}

.nav .btn-nav:hover {
  background: var(--teal-light);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

/* —— Hero —— */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(13,148,136,0.25), transparent),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 55%, #0a3d3a 100%);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(13,148,136,0.2);
  border: 1px solid rgba(20,184,166,0.35);
  color: var(--teal-light);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 750;
  line-height: 1.15;
  max-width: 18ch;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 520px;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--teal-light);
}

.stat span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* Stats strip on product page heroes (e.g. tufting) */
.page-hero-stats {
  max-width: 36rem;
  margin-top: 1.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.page-hero .page-hero-stats .stat strong {
  color: var(--teal-light);
}

.page-hero .page-hero-stats .stat span {
  color: rgba(255,255,255,0.6);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13,148,136,0.35);
}
.btn-primary:hover { background: var(--teal-light); color: var(--white); }
.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { background: rgba(255,255,255,0.16); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
}

/* —— Sections —— */
section { padding: 4.5rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--slate);
  max-width: 36rem;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

.bg-light { background: var(--light); }
.bg-navy {
  background: var(--navy);
  color: var(--white);
}
.bg-navy .section-title { color: var(--white); }
.bg-navy .section-desc { color: rgba(255,255,255,0.65); }

/* —— Product cards —— */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(13,148,136,0.05));
}

/* Larger product icons on Products page */
.products-card-grid .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 1.9rem;
  margin-bottom: 1.25rem;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--slate);
  font-size: 0.95rem;
  flex: 1;
  margin-bottom: 1.1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.card-link::after { content: "→"; transition: transform 0.15s; }
.card-link:hover::after { transform: translateX(3px); }

/* —— Feature list —— */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.feature-list li {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.feature-list li:last-child { border-bottom: none; }

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(13,148,136,0.12);
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.panel.dark {
  background: linear-gradient(145deg, var(--navy-mid), var(--navy));
  border: none;
  color: var(--white);
}

.panel.dark h3 { color: var(--white); margin-bottom: 0.75rem; }
.panel.dark p { color: rgba(255,255,255,0.7); margin-bottom: 1.25rem; }

/* —— Page hero (inner pages) —— */
.page-hero {
  background: linear-gradient(160deg, var(--navy), var(--navy-mid));
  color: var(--white);
  padding: 3.25rem 0 2.75rem;
}

.page-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  max-width: 36rem;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.85rem;
}

.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--teal-light); }

/* —— Pricing —— */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

.price-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg);
  position: relative;
}

.price-card.featured::before {
  content: "Popular";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.price {
  font-size: 2rem;
  font-weight: 750;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--slate);
}

.price-card p {
  font-size: 0.85rem;
  color: var(--slate);
  margin: 0.75rem 0 1.25rem;
}

.support-note {
  font-size: 0.8rem;
  color: var(--slate);
  margin-top: 0.5rem;
}

.support-note strong {
  color: var(--navy);
  font-weight: 700;
}

/* —— EMS / product detail extras —— */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.subnav a:hover {
  color: var(--white);
  background: rgba(20, 184, 166, 0.25);
  border-color: rgba(20, 184, 166, 0.45);
}

.product-figure {
  margin: 0;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.product-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-figure figcaption {
  font-size: 0.85rem;
  color: var(--slate);
  text-align: center;
}

.include-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.include-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.include-item strong {
  display: block;
  font-size: 1.35rem;
  color: var(--teal-dark);
  font-weight: 750;
  margin-bottom: 0.25rem;
}

.include-item span {
  font-size: 0.9rem;
  color: var(--slate-dark);
}

.price-table-wrap {
  margin-top: 2.5rem;
}

.price-table-heading {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.price-table-note {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 1rem;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

.price-table thead th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.price-table tbody td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--slate-dark);
  vertical-align: top;
}

.price-table tbody tr:nth-child(even) td {
  background: rgba(241, 245, 249, 0.55);
}

.price-table tbody tr:hover td {
  background: rgba(13, 148, 136, 0.06);
}

.price-table .price-cell {
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy);
  text-align: right;
  width: 8.5rem;
}

.pricing-footnote {
  margin-top: 1.25rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.resource-subhead {
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.link-chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.link-chip:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: var(--teal);
  color: var(--teal-dark);
}

.resource-link-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.65rem 1.5rem;
  max-width: 56rem;
}

.resource-link-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.resource-link-list a {
  font-weight: 600;
}

.muted {
  color: var(--slate);
  font-size: 0.8rem;
  font-weight: 400;
}

/* —— WasteNet gallery —— */
.wastenet-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.wastenet-gallery .product-figure img {
  max-height: none;
}

/* —— WasteNet top showcase (redesigned product visual) —— */
.wn-showcase {
  padding: 3.5rem 0 3.75rem;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(13, 148, 136, 0.08), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, var(--white) 100%);
  border-bottom: 1px solid var(--border);
}

.wn-showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.wn-brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.65rem;
  line-height: normal;
  overflow: visible;
  max-width: 100%;
}

.wn-brand-link .brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 340px);
  height: auto;
  max-height: none;
  margin: 0 0 0.35rem;
  padding: 0.25rem 0 0.5rem;
  object-fit: contain;
  object-position: left center;
  vertical-align: middle;
}

.wn-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.55rem;
}

.wn-title {
  font-size: clamp(1.55rem, 2.8vw, 2.05rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-weight: 750;
  margin-bottom: 1rem;
}

.wn-lead,
.wn-body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--slate-dark);
  margin-bottom: 0.9rem;
  max-width: 36rem;
}

.wn-features {
  margin-top: 1.35rem;
}

.wn-showcase-visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.wn-stat-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a4a45 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 1.35rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.wn-stat-card::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -40%;
  width: 55%;
  height: 140%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.28), transparent 65%);
  pointer-events: none;
}

.wn-stat-value {
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--teal-light);
  margin-bottom: 0.55rem;
  position: relative;
  z-index: 1;
}

.wn-stat-text {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
  position: relative;
  z-index: 1;
  margin: 0;
}

.wn-media-stack {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
}

.wn-media-card {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.wn-media-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  background: #e8eef5;
}

.wn-media-device img {
  object-fit: contain;
  background: linear-gradient(160deg, #f1f5f9, #e2e8f0);
  padding: 0.65rem;
  min-height: 180px;
}

.wn-media-card figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--slate-dark);
  padding: 0.7rem 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}

.wn-brand-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.wn-brand-bar img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Redesigned fact strip (replaces Wastenet3.gif) */
.wn-fact-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: 14px;
  padding: 1.1rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
}

.wn-fact-icon {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f43f5e, #fb7185);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

.wn-fact-label {
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 0.35rem;
}

.wn-fact-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 500;
}

@media (max-width: 900px) {
  .wn-showcase-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .wn-media-stack {
    grid-template-columns: 1fr;
  }

  .wn-media-device img {
    min-height: 220px;
  }
}

/* —— Screenshot viewer (tufting control UI) —— */
.screenshot-viewer {
  margin-top: 0.5rem;
}

.screenshot-stage {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 1rem 1rem 0.85rem;
  margin-bottom: 1rem;
}

.screenshot-expand {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0b1220;
  border-radius: 8px;
  cursor: zoom-in;
  position: relative;
  overflow: hidden;
}

.screenshot-main-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.screenshot-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  background: rgba(11, 31, 58, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  pointer-events: none;
}

.screenshot-caption {
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  margin-top: 0.75rem;
  margin-bottom: 0.15rem;
}

.screenshot-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.65rem;
}

.screenshot-thumbs-8 {
  grid-template-columns: repeat(4, 1fr);
}

.screenshot-thumb {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.45rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
  font: inherit;
  color: inherit;
}

.screenshot-thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: #0b1220;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.screenshot-thumb span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-dark);
  line-height: 1.25;
}

.screenshot-thumb:hover {
  border-color: var(--teal);
}

.screenshot-thumb.is-active {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow);
}

.screenshot-thumb.is-active span {
  color: var(--teal-dark);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.88);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1280px, 100%);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: #0b1220;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 0.75rem;
}

.lightbox-img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 6rem);
  margin: 0 auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 0.65rem;
  margin-bottom: 0.25rem;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 900px) {
  .screenshot-thumbs,
  .screenshot-thumbs-8 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 520px) {
  .screenshot-thumbs,
  .screenshot-thumbs-8 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.brand-logo {
  max-width: 340px;
  width: auto;
  height: auto !important;
  max-height: none;
  margin-bottom: 1.25rem;
  object-fit: contain;
  display: block;
}

.graph-shot {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 1rem 0 0.35rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

/* Crisp vector-style tables: avoid blurry browser scaling */
.graph-shot-table {
  max-width: min(100%, 720px);
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.graph-caption {
  font-size: 0.8rem;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

.graph-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.graph-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem 1.5rem;
  box-shadow: var(--shadow);
}

.graph-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.graph-card .graph-shot {
  max-width: 720px;
}

@media (min-width: 900px) {
  .graph-cards {
    grid-template-columns: 1fr;
  }
}

/* —— Location map (About) —— */
.location-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) 1.4fr;
  gap: 1.5rem;
  align-items: stretch;
}

.location-details {
  display: flex;
  flex-direction: column;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.map-embed {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--light);
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 36rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(13,148,136,0.1);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.85rem;
  color: var(--slate);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-item p,
.contact-item a {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
}

/* —— Services strip —— */
.services-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.service-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
}

.service-item .icon { font-size: 1.75rem; margin-bottom: 0.65rem; }
.service-item h3 { font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--white); }
.service-item p { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* —— CTA band —— */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: 0.6rem;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--teal-dark);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--light);
  color: var(--navy);
}

/* —— Footer —— */
.site-footer {
  background: #071525;
  color: rgba(255,255,255,0.65);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { max-width: 260px; line-height: 1.55; }

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.55);
  padding: 0.3rem 0;
  font-size: 0.9rem;
}

.footer-col a:hover { color: var(--teal-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
}

/* —— Tables —— */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.specs-table th,
.specs-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background: var(--light);
  color: var(--navy);
  font-weight: 600;
  width: 40%;
}

.specs-table tr:hover td { background: rgba(13,148,136,0.03); }

/* —— Machine tags —— */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--light);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: ui-monospace, monospace;
}

/* —— Content prose —— */
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1rem; color: var(--slate-dark); }
.prose h2 {
  font-size: 1.35rem;
  color: var(--navy);
  margin: 2rem 0 0.75rem;
}
.prose h3 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 1.5rem 0 0.5rem;
}

/* —— News list —— */
.news-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.news-item:last-child { border-bottom: none; }

.news-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.3rem;
}

.news-item h3 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.news-item p { color: var(--slate); font-size: 0.95rem; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .two-col,
  .contact-grid,
  .location-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .map-embed {
    min-height: 300px;
  }

  .footer-grid { gap: 1.75rem; }

  .nav-toggle { display: grid; place-items: center; }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 0.75rem 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 0.25rem;
  }

  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 0.7rem 0.9rem; }
  .nav .btn-nav { margin-left: 0; margin-top: 0.35rem; text-align: center; }

  .hero-stats { grid-template-columns: 1fr 1fr 1fr; max-width: none; }
}

@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero { padding: 3.5rem 0 3rem; }
  section { padding: 3.25rem 0; }
}
