/* ============================================================
   IONICS Corporate Website - Global Stylesheet
   Design: Two-tone (Navy + White), Modern & Sophisticated
   ============================================================ */

/* ── CSS Variables ───────────────────────────────────────── */
:root {
  /* Primary Palette - Two Tone */
  --primary-dark: #0B1D3A;
  --primary: #0F4C81;
  --primary-light: #1A6FB5;
  --accent: #00B4D8;
  --accent-light: #90E0EF;

  /* Neutral Palette */
  --white: #FFFFFF;
  --off-white: #F7F9FC;
  --light-gray: #EEF1F6;
  --mid-gray: #C5CDD8;
  --dark-gray: #4A5568;
  --text-primary: #1A202C;
  --text-secondary: #4A5568;
  --text-light: #718096;

  /* Functional */
  --success: #38B2AC;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(11,29,58,0.08);
  --shadow-md: 0 4px 14px rgba(11,29,58,0.1);
  --shadow-lg: 0 10px 40px rgba(11,29,58,0.12);
  --shadow-xl: 0 20px 60px rgba(11,29,58,0.15);

  /* Typography */
  --font-primary: 'Noto Sans KR', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', 'Noto Sans KR', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  max-width: 640px;
  color: var(--text-light);
}

.section-header {
  margin-bottom: 60px;
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-label {
  justify-content: center;
}

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

/* ── Navigation ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(11,29,58,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  z-index: 1001;
}

.nav-logo .logo-icon {
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 2px;
  line-height: 0;
}

.nav-logo .logo-icon img {
  height: 38px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.nav-logo span {
  color: var(--white);
  transition: color var(--transition-base);
}

.nav.scrolled .nav-logo span {
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white) !important;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.88rem;
  transition: all var(--transition-base);
}

.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition-base);
  border-radius: 2px;
}

.nav.scrolled .nav-toggle span {
  background: var(--text-primary);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: #04070f;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-canvas-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,18,38,0.82), rgba(10,45,90,0.75));
  z-index: 1;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  background-image:
    radial-gradient(circle at 20% 80%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 80% 20%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, var(--accent) 0.5px, transparent 0.5px);
  background-size: 60px 60px, 80px 80px, 40px 40px;
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-text { max-width: 640px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: var(--radius-xl);
  color: var(--accent-light);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  color: var(--accent);
  position: relative;
}

.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.12rem;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Hero (Instrument-panel style) ───────────────────── */
.vh-hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  clip-path: inset(0);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
  font-family: var(--font-primary);
  padding: 110px 0 80px;
}

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

/* Background layers — uses project palette: --primary-dark #0B1D3A, --primary #0F4C81, --accent #00B4D8 */
.vh-bg-photo {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  background-image: url('../images/hero-pcb.jpg');
  background-size: cover;
  background-position: 70% 70%;
  background-repeat: no-repeat;
  filter: brightness(0.82) contrast(1.10) saturate(0.7) blur(0.4px);
  opacity: 1;
}
.vh-bg-photo::before {
  /* Project primary blue tint (preserves luminosity of photo) */
  content: '';
  position: absolute; inset: 0;
  background: var(--primary);
  mix-blend-mode: color;
  opacity: 0.9;
}
.vh-bg-photo::after {
  /* Left-side darken (primary-dark) + cyan accent on right */
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 75% 65% at 78% 50%, rgba(0,180,216,0.16) 0%, transparent 65%),
    linear-gradient(110deg, rgba(11,29,58,0.70) 0%, rgba(15,76,129,0.18) 45%, rgba(15,76,129,0.08) 70%, rgba(11,29,58,0.28) 100%);
}
.vh-bg-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 75% 60% at 18% 35%, rgba(11,29,58,0.55) 0%, transparent 75%),
    radial-gradient(ellipse at 80% 60%, rgba(0,180,216,0.12) 0%, transparent 65%),
    linear-gradient(180deg, rgba(11,29,58,0.05) 0%, rgba(11,29,58,0.30) 100%);
}
.vh-bg-pcb {
  position: absolute; inset: 0; z-index: 1;
  opacity: 0.10;
  background-image:
    linear-gradient(90deg, rgba(0,180,216,0.12) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(0,180,216,0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(0,180,216,0.25) 1.5px, transparent 2px);
  background-size: 60px 60px, 60px 60px, 120px 120px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
.vh-bg-vignette {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 55%, rgba(0,5,18,0.30) 98%),
    linear-gradient(180deg, transparent 70%, rgba(0,5,18,0.40) 100%);
}
.vh-bg-scanline {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  opacity: 0.05;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.4) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

/* Flow traces overlay (under content, above bg) */
.vh-flowtraces {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}
@media (max-width: 900px) {
  .vh-flowtraces { display: none; }
}


/* Layout */
.vh-content { position: relative; z-index: 10; }
.vh-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
  position: relative;
  min-height: 560px;
}
.vh-text { max-width: 620px; position: relative; z-index: 2; }

