/* =========================================================
   ATS-IoT — Stylesheet
   Brand: navy / steel / amber
   Type: Space Grotesk (display) · Inter (body) · IBM Plex Mono (data)
   ========================================================= */

:root {
  /* Navy */
  --navy-950: #071322;
  --navy-900: #0c1f36;
  --navy-800: #123152;
  --navy-700: #1a4270;
  --navy-600: #24548c;

  /* Steel */
  --steel-700: #45566a;
  --steel-500: #647689;
  --steel-300: #a9b8c6;
  --steel-150: #d7e0e8;
  --steel-100: #eef2f6;

  /* Amber accent */
  --amber-600: #c96a12;
  --amber-500: #e8871e;
  --amber-400: #f2a13c;
  --amber-100: #fdf1e2;

  /* Neutrals */
  --white: #ffffff;
  --ink: #0c1f36;
  --line: #e2e8ee;

  /* Type */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card: 0 1px 2px rgba(12, 31, 54, 0.06), 0 8px 24px rgba(12, 31, 54, 0.06);
  --shadow-lift: 0 12px 32px rgba(12, 31, 54, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-500);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-500);
  color: var(--navy-950);
}
.btn-primary:hover { background: var(--amber-400); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }
.btn-navy {
  background: var(--navy-900);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-800); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---------- Header ---------- */
.topbar {
  background: var(--navy-950);
  color: var(--steel-300);
  font-size: 12.5px;
  font-family: var(--font-mono);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 7px;
  padding-bottom: 7px;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: var(--steel-300); }
.topbar a:hover { color: var(--amber-400); }
.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  padding: 2px 8px;
  border-radius: 4px;
}
.lang-switch a.active { background: var(--amber-500); color: var(--navy-950); font-weight: 600; }

.site-header {
  background: var(--navy-900);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(155deg, var(--amber-500), var(--amber-600));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy-950);
  font-size: 16px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; }
.brand-text span { font-size: 11px; color: var(--steel-300); font-family: var(--font-mono); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a {
  color: var(--steel-150);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--amber-500);
}
.header-actions { display: flex; align-items: center; gap: 16px; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 700px 500px at 85% 0%, rgba(232,135,30,0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 78px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 60px;
}
.hero-title { font-size: 46px; margin-bottom: 22px; }
.hero-title .line-accent { color: var(--amber-400); }
.hero-desc { color: var(--steel-300); font-size: 16.5px; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
}
.hero-stat span { font-size: 12.5px; color: var(--steel-300); font-family: var(--font-mono); }

.hero-visual { position: relative; }

/* ---------- Network diagram (signature element) ---------- */
.net-diagram {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(6px);
}
.net-diagram svg { width: 100%; height: auto; display: block; }
.net-node-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  fill: var(--steel-300);
}
.net-node-title {
  font-family: var(--font-display);
  font-size: 13px;
  fill: var(--white);
  font-weight: 600;
}

/* ---------- Category strip ---------- */
.section { padding: 88px 0; }
.section-header { max-width: 640px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title { font-size: 32px; }
.section-desc { color: var(--steel-700); font-size: 16px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.cat-card:hover { border-color: var(--amber-500); box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.cat-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--amber-400);
}
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { font-size: 13.5px; color: var(--steel-700); margin-bottom: 0; }
.cat-count {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--amber-600);
  position: absolute;
  top: 24px; right: 24px;
}

/* ---------- Product cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lift); border-color: var(--steel-300); transform: translateY(-3px); }
.product-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.product-thumb svg { width: 62%; height: 62%; }
.product-thumb .cat-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(255,255,255,0.1);
  color: var(--steel-150);
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}
.product-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-model { font-family: var(--font-mono); font-size: 11.5px; color: var(--amber-600); font-weight: 600; margin-bottom: 6px; letter-spacing: 0.03em; }
.product-body h3 { font-size: 16px; margin-bottom: 8px; }
.product-body .tagline { font-size: 13px; color: var(--steel-700); margin-bottom: 16px; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.product-link { font-size: 13.5px; font-weight: 600; color: var(--navy-800); display: inline-flex; align-items: center; gap: 5px; }
.product-link:hover { color: var(--amber-600); }

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.why-item { display: flex; gap: 18px; }
.why-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--amber-500);
  border: 1px solid var(--amber-500);
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-item h3 { font-size: 16.5px; margin-bottom: 6px; }
.why-item p { font-size: 14px; color: var(--steel-700); margin-bottom: 0; }

.section-alt { background: var(--steel-100); }

/* ---------- Applications ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.app-card {
  background: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(232,135,30,0.14), transparent 60%);
}
.app-card h3 { font-size: 15.5px; margin-bottom: 6px; position: relative; }
.app-card p { font-size: 12.5px; color: var(--steel-300); margin-bottom: 0; position: relative; }

/* ---------- OEM banner ---------- */
.oem-banner {
  background: linear-gradient(135deg, var(--amber-500), var(--amber-600));
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--navy-950);
}
.oem-banner h3 { font-size: 24px; margin-bottom: 8px; max-width: 480px; }
.oem-banner p { max-width: 480px; font-size: 14.5px; margin-bottom: 0; opacity: 0.85; }

