/* ============================================
   APEX SPM — Clean Industrial CSS System
   ============================================ */

:root {
  --gray-900: #1a1a2e;
  --gray-800: #2d3436;
  --gray-700: #3d4a4f;
  --gray-600: #55636d;
  --gray-300: #c8d0d8;
  --gray-100: #f0f2f5;
  --white: #ffffff;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #3b82f6;
  --blue-bg: #eff6ff;
  --green: #10b981;
  --red: #e63946;
  --amber: #f59e0b;
  --nav-bg: #1e3a5f;
  --hero-dark: #0f1923;
}

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

html { background: var(--hero-dark); overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-800);
  background: var(--hero-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  height: 64px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 24px;
}
.logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}
.logo-apex {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.08em;
}
.logo-sub {
  font-size: 0.55rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.2s;
  display: block;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }

.btn-nav {
  background: var(--blue) !important;
  color: var(--white) !important;
  font-weight: 600 !important;
  padding: 0.45rem 1rem !important;
  border-radius: 6px !important;
  margin-left: 4px;
}
.btn-nav:hover { background: var(--blue-dark) !important; }

/* Products Dropdown */
.has-dropdown > a::after { content: ' \25BC'; font-size: 0.6em; margin-left: 4px; opacity: 0.7; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 8px;
  min-width: 230px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  padding: 0.65rem 1.1rem;
  color: #374151 !important;
  font-size: 0.88rem !important;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0 !important;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown a:hover { background: #f3f4f6 !important; color: var(--nav-bg) !important; }
.has-dropdown:hover .dropdown { display: block; }

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,0.15);
}
.lang-switcher button {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.lang-switcher button:first-child {
  background: var(--white);
  color: var(--nav-bg);
  border: none;
}
.lang-switcher button:hover { background: rgba(255,255,255,0.15); }

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--hero-dark);
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, #1e3a5f 0%, #0f1923 60%, #1a2a4a 100%);
}
/* Grid pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,0.15);
  border: 1px solid rgba(37,99,235,0.3);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.3);
  transition: all 0.2s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.7); color: var(--white); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ===== TRUSTED BY ===== */
.trusted { padding: 28px 0; background: var(--white); border-bottom: 1px solid #e5e7eb; }
.trusted-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-bottom: 20px;
}
.trusted-logos { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trusted-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: #c0c8d0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-header { text-align: center; max-width: 620px; margin: 0 auto 52px; }
.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-header p { font-size: 1.05rem; color: var(--gray-600); line-height: 1.7; }

/* ===== PRODUCTS PREVIEW ===== */
.products-preview { background: var(--white); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 32px 28px;
  background: var(--white);
  position: relative;
  transition: all 0.25s;
}
.product-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}
.product-card.featured { border-color: var(--blue); background: linear-gradient(to bottom, var(--blue-bg), var(--white)); }
.featured-tag {
  position: absolute;
  top: -1px;
  right: 20px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.product-icon { font-size: 2.4rem; margin-bottom: 16px; color: var(--blue); }
.product-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.product-card p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 16px; line-height: 1.6; }
.product-specs {
  list-style: none;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--gray-100);
  border-radius: 8px;
}
.product-specs li {
  font-size: 0.8rem;
  color: var(--gray-700);
  padding: 4px 0;
  border-bottom: 1px solid #e5e7eb;
}
.product-specs li:last-child { border-bottom: none; }
.product-specs strong { color: var(--gray-800); }
.btn-card {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  padding: 8px 0;
}
.btn-card:hover { color: var(--blue-dark); }
.section-cta { text-align: center; margin-top: 40px; }
.btn-outline-dark {
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s;
}
.btn-outline-dark:hover { border-color: var(--blue); color: var(--blue); }

/* ===== INDUSTRIES ===== */
.industries { background: var(--gray-100); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.industry-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1.5px solid #e5e7eb;
  transition: all 0.25s;
}
.industry-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(37,99,235,0.08); }
.industry-num { font-size: 2.5rem; font-weight: 800; color: var(--gray-100); margin-bottom: 12px; line-height: 1; }
.industry-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.industry-card > p { font-size: 0.88rem; color: var(--gray-600); margin-bottom: 14px; line-height: 1.6; }
.industry-card ul { list-style: none; margin-bottom: 18px; }
.industry-card ul li { font-size: 0.82rem; color: var(--gray-700); padding: 4px 0; padding-left: 16px; position: relative; }
.industry-card ul li::before { content: '\2713'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.industry-card > a { font-size: 0.85rem; font-weight: 600; color: var(--blue); text-decoration: none; display: inline-block; }
.industry-card > a:hover { color: var(--blue-dark); }

/* ===== WHY APEX ===== */
.why-apex { background: var(--white); }
.why-grid { display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: start; }
.why-text h2 { font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; letter-spacing: -0.02em; }
.why-sub { font-size: 1rem; color: var(--gray-600); margin-bottom: 36px; }
.advantage-list { display: flex; flex-direction: column; gap: 24px; }
.advantage { display: flex; gap: 16px; align-items: flex-start; }
.adv-icon { font-size: 1.6rem; flex-shrink: 0; width: 36px; text-align: center; }
.advantage h4 { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.advantage p { font-size: 0.88rem; color: var(--gray-600); line-height: 1.6; }
.why-cta { position: sticky; top: 80px; }
.cta-box {
  background: linear-gradient(160deg, #1a1a2e, #0f1923);
  border-radius: 16px;
  padding: 36px 32px;
  color: var(--white);
}
.cta-box h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.cta-box p { font-size: 0.88rem; color: #94a3b8; margin-bottom: 20px; line-height: 1.6; }
.btn-block { display: block; text-align: center; width: 100%; }
.cta-note { text-align: center; font-size: 0.78rem !important; color: #64748b !important; margin-top: 12px !important; }

/* ===== QUOTE ===== */
.section-quote { background: var(--blue-bg); padding: 60px 0; border-top: 1px solid #dbeafe; border-bottom: 1px solid #dbeafe; }
.section-quote blockquote p { font-size: 1.25rem; font-weight: 500; color: var(--gray-800); font-style: italic; margin-bottom: 16px; line-height: 1.7; }
.section-quote cite { font-size: 0.88rem; font-weight: 600; color: var(--gray-600); font-style: normal; }

/* ===== FOOTER ===== */
.footer { background: var(--gray-900); color: #94a3b8; padding: 56px 0 28px; }
.footer-cta-row { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }
.btn-footer-pt { background: var(--red); color: var(--white); padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 0.85rem; }
.btn-footer-wa { background: #25D366; color: var(--white); padding: 0.6rem 1.2rem; border-radius: 6px; font-weight: 700; text-decoration: none; font-size: 0.85rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo-text { font-size: 1.4rem; font-weight: 900; color: var(--white); letter-spacing: 0.08em; margin-bottom: 10px; }
.footer-col p { font-size: 0.88rem; line-height: 1.6; margin-bottom: 8px; }
.footer-contact { margin-top: 12px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: #64748b; text-decoration: none; font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.75rem; color: #4b5563; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-cta { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 120px 0 60px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .section { padding: 52px 0; }
  .section-header h2 { font-size: 1.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
