/* ============================================
   SIMPLEX CNC SYSTEMS - Modern Redesign
   Grey / Silver / Dark Red accent
   ============================================ */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

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

:root {
  --silver-100: #f0f0f0;
  --silver-200: #e0e0e0;
  --silver-300: #d0d0d0;
  --silver-400: #b8b8b8;
  --silver-500: #999;
  --silver-600: #777;
  --silver-700: #555;
  --silver-800: #3a3a3a;
  --silver-900: #2a2a2a;
  --red: #8b1a1a;
  --red-light: #a52a2a;
  --glass: rgba(255,255,255,0.08);
  --glass-strong: rgba(255,255,255,0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --radius: 10px;
  --radius-sm: 6px;
}

body {
  font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--silver-800);
  background: var(--silver-300);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-footer {
  margin-top: auto;
}

h1, h2, h3, .hero-title, .pd-hero-text h1, .products-intro h1,
.pd-highlight-val, .pgrid-name, .why-num, .section-title {
  font-family: 'Titillium Web', 'Segoe UI', sans-serif;
}

a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
* { -webkit-tap-highlight-color: transparent; }

/* ---- HEADER (sticky, full-width) ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 30%, #c8c8c8 60%, #d5d5d5 100%);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo - left side */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo img {
  height: 56px;
  width: auto;
  transition: opacity 0.2s;
}

.logo:hover img { opacity: 0.8; }

/* Nav bar - no background, inherits header gradient */
.main-nav {
  display: flex;
  align-items: stretch;
  height: 48px;
}

.nav-item {
  position: relative;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: var(--silver-700);
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
  letter-spacing: 0.3px;
}

.nav-item:hover {
  color: var(--silver-900);
}

.nav-item.active {
  color: var(--silver-900);
  text-shadow: none;
}

/* Animated bar: vertical line at top-right sweeps left into red square */
.nav-item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: calc(100% - 7px);
  right: 5px;
  height: 12px;
  background: var(--silver-600);
  border-radius: 1px;
  transition: right 0.25s ease, left 0.35s ease 0.15s, background 0.15s ease;
}

.nav-item:hover::before {
  left: 5px;
  right: calc(100% - 17px);
  background: var(--red);
  transition: left 0.35s ease, right 0.3s ease 0.2s, background 0.3s ease 0.2s;
}

.nav-item.active::before {
  left: 5px;
  right: calc(100% - 17px);
  background: var(--red);
  transition: none;
}

/* Staggered nav entrance */
@keyframes navSlideIn {
  0% { opacity: 0; transform: translateX(10px); }
  60% { transform: translateX(-1px); }
  100% { opacity: 1; transform: translateX(0); }
}

.nav-item {
  opacity: 0;
  animation: navSlideIn 0.4s ease-out forwards;
}

.nav-item:nth-child(1) { animation-delay: 0.05s; }
.nav-item:nth-child(2) { animation-delay: 0.1s; }
.nav-item:nth-child(3) { animation-delay: 0.15s; }
.nav-item:nth-child(4) { animation-delay: 0.2s; }
.nav-item:nth-child(5) { animation-delay: 0.25s; }
.nav-item:nth-child(6) { animation-delay: 0.3s; }

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--silver-300);
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  min-height: 520px;
  position: relative;
}

/* Left side: tagline + squares */
.hero-left {
  flex: 1;
  position: relative;
  padding: 20px 0;
}

.hero-content {
  position: relative;
  z-index: 3;
  background: linear-gradient(to right, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0) 100%);
  padding: 10px 60px 10px 12px;
  display: inline-block;
  margin-top: 30px;
  margin-left: 10px;
}

.hero-eyebrow {
  font-size: 13px;
  color: var(--silver-700);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 2px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--silver-700);
  position: relative;
  line-height: 1.1;
  margin: 0;
}
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  z-index: -1;
  color: rgba(180, 180, 180, 0.35);
  font-size: inherit;
  font-weight: inherit;
  white-space: nowrap;
  letter-spacing: inherit;
}

/* Hero squares - positioned within left side */
.hero .geo-squares {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  z-index: 1;
}

.geo-sq {
  position: absolute;
  border-radius: 0;
  opacity: 0.5;
  will-change: opacity;
}