/* ---------- CTA ---------- */
.cta-section {
  background: var(--navy-950);
  color: var(--white);
  text-align: center;
  padding: 80px 0;
}
.cta-section h2 { font-size: 30px; max-width: 560px; margin: 0 auto 14px; }
.cta-section p { color: var(--steel-300); max-width: 480px; margin: 0 auto 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--steel-300); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 13.5px; max-width: 320px; margin-top: 14px; }
.footer-col h4 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; font-family: var(--font-mono); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; font-size: 14px; }
.footer-col a:hover { color: var(--amber-400); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 12.5px; flex-wrap: wrap; gap: 8px;
}
.footer-bottom a:hover { color: var(--amber-400); }

/* ---------- Product detail page ---------- */
.breadcrumb { font-size: 13px; color: var(--steel-500); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--amber-600); }
.pd-hero { background: var(--steel-100); padding: 44px 0; }
.pd-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: start; }
.pd-visual {
  background: linear-gradient(155deg, var(--navy-900), var(--navy-800));
  border-radius: var(--radius-lg);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.pd-visual svg { width: 100%; height: 100%; }
.pd-model { font-family: var(--font-mono); color: var(--amber-600); font-weight: 600; font-size: 13px; margin-bottom: 10px; }
.pd-title { font-size: 30px; margin-bottom: 8px; }
.pd-tagline { color: var(--steel-700); font-size: 16px; margin-bottom: 20px; }
.pd-summary { font-size: 15px; color: var(--steel-700); margin-bottom: 26px; }
.pd-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.pd-quickspecs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.pd-quickspecs div { font-size: 13px; }
.pd-quickspecs .k { color: var(--steel-500); font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
.pd-quickspecs .v { font-weight: 600; margin-top: 2px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table td { padding: 13px 4px; font-size: 14.5px; }
.spec-table td:first-child { width: 240px; color: var(--steel-700); font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.03em; }
.spec-table td:last-child { font-weight: 500; }

.feature-list li {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber-100); color: var(--amber-600);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 12px; font-weight: 700;
  margin-top: 1px;
}

.app-pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.app-pill {
  background: var(--steel-100);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 500;
}

.variant-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.variant-table th {
  text-align: left; padding: 10px 12px;
  background: var(--navy-900); color: var(--white);
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em;
}
.variant-table th:first-child { border-radius: 8px 0 0 8px; }
.variant-table th:last-child { border-radius: 0 8px 8px 0; }
.variant-table td { padding: 12px; border-bottom: 1px solid var(--line); }
.variant-table tr:last-child td { border-bottom: none; }
.variant-table td:first-child { font-family: var(--font-mono); font-weight: 600; color: var(--amber-600); }

.pd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 56px 0 28px; }
.pd-tab-label {
  padding: 12px 4px; margin-right: 28px;
  font-weight: 600; font-size: 14.5px;
  color: var(--steel-500);
  border-bottom: 2px solid transparent;
}

/* ---------- Products / filter page ---------- */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 32px; flex-wrap: wrap;
}
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  padding: 9px 18px; border-radius: 20px;
  border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 500;
  background: var(--white);
  cursor: pointer;
}
.filter-pill:hover { border-color: var(--amber-500); }
.filter-pill.active { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.search-box {
  position: relative;
  min-width: 260px;
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 14px;
}
.search-box input:focus { outline: none; border-color: var(--amber-500); }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--steel-500); }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: var(--navy-900); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--steel-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 3px var(--amber-100);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-alert {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 24px;
}
.form-alert.success { background: #e7f6ec; color: #1e7a3c; border: 1px solid #b9e3c6; }
.form-alert.error { background: #fdecec; color: #b3261e; border: 1px solid #f3c2c0; }

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-info-card h3 { font-size: 18px; margin-bottom: 20px; }
.contact-info-row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info-row .ic { color: var(--amber-400); flex-shrink: 0; margin-top: 2px; }
.contact-info-row .lbl { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--steel-300); letter-spacing: 0.04em; margin-bottom: 3px; }
.contact-info-row .val { font-size: 14.5px; }

/* ---------- About page ---------- */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.about-stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; text-align: center; }
.about-stat strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--navy-900); }
.about-stat span { font-size: 13px; color: var(--steel-700); }

/* ---------- Breadcrumb / page hero (generic) ---------- */
.page-hero { background: var(--navy-950); color: var(--white); padding: 56px 0; }
.page-hero h1 { font-size: 34px; margin-bottom: 8px; }
.page-hero p { color: var(--steel-300); max-width: 560px; margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pd-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; background: var(--navy-950); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 24px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 18px; width: 100%; }
  .main-nav a.active::after { display: none; }
  .mobile-toggle { display: block; }
  .main-nav .btn-primary { margin-top: 8px; }
  .cat-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .oem-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-title { font-size: 30px; }
  .section { padding: 56px 0; }
  .about-stats { grid-template-columns: 1fr; }
}