/* Eyebrow badge */
.vh-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #D4F559;
  text-transform: uppercase;
  margin-bottom: 32px;
  padding: 6px 8px;
}
.vh-badge .vh-bracket {
  color: rgba(164,230,53,0.7);
  font-weight: 400;
  font-size: 1rem;
  font-family: var(--font-display);
}
.vh-badge .vh-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #A4E635;
  box-shadow: 0 0 10px rgba(164,230,53,0.9);
  animation: vhPulse 1.6s ease-in-out infinite;
}
@keyframes vhPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

/* Title */
.vh-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.vh-line { display: block; }
.vh-line-accent {
  color: #D4F559;
  text-shadow: 0 0 22px rgba(164,230,53,0.35);
}
/* Description */
.vh-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin: 0 0 36px;
  max-width: 520px;
}

/* Buttons */
.vh-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.vh-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 6px;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
  position: relative;
}
.vh-btn-primary {
  background: linear-gradient(90deg, #F87171 0%, #FB923C 100%);
  color: #1a0a0a;
  box-shadow: 0 0 0 1px rgba(248,113,113,0.5), 0 6px 22px -6px rgba(248,113,113,0.6);
}
.vh-btn-primary:hover {
  background: linear-gradient(90deg, #FA8080 0%, #FCA158 100%);
  box-shadow: 0 0 0 1px rgba(251,146,60,0.7), 0 10px 28px -6px rgba(251,146,60,0.8);
  transform: translateY(-1px);
}
.vh-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}
.vh-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Stats row */
.vh-stats {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.vh-stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.vh-stat-num span { color: #00B4D8; font-size: 1.2rem; margin-left: 2px; }
.vh-stat-lbl {
  font-size: 0.7rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 8px;
  font-weight: 600;
}
.vh-stat-sep {
  width: 1px; height: 28px;
  background: linear-gradient(180deg, transparent, rgba(0,180,216,0.4), transparent);
  margin-bottom: 4px;
}

/* Center chip */
.vh-center {
  position: absolute;
  left: calc(50% + 42px);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 360px;
  height: 500px;
  pointer-events: none;
  z-index: 1;
}
.vh-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.vh-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 156px;
  height: 156px;
  background: #000;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0,180,216,0.28);
  box-shadow: 0 0 0 1px rgba(0,180,216,0.08);
  z-index: 1;
}
.vh-chip i {
  font-size: 3.12rem;
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(0,180,216,0.6));
}
.vh-chip-corner {
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid #00B4D8;
  filter: drop-shadow(0 0 6px rgba(0,180,216,0.7));
}
/* 4 corner brackets positioned 2px inside each corner of the chip, radius follows chip curve */
.vh-chip-corner.tl { top: 2px;    left: 2px;   right: auto; bottom: auto; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.vh-chip-corner.tr { top: 2px;    right: 2px;  left: auto;  bottom: auto; border-left: 0;  border-bottom: 0; border-top-right-radius: 14px; }
.vh-chip-corner.bl { bottom: 2px; left: 2px;   right: auto; top: auto;    border-right: 0; border-top: 0;    border-bottom-left-radius: 14px; }
.vh-chip-corner.br { bottom: 2px; right: 2px;  left: auto;  top: auto;    border-left: 0;  border-top: 0;    border-bottom-right-radius: 14px; }
.vh-chip-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 156px;
  height: 156px;
  background: #00B4D8;
  border-radius: 24px;
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%) scale(1);
  mix-blend-mode: screen;
  animation: vhChipGlow 10s ease-in-out infinite;
}
@keyframes vhChipGlow {
  0%, 100% { opacity: 0.30; transform: translate(-50%, -50%) scale(1);   }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.8); }
}