/* Row 1 — 2 squares */
.hero .geo-sq:nth-child(1)  { width: 75px;  height: 75px;  top: 140px; left: 130px; background: #c8c8c8; }
.hero .geo-sq:nth-child(2)  { width: 90px;  height: 90px;  top: 128px; left: 310px; background: #ccc; }
/* Row 2 — 3 squares */
.hero .geo-sq:nth-child(3)  { width: 80px;  height: 80px;  top: 225px; left: 50px;  background: #c0c0c0; }
.hero .geo-sq:nth-child(4)  { width: 95px;  height: 95px;  top: 215px; left: 230px; background: #ccc; }
.hero .geo-sq:nth-child(5)  { width: 70px;  height: 70px;  top: 230px; left: 410px; background: #c8c8c8; }
/* Row 3 — 2 squares */
.hero .geo-sq:nth-child(6)  { width: 55px;  height: 55px;  top: 310px; left: 15px;  background: #a0a0a0; }
.hero .geo-sq:nth-child(7)  { width: 95px;  height: 95px;  top: 300px; left: 170px; background: #bbb; }
/* Row 4 */
.hero .geo-sq:nth-child(8)  { width: 75px;  height: 75px;  top: 370px; left: 80px;  background: #c0c0c0; }
.hero .geo-sq:nth-child(9)  { width: 100px; height: 100px; top: 355px; left: 260px; background: #909090; }
/* Behind tagline */
.hero .geo-sq:nth-child(10) { width: 65px;  height: 65px;  top: 78px;  left: 30px;  background: #c5c5c5; }
.hero .geo-sq:nth-child(11) { width: 75px;  height: 75px;  top: 72px;  left: 210px; background: #d0d0d0; }
.hero .geo-sq:nth-child(12) { width: 55px;  height: 55px;  top: 88px;  left: 390px; background: #c0c0c0; }
/* Hide extras in hero */
.hero .geo-sq:nth-child(n+13) { display: none; }

/* squarePulse driven by JS for smoother rendering */

/* Right side: slideshow + logo */
.hero-right {
  width: 500px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  position: absolute;
  bottom: 2px;
  right: 10px;
  z-index: 2;
}

.hero-logo img {
  height: 50px;
  width: auto;
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 26px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, #a02020 100%);
  color: #fff;
  border: 1px solid var(--red);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--red-light) 0%, #c03030 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(139,26,26,0.35);
}

.btn-outline {
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.1) 100%);
  color: var(--silver-400);
  border: 1px solid var(--silver-600);
}

.btn-outline:hover {
  color: #fff;
  border-color: var(--silver-400);
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.18) 100%);
  transform: translateY(-1px);
}

.slideshow {
  position: relative;
  width: 100%;
  height: 440px;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.slide.active { opacity: 1; }

.slide img {
  max-height: 420px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.12));
}

.slide-indicators {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

.indicator:hover { background: rgba(255,255,255,0.3); }
.indicator.active { background: var(--red); border-color: var(--red); transform: scale(1.3); }

/* ---- SECTIONS ---- */
.section {
  padding: 70px 0;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--silver-800);
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,200,200,0.2) 0%, var(--red-light) 30%, var(--red) 50%, var(--red-light) 70%, rgba(200,200,200,0.2) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-title.line-visible::after {
  transform: scaleX(1);
}

/* Features — stat banner */
.section.section-features {
  background: var(--silver-900);
  padding: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 40%, black 60%, transparent 100%);
}

.features-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.feat-stat {
  text-align: center;
  padding: 0 40px;
}

.feat-num {
  display: block;
  font-family: 'Titillium Web', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--silver-100);
  line-height: 1.1;
}

.feat-label {
  display: block;
  font-size: 11px;
  color: var(--silver-500);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
}

.feat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.12);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  padding: 32px 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.25) 100%);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius);
  transition: all 0.35s;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out forwards;
}

.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }

.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,26,26,0.15);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--silver-700) 0%, var(--silver-900) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--silver-200);
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--silver-800);
  margin-bottom: 8px;
}

.feature p {
  font-size: 13px;
  color: var(--silver-600);
  line-height: 1.7;
}

/* Products on homepage */
.section-products {
  background: transparent;
}

.products-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 30px;
}

.products-header .section-title {
  margin-bottom: 0;
}

.view-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  transition: letter-spacing 0.2s;
}

.view-all:hover {
  letter-spacing: 0.5px;
}

.home-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.hp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 15px 10px 12px;
  transition: transform 0.3s;
}

.hp-card:hover {
  transform: scale(1.03);
}

.hp-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.hp-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.hp-card:hover .hp-img img {
  transform: scale(1.06);
}

.hp-body {
  text-align: center;
}

.hp-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 3px;
}

.hp-body p {
  font-size: 11px;
  color: var(--silver-600);
  max-width: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-card {
  display: flex;
  background: linear-gradient(160deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s;
  opacity: 0;
  transform: translateY(15px);
  animation: fadeUp 0.5s ease-out forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(139,26,26,0.15);
}

.product-card-img {
  width: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(200,200,200,0.3) 100%);
}

.product-card-img img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-card-img img {
  transform: scale(1.06);
}

.product-card-body {
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-card-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--silver-800);
  margin-bottom: 6px;
}

.product-card-body p {
  font-size: 12px;
  color: var(--silver-600);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* ---- PRODUCTS PAGE ---- */
.products-hero {
  background: linear-gradient(135deg, var(--silver-700) 0%, var(--silver-800) 100%);
  padding: 60px 0 50px;
  text-align: center;
}

.products-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.products-hero h1 {
  font-size: 38px;
  font-weight: 300;
  color: var(--silver-100);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.products-hero h1::after { display: none; }

.products-hero p {
  font-size: 15px;
  color: var(--silver-400);
  max-width: 500px;
  margin: 0 auto;
}

.products-section {
  padding: 60px 0;
  background: var(--silver-300);
}

.products-section-alt {
  background: linear-gradient(180deg, var(--silver-200) 0%, var(--silver-300) 100%);
}

.products-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.products-section-header {
  margin-bottom: 35px;
}

.products-section-header h2 {
  font-size: 24px;
  font-weight: 300;
  color: var(--silver-800);
  margin-bottom: 8px;
}

.section-line {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: 2px;
}

/* Showcase cards */
.products-showcase {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.showcase-card {
  display: flex;
  background: linear-gradient(145deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s;
  text-decoration: none;
  color: inherit;
}

.showcase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  border-color: rgba(139,26,26,0.15);
}

.showcase-img {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(200,200,200,0.2) 100%);
}

.showcase-img img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.4s;
}

.showcase-card:hover .showcase-img img {
  transform: scale(1.05);
}

.showcase-body {
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--silver-800);
  margin-bottom: 10px;
}

