/* ── Global Reset & Base Styles ── */
:root {
  /* Color Palette — Architectural Light Theme */
  --clr-bg: #f8fafc;            /* Luminous Slate Canvas */
  --clr-bg-2: #ffffff;          /* Pure White Card Surface */
  --clr-navy: #0f172a;          /* Deep Slate Navy (Primary Text/Headings) */
  --clr-navy-light: #1e293b;    /* Secondary Slate Navy */
  --clr-brand-blue: #0284c7;    /* Engineering Steel Blue */
  --clr-accent: #ea580c;        /* Industrial Safety Amber Accent */
  --clr-accent-hover: #c2410c;  /* Dark Amber Hover */
  --clr-accent-gold: #d97706;   /* Certificate Gold Accent */
  --clr-text-1: #1e293b;        /* Main Body Text */
  --clr-text-2: #475569;        /* Muted Secondary Text */
  --clr-text-3: #64748b;        /* Subtle Caption Text */
  --clr-border: #e2e8f0;        /* Light Border Divider */
  --clr-border-2: #cbd5e1;      /* Mid Border */
  --clr-positive: #16a34a;      /* Safety Green */
  
  /* Glassmorphism & Elevation Shadows */
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.08), 0 2px 4px rgba(15,23,42,0.04);
  --shadow-lg: 0 12px 24px rgba(15,23,42,0.12), 0 4px 8px rgba(15,23,42,0.06);
  --shadow-glow: 0 0 25px rgba(234,88,12,0.25);
  
  /* Typography & Layout Tokens */
  --font-head: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --nav-h: 76px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text-1);
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Typography & Section Helpers ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--clr-navy);
  line-height: 1.2;
}

.grad-text {
  background: linear-gradient(135deg, var(--clr-accent) 0%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: 5rem;
  position: relative;
}

.section-alt {
  background: #ffffff;
  border-block: 1px solid var(--clr-border);
}

.section-slate {
  background: #f1f5f9;
  border-bottom: 1px solid var(--clr-border);
}

.section-eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--clr-accent);
  background: #fff7ed;
  padding: .3rem .8rem;
  border-radius: var(--radius-sm);
  margin-bottom: .8rem;
  border: 1px solid #ffedd5;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: 1.15rem;
  color: var(--clr-text-2);
  max-width: 720px;
  line-height: 1.7;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-header-center {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header-center .section-lead {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: .8rem 1.6rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--clr-accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--clr-accent-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--clr-navy);
  border-color: var(--clr-border-2);
}

.btn-outline:hover {
  border-color: var(--clr-navy);
  background: #ffffff;
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--clr-navy);
  color: #ffffff;
}

.btn-navy:hover {
  background: var(--clr-navy-light);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.1rem;
}

/* ── Navigation Bar ── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  z-index: 1000;
  transition: var(--transition);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.nav-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--clr-navy);
  padding-block: 1rem;
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--clr-accent);
}

.nav-link .chevron {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-item:hover .chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #ffffff;
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: .8rem 0;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1010;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: .6rem 1.4rem;
  font-size: .95rem;
  color: var(--clr-navy);
  font-weight: 500;
  transition: var(--transition);
}

.nav-dropdown a:hover, .nav-dropdown a.active {
  background: #f8fafc;
  color: var(--clr-accent);
  padding-left: 1.8rem;
}

.nav-cta {
  margin-left: 1rem;
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1020;
}

.nav-toggle span {
  width: 100%;
  height: 3px;
  background: var(--clr-navy);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 999;
  padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav-link {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--clr-navy);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: .8rem;
}

.mobile-nav-link.sub {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--clr-text-2);
  padding-left: 1rem;
}

/* ── Hero Section ── */
#hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 6rem;
  background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
  position: relative;
  overflow: hidden;
}

.blueprint-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: #ffffff;
  border: 1px solid var(--clr-border);
  padding: .5rem 1.2rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--clr-navy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.8rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clr-positive);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 4.8rem);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
  max-width: 960px;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--clr-text-2);
  max-width: 720px;
  margin-bottom: 2.8rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* Wide Hero Video Stage */
.hero-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  background: #000000;
}

.hero-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay-text {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: .5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,0.15);
}

.hero-video-controls {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: .8rem;
}

.video-control-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.video-control-btn:hover {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
}

/* Hero Metric Counter Bar */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-md);
  margin-top: 3rem;
}

.hero-stat-item {
  text-align: center;
}

.hero-stat-num {
  font-family: var(--font-head);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--clr-navy);
  line-height: 1;
}

.hero-stat-label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--clr-text-3);
  margin-top: .4rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Interactive Estimator Widget ── */
.estimator-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: start;
}