/* Telemetry Card */
.vh-telemetry {
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 2;
}
.vh-card {
  position: relative;
  width: 100%;
  max-width: 388px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, rgba(8,18,38,0.75), rgba(4,10,22,0.85));
  border: 1px solid rgba(0,180,216,0.25);
  border-radius: 18px;
  padding: 22px 24px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  box-shadow:
    0 0 0 1px rgba(0,180,216,0.06),
    0 30px 60px rgba(0,0,0,0.5),
    0 0 50px -10px rgba(0,180,216,0.25);
}
.vh-card-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid #00B4D8;
}
.vh-card-corner.tl { top: 3px;    left: 3px;   border-right: 0; border-bottom: 0; border-top-left-radius: 13px; }
.vh-card-corner.tr { top: 3px;    right: 3px;  border-left: 0;  border-bottom: 0; border-top-right-radius: 13px; }
.vh-card-corner.bl { bottom: 3px; left: 3px;   border-right: 0; border-top: 0;    border-bottom-left-radius: 13px; }
.vh-card-corner.br { bottom: 3px; right: 3px;  border-left: 0;  border-top: 0;    border-bottom-right-radius: 13px; }

.vh-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.vh-card-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.vh-card-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--accent);
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(0,180,216,0.3);
  border-radius: 4px;
  background: rgba(0,180,216,0.05);
}

