/* ============================================
   WEIHAI ZHENGWEI MACHINERY CO.,LTD — Main Stylesheet
   Industrial Precision Design System
   ============================================ */

/* ---- Design Tokens ---- */
:root {
  /* Palette: Deep hull blue, steel, copper */
  --hull: #0a1628;
  --hull-mid: #132238;
  --steel: #64748b;
  --steel-light: #cbd5e1;
  --copper: #c87941;
  --copper-light: #d4955c;
  --copper-dark: #a65f2e;
  --surface: #f8fafc;
  --white: #ffffff;

  /* Semantic */
  --primary: var(--copper);
  --primary-dark: var(--copper-dark);
  --primary-light: var(--copper-light);
  --dark: var(--hull);
  --gray-900: var(--hull-mid);
  --gray-700: var(--steel);
  --gray-500: #64748b;
  --gray-300: var(--steel-light);
  --gray-100: var(--surface);
  --gray-50: #f1f5f9;
  --accent: var(--copper);

  /* Sizing */
  --radius: 6px;
  --radius-lg: 12px;
  --max-w: 1200px;

  /* Effects */
  --shadow: 0 2px 16px rgba(10, 22, 40, 0.06);
  --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.10);
  --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.14);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  line-height: 1.65;
  background: var(--white);
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

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

.section {
  padding: 96px 0;
  position: relative;
}

.section--tight { padding: 64px 0; }
.section--dark { background: var(--hull); color: var(--steel-light); }
.section--steel { background: var(--gray-100); }

/* ---- Typography Scale ---- */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
  display: inline-block;
  position: relative;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: var(--steel-light);
}

.section-eyebrow::before { right: calc(100% + 12px); }
.section-eyebrow::after { left: calc(100% + 12px); }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--hull);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-title--sm {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.section-desc {
  color: var(--steel);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--gray-100);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
  border-bottom-color: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--hull);
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* Spec badge on logo */
.logo::after {
  content: 'EST. 2004';
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--steel);
  border: 1px solid var(--steel-light);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 4px;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 14px;
  color: var(--steel);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--hull);
  background: var(--gray-100);
}

.nav-dropdown { position: relative; }

.nav-dropdown > .nav-link::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 3.5px solid currentColor;
  margin-left: 5px;
  vertical-align: middle;
  transition: transform var(--transition);
}

.nav-dropdown:hover > .nav-link::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 100;
}

.nav-dropdown:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--steel);
  font-size: 0.85rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.dropdown-menu li a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--steel-light);
  flex-shrink: 0;
  transition: all var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--gray-100);
  color: var(--hull);
  padding-left: 18px;
}

.dropdown-menu li a:hover::before {
  background: var(--primary);
  width: 6px;
  height: 6px;
}

.nav-cta {
  background: var(--hull) !important;
  color: var(--white) !important;
  margin-left: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.nav-cta:hover {
  background: var(--hull-mid) !important;
  color: var(--white) !important;
}

/* ---- Mobile Menu ---- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--hull);
  border-radius: 1px;
  transition: all var(--transition);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(10, 22, 40, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition);
}

.nav-backdrop.visible {
  display: block;
  opacity: 1;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--hull);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero.jpg') center/cover no-repeat;
  opacity: 0.12;
  filter: grayscale(40%) contrast(1.1);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 140px 0 100px;
  max-width: 720px;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--copper);
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-title span {
  color: var(--copper-light);
  font-weight: 300;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.75;
  font-weight: 400;
}

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

/* Spec strip - signature element */
.hero-spec-strip {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
}

.spec-item {
  flex: 1;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.spec-item:last-child { border-right: none; }

.spec-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.spec-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all var(--transition);
  border: 1.5px solid transparent;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--copper);
  color: var(--white);
  border-color: var(--copper);
}

.btn-primary:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200, 121, 65, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--hull);
  border-color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--hull);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.btn-phone {
  background: var(--hull-mid);
  color: var(--white);
  border-color: var(--hull-mid);
}

.btn-phone:hover {
  background: var(--hull);
  border-color: var(--hull);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 0.98rem;
}

.btn::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  margin-left: 4px;
  opacity: 0;
  transform: translateY(0);
  transition: all var(--transition);
}

.btn:hover::after {
  opacity: 1;
  transform: translateY(2px);
}

.btn--no-arrow::after { display: none; }

/* ---- About ---- */
.about { background: var(--white); }

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

.about-img {
  position: relative;
}

.about-img img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  filter: contrast(1.05) saturate(0.9);
}

.about-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--hull);
  color: var(--white);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.about-badge .badge-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--copper-light);
}

.about-badge .badge-label {
  font-size: 0.75rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.about-text h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--hull);
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.about-text p {
  margin-bottom: 18px;
  line-height: 1.75;
}

.feature-list { margin: 28px 0; }

.feature-list li {
  padding: 10px 0;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--gray-100);
}

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

.feature-list .check {
  color: var(--copper);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-top: 1px;
}

/* ---- Products ---- */
.products { background: var(--white); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
  display: block;
  color: inherit;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.product-card:hover::before { transform: scaleX(1); }

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  color: inherit;
}

.product-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  filter: saturate(0.85);
}

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

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--hull);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.product-tag.highlight { background: var(--copper); }

.product-info { padding: 22px; }

.product-info h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hull);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.product-info p {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.6;
}