.showcase-body p {
  font-size: 14px;
  color: var(--silver-600);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: none;
}

.showcase-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  transition: letter-spacing 0.25s;
}

.showcase-card:hover .showcase-link {
  letter-spacing: 0.5px;
}

/* Linear stage cards */
.linear-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.linear-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 100%);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  padding: 24px 16px 20px;
  text-align: center;
  transition: all 0.35s;
  text-decoration: none;
  color: inherit;
}

.linear-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: rgba(139,26,26,0.15);
}

.linear-card img {
  width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 14px;
  transition: transform 0.3s;
}

.linear-card:hover img {
  transform: scale(1.06);
}

.linear-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--silver-800);
  margin-bottom: 4px;
}

.linear-card p {
  font-size: 12px;
  color: var(--silver-500);
  max-width: none;
}

/* Controller banner */
.controller-banner {
  display: flex;
  background: linear-gradient(145deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.2) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.35s;
  text-decoration: none;
  color: inherit;
}

.controller-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.08);
  border-color: rgba(139,26,26,0.15);
}

.controller-img {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(200,200,200,0.2) 100%);
}

.controller-img img {
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
  transition: transform 0.4s;
}

.controller-banner:hover .controller-img img {
  transform: scale(1.05);
}

.controller-body {
  padding: 30px 35px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.controller-body h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--silver-800);
  margin-bottom: 10px;
}

.controller-body p {
  font-size: 14px;
  color: var(--silver-600);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: none;
}

/* Controller chooser page */
.controller-choose {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}

.controller-choose .showcase-card {
  flex-direction: column;
}

.controller-choose .showcase-img {
  width: 100%;
  height: 200px;
}

/* Products page intro */
.products-intro {
  background: var(--silver-300);
  padding: 50px 0 45px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.products-intro .geo-squares {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.products-intro .geo-sq { background: rgba(0,0,0,0.04); }

.products-intro .geo-sq:nth-child(1)  { width: 60px;  height: 60px;  top: 10%; left: 5%;  }
.products-intro .geo-sq:nth-child(2)  { width: 80px;  height: 80px;  top: 30%; left: 15%; }
.products-intro .geo-sq:nth-child(3)  { width: 45px;  height: 45px;  top: 60%; left: 8%;  }
.products-intro .geo-sq:nth-child(4)  { width: 70px;  height: 70px;  top: 15%; left: 35%; }
.products-intro .geo-sq:nth-child(5)  { width: 55px;  height: 55px;  top: 50%; left: 28%; }
.products-intro .geo-sq:nth-child(6)  { width: 90px;  height: 90px;  top: 20%; right: 8%; }
.products-intro .geo-sq:nth-child(7)  { width: 50px;  height: 50px;  top: 55%; right: 15%; }
.products-intro .geo-sq:nth-child(8)  { width: 65px;  height: 65px;  top: 10%; right: 30%; }
.products-intro .geo-sq:nth-child(9)  { width: 40px;  height: 40px;  top: 65%; right: 5%;  }
.products-intro .geo-sq:nth-child(10) { width: 75px;  height: 75px;  top: 40%; right: 25%; }
.products-intro .geo-sq:nth-child(11) { width: 55px;  height: 55px;  top: 70%; left: 45%; }
.products-intro .geo-sq:nth-child(12) { width: 45px;  height: 45px;  top: 5%;  left: 55%; }

.products-intro-inner {
  position: relative;
  z-index: 1;
}

.products-intro-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.products-intro h1 {
  font-size: 36px;
  font-weight: 300;
  color: var(--silver-800);
  letter-spacing: -1px;
  margin-bottom: 10px;
}

.products-intro h1 { position: relative; display: inline-block; }
.products-intro h1::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,200,200,0.2) 0%, var(--red-light) 30%, var(--red) 50%, var(--red-light) 70%, rgba(200,200,200,0.2) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.products-intro h1.line-visible::after { transform: scaleX(1); }

.products-intro p {
  font-size: 15px;
  color: var(--silver-600);
  max-width: 520px;
  margin: 0 auto;
}

/* Why Simplex section */
.products-why {
  background: linear-gradient(180deg, var(--silver-200) 0%, var(--silver-300) 100%);
  padding: 60px 0;
  text-align: center;
}

.products-why-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.products-why h2 {
  font-size: 26px;
  font-weight: 300;
  color: var(--silver-800);
  margin-bottom: 8px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: left;
}

.why-item {
  padding: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.why-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.why-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.6;
  margin-bottom: 12px;
  font-family: 'Consolas', monospace;
}

.why-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--silver-800);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 13px;
  color: var(--silver-600);
  line-height: 1.7;
}

@media (max-width: 700px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products-intro h1 { font-size: 28px; }
}

@media (max-width: 400px) {
  .why-grid { grid-template-columns: 1fr; }
}

/* Products page — compact image grid with hover names */
.products-grid-section {
  padding: 40px 0 60px;
  background: var(--silver-300);
}

.products-grid-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.pgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pgrid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 15px 14px;
  transition: transform 0.3s;
  text-decoration: none;
}

.pgrid-item:hover {
  transform: scale(1.03);
}

.pgrid-item img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
  transition: transform 0.3s;
}

.pgrid-item:hover img {
  transform: scale(1.05);
}

.pgrid-overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pgrid-name {
  color: var(--red);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.pgrid-sub {
  color: var(--silver-600);
  font-size: 11px;
  font-weight: 400;
  margin-top: 3px;
}

/* Stage/controller selector grid */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 25px;
}