.vh-card-titlerow {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.vh-card-title {
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0;
}
.vh-card-ico { color: rgba(0,180,216,0.7); font-size: 0.95rem; }
.vh-card-meta {
  font-size: 0.68rem;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 600;
  margin-bottom: 8px;
}
.vh-card-meta strong { color: #fff; }
.vh-card-meta .vh-card-dim { color: rgba(255,255,255,0.3); }

.vh-channels { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 6px; }
.vh-channels li { display: flex; flex-direction: column; gap: 5px; }
.vh-row { display: flex; justify-content: space-between; align-items: center; }
.vh-row-name {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.vh-row-name b { color: #fff; font-weight: 700; margin-right: 4px; }
.vh-row-sub { color: rgba(255,255,255,0.45); }
.vh-row-val {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Progress bars */
.vh-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}
.vh-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  animation: vhBarGrow 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
  position: relative;
}
.vh-bar-fill.ok   { background: linear-gradient(90deg, #00B4D8, #38D7EA); box-shadow: 0 0 8px rgba(0,180,216,0.6); }
.vh-bar-fill.lime { background: linear-gradient(90deg, #A4E635, #D4F559); box-shadow: 0 0 8px rgba(164,230,53,0.5); }
.vh-bar-fill.warn { background: linear-gradient(90deg, #F87171, #FB923C); box-shadow: 0 0 8px rgba(248,113,113,0.5); }
@keyframes vhBarGrow { to { width: var(--w, 100%); } }

.vh-card-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,180,216,0.3), transparent);
  margin: 4px 0 10px;
}
.vh-card-subtitle {
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 700;
  margin-bottom: 6px;
}
.vh-card-chart { height: 42px; flex: 1; min-height: 0; }
.vh-card-chart svg { width: 100%; height: 100%; display: block; }
.vh-wave {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  filter: drop-shadow(0 0 6px rgba(0,180,216,0.5));
  animation: vhWaveDraw 3s ease-out 0.6s forwards, vhWavePulse 4s ease-in-out 4s infinite;
}
@keyframes vhWaveDraw  { to { stroke-dashoffset: 0; } }
@keyframes vhWavePulse { 50% { filter: drop-shadow(0 0 12px rgba(0,180,216,0.9)); } }

/* Bottom server strip */

/* Responsive */
@media (max-width: 1100px) {
  .vh-center { width: 280px; height: 360px; }
  .vh-chip { width: 124px; height: 124px; }
  .vh-chip i { font-size: 2.6rem; }
}
@media (max-width: 900px) {
  .vh-hero { padding: 90px 0 100px; }
  .vh-grid { grid-template-columns: 1fr; gap: 36px; min-height: 0; }
  .vh-center { display: none; }
  .vh-telemetry { justify-content: stretch; }
  .vh-card { max-width: 100%; }
  .vh-stats { flex-wrap: wrap; gap: 14px 18px; }
  .vh-stat-sep { display: none; }
}
@media (max-width: 480px) {
  .vh-actions { flex-direction: column; align-items: flex-start; }
  .vh-btn { width: 100%; justify-content: center; }
}

/* ── Hero Caret (blinking cursor next to highlight) ────── */
.hero h1 .hero-caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  background: var(--accent);
  margin-left: 8px;
  vertical-align: -0.08em;
  animation: heroCaretBlink 1.1s steps(2) infinite;
  box-shadow: 0 0 12px rgba(0,180,216,0.6);
}

@keyframes heroCaretBlink {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ── Hero Telemetry Card ───────────────────────────────── */
.hero-telemetry {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

.telemetry-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(180deg, rgba(10,28,55,0.72), rgba(7,18,38,0.78));
  border: 1px solid rgba(0,180,216,0.28);
  border-radius: 16px;
  padding: 22px 22px 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 60px rgba(0,0,0,0.45),
    0 0 0 1px rgba(0,180,216,0.08),
    0 0 40px -10px rgba(0,180,216,0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.telemetry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.telemetry-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--accent-light);
  text-transform: uppercase;
}

.telemetry-tag .t-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

.telemetry-trend {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #4ADE80;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.telemetry-titlerow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.telemetry-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}

.telemetry-icon {
  font-size: 1.05rem;
  color: var(--accent);
  opacity: 0.85;
}

.telemetry-target {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}

.telemetry-target strong {
  color: var(--accent-light);
  font-weight: 700;
}

.telemetry-channels {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.telemetry-channels li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
}

.telemetry-channels .ch-key {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--accent);
  padding: 2px 7px;
  background: rgba(0,180,216,0.10);
  border: 1px solid rgba(0,180,216,0.22);
  border-radius: 4px;
}

.telemetry-channels .ch-name {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.telemetry-channels .ch-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

.telemetry-channels .ch-status {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(74,222,128,0.18);
  color: #4ADE80;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
}

.telemetry-chart {
  height: 70px;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 8px;
}

.telemetry-chart svg {
  width: 100%;
  height: 100%;
  display: block;
}

.telemetry-wave {
  filter: drop-shadow(0 0 6px rgba(0,180,216,0.55));
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  animation: telemetryDraw 3.6s ease-out 0.3s forwards, telemetryPulse 4s ease-in-out 4s infinite;
}

@keyframes telemetryDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes telemetryPulse {
  50% { filter: drop-shadow(0 0 12px rgba(0,180,216,0.9)); }
}

/* ── Hero Bottom Strip ─────────────────────────────────── */
.hero-bottom-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 48px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}

.hero-bottom-strip .strip-ticks {
  flex: 1;
  height: 12px;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,180,216,0.35) 1px, transparent 1px);
  background-size: 24px 12px, 96px 12px;
  background-position: 0 50%, 0 50%;
  background-repeat: repeat-x;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-telemetry { justify-content: flex-start; }
  .telemetry-card { max-width: 100%; }
  .hero-bottom-strip { padding: 0 20px; font-size: 0.6rem; gap: 12px; }
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat .number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat .number span {
  color: var(--accent);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
}

/* ── Page Header (Sub Pages) ─────────────────────────────── */
.page-header {
  position: relative;
  padding: 160px 0 80px;
  background: linear-gradient(135deg, rgba(11, 29, 58, 0.82), rgba(15, 76, 129, 0.82)), url('../images/contact_bg.png') no-repeat center center;
  background-size: cover;
  overflow: hidden;
}

.page-header .hero-bg-pattern,
.page-header .hero-grid-lines {
  position: absolute;
  inset: 0;
}

.page-header .container {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.page-header p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  font-size: 0.7rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0,180,216,0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,180,216,0.4);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.btn-outline-dark {
  border: 2px solid var(--border);
  color: var(--text-primary);
}

.btn-outline-dark:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(15,76,129,0.05);
}

.btn-text {
  color: var(--primary);
  padding: 8px 0;
  font-weight: 600;
}

.btn-text:hover {
  color: var(--accent);
}

.btn-text .arrow {
  transition: transform var(--transition-base);
}

.btn-text:hover .arrow {
  transform: translateX(4px);
}

.btn-icon {
  font-size: 1.1em;
  transition: transform var(--transition-base);
}

/* ── Section Styles ──────────────────────────────────────── */
section {
  padding: var(--section-padding);
}

.bg-light {
  background: var(--off-white);
}

.bg-dark {
  background: var(--primary-dark);
}

.bg-gradient {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px;
  transition: all var(--transition-base);
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0,180,216,0.1), rgba(15,76,129,0.08));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  font-size: 0.95rem;
}

/* ── Production Process (탭 내부) ───────────────────────── */
.process-section {
  margin-top: 60px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  border: 1px solid var(--border);
}

.process-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.process-section-header i {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.process-step-item {
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
  transition: all 0.2s;
}

.process-step-item:hover {
  border-color: var(--primary-light);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(15,76,129,0.10);
}

.process-step-final {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-color: transparent;
  font-weight: 700;
}

.process-step-final:hover {
  color: #fff;
  box-shadow: 0 4px 12px rgba(15,76,129,0.30);
}

.process-arrow {
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Field List (주요 설계 분야 카드 내 목록) ──────────── */
.field-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-list li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid var(--border);
}

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

.field-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Fields Grid (항상 4열 고정) ─────────────────────────── */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.quality-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  grid-auto-rows: minmax(90px, auto);
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.map-section-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ── Capability Cards (horizontal) ──────────────────────── */
.capability-grid .card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
}

.capability-grid .card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-bottom: 0;
  font-size: 1.1rem;
  border-radius: 10px;
}

.capability-grid .card h3 {
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--primary);
}