/* ---- Cases ---- */
.cases { background: var(--gray-100); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.case-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr;
  transition: all var(--transition);
  border: 1px solid var(--gray-100);
}

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

.case-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.case-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  filter: saturate(0.85);
}

.case-card:hover .case-img img { transform: scale(1.04); }

.case-info { padding: 26px; }

.case-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hull);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.case-info p {
  font-size: 0.9rem;
  color: var(--steel);
  margin-bottom: 16px;
  line-height: 1.65;
}

.case-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.case-link::after {
  content: '→';
  transition: transform var(--transition);
}

.case-link:hover::after { transform: translateX(4px); }

/* ---- Partners ---- */
.partners { padding: 60px 0; text-align: center; }

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  align-items: center;
}

.partner-logo { opacity: 0.6; transition: opacity var(--transition); }
.partner-logo:hover { opacity: 1; }
.partner-logo img { height: 48px; width: auto; object-fit: contain; }

.partner-more a {
  display: inline-block;
  padding: 12px 24px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  color: var(--gray-500);
  font-weight: 600;
  font-size: 0.9rem;
}

.partner-more a:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Why Us ---- */
.why-us {
  background: var(--hull);
  color: var(--steel-light);
  position: relative;
  overflow: hidden;
}

.why-us::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.4;
}

.why-us .section-eyebrow { color: var(--copper-light); }
.why-us .section-title { color: var(--white); }
.why-us .section-desc { color: rgba(255, 255, 255, 0.65); }

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

.why-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--copper);
  transition: height var(--transition);
}

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

.why-card:hover::before { height: 100%; }

.why-icon {
  font-size: 2rem;
  margin-bottom: 18px;
  opacity: 0.9;
}

.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--hull);
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--steel);
  line-height: 1.7;
}

/* Dark section variant */
.why-us .why-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-us .why-card::before { display: none; }
.why-us .why-card h3 { color: var(--white); }
.why-us .why-card p { color: rgba(255, 255, 255, 0.6); }
.why-us .why-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.why-card--light {
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.why-card--light h3 { color: var(--hull); }
.why-card--light p { color: var(--steel); }
.why-card--light:hover { background: var(--gray-100); }

/* ---- CTA ---- */
.cta {
  background: linear-gradient(135deg, var(--hull) 0%, var(--hull-mid) 100%);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 121, 65, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.cta-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-box p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.7;
}

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

.cta-note {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  opacity: 0.6;
  letter-spacing: 0.3px;
}

.cta .btn-primary {
  background: var(--white);
  color: var(--hull);
  border-color: var(--white);
}

.cta .btn-primary:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
}

.cta .btn-white {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.cta .btn-white:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

/* ---- Footer ---- */
.footer {
  background: var(--hull);
  color: rgba(255, 255, 255, 0.6);
  padding: 72px 0 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--copper), transparent);
  opacity: 0.3;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo { margin-bottom: 16px; }

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

.footer p,
.footer address {
  font-size: 0.88rem;
  line-height: 1.8;
  font-style: normal;
}

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

.footer ul a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer ul a::before {
  content: '›';
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
  color: var(--copper);
}

.footer ul a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer ul a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.3px;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .about-grid { gap: 48px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  html, body { overflow-x: hidden; }

  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
  }

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

  .nav-link {
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-cta { margin-left: 0; text-align: center; margin-top: 12px; }

  .nav-dropdown > .nav-link::after { float: right; margin-top: 4px; }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    display: none;
  }

  .nav-dropdown.open > .dropdown-menu { display: block; }

  .hero { min-height: auto; }
  .hero-content { padding: 120px 0 72px; }
  .hero-spec-strip {
    flex-wrap: wrap;
    gap: 16px;
  }

  .spec-item {
    flex: 1 1 40%;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
  }

  .about-grid { grid-template-columns: 1fr; }
  .about-badge {
    bottom: 16px;
    right: 16px;
    padding: 16px 20px;
  }

  .about-badge .badge-num { font-size: 1.8rem; }
  .about-badge .badge-label { font-size: 0.7rem; }

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

  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  .nav-link { padding: 14px 16px; min-height: 48px; display: flex; align-items: center; }
  .dropdown-menu li a { padding: 14px 14px; min-height: 48px; display: flex; align-items: center; }
  .btn { padding: 16px 28px; min-height: 48px; }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .hero-title { font-size: 1.8rem; }
  .hero-sub { font-size: 1rem; }
  .hero-spec-strip { flex-direction: column; gap: 12px; }
  .spec-item { flex: 1 1 100%; }
}

/* Safe area insets for notched phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .header { padding-top: env(safe-area-inset-top); }
  .header-inner { height: calc(72px + env(safe-area-inset-top)); }
  .nav { top: calc(72px + env(safe-area-inset-top)); }
  .nav-backdrop { top: calc(72px + env(safe-area-inset-top)); }
  body { padding-bottom: env(safe-area-inset-bottom); }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-content > * {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  opacity: 0;
}

.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3) { animation-delay: 0.25s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

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

.section-header {
  animation: slideInLeft 0.6s ease forwards;
}

/* ---- Print Styles ---- */
@media print {
  .header, .nav, .hero-actions, .cta, .footer { display: none; }
  .section { padding: 24px 0; }
  body { font-size: 12pt; color: #000; }
}