.estimator-inputs {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.estimator-field {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.estimator-label {
  display: flex;
  justify-content: space-between;
  font-size: .95rem;
  font-weight: 700;
  color: var(--clr-navy);
}

.estimator-value-badge {
  font-family: var(--font-mono);
  color: var(--clr-accent);
  background: #fff7ed;
  padding: .2rem .6rem;
  border-radius: 4px;
}

.estimator-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  accent-color: var(--clr-accent);
  cursor: pointer;
}

.estimator-results {
  background: var(--clr-navy);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.estimator-res-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.estimator-res-label {
  font-size: .9rem;
  color: #94a3b8;
}

.estimator-res-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
}

.estimator-res-val.highlight {
  color: #fbbf24;
  font-size: 1.8rem;
}

/* ── Product Cards (Bright Theme) ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2.5rem;
}

.product-card-v2 {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card-v2:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-border-2);
}

.product-card-v2-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: #f1f5f9;
  overflow: hidden;
  position: relative;
}

.product-card-v2-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-v2-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tags {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
}

.tag-primary {
  background: #e0f2fe;
  color: var(--clr-brand-blue);
  font-size: .75rem;
  font-weight: 800;
  padding: .3rem .7rem;
  border-radius: 4px;
}

.tag-cert {
  background: #dcfce7;
  color: var(--clr-positive);
  font-size: .75rem;
  font-weight: 800;
  padding: .3rem .7rem;
  border-radius: 4px;
}

.product-card-v2 h3 {
  color: var(--clr-navy);
  margin-bottom: .8rem;
}

.product-card-v2 p {
  font-size: .95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-link {
  font-weight: 700;
  color: var(--clr-accent);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: var(--transition);
}

.product-link:hover {
  gap: .7rem;
  color: var(--clr-navy);
}

/* ── CEO Spotlight Section ── */
.ceo-spotlight {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--clr-border);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.ceo-portrait-wrap {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
}

.ceo-portrait-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.ceo-quote-mark {
  font-family: serif;
  font-size: 5rem;
  color: var(--clr-accent);
  line-height: 1;
  opacity: 0.3;
  margin-bottom: -2rem;
}

.ceo-statement {
  font-size: 1.2rem;
  color: var(--clr-navy);
  line-height: 1.8;
  font-weight: 500;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ── Patents & Certificate Gallery Lightbox ── */
.cert-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.8rem;
}

.cert-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-accent);
}

.cert-card img {
  max-height: 240px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

/* Modal Lightbox */
.cert-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cert-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.cert-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: #ffffff;
  padding: 1rem;
}

.cert-lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #ffffff;
  font-size: 2.5rem;
  cursor: pointer;
}

/* ── Specs Table (Bright Modern Style) ── */
.spec-table-wrap {
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: .95rem;
}

.spec-table th {
  background: var(--clr-navy);
  color: #ffffff;
  font-family: var(--font-head);
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  letter-spacing: .03em;
}

.spec-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--clr-border);
  color: var(--clr-text-1);
}

.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:nth-child(even) { background: #f8fafc; }

/* ── Footer ── */
#footer {
  background: var(--clr-navy);
  color: #ffffff;
  padding-block: 5rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-desc { color: #94a3b8; font-size: .95rem; margin-top: 1rem; }
.footer-col-title { font-family: var(--font-head); font-size: 1.25rem; color: #ffffff; margin-bottom: 1.2rem; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; }
.footer-links a { color: #94a3b8; font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--clr-accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: #94a3b8; }
.footer-bottom-links a:hover { color: var(--clr-accent); }

/* ── Responsive Layouts & Mobile Optimization ── */
@media (max-width: 1024px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .estimator-grid, .node-content-grid, .ceo-spotlight, .comparison-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding-block: 3.5rem; }
  .container { padding-inline: 1.25rem; }
  
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.15; }
  .hero-sub { font-size: 1rem; line-height: 1.6; }
  .hero-video-stage { border-radius: var(--radius-md); }
  .hero-video-overlay-text { font-size: .75rem; padding: .3rem .75rem; }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  
  .spec-table-wrap {
    margin-inline: -1.25rem;
    border-radius: 0;
    border-inline: none;
    -webkit-overflow-scrolling: touch;
  }
  .spec-table th, .spec-table td {
    padding: .8rem 1rem;
    font-size: .85rem;
    white-space: nowrap;
  }
  
  .ceo-spotlight {
    padding: 1.8rem;
    gap: 2rem;
  }
  
  .estimator-card {
    padding: 1.8rem;
  }
  .estimator-results {
    padding: 1.5rem;
  }
  .estimator-res-val {
    font-size: 1.2rem;
  }
  
  .cert-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.2rem;
  }
  .cert-card {
    padding: .8rem;
  }
  .cert-card img {
    max-height: 180px;
  }

  .cert-lightbox {
    padding: 1rem;
  }
  .cert-lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }
  .cert-lightbox-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .hero-stats-bar { grid-template-columns: 1fr; gap: 1rem; padding: 1.2rem; }
  .hero-stat-num { font-size: 2.2rem; }
  .hero-stat-label { font-size: .8rem; }
  
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: .8rem; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  .hero-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; text-align: center; justify-content: center; }
  
  .mobile-nav {
    padding-top: calc(var(--nav-h) + 1rem);
    padding-inline: 1.5rem;
  }
  .mobile-nav-link {
    font-size: 1.15rem;
    padding-block: .75rem;
  }
}