.card-link:hover {
  color: var(--accent);
}

/* ── Grid Layouts ────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

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

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

/* ── Service Cards (Home) ────────────────────────────────── */
.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card .number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-card .tag {
  padding: 4px 12px;
  background: var(--off-white);
  border-radius: var(--radius-xl);
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ── Foundation Section (Next.js-style) ─────────────────── */
.foundation-section {
  background: #FAFBFC;
  padding: 120px 0 110px;
  position: relative;
  overflow: hidden;
}

.foundation-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15,76,129,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,76,129,0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
  pointer-events: none;
}

.foundation-header {
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  z-index: 2;
}

.foundation-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.foundation-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.foundation-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.foundation-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

/* Diagram (IC chip + animated traces, all in SVG) */
.foundation-diagram {
  position: relative;
  margin: 0 auto 28px;
  max-width: 1100px;
  z-index: 2;
}

.foundation-traces {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .foundation-traces animateMotion,
  .foundation-traces animate { display: none; }
}

/* Cards grid */
.foundation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.foundation-card {
  position: relative;
  background: #FFFFFF;
  border: 1px solid #E5E9F0;
  border-radius: 14px;
  padding: 28px 26px 26px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  box-shadow: 0 1px 2px rgba(11,29,58,0.04);
}

.foundation-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,180,216,0.6), rgba(15,76,129,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
}