.stage-grid .pgrid-item img {
  height: 180px;
}

@media (max-width: 500px) {
  .stage-grid { grid-template-columns: 1fr; }
}

/* Coming soon / patent products */
.pgrid-coming-soon {
  cursor: default;
}

.pgrid-coming-soon:hover {
  transform: none;
}

.pgrid-question {
  font-size: 100px;
  font-weight: 300;
  color: var(--silver-400);
  line-height: 1;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .pgrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pgrid-overlay span {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .pgrid {
    grid-template-columns: 1fr;
  }
}

/* Homepage product link */
.product-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  transition: letter-spacing 0.2s;
}

.product-card:hover .product-link {
  letter-spacing: 0.5px;
}

/* About section */
.section-about {
  background: linear-gradient(180deg, var(--silver-400) 0%, var(--silver-300) 30%, var(--silver-200) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about-text p {
  font-size: 14px;
  color: var(--silver-600);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-text .btn {
  margin-top: 10px;
  color: var(--silver-700);
  border-color: var(--silver-500);
}

.about-text .btn:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ---- SUBPAGE CONTENT AREA ---- */
.content-area {
  max-width: 1100px;
  margin: 0 auto;
  min-height: 400px;
  padding: 50px 30px 80px;
}
.content-area.contact-full {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.contact-full > *:not(.geo-squares) {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 30px;
  padding-right: 30px;
}

/* Background squares inside content container */
.page-bg-squares {
  display: none;
}

.content-area {
  position: relative;
  overflow: hidden;
}

.content-area .geo-squares {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.content-area > *:not(.geo-squares) {
  position: relative;
  z-index: 1;
}

/* Scattered squares — varied sizes, organic placement */
.content-area .geo-sq:nth-child(1)  { width: 45px;  height: 45px;  top: 8%;   left: 2%;   background: #c8c8c8; }
.content-area .geo-sq:nth-child(2)  { width: 90px;  height: 90px;  top: 18%;  left: 6%;   background: #c0c0c0; }
.content-area .geo-sq:nth-child(3)  { width: 35px;  height: 35px;  top: 42%;  left: 1%;   background: #b5b5b5; }
.content-area .geo-sq:nth-child(4)  { width: 70px;  height: 70px;  top: 55%;  left: 4%;   background: #bbb; }
.content-area .geo-sq:nth-child(5)  { width: 55px;  height: 55px;  top: 72%;  left: 2%;   background: #a8a8a8; }
.content-area .geo-sq:nth-child(6)  { width: 80px;  height: 80px;  top: 85%;  left: 8%;   background: #b0b0b0; }
.content-area .geo-sq:nth-child(7)  { width: 50px;  height: 50px;  top: 5%;   right: 3%;  background: #ccc; }
.content-area .geo-sq:nth-child(8)  { width: 75px;  height: 75px;  top: 22%;  right: 5%;  background: #c5c5c5; }
.content-area .geo-sq:nth-child(9)  { width: 40px;  height: 40px;  top: 38%;  right: 1%;  background: #b8b8b8; }
.content-area .geo-sq:nth-child(10) { width: 85px;  height: 85px;  top: 52%;  right: 4%;  background: #c0c0c0; }
.content-area .geo-sq:nth-child(11) { width: 60px;  height: 60px;  top: 68%;  right: 2%;  background: #aaa; }
.content-area .geo-sq:nth-child(12) { width: 45px;  height: 45px;  top: 82%;  right: 7%;  background: #bbb; }
.content-area .geo-sq:nth-child(13) { width: 100px; height: 100px; top: 92%;  left: 25%;  background: #b5b5b5; }
.content-area .geo-sq:nth-child(14) { width: 65px;  height: 65px;  top: 88%;  right: 22%; background: #c8c8c8; }
.content-area .geo-sq:nth-child(15) { width: 30px;  height: 30px;  top: 15%;  left: 18%;  background: #d0d0d0; }
.content-area .geo-sq:nth-child(16) { width: 50px;  height: 50px;  top: 60%;  right: 18%; background: #c5c5c5; }
.content-area .geo-sq:nth-child(17) { width: 40px;  height: 40px;  top: 35%;  left: 12%;  background: #bbb; }
.content-area .geo-sq:nth-child(18) { width: 70px;  height: 70px;  top: 78%;  left: 15%;  background: #a5a5a5; }
.content-area .geo-sq:nth-child(19) { width: 55px;  height: 55px;  top: 45%;  right: 15%; background: #b8b8b8; }
.content-area .geo-sq:nth-child(20) { width: 35px;  height: 35px;  top: 95%;  right: 12%; background: #c0c0c0; }

/* Content stays above background squares */
.content-area, .site-footer {
  position: relative;
  z-index: 1;
}

.content-area .page-intro {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease-out 0.2s forwards;
}

.content-area h1 {
  font-size: 32px;
  color: var(--silver-800);
  margin-bottom: 16px;
  font-weight: 300;
  letter-spacing: -0.5px;
  display: inline-block;
  position: relative;
}

.content-area h1::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,200,200,0.2) 0%, var(--red-light) 30%, var(--red) 50%, var(--red-light) 70%, rgba(200,200,200,0.2) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.content-area h1.line-visible::after {
  transform: scaleX(1);
}

.content-area h2 {
  font-size: 20px;
  color: var(--silver-700);
  margin: 30px 0 14px;
  font-weight: 600;
}

.content-area p {
  font-size: 14px;
  color: var(--silver-600);
  margin-bottom: 14px;
  max-width: 740px;
  line-height: 1.8;
}

/* ---- PRODUCT DETAIL PAGE ---- */

/* Product hero — dark bg, text left, image right */
.pd-hero {
  padding: 50px 0 40px;
  background: var(--silver-300);
}

.pd-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  background: transparent;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.pd-hero-text {
  flex: 1;
}

.pd-hero-text h1 {
  font-size: 36px;
  font-weight: 300;
  color: var(--silver-800);
  letter-spacing: -1px;
  margin: 12px 0 16px;
}

.pd-hero-text h1 { position: relative; display: inline-block; }
.pd-hero-text h1::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,200,200,0.2) 0%, var(--red-light) 30%, var(--red) 50%, var(--red-light) 70%, rgba(200,200,200,0.2) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.pd-hero-text h1.line-visible::after { transform: scaleX(1); }

/* Squares inside product hero */
.pd-hero-inner .geo-squares {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.pd-hero-inner .geo-sq { background: #bbb; }

.pd-hero-inner .geo-sq:nth-child(1)  { width: 60px; height: 60px; top: 10%; left: 2%;  }
.pd-hero-inner .geo-sq:nth-child(2)  { width: 80px; height: 80px; top: 30%; left: 8%;  }
.pd-hero-inner .geo-sq:nth-child(3)  { width: 45px; height: 45px; top: 55%; left: 3%;  }
.pd-hero-inner .geo-sq:nth-child(4)  { width: 70px; height: 70px; top: 75%; left: 12%; }
.pd-hero-inner .geo-sq:nth-child(5)  { width: 55px; height: 55px; top: 15%; left: 22%; }
.pd-hero-inner .geo-sq:nth-child(6)  { width: 65px; height: 65px; top: 60%; left: 20%; }
.pd-hero-inner .geo-sq:nth-child(7)  { width: 50px; height: 50px; top: 8%;  right: 5%; }
.pd-hero-inner .geo-sq:nth-child(8)  { width: 75px; height: 75px; top: 35%; right: 3%; }
.pd-hero-inner .geo-sq:nth-child(9)  { width: 40px; height: 40px; top: 65%; right: 10%;}
.pd-hero-inner .geo-sq:nth-child(10) { width: 85px; height: 85px; top: 20%; right: 18%;}
.pd-hero-inner .geo-sq:nth-child(11) { width: 55px; height: 55px; top: 50%; right: 8%; }
.pd-hero-inner .geo-sq:nth-child(12) { width: 45px; height: 45px; top: 80%; right: 15%;}

.pd-hero-text, .pd-hero-img {
  position: relative;
  z-index: 1;
}

.pd-tagline {
  font-size: 15px;
  color: var(--silver-600);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 440px;
}

.pd-hero-img {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-hero-img img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
}

/* Key spec highlights — horizontal stat bar */
.pd-specs {
  background: var(--silver-200);
  padding: 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pd-specs-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.pd-spec-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pd-highlight {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.pd-highlight:last-child { border-right: none; }

.pd-highlight-val {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--silver-800);
  margin-bottom: 4px;
}

.pd-highlight-label {
  display: block;
  font-size: 11px;
  color: var(--silver-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Full specs — card grid */
.pd-full-specs {
  background: var(--silver-300);
  padding: 60px 0;
}

.pd-full-specs-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.pd-full-specs h2 {
  font-size: 24px;
  font-weight: 300;
  color: var(--silver-800);
  margin-bottom: 8px;
}

.pd-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.pd-spec-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.55), rgba(255,255,255,0.2));
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.pd-spec-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--silver-800);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: inline-block;
}

.pd-spec-card ul {
  list-style: none;
  padding: 0;
}

.pd-spec-card ul li {
  font-size: 13px;
  color: var(--silver-600);
  padding: 6px 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  line-height: 1.6;
  padding-left: 14px;
  position: relative;
}

.pd-spec-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--red);
  border-radius: 50%;
}

.pd-spec-card ul li:last-child { border-bottom: none; }

/* CTA section */
.pd-cta {
  background: linear-gradient(135deg, var(--silver-800), var(--silver-900));
  padding: 50px 0;
  text-align: center;
}

.pd-cta-inner {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 30px;
}

.pd-cta h2 {
  font-size: 24px;
  font-weight: 300;
  color: var(--silver-100);
  margin-bottom: 10px;
}

.pd-cta p {
  font-size: 14px;
  color: var(--silver-500);
  margin-bottom: 24px;
}

/* Responsive product detail */
@media (max-width: 900px) {
  .pd-hero { padding: 20px 0 15px; }
  .pd-hero-inner { flex-direction: column; text-align: center; padding: 20px; }
  .pd-hero-img { width: 100%; }
  .pd-tagline { max-width: 100%; }
  .pd-spec-highlights { grid-template-columns: repeat(2, 1fr); }
  .pd-highlight { padding: 14px 12px; }
  .pd-highlight-val { font-size: 17px; }
  .pd-highlight-label { font-size: 10px; }
  .pd-specs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 500px) {
  .pd-hero-text h1 { font-size: 28px; }
  .pd-spec-highlights { grid-template-columns: repeat(2, 1fr); }
  .pd-highlight { padding: 12px 10px; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .pd-highlight-val { font-size: 15px; }
  .pd-highlight:nth-child(odd) { border-right: 1px solid rgba(0,0,0,0.06); }
}

/* Back link */
.back-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--silver-600);
  margin-bottom: 20px;
  transition: color 0.2s, gap 0.2s;
}

.back-link svg {
  vertical-align: middle;
  flex-shrink: 0;
  margin-top: -2px;
}

.back-link:hover {
  color: var(--red);
  gap: 12px;
}

/* Product detail page */
.product-page {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.product-page .product-image {
  flex-shrink: 0;
  width: 360px;
  background: linear-gradient(145deg, rgba(255,255,255,0.45) 0%, rgba(220,220,220,0.3) 100%);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.5);
  opacity: 0;
  transform: translateX(-20px);
  animation: slideLeft 0.7s ease-out 0.3s forwards;
}

.product-page .product-image img {
  width: 100%;
  object-fit: contain;
}

.product-page .product-info {
  flex: 1;
  opacity: 0;
  transform: translateX(20px);
  animation: slideRight 0.7s ease-out 0.5s forwards;
}

.product-page .product-info h1 { margin-top: 0; }

.product-page .product-info ul {
  font-size: 14px;
  color: var(--silver-600);
  margin: 14px 0;
  padding-left: 22px;
  line-height: 2;
}

.product-page .product-info ul li { padding-left: 4px; }
.product-page .product-info ul li::marker { color: var(--red); }

/* Linear variants */
.linear-variants {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.linear-variant {
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.15) 100%);
  border-radius: var(--radius-sm);
  padding: 16px 10px;
  border: 1px solid rgba(255,255,255,0.4);
  transition: all 0.3s;
  opacity: 0;
  animation: fadeUp 0.5s ease-out forwards;
}

.linear-variant:nth-child(1) { animation-delay: 0.4s; }
.linear-variant:nth-child(2) { animation-delay: 0.5s; }
.linear-variant:nth-child(3) { animation-delay: 0.6s; }
.linear-variant:nth-child(4) { animation-delay: 0.7s; }

.linear-variant:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.linear-variant img {
  width: 100%;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
}

.linear-variant p {
  font-size: 12px;
  color: var(--silver-600);
  font-weight: 500;
}

/* ---- DOWNLOADS PAGE ---- */

/* Downloads hero */
.dl-hero {
  background: var(--silver-300);
  padding: 40px 0 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.dl-hero .geo-squares {
  position: absolute;
  inset: 0;
  width: 100%;
  pointer-events: none;
  z-index: 0;
}

.dl-hero .geo-sq { background: #bbb; }

.dl-hero .geo-sq:nth-child(1)  { width: 55px; height: 55px; top: 5%;  left: 3%;  }
.dl-hero .geo-sq:nth-child(2)  { width: 70px; height: 70px; top: 20%; left: 12%; }
.dl-hero .geo-sq:nth-child(3)  { width: 40px; height: 40px; top: 50%; left: 5%;  }
.dl-hero .geo-sq:nth-child(4)  { width: 60px; height: 60px; top: 70%; left: 15%; }
.dl-hero .geo-sq:nth-child(5)  { width: 45px; height: 45px; top: 10%; left: 28%; }
.dl-hero .geo-sq:nth-child(6)  { width: 65px; height: 65px; top: 60%; left: 25%; }
.dl-hero .geo-sq:nth-child(7)  { width: 50px; height: 50px; top: 8%;  right: 5%; }
.dl-hero .geo-sq:nth-child(8)  { width: 75px; height: 75px; top: 25%; right: 10%;}
.dl-hero .geo-sq:nth-child(9)  { width: 40px; height: 40px; top: 55%; right: 3%; }
.dl-hero .geo-sq:nth-child(10) { width: 60px; height: 60px; top: 15%; right: 25%;}
.dl-hero .geo-sq:nth-child(11) { width: 50px; height: 50px; top: 65%; right: 18%;}
.dl-hero .geo-sq:nth-child(12) { width: 35px; height: 35px; top: 40%; right: 8%; }

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

.dl-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.dl-hero h1 {
  font-size: 36px;
  font-weight: 300;
  color: var(--silver-800);
  margin-bottom: 8px;
}

.dl-hero h1 { position: relative; display: inline-block; }
.dl-hero h1::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(200,200,200,0.2) 0%, var(--red-light) 30%, var(--red) 50%, var(--red-light) 70%, rgba(200,200,200,0.2) 100%);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.dl-hero h1.line-visible::after { transform: scaleX(1); }

.dl-hero p {
  font-size: 15px;
  color: var(--silver-600);
  margin-bottom: 30px;
}

/* Tabs */
.dl-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: none;
}

.dl-tab {
  padding: 12px 32px;
  font-family: 'Titillium Web', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--silver-600);
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.dl-tab:hover { color: var(--silver-800); }

.dl-tab.active {
  color: var(--red);
}

.dl-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--silver-400);
  transition: background 0.3s;
}

.dl-tab.active::after {
  background: var(--red);
}

/* Download content */
.dl-content {
  background: var(--silver-200);
  padding: 40px 0 60px;
  flex: 1;
}

.dl-content-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.dl-panel {
  display: none;
}

.dl-panel.active {
  display: block;
}

/* Download card grid */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dl-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: linear-gradient(145deg, rgba(255,255,255,0.5), rgba(255,255,255,0.15));
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
}

.dl-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(139,26,26,0.15);
}

.dl-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-family: 'Titillium Web', monospace;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.dl-icon-exe {
  background: linear-gradient(135deg, var(--silver-700), var(--silver-800));
}

.dl-info h3 {
  font-size: 11px;
  font-weight: 500;
  color: var(--silver-800);
  margin-bottom: 0;
  font-family: 'Inter', sans-serif;
}

.dl-info strong {
  font-family: 'Consolas', monospace;
  font-weight: 700;
}

.dl-action {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s;
}

.dl-card:hover .dl-action {
  opacity: 1;
}

@media (max-width: 900px) {
  .dl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-tab { padding: 10px 18px; font-size: 13px; }
  .dl-action { opacity: 1; }
}

@media (max-width: 700px) {
  .dl-action { opacity: 1; }
}

/* Legacy download styles (keep for compatibility) */
.download-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

.download-heading {
  font-size: 11px;
  font-weight: 700;
  color: var(--silver-700);
  text-align: center;
  padding: 12px 0;
  margin-bottom: 12px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, rgba(200,200,200,0.35) 100%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: var(--radius-sm);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.download-list {
  list-style: none;
}

.download-list li {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  font-size: 13px;
  border-radius: 4px;
  transition: background 0.2s;
}

.download-list li:hover { background: rgba(255,255,255,0.3); }
.download-list li:last-child { border-bottom: none; }
.download-list a { color: var(--silver-700); transition: color 0.2s; }
.download-list a:hover { color: var(--red); }
.download-list strong { font-family: 'Consolas', monospace; font-weight: 700; }

/* Contact */
.contact-map-full {
  width: 100%;
  height: 420px;
  filter: grayscale(1);
  transition: filter 0.4s;
}

.contact-map-full:hover {
  filter: grayscale(0);
}

.contact-map-full iframe {
  display: block;
  pointer-events: none;
}

.contact-map-full:hover iframe {
  pointer-events: auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-row svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-row strong {
  display: block;
  font-family: 'Titillium Web', sans-serif;
  font-size: 12px;
  color: var(--silver-700);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-row p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--silver-600);
  margin: 0;
}

.contact-row a { color: var(--red); font-weight: 500; }
.contact-row a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .contact-map-full { height: 280px; }
  .contact-full > *:not(.geo-squares) {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .contact-row p { font-size: 12px; }
  .contact-row a { word-break: break-all; }
}

@media (max-width: 480px) {
  .contact-map-full { height: 220px; }
  .contact-row {
    flex-direction: column;
    gap: 6px;
  }
  .contact-row svg { margin-top: 0; }
  .contact-info { gap: 16px; }
}

@media (max-width: 700px) {
  .content-area .geo-squares,
  .products-intro .geo-squares,
  .dl-hero .geo-squares,
  .pd-hero-inner .geo-squares { display: none; }
}

/* Company page layout — text left, image right */
.company-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 10px;
}

.company-text p {
  font-size: 14px;
  color: var(--silver-600);
  line-height: 1.9;
  margin-bottom: 16px;
}

.company-img {
  text-align: center;
}
.company-img img {
  width: 100%;
  max-width: 360px;
}

.company-img p {
  font-size: 12px;
  color: var(--silver-500);
  margin-top: 8px;
  font-style: italic;
  text-align: center;
}

/* Loading bar */
.loading-bar {
  height: 2px;
  background: rgba(0,0,0,0.06);
  position: relative;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 1px;
}

.loading-bar::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--silver-500), var(--red));
  border-radius: 1px;
  animation: loadingBar 1s ease-out forwards;
}

/* ---- FOOTER ---- */
.site-footer {
  background: linear-gradient(180deg, var(--silver-800) 0%, var(--silver-900) 40%, #1a1a1a 100%);
  color: var(--silver-500);
  padding: 50px 0 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { }

.footer-logo {
  height: 68px;
  margin-bottom: 14px;
  filter: brightness(1.5);
  opacity: 0.7;
}

.footer-grid h4 {
  font-size: 11px;
  color: var(--silver-400);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.footer-grid p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--silver-600);
}

.footer-grid a {
  color: var(--silver-500);
  transition: color 0.2s;
}

.footer-grid a:hover { color: var(--silver-200); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 18px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--silver-700);
}

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromLeft {
  0% { opacity: 0; transform: translateX(-20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInFromRight {
  0% { opacity: 0; transform: translateX(20px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes loadingBar {
  from { width: 0; }
  to { width: 100%; }
}

/* ---- BURGER MENU ---- */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--silver-700);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Burger -> X animation */
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- RESPONSIVE ---- */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    min-height: auto;
    padding: 20px 24px;
  }

  .hero-left { padding: 10px 0; min-height: 200px; max-width: 100%; }
  .hero-content { padding-top: 6px; margin-top: 10px; }
  .hero-title { font-size: 22px; }
  .hero-right { width: 100%; margin-top: -120px; position: relative; z-index: 2; }
  .hero .geo-squares { opacity: 0.7; transform: scale(0.7); transform-origin: top left; z-index: 1; }
  .hero-logo img { max-height: 28px !important; }

  .slideshow { height: 260px; }

  .product-grid { grid-template-columns: 1fr; }
  .product-card { flex-direction: row; }
  .product-card-img { width: 160px; height: auto; }

  .showcase-card { flex-direction: column; }
  .showcase-img { width: 100%; height: 200px; }
  .linear-showcase { grid-template-columns: repeat(2, 1fr); }
  .controller-banner { flex-direction: column; }
  .controller-img { width: 100%; height: 180px; }

  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-img { order: -1; }
  .about-img img { max-width: 400px; margin: 0 auto; display: block; }

  .features { grid-template-columns: 1fr 1fr; }
  .features-banner { flex-wrap: wrap; gap: 15px; padding: 20px 15px; }
  .feat-stat { padding: 0 15px; }
  .section-features { padding: 0; }
  .feat-divider { display: none; }
  .home-products { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-logo { height: 44px; }

  .content-area { padding: 40px 24px 70px; }
  .section-inner { padding: 0 24px; }
}

/* Mobile - burger menu */
@media (max-width: 700px) {
  /* Shrink squares on mobile, hide a few to avoid overlap */
  .geo-sq:nth-child(n+16) { display: none; }

  .content-area .geo-sq:nth-child(1)  { left: 1%;  top: 3%;  }
  .content-area .geo-sq:nth-child(2)  { right: 2%; left: auto; top: 10%; }
  .content-area .geo-sq:nth-child(3)  { left: 5%;  top: 20%; }
  .content-area .geo-sq:nth-child(4)  { right: 8%; left: auto; top: 28%; }
  .content-area .geo-sq:nth-child(5)  { left: 2%;  top: 36%; }
  .content-area .geo-sq:nth-child(6)  { right: 3%; left: auto; top: 44%; }
  .content-area .geo-sq:nth-child(7)  { left: 8%;  top: 52%; }
  .content-area .geo-sq:nth-child(8)  { right: 5%; left: auto; top: 60%; }
  .content-area .geo-sq:nth-child(9)  { left: 3%;  top: 68%; }
  .content-area .geo-sq:nth-child(10) { right: 2%; left: auto; top: 76%; }
  .content-area .geo-sq:nth-child(11) { left: 6%;  top: 84%; }
  .content-area .geo-sq:nth-child(12) { right: 7%; left: auto; top: 90%; }
  .content-area .geo-sq:nth-child(13) { left: 35%; top: 15%; }
  .content-area .geo-sq:nth-child(14) { left: 40%; top: 45%; }
  .content-area .geo-sq:nth-child(15) { left: 30%; top: 75%; }

  .burger {
    display: flex;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 80px 0 30px;
    background: #d8d8d8;
    border-left: 1px solid rgba(0,0,0,0.15);
    box-shadow: -8px 0 30px rgba(0,0,0,0.2);
    border-radius: 0;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .main-nav.nav-open {
    transform: translateX(0);
  }

  /* Overlay - only covers left side, not behind the nav */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 280px;
    background: transparent;
    z-index: 9998;
    pointer-events: none;
  }

  .nav-overlay.visible {
    pointer-events: auto;
  }

  .burger {
    z-index: 10000;
  }

  .nav-item {
    height: auto;
    padding: 14px 28px;
    font-size: 15px;
    border-right: none;
    border-left: none;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    opacity: 1;
    animation: none;
  }

  .nav-item::before {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    width: 3px;
    height: 0;
    border-radius: 0;
    transition: height 0.25s ease;
  }

  .nav-item:hover::before {
    left: 0;
    right: auto;
    width: 3px;
    height: 100%;
    background: var(--red);
    transition: height 0.25s ease;
  }

  .nav-item.active::before {
    left: 0;
    right: auto;
    width: 3px;
    height: 100%;
    background: var(--red);
  }

  .nav-item.active {
    background: rgba(139, 26, 26, 0.06);
  }

  .company-layout {
    grid-template-columns: 1fr;
  }
  .company-img { order: -1; }
  .company-img img { max-width: 300px; margin: 0 auto; display: block; }

  .hero-inner {
    padding: 30px 20px;
  }

  .hero-title { font-size: 28px; }
  .hero-eyebrow { font-size: 11px; }
  .hero-sub { font-size: 14px; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .hero-cta .btn { text-align: center; justify-content: center; }

  .slideshow { height: 240px; }
  .slide img { max-height: 220px; }

  .features { grid-template-columns: 1fr; }
  .home-products { grid-template-columns: repeat(2, 1fr); }
  .feat-num { font-size: 22px; }
  .features-banner { padding: 15px 10px; gap: 10px; }
  .feat-stat { padding: 0 10px; }
  .feat-label { font-size: 9px; }
  .products-header { flex-direction: column; }

  .product-card { flex-direction: column; }
  .product-card-img { width: 100%; height: 150px; }

  .section { padding: 50px 0; }
  .section-title { font-size: 24px; }

  .content-area { padding: 30px 18px 60px; }
  .content-area h1 { font-size: 26px; }

  .product-page { flex-direction: column; gap: 25px; }
  .product-page .product-image { width: 100%; }

  .linear-variants { grid-template-columns: repeat(2, 1fr); }
  .download-columns { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  .products-hero h1 { font-size: 28px; }
  .products-hero { padding: 40px 0 35px; }
  .products-section { padding: 40px 0; }
  .linear-showcase { grid-template-columns: repeat(2, 1fr); }
  .showcase-body { padding: 20px; }
  .showcase-body h3 { font-size: 17px; }
  .controller-body { padding: 20px; }
  .controller-body h3 { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }

  .about-grid { gap: 24px; }
}

/* Small phones */
@media (max-width: 400px) {
  /* Slightly smaller on tiny screens */
  .geo-sq:nth-child(n+13) { display: none; }

  .header-inner { padding: 0 16px; height: 60px; }
  .logo img { height: 44px; }

  .hero-inner { padding: 24px 16px; }
  .hero-title { font-size: 24px; }

  .content-area { padding: 24px 14px 50px; }
  .section-inner { padding: 0 16px; }

  .nav-item { padding: 12px 22px; font-size: 14px; }

  .linear-variants { grid-template-columns: 1fr; }
}