.foundation-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,29,58,0.10), 0 4px 10px rgba(11,29,58,0.06);
  border-color: transparent;
}

.foundation-card:hover::after {
  opacity: 1;
}

.foundation-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,180,216,0.10), rgba(15,76,129,0.06));
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.foundation-card-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.foundation-card-title i {
  font-size: 0.7rem;
  color: var(--text-light);
  transition: transform var(--transition-base), color var(--transition-base);
}

.foundation-card:hover .foundation-card-title i {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.foundation-card-desc {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}

.foundation-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.foundation-tag {
  padding: 3px 10px;
  background: #F2F5FA;
  border: 1px solid #E5E9F0;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}

@media (max-width: 1024px) {
  .foundation-grid { grid-template-columns: repeat(2, 1fr); }
  .foundation-diagram { height: 160px; }
}

@media (max-width: 720px) {
  .foundation-section { padding: 80px 0 70px; }
  .foundation-grid { grid-template-columns: 1fr; gap: 16px; }
  .foundation-diagram { height: 120px; margin-bottom: 16px; }
  .foundation-traces { display: none; }
  .foundation-chip-body { padding: 12px 22px; }
}

/* ── Stats Section ───────────────────────────────────────── */
.stats-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-item .stat-number span {
  color: var(--accent);
}

.stat-item .stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}

/* ── Industries Section ──────────────────────────────────── */
.industry-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  background: var(--white);
  border: 1px solid var(--border);
}

.industry-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.industry-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--off-white), var(--light-gray));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
}

.industry-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.industry-card p {
  font-size: 0.82rem;
}

/* ── Partners / Clients ──────────────────────────────────── */
.partners-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scroll-track 30s linear infinite;
  padding: 20px 0;
}

.partner-logo {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mid-gray);
  opacity: 0.5;
  transition: opacity var(--transition-base);
  white-space: nowrap;
}

.partner-logo:hover {
  opacity: 1;
}

@keyframes scroll-track {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.partners-wrapper {
  overflow: hidden;
  position: relative;
}

.partners-wrapper::before,
.partners-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
}

.partners-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--white), transparent);
}

.partners-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--white), transparent);
}

.bg-light .partners-wrapper::before {
  background: linear-gradient(90deg, var(--off-white), transparent);
}

.bg-light .partners-wrapper::after {
  background: linear-gradient(-90deg, var(--off-white), transparent);
}

/* ── Timeline ────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 50px 60px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item .dot {
  position: absolute;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent);
}

.timeline-item:nth-child(odd) .dot {
  right: -7px;
}

.timeline-item:nth-child(even) .dot {
  left: -7px;
}

.timeline-item .year {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.timeline-item h4 {
  margin-bottom: 6px;
}

.timeline-item p {
  font-size: 0.9rem;
}

/* ── Cert Photo Grid ─────────────────────────────────────── */
.cert-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.cert-photo-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

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

.cert-photo-card img {
  width: 100%;
  height: auto;
  display: block;
}

.cert-photo-card p {
  padding: 10px 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── History Grid ────────────────────────────────────────── */
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 60px;
}

.history-col {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

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

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

.history-year {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
  min-width: 46px;
  flex-shrink: 0;
  padding-top: 2px;
}

.history-item h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.history-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Process Flow ────────────────────────────────────────── */
.process-flow {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.process-step {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
  text-align: center;
  position: relative;
}

.process-step::after {
  content: '→';
  position: absolute;
  right: -18px;
  top: 30px;
  font-size: 1.2rem;
  color: var(--mid-gray);
}

.process-step:last-child::after {
  display: none;
}

.process-circle {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
}

.process-step h4 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.85rem;
}

/* ── Tech Grid ───────────────────────────────────────────── */
.tech-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

.tech-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.tech-card h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 1rem;
}

.tech-card h4 .icon {
  color: var(--accent);
}

.tech-card p {
  font-size: 0.9rem;
}

/* ── News Cards ──────────────────────────────────────────── */
.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition-base);
}

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

.news-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 3rem;
}

.news-card-body {
  padding: 24px;
}

.news-card .news-date {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card p {
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(0,180,216,0.1);
  color: var(--accent);
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section .hero-bg-pattern {
  position: absolute;
  inset: 0;
}

.cta-section .container {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Contact Form Background & Card ─────────────────────── */
.contact-form-section {
  position: relative;
  background-color: var(--off-white);
}

.contact-form-card {
  background: var(--white);
  padding: 50px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  z-index: 2;
}

@media (max-width: 640px) {
  .contact-form-card {
    padding: 30px 20px;
  }
}

/* ── Contact Form ────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group label .required {
  color: #E53E3E;
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,180,216,0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%234A5568'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
}

/* ── Map Container ───────────────────────────────────────── */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  height: 400px;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-base);
}

.faq-item.active {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(0,180,216,0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  width: 100%;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  color: var(--text-primary);
  background: var(--white);
  cursor: pointer;
}

.faq-question .icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .footer-logo .logo-icon {
  border-radius: 8px;
  overflow: hidden;
  padding: 2px;
  line-height: 0;
  flex-shrink: 0;
}

.footer-brand .footer-logo .logo-icon img {
  height: 32px;
  width: auto;
  display: block;
  border-radius: 6px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}

.footer-contact-item .icon {
  color: #ffffff;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ── Scroll Animations ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 20px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  min-width: 160px;
}

.tab-btn-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.tab-btn-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  transition: color 0.25s ease;
}

.tab-btn-sub {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.tab-btn:hover {
  border-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15,76,129,0.12);
}

.tab-btn:hover .tab-btn-icon {
  background: rgba(15,76,129,0.08);
  color: var(--primary);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(15,76,129,0.30);
  transform: translateY(-2px);
}

.tab-btn.active .tab-btn-icon {
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.tab-btn.active .tab-btn-label {
  color: #fff;
}

.tab-btn.active .tab-btn-sub {
  color: rgba(255,255,255,0.70);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ── Contact Info Cards ──────────────────────────────────── */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.contact-info-card .icon-box {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info-card h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-info-card p {
  font-size: 0.88rem;
}

/* ── Content Layout ──────────────────────────────────────── */
.content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-split.reverse {
  direction: rtl;
}

.content-split.reverse > * {
  direction: ltr;
}

.content-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.content-image .placeholder-icon {
  font-size: 4rem;
  color: rgba(255,255,255,0.12);
}

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Certification badges */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.cert-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.cert-item .cert-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  background: var(--off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary);
}

.cert-item h4 {
  font-size: 0.85rem;
}

.cert-item p {
  font-size: 0.78rem;
  color: var(--text-light);
}

.cert-item.cert-item-photo {
  padding: 0;
  overflow: hidden;
}

.cert-item.cert-item-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.cert-item-body {
  padding: 12px 14px 16px;
  text-align: center;
}

/* Feature list */
.feature-list {
  display: grid;
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feature-item .card-icon {
  width: 60px;
  height: 60px;
  min-width: 60px;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0;
  flex-shrink: 0;
}

.feature-item .card-icon i {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item .check {
  width: 22px;
  height: 22px;
  background: rgba(0,180,216,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item p {
  font-size: 0.95rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cert-photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4,
  .fields-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .content-split {
    gap: 40px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 50px;
    padding-right: 0;
    text-align: left !important;
  }

  .timeline-item .dot {
    left: 14px !important;
    right: auto !important;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-base);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    color: var(--text-primary) !important;
    font-size: 1rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }

  .grid-2,
  .grid-3,
  .contact-form-grid,
  .map-section-grid {
    grid-template-columns: 1fr;
  }

  .grid-4,
  .fields-grid {
    grid-template-columns: 1fr;
  }

  /* Contact info cards: vertical on mobile */
  .contact-info-card {
    flex-direction: column;
    gap: 12px;
  }

  .contact-info-card h4 {
    min-width: unset !important;
    flex-shrink: 1;
  }

  /* Map: remove negative-margin crop on mobile, show full iframe */
  .map-container {
    height: 280px;
  }

  .map-container iframe {
    width: 100% !important;
    margin-left: 0 !important;
    height: 280px;
  }

  .quality-compare-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .quality-compare-grid > *:nth-child(odd) {
    order: 1;
  }

  .quality-compare-grid > *:nth-child(even) {
    order: 2;
  }

  .quality-divider {
    display: none;
  }

  .contact-form-grid {
    gap: 40px;
  }

  .map-section-grid {
    gap: 30px;
  }

  .cert-photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .content-split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .content-split.reverse {
    direction: ltr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .process-flow {
    flex-direction: column;
    align-items: center;
  }

  .process-step::after {
    content: '↓';
    position: static;
    display: block;
    text-align: center;
    margin-top: 10px;
    font-size: 1.2rem;
    color: var(--mid-gray);
  }

  .process-step:last-child::after {
    display: none;
  }

  .tabs {
    gap: 10px;
  }

  .tab-btn {
    padding: 16px 12px;
    min-width: 100px;
  }

  .tab-btn-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .tab-btn-label {
    font-size: 0.88rem;
  }

  .tab-btn-sub {
    font-size: 0.65rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 80px;
  }

  .page-header {
    padding: 120px 0 60px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Mobile Menu Overlay ─────────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,29,58,0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ── Utility Classes ─────────────────────────────────────── */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ── SMT Line Diagram ────────────────────────────────────── */
.smt-diagram-wrapper {
  margin: 40px 0 60px;
  background: var(--primary-dark);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.5), var(--shadow-lg);
}

.smt-diagram-wrapper::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 60px;
  right: 60px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
}

.smt-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-top: 6px;
}

.smt-flow::-webkit-scrollbar {
  height: 6px;
}
.smt-flow::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}
.smt-flow::-webkit-scrollbar-thumb {
  background: rgba(0,180,216,0.5);
  border-radius: 10px;
}

.smt-machine {
  flex: 0 0 auto;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all var(--transition-base);
}

.smt-machine:hover {
  transform: translateY(-8px);
}

.smt-machine-icon {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-light);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: all var(--transition-base);
  position: relative;
  z-index: 5;
}

.smt-machine:hover .smt-machine-icon {
  background: rgba(0,180,216,0.15);
  border-color: var(--accent);
  color: var(--white);
  box-shadow: 0 0 25px rgba(0,180,216,0.4);
}

.smt-machine-icon::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(56, 178, 172, 0.7); }
  50% { opacity: 1; box-shadow: 0 0 0 6px rgba(56, 178, 172, 0); }
  100% { opacity: 0.4; box-shadow: 0 0 0 0 rgba(56, 178, 172, 0); }
}

.smt-machine-info {
  text-align: center;
  width: 100%;
}

.smt-machine-title {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: 0.2px;
}

.smt-machine-desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.65rem;
  line-height: 1.3;
}

.smt-arrow {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 0.9rem;
  opacity: 0.6;
  animation: slideRight 2s infinite linear;
}

@keyframes slideRight {
  0% { transform: translateX(-5px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(5px); opacity: 0; }
}

.smt-machine.large {
  width: 110px;
}
.smt-machine.large .smt-machine-icon {
  width: 72px;
  height: 72px;
  font-size: 1.8rem;
}

.smt-machine.long {
  width: 140px;
}
.smt-machine.long .smt-machine-icon {
  width: 120px;
  height: 65px;
  font-size: 1.6rem;
}

@media (max-width: 1100px) {
  .smt-diagram-wrapper::after {
    display: none;
  }
}
