/* ============================================
   PLASMA Rock Tools — Compiled Stylesheet
   Auto-generated by scripts/build.js — DO NOT EDIT
   ============================================ */


/* ===== Source: tokens.css ===== */

/* ============================================
   PLASMA Rock Tools — Design Tokens
   Single source of truth for colors, typography,
   spacing, and shared visual constants.
   ============================================ */

:root {
  /* ===== Brand Colors ===== */
  --primary-dark: #0a1626;
  --primary: #0f1e35;
  --primary-light: #16294a;
  --surface: #1a2f4f;

  /* ===== Accent Colors ===== */
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --highlight: #06b6d4;
  --highlight-bright: #22d3ee;
  --warning: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;

  /* ===== Neutrals ===== */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* ===== Layout ===== */
  --container-max: 1400px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 100px 0;
  --section-padding-mobile: 64px 0;

  /* ===== Typography ===== */
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* ===== Z-Index Scale ===== */
  --z-header: 1000;
  --z-dropdown: 1100;
  --z-overlay: 900;
  --z-float: 999;
}

/* ===== Source: base.css ===== */

/* ============================================
   PLASMA Rock Tools — Base Reset & Typography
   ============================================ */

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-300);
  background: var(--primary-dark);
  width: 100%;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--white);
}
.section-title.light { color: var(--primary-dark); }

.section-desc {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 700px;
  margin-bottom: 56px;
}

.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* ===== Source: components.css ===== */

/* ============================================
   PLASMA Rock Tools — Component Styles
   Reusable building blocks used across all pages
   ============================================ */

/* ===== Top Bar ===== */
.topbar { background: var(--primary-dark); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 8px 0; font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; color: var(--gray-400); }
.topbar-info { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: inline; }
.topbar-info .sep { color: var(--gray-600); }
.topbar-phone { color: var(--gray-400); }
.topbar-phone:hover { color: var(--highlight); }

/* ===== Header / Navigation ===== */
.header { position: -webkit-sticky; position: sticky; top: 0; z-index: var(--z-header); background: rgba(10, 22, 38, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; height: 72px; }
.nav-logo { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; color: var(--white); }
.nav-logo-text span { display: block; font-size: 0.6rem; color: var(--gray-400); font-weight: 500; letter-spacing: 1px; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-link { color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; padding: 8px 16px; border-radius: 6px; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta { background: var(--accent); color: var(--white) !important; }
.nav-cta:hover { background: var(--accent-bright); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius); border: 2px solid transparent; transition: var(--transition); letter-spacing: 0.3px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-highlight { background: var(--highlight); color: var(--primary-dark); }
.btn-highlight:hover { background: var(--highlight-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ===== Image Placeholder ===== */
.img-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #1e3a5f, #2d4a7a); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); font-size: 0.85rem; flex-direction: column; gap: 10px; border-radius: var(--radius); position: relative; overflow: hidden; }
.img-ph::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px); }
.img-ph svg { width: 48px; height: 48px; fill: rgba(255,255,255,0.15); z-index: 1; }
.img-ph span { z-index: 1; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }

/* ===== Section Base ===== */
.section { padding: var(--section-padding); }
.section-gray { background: var(--gray-50); }
.section-gray .section-title, .section-gray h2, .section-gray h3 { color: var(--primary-dark); }
.section-gray .section-desc { color: var(--gray-500); }
.section-gray .eyebrow { color: var(--accent); }

/* ===== Section Tag V4 ===== */
.section-tag-v4 { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.25); color: var(--highlight); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--gray-400); font-size: 0.875rem; max-width: 320px; line-height: 1.7; }
.footer-brand .tagline { color: var(--highlight); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: var(--gray-400); font-size: 0.85rem; }
.footer-col a:hover { color: var(--highlight); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray-500); }
.footer-cert { display: flex; gap: 16px; }

/* ===== RFQ Button ===== */
.btn-rfq { flex: 1; padding: 10px 16px; border: 2px solid var(--accent); color: var(--accent); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; text-align: center; transition: var(--transition); }
.btn-rfq:hover { background: var(--accent); color: var(--white); }
.btn-rfq.added { background: var(--success); border-color: var(--success); color: var(--white); }

/* ===== RFQ Float ===== */
.rfq-float { position: fixed; bottom: 24px; right: 24px; z-index: var(--z-float); display: none; align-items: center; gap: 12px; padding: 14px 20px; background: var(--primary-dark); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border: 1px solid rgba(37,99,235,0.3); transition: transform .3s, opacity .3s; }
.rfq-float.visible { display: flex; }
.rfq-float:hover { transform: translateY(-2px); }
.rfq-float-count { min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rfq-float-label { color: var(--white); font-size: 0.85rem; font-weight: 600; }
.rfq-float-arrow { color: var(--highlight); font-size: 1.1rem; }

/* ===== Language Switcher ===== */
.lang-switcher { position: relative; display: inline-flex; align-items: center; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.8); cursor: pointer; transition: var(--transition); background: transparent; white-space: nowrap; }
.lang-btn:hover { border-color: var(--highlight); color: var(--white); }
.lang-btn .lang-current { font-weight: 600; }
.lang-btn .lang-arrow { font-size: 0.65rem; transition: var(--transition); }
.lang-btn.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: var(--z-dropdown); max-height: 320px; overflow-y: auto; }
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.7); cursor: pointer; transition: var(--transition); }
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.lang-option.active { background: rgba(37,99,235,0.15); color: var(--highlight); }
.lang-option .lang-flag { font-size: 1.1rem; }
.lang-option .lang-code { font-size: 0.7rem; color: var(--gray-500); margin-left: auto; }

/* ===== Nav Actions (language switcher + RFQ cart) ===== */
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ===== Section Toggle Button v3 ===== */
/* ===== Local Fold Button ===== */
.fold-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
  padding: 12px 24px;
  background: transparent;
  border: 1.5px dashed rgba(6, 182, 212, 0.5);
  border-radius: 8px;
  color: var(--highlight);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.fold-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--highlight);
  border-style: solid;
}
.fold-btn .fold-btn-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Folded state: hide extra cards */
.fold-collapsed .fold-extra {
  display: none !important;
}

/* On desktop (>768px), disable fold for grids WITHOUT data-fold-always */
@media (min-width: 769px) {
  [data-fold-after]:not([data-fold-always]).fold-collapsed .fold-extra {
    display: flex !important;
  }
  [data-fold-after]:not([data-fold-always]).fold-collapsed {
    grid-template-columns: initial !important;
  }
  [data-fold-after]:not([data-fold-always]) + .fold-btn {
    display: none !important;
  }
}

/* When collapsed, cap grid columns so remaining cards center-fill nicely */
.fold-collapsed {
  justify-self: center;
}

/* Fix: specific grids must stretch full width when collapsed (not shrink to content) */
.factory-tiles-grid.fold-collapsed,
.fac-flow.fold-collapsed,
.fac-workshop-grid.fold-collapsed {
  justify-self: stretch;
}
/* Fix: tiles grid collapsed state — 2 cards in 1 row, no extra empty rows */
.factory-tiles-grid.fold-collapsed {
  grid-template-rows: auto !important;
}

/* Expanded state: reveal animation */
@keyframes foldReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fold-collapsed:not(.fold-collapsed) .fold-extra,
[data-fold-after]:not(.fold-collapsed) .fold-extra {
  animation: foldReveal 0.4s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .fold-btn {
    font-size: 0.78rem;
    padding: 10px 18px;
    max-width: 220px;
  }
}

/* ===== Product Card (unified) ===== */
.prod-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);overflow:hidden;transition:box-shadow .25s,transform .25s,border-color .25s;display:flex;flex-direction:column;}
.prod-card:hover{box-shadow:0 20px 48px rgba(10,22,38,0.12);transform:translateY(-4px);border-color:var(--accent);}
.prod-card-img{aspect-ratio:4/3;background:var(--gray-50);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.prod-card:hover .img-ph{transform:scale(1.04);}
.prod-card-img .img-ph svg{width:48px;height:48px;}
.prod-card-img .img-ph span{font-size:0.8rem;font-weight:600;color:var(--gray-400);}
.prod-card-tag{position:absolute;top:12px;left:12px;font-size:0.65rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;padding:4px 10px;border-radius:6px;background:rgba(10,22,38,0.85);color:var(--white);backdrop-filter:blur(4px);z-index:2;}
.prod-card-ark-tag{position:absolute;top:12px;right:12px;font-size:0.55rem;font-weight:700;letter-spacing:0.5px;padding:3px 8px;border-radius:5px;background:rgba(37,99,235,0.9);color:var(--white);z-index:2;}
.prod-card-body{padding:24px 22px;flex:1;display:flex;flex-direction:column;gap:12px;}
.prod-card-code{font-size:0.75rem;font-weight:700;color:var(--accent);letter-spacing:1px;}
.prod-card-title{font-size:1.05rem;font-weight:700;color:var(--primary-dark);line-height:1.3;}
.prod-card-desc{font-size:0.85rem;color:var(--gray-500);line-height:1.5;}
.prod-card-section-label{font-size:0.62rem;font-weight:700;text-transform:uppercase;letter-spacing:0.8px;color:var(--gray-400);margin-bottom:4px;}
.prod-card-apps{display:flex;gap:6px;flex-wrap:wrap;}
.prod-card-app-tag{font-size:0.7rem;padding:3px 10px;border-radius:6px;background:rgba(37,99,235,0.08);color:var(--accent);font-weight:600;}
.prod-card-condition{font-size:0.82rem;color:var(--gray-600);font-weight:500;line-height:1.4;}
.prod-card-advantage{font-size:0.82rem;color:var(--primary-dark);font-weight:600;padding:8px 12px;background:rgba(6,182,212,0.05);border-left:3px solid var(--highlight);border-radius:0 6px 6px 0;}
.prod-card-specs{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.prod-spec{padding:7px 9px;background:var(--gray-50);border-radius:5px;}
.prod-spec-label{font-size:0.6rem;color:var(--gray-400);text-transform:uppercase;letter-spacing:0.3px;}
.prod-spec-value{font-size:0.78rem;color:var(--gray-700);font-weight:600;margin-top:2px;}
.prod-card-actions{display:flex;gap:8px;margin-top:auto;padding-top:14px;border-top:1px solid var(--gray-100);}
.btn-datasheet{flex:1;padding:8px 12px;font-size:0.76rem;font-weight:600;border:1.5px solid var(--gray-200);border-radius:8px;color:var(--gray-500);background:var(--white);cursor:pointer;text-align:center;transition:all .2s;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:4px;}
.btn-datasheet:hover{border-color:var(--accent);color:var(--accent);background:rgba(37,99,235,0.03);}
.btn-rfq-v4{flex:1.3;padding:8px 12px;font-size:0.78rem;font-weight:700;border:none;border-radius:8px;background:var(--accent);color:var(--white);cursor:pointer;text-align:center;transition:all .2s;}
.btn-rfq-v4:hover{background:var(--primary-dark);}


/* ===== Source: pages.css ===== */

/* ===== V4: Hero v2 ===== */
.hero-v2 {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-v2-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #050d1a 0%, #0a1626 40%, #0f1e35 100%);
}
.hero-v2-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 35%, rgba(37, 99, 235, 0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 25% 75%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
}
.hero-v2-grid {
  position: absolute; inset: 0; opacity: 0.02;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-v2 .hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-v2 .hero-text h1 { font-size: 3.4rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 24px; }
.hero-v2 .hero-text > p { font-size: 1.15rem; color: var(--gray-400); margin-bottom: 36px; max-width: 540px; }
.hero-v2-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--highlight);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.hero-v2-tag::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--highlight); box-shadow: 0 0 8px var(--highlight);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-v2-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.hero-v2-visual .img-ph {
  border-radius: 0; height: 100%;
  background: linear-gradient(160deg, #0d2540 0%, #1a3a5c 50%, #0a1f38 100%);
}
.hero-v2-visual .hero-badges {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; gap: 10px; flex-wrap: wrap; z-index: 2;
}

/* ===== V4: Core Stats Bar ===== */
.core-stats {
  background: linear-gradient(135deg, #0a1626 0%, #081428 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.core-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.core-stat-item {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.04);
  position: relative;
  transition: var(--transition);
}
.core-stat-item:last-child { border-right: none; }
.core-stat-item:hover { background: rgba(255,255,255,0.02); }
.core-stat-icon {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex; align-items: center; justify-content: center;
}
.core-stat-icon svg { width: 22px; height: 22px; fill: var(--highlight); }
.core-stat-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.core-stat-desc { font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }

/* ===== V4: Tech Comparison v2 (Homepage) ===== */
.tech-compare-v2 {
  background: linear-gradient(135deg, #0a1626 0%, #0d2540 50%, #0e2f4f 100%);
  position: relative;
  overflow: hidden;
}
.tech-compare-v2::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}
.tech-compare-v2 .container { position: relative; z-index: 1; }

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 56px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.vs-card {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vs-card.traditional {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.vs-card.brand-col {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.12);
}
.vs-card-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.vs-card.traditional .vs-card-label { color: var(--gray-500); }
.vs-card.brand-col .vs-card-label { color: var(--highlight); }
.vs-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.vs-card.brand-col h3 { color: var(--white); }
.vs-card.traditional h3 { color: var(--gray-400); }
.vs-card-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.vs-card.traditional .vs-card-img { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.vs-card.brand-col .vs-card-img { background: linear-gradient(135deg, #1a3a6c, #2563eb); }
.vs-metric-list { display: flex; flex-direction: column; gap: 14px; }
.vs-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.vs-card.traditional .vs-metric { background: rgba(255,255,255,0.02); }
.vs-card.brand-col .vs-metric { background: rgba(255,255,255,0.04); }
.vs-metric-label { color: var(--gray-400); font-weight: 500; }
.vs-metric-value { font-weight: 700; }
.vs-card.traditional .vs-metric-value { color: var(--gray-500); }
.vs-card.brand-col .vs-metric-value { color: var(--highlight); }

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
}
.vs-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--white);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4);
  z-index: 2;
}

/* ===== Product Grids ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== V4: Product Preview (Homepage) ===== */
.product-preview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.product-preview-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
/* homepage product cards — compact mode (orig: 16/9, 16px 18px) */
.product-preview-img {
  aspect-ratio: 5/2;
  position: relative;
  overflow: hidden;
}
.product-preview-body {
  padding: 10px 14px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-preview-app {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}
.product-preview-name {
  font-size: 0.95rem; font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.product-preview-advantage {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 10px;
  flex: 1;
  line-height: 1.4;
}
.product-preview-specs {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 10px;
  font-size: 0.72rem;
}
.product-preview-specs span { color: var(--gray-600); }
.product-preview-specs strong { color: var(--primary-dark); font-weight: 700; }

/* ===== V4: Factory Preview (Homepage) ===== */
.factory-preview {
  background: linear-gradient(180deg, #0a1626 0%, #081121 100%);
  position: relative;
  overflow: hidden;
}
.factory-metrics-v4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.factory-metric-box {
  padding: 24px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.factory-metric-num { font-size: 1.8rem; font-weight: 800; color: var(--highlight); line-height: 1; }
.factory-metric-label { font-size: 0.78rem; color: var(--gray-400); margin-top: 6px; }

/* ===== V4: Final CTA v2 ===== */
.cta-v2 {
  background: linear-gradient(135deg, #0a1626 0%, #0f2a52 50%, #163d7a 100%);
  position: relative;
  overflow: hidden;
}
.cta-v2::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
}
.cta-v2-grid {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.cta-v2 h2 { font-size: 2.2rem; font-weight: 800; color: var(--white); }
.cta-v2 p { color: var(--gray-400); max-width: 520px; font-size: 1.05rem; }
.cta-v2-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ===== V4: Section Tag (eyebrow alternative) ===== */
.section-tag-v4 {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--highlight);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ===== Applications Compact Cards (Homepage) ===== */
.app-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-compact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-compact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.app-compact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(37,99,235,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-compact-icon svg { width: 22px; height: 22px; fill: var(--accent); }
.app-compact-body h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.app-compact-body p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.app-compact-products {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}


/* ===== Factory Showcase (Homepage v2) ===== */
.factory-grid-new{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;}
.factory-hero-img{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid rgba(255,255,255,.08);min-height:520px;}
.factory-hero-img .img-ph{height:100%;border-radius:0;background:linear-gradient(160deg,#0d2540,#1a3a5c,#0a1f38);}
.factory-hero-badge{position:absolute;top:20px;left:20px;background:rgba(10,22,38,.85);backdrop-filter:blur(8px);border:1px solid rgba(6,182,212,.3);border-radius:8px;padding:8px 16px;font-size:.75rem;font-weight:700;color:var(--highlight);z-index:2;}
.factory-hero-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,rgba(5,13,26,.9),transparent);padding:40px 28px 24px;z-index:2;}
.factory-hero-caption h3{color:var(--white);font-size:1.3rem;font-weight:700;margin-bottom:4px;}
.factory-hero-caption p{color:var(--gray-400);font-size:.85rem;}
.factory-tiles-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:16px;}
.factory-tile{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid rgba(255,255,255,.06);min-height:160px;}
.factory-tile .img-ph{height:100%;border-radius:0;}
.factory-tile-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,rgba(5,13,26,.85),transparent);padding:24px 16px 14px;z-index:2;}
.factory-tile-caption h4{color:var(--white);font-size:.85rem;font-weight:600;margin-bottom:2px;}
.factory-tile-caption p{color:var(--gray-500);font-size:.7rem;}

/* ===== App Compact Cards ===== */
.app-compact-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.app-compact-card{background:var(--white);border-radius:var(--radius-lg);padding:28px 20px;border:1px solid var(--gray-100);transition:var(--transition);display:flex;flex-direction:column;gap:12px;}
.app-compact-card:hover{border-color:var(--accent);box-shadow:0 8px 32px rgba(0,0,0,.06);transform:translateY(-3px);}
.app-compact-icon{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(6,182,212,.05));border:1px solid rgba(37,99,235,.12);display:flex;align-items:center;justify-content:center;}
.app-compact-icon svg{width:22px;height:22px;fill:var(--accent);}
.app-compact-body h3{font-size:1.05rem;color:var(--primary-dark);margin-bottom:4px;}
.app-compact-body p{font-size:.82rem;color:var(--gray-500);line-height:1.5;}
.app-compact-products{font-size:.75rem;font-weight:600;color:var(--accent);padding-top:8px;border-top:1px solid var(--gray-100);}

/* ===== Animations ===== */


/* ===== Restored from v1 stylesheet (2026-09-27, Plan A) =====
   .gradient-text / .process-num were referenced by index.html & factory.html
   but lost during the CSS source-of-truth migration. Definitions below are
   copied verbatim from the legacy v1 stylesheet. Additive only. */
.hero-text h1 .gradient-text {
  background: linear-gradient(135deg, var(--highlight), var(--accent-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-step {
  position: relative;
}

.process-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
}

.process-step h4 { font-size: 1.1rem; margin-bottom: 10px; }
.process-step p { font-size: 0.875rem; color: var(--gray-500); }


/* ===== Source: responsive.css ===== */

/* ============================================
   PLASMA Rock Tools — Compiled Stylesheet
   Auto-generated by scripts/build.js — DO NOT EDIT
   ============================================ */


/* ===== Source: tokens.css ===== */

/* ============================================
   PLASMA Rock Tools — Design Tokens
   Single source of truth for colors, typography,
   spacing, and shared visual constants.
   ============================================ */

:root {
  /* ===== Brand Colors ===== */
  --primary-dark: #0a1626;
  --primary: #0f1e35;
  --primary-light: #16294a;
  --surface: #1a2f4f;

  /* ===== Accent Colors ===== */
  --accent: #2563eb;
  --accent-bright: #3b82f6;
  --highlight: #06b6d4;
  --highlight-bright: #22d3ee;
  --warning: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;

  /* ===== Neutrals ===== */
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* ===== Layout ===== */
  --container-max: 1400px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-padding: 100px 0;
  --section-padding-mobile: 64px 0;

  /* ===== Typography ===== */
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, 'Segoe UI', sans-serif;

  /* ===== Z-Index Scale ===== */
  --z-header: 1000;
  --z-dropdown: 1100;
  --z-overlay: 900;
  --z-float: 999;
}

/* ===== Source: base.css ===== */

/* ============================================
   PLASMA Rock Tools — Base Reset & Typography
   ============================================ */

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--gray-300);
  background: var(--primary-dark);
  width: 100%;
}

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; color: var(--white); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--highlight);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  color: var(--white);
}
.section-title.light { color: var(--primary-dark); }

.section-desc {
  font-size: 1.125rem;
  color: var(--gray-400);
  max-width: 700px;
  margin-bottom: 56px;
}

.text-center { text-align: center; }
.text-center .section-desc { margin-left: auto; margin-right: auto; }

/* ===== Source: components.css ===== */

/* ============================================
   PLASMA Rock Tools — Component Styles
   Reusable building blocks used across all pages
   ============================================ */

/* ===== Top Bar ===== */
.topbar { background: var(--primary-dark); border-bottom: 1px solid rgba(255,255,255,0.06); padding: 8px 0; font-size: 0.8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; color: var(--gray-400); }
.topbar-info { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: inline; }
.topbar-info .sep { color: var(--gray-600); }
.topbar-phone { color: var(--gray-400); }
.topbar-phone:hover { color: var(--highlight); }

/* ===== Header / Navigation ===== */
.header { position: -webkit-sticky; position: sticky; top: 0; z-index: var(--z-header); background: rgba(10, 22, 38, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav { max-width: var(--container-max); margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; height: 72px; }
.nav-logo { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; color: var(--white); }
.nav-logo-text span { display: block; font-size: 0.6rem; color: var(--gray-400); font-weight: 500; letter-spacing: 1px; }
.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-link { color: rgba(255,255,255,0.7); font-size: 0.875rem; font-weight: 500; padding: 8px 16px; border-radius: 6px; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.06); }
.nav-cta { background: var(--accent); color: var(--white) !important; }
.nav-cta:hover { background: var(--accent-bright); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 0.95rem; font-weight: 600; border-radius: var(--radius); border: 2px solid transparent; transition: var(--transition); letter-spacing: 0.3px; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.btn-highlight { background: var(--highlight); color: var(--primary-dark); }
.btn-highlight:hover { background: var(--highlight-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.05); }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }

/* ===== Image Placeholder ===== */
.img-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #1e3a5f, #2d4a7a); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); font-size: 0.85rem; flex-direction: column; gap: 10px; border-radius: var(--radius); position: relative; overflow: hidden; }
.img-ph::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px); }
.img-ph svg { width: 48px; height: 48px; fill: rgba(255,255,255,0.15); z-index: 1; }
.img-ph span { z-index: 1; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; }

/* ===== Section Base ===== */
.section { padding: var(--section-padding); }
.section-gray { background: var(--gray-50); }
.section-gray .section-title, .section-gray h2, .section-gray h3 { color: var(--primary-dark); }
.section-gray .section-desc { color: var(--gray-500); }
.section-gray .eyebrow { color: var(--accent); }

/* ===== Section Tag V4 ===== */
.section-tag-v4 { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 20px; background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.25); color: var(--highlight); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }

/* ===== Footer ===== */
.footer { background: var(--primary-dark); border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { color: var(--gray-400); font-size: 0.875rem; max-width: 320px; line-height: 1.7; }
.footer-brand .tagline { color: var(--highlight); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.footer-col h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { color: var(--gray-400); font-size: 0.85rem; }
.footer-col a:hover { color: var(--highlight); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--gray-500); }
.footer-cert { display: flex; gap: 16px; }

/* ===== RFQ Button ===== */
.btn-rfq { flex: 1; padding: 10px 16px; border: 2px solid var(--accent); color: var(--accent); border-radius: var(--radius); font-size: 0.85rem; font-weight: 600; text-align: center; transition: var(--transition); }
.btn-rfq:hover { background: var(--accent); color: var(--white); }
.btn-rfq.added { background: var(--success); border-color: var(--success); color: var(--white); }

/* ===== RFQ Float ===== */
.rfq-float { position: fixed; bottom: 24px; right: 24px; z-index: var(--z-float); display: none; align-items: center; gap: 12px; padding: 14px 20px; background: var(--primary-dark); border-radius: 14px; box-shadow: 0 8px 32px rgba(0,0,0,0.2); border: 1px solid rgba(37,99,235,0.3); transition: transform .3s, opacity .3s; }
.rfq-float.visible { display: flex; }
.rfq-float:hover { transform: translateY(-2px); }
.rfq-float-count { min-width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rfq-float-label { color: var(--white); font-size: 0.85rem; font-weight: 600; }
.rfq-float-arrow { color: var(--highlight); font-size: 1.1rem; }

/* ===== Language Switcher ===== */
.lang-switcher { position: relative; display: inline-flex; align-items: center; }
.lang-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; font-size: 0.8rem; color: rgba(255,255,255,0.8); cursor: pointer; transition: var(--transition); background: transparent; white-space: nowrap; }
.lang-btn:hover { border-color: var(--highlight); color: var(--white); }
.lang-btn .lang-current { font-weight: 600; }
.lang-btn .lang-arrow { font-size: 0.65rem; transition: var(--transition); }
.lang-btn.open .lang-arrow { transform: rotate(180deg); }
.lang-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 180px; background: var(--primary-dark); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 6px; box-shadow: 0 12px 40px rgba(0,0,0,0.4); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); z-index: var(--z-dropdown); max-height: 320px; overflow-y: auto; }
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.7); cursor: pointer; transition: var(--transition); }
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.lang-option.active { background: rgba(37,99,235,0.15); color: var(--highlight); }
.lang-option .lang-flag { font-size: 1.1rem; }
.lang-option .lang-code { font-size: 0.7rem; color: var(--gray-500); margin-left: auto; }

/* ===== Nav Actions (language switcher + RFQ cart) ===== */
.nav-actions { display: flex; gap: 12px; align-items: center; }

/* ===== Section Toggle Button v3 ===== */
/* ===== Local Fold Button ===== */
.fold-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 280px;
  margin: 8px auto 0;
  padding: 12px 24px;
  background: transparent;
  border: 1.5px dashed rgba(6, 182, 212, 0.5);
  border-radius: 8px;
  color: var(--highlight);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.fold-btn:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: var(--highlight);
  border-style: solid;
}
.fold-btn .fold-btn-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Folded state: hide extra cards */
.fold-collapsed .fold-extra {
  display: none !important;
}

/* On desktop (>768px), disable fold for grids WITHOUT data-fold-always */
@media (min-width: 769px) {
  [data-fold-after]:not([data-fold-always]).fold-collapsed .fold-extra {
    display: flex !important;
  }
  [data-fold-after]:not([data-fold-always]).fold-collapsed {
    grid-template-columns: initial !important;
  }
  [data-fold-after]:not([data-fold-always]) + .fold-btn {
    display: none !important;
  }
}

/* When collapsed, cap grid columns so remaining cards center-fill nicely */
.fold-collapsed {
  justify-self: center;
}

/* Fix: specific grids must stretch full width when collapsed (not shrink to content) */
.factory-tiles-grid.fold-collapsed,
.fac-flow.fold-collapsed,
.fac-workshop-grid.fold-collapsed {
  justify-self: stretch;
}
/* Fix: tiles grid collapsed state — 2 cards in 1 row, no extra empty rows */
.factory-tiles-grid.fold-collapsed {
  grid-template-rows: auto !important;
}

/* Expanded state: reveal animation */
@keyframes foldReveal {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fold-collapsed:not(.fold-collapsed) .fold-extra,
[data-fold-after]:not(.fold-collapsed) .fold-extra {
  animation: foldReveal 0.4s ease forwards;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .fold-btn {
    font-size: 0.78rem;
    padding: 10px 18px;
    max-width: 220px;
  }
}

/* ===== Product Card (unified) ===== */
.prod-card{background:var(--white);border:1px solid var(--gray-100);border-radius:var(--radius-lg);overflow:hidden;transition:box-shadow .25s,transform .25s,border-color .25s;display:flex;flex-direction:column;}
.prod-card:hover{box-shadow:0 20px 48px rgba(10,22,38,0.12);transform:translateY(-4px);border-color:var(--accent);}
.prod-card-img{aspect-ratio:4/3;background:var(--gray-50);position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.prod-card:hover .img-ph{transform:scale(1.04);}
.prod-card-img .img-ph svg{width:48px;height:48px;}
.prod-card-img .img-ph span{font-size:0.8rem;font-weight:600;color:var(--gray-400);}
.prod-card-tag{position:absolute;top:12px;left:12px;font-size:0.65rem;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;padding:4px 10px;border-radius:6px;background:rgba(10,22,38,0.85);color:var(--white);backdrop-filter:blur(4px);z-index:2;}
.prod-card-ark-tag{position:absolute;top:12px;right:12px;font-size:0.55rem;font-weight:700;letter-spacing:0.5px;padding:3px 8px;border-radius:5px;background:rgba(37,99,235,0.9);color:var(--white);z-index:2;}
.prod-card-body{padding:24px 22px;flex:1;display:flex;flex-direction:column;gap:12px;}
.prod-card-code{font-size:0.75rem;font-weight:700;color:var(--accent);letter-spacing:1px;}
.prod-card-title{font-size:1.05rem;font-weight:700;color:var(--primary-dark);line-height:1.3;}
.prod-card-desc{font-size:0.85rem;color:var(--gray-500);line-height:1.5;}
.prod-card-section-label{font-size:0.75rem;font-weight:700;text-transform:uppercase;letter-spacing:0.8px;color:var(--gray-400);margin-bottom:4px;}
.prod-card-apps{display:flex;gap:6px;flex-wrap:wrap;}
.prod-card-app-tag{font-size:0.7rem;padding:3px 10px;border-radius:6px;background:rgba(37,99,235,0.08);color:var(--accent);font-weight:600;}
.prod-card-condition{font-size:0.82rem;color:var(--gray-600);font-weight:500;line-height:1.4;}
.prod-card-advantage{font-size:0.82rem;color:var(--primary-dark);font-weight:600;padding:8px 12px;background:rgba(6,182,212,0.05);border-left:3px solid var(--highlight);border-radius:0 6px 6px 0;}
.prod-card-specs{display:grid;grid-template-columns:1fr 1fr;gap:6px;}
.prod-spec{padding:7px 9px;background:var(--gray-50);border-radius:5px;}
.prod-spec-label{font-size:0.6rem;color:var(--gray-400);text-transform:uppercase;letter-spacing:0.3px;}
.prod-spec-value{font-size:0.78rem;color:var(--gray-700);font-weight:600;margin-top:2px;}
.prod-card-actions{display:flex;gap:8px;margin-top:auto;padding-top:14px;border-top:1px solid var(--gray-100);}
.btn-datasheet{flex:1;padding:8px 12px;font-size:0.76rem;font-weight:600;border:1.5px solid var(--gray-200);border-radius:8px;color:var(--gray-500);background:var(--white);cursor:pointer;text-align:center;transition:all .2s;text-decoration:none;display:flex;align-items:center;justify-content:center;gap:4px;}
.btn-datasheet:hover{border-color:var(--accent);color:var(--accent);background:rgba(37,99,235,0.03);}
.btn-rfq-v4{flex:1.3;padding:8px 12px;font-size:0.78rem;font-weight:700;border:none;border-radius:8px;background:var(--accent);color:var(--white);cursor:pointer;text-align:center;transition:all .2s;}
.btn-rfq-v4:hover{background:var(--primary-dark);}


/* ===== Source: pages.css ===== */

/* ===== V4: Hero v2 ===== */
.hero-v2 {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}
.hero-v2-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #050d1a 0%, #0a1626 40%, #0f1e35 100%);
}
.hero-v2-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 65% 35%, rgba(37, 99, 235, 0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 25% 75%, rgba(6, 182, 212, 0.06) 0%, transparent 50%);
}
.hero-v2-grid {
  position: absolute; inset: 0; opacity: 0.02;
  background-image:
    linear-gradient(rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-v2 .hero-content {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-v2 .hero-text h1 { font-size: 3.4rem; font-weight: 800; letter-spacing: -1.5px; line-height: 1.08; margin-bottom: 24px; }
.hero-v2 .hero-text > p { font-size: 1.15rem; color: var(--gray-400); margin-bottom: 36px; max-width: 540px; }
.hero-v2-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--highlight);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 28px;
}
.hero-v2-tag::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--highlight); box-shadow: 0 0 8px var(--highlight);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-v2-visual {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.hero-v2-visual .img-ph {
  border-radius: 0; height: 100%;
  background: linear-gradient(160deg, #0d2540 0%, #1a3a5c 50%, #0a1f38 100%);
}
.hero-v2-visual .hero-badges {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; gap: 10px; flex-wrap: wrap; z-index: 2;
}

/* ===== V4: Core Stats Bar ===== */
.core-stats {
  background: linear-gradient(135deg, #0a1626 0%, #081428 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0;
}
.core-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.core-stat-item {
  padding: 36px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.04);
  position: relative;
  transition: var(--transition);
}
.core-stat-item:last-child { border-right: none; }
.core-stat-item:hover { background: rgba(255,255,255,0.02); }
.core-stat-icon {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: flex; align-items: center; justify-content: center;
}
.core-stat-icon svg { width: 22px; height: 22px; fill: var(--highlight); }
.core-stat-title { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.core-stat-desc { font-size: 0.78rem; color: var(--gray-500); line-height: 1.5; }

/* ===== V4: Tech Comparison v2 (Homepage) ===== */
.tech-compare-v2 {
  background: linear-gradient(135deg, #0a1626 0%, #0d2540 50%, #0e2f4f 100%);
  position: relative;
  overflow: hidden;
}
.tech-compare-v2::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
}
.tech-compare-v2 .container { position: relative; z-index: 1; }

.vs-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 56px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}
.vs-card {
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.vs-card.traditional {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}
.vs-card.brand-col {
  background: linear-gradient(160deg, rgba(37, 99, 235, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 40px rgba(37, 99, 235, 0.12);
}
.vs-card-label {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.vs-card.traditional .vs-card-label { color: var(--gray-500); }
.vs-card.brand-col .vs-card-label { color: var(--highlight); }
.vs-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.vs-card.brand-col h3 { color: var(--white); }
.vs-card.traditional h3 { color: var(--gray-400); }
.vs-card-img {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
}
.vs-card.traditional .vs-card-img { background: linear-gradient(135deg, #2a2a2a, #1a1a1a); }
.vs-card.brand-col .vs-card-img { background: linear-gradient(135deg, #1a3a6c, #2563eb); }
.vs-metric-list { display: flex; flex-direction: column; gap: 14px; }
.vs-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
}
.vs-card.traditional .vs-metric { background: rgba(255,255,255,0.02); }
.vs-card.brand-col .vs-metric { background: rgba(255,255,255,0.04); }
.vs-metric-label { color: var(--gray-400); font-weight: 500; }
.vs-metric-value { font-weight: 700; }
.vs-card.traditional .vs-metric-value { color: var(--gray-500); }
.vs-card.brand-col .vs-metric-value { color: var(--highlight); }

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  position: relative;
}
.vs-badge {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--highlight));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; color: var(--white);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4);
  z-index: 2;
}

/* ===== Product Grids ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ===== V4: Product Preview (Homepage) ===== */
.product-preview-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex; flex-direction: column;
}
.product-preview-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.product-preview-img {
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}
.product-preview-body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-preview-app {
  font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 4px;
}
.product-preview-name {
  font-size: 0.95rem; font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.product-preview-advantage {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-bottom: 10px;
  flex: 1;
  line-height: 1.4;
}
.product-preview-specs {
  display: flex; gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--gray-100);
  margin-bottom: 10px;
  font-size: 0.72rem;
}
.product-preview-specs span { color: var(--gray-600); }
.product-preview-specs strong { color: var(--primary-dark); font-weight: 700; }

/* ===== V4: Factory Preview (Homepage) ===== */
.factory-preview {
  background: linear-gradient(180deg, #0a1626 0%, #081121 100%);
  position: relative;
  overflow: hidden;
}
.factory-metrics-v4 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.factory-metric-box {
  padding: 24px 20px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
}
.factory-metric-num { font-size: 1.8rem; font-weight: 800; color: var(--highlight); line-height: 1; }
.factory-metric-label { font-size: 0.78rem; color: var(--gray-400); margin-top: 6px; }

/* ===== V4: Final CTA v2 ===== */
.cta-v2 {
  background: linear-gradient(135deg, #0a1626 0%, #0f2a52 50%, #163d7a 100%);
  position: relative;
  overflow: hidden;
}
.cta-v2::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
}
.cta-v2-grid {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.cta-v2 h2 { font-size: 2.2rem; font-weight: 800; color: var(--white); }
.cta-v2 p { color: var(--gray-400); max-width: 520px; font-size: 1.05rem; }
.cta-v2-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

/* ===== V4: Section Tag (eyebrow alternative) ===== */
.section-tag-v4 {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--highlight);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 20px;
}

/* ===== Applications Compact Cards (Homepage) ===== */
.app-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.app-compact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.app-compact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  transform: translateY(-3px);
}
.app-compact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(6,182,212,0.05));
  border: 1px solid rgba(37,99,235,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-compact-icon svg { width: 22px; height: 22px; fill: var(--accent); }
.app-compact-body h3 {
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}
.app-compact-body p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}
.app-compact-products {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}


/* ===== Factory Showcase (Homepage v2) ===== */
.factory-grid-new{display:grid;grid-template-columns:1.4fr 1fr;gap:16px;}
.factory-hero-img{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid rgba(255,255,255,.08);min-height:520px;}
.factory-hero-img .img-ph{height:100%;border-radius:0;background:linear-gradient(160deg,#0d2540,#1a3a5c,#0a1f38);}
.factory-hero-badge{position:absolute;top:20px;left:20px;background:rgba(10,22,38,.85);backdrop-filter:blur(8px);border:1px solid rgba(6,182,212,.3);border-radius:8px;padding:8px 16px;font-size:.75rem;font-weight:700;color:var(--highlight);z-index:2;}
.factory-hero-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,rgba(5,13,26,.9),transparent);padding:40px 28px 24px;z-index:2;}
.factory-hero-caption h3{color:var(--white);font-size:1.3rem;font-weight:700;margin-bottom:4px;}
.factory-hero-caption p{color:var(--gray-400);font-size:.85rem;}
.factory-tiles-grid{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:16px;}
.factory-tile{position:relative;border-radius:var(--radius-lg);overflow:hidden;border:1px solid rgba(255,255,255,.06);min-height:160px;}
.factory-tile .img-ph{height:100%;border-radius:0;}
.factory-tile-caption{position:absolute;bottom:0;left:0;right:0;background:linear-gradient(0deg,rgba(5,13,26,.85),transparent);padding:24px 16px 14px;z-index:2;}
.factory-tile-caption h4{color:var(--white);font-size:.85rem;font-weight:600;margin-bottom:2px;}
.factory-tile-caption p{color:var(--gray-500);font-size:.7rem;}

/* ===== App Compact Cards ===== */
.app-compact-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.app-compact-card{background:var(--white);border-radius:var(--radius-lg);padding:28px 20px;border:1px solid var(--gray-100);transition:var(--transition);display:flex;flex-direction:column;gap:12px;}
.app-compact-card:hover{border-color:var(--accent);box-shadow:0 8px 32px rgba(0,0,0,.06);transform:translateY(-3px);}
.app-compact-icon{width:44px;height:44px;border-radius:10px;background:linear-gradient(135deg,rgba(37,99,235,.08),rgba(6,182,212,.05));border:1px solid rgba(37,99,235,.12);display:flex;align-items:center;justify-content:center;}
.app-compact-icon svg{width:22px;height:22px;fill:var(--accent);}
.app-compact-body h3{font-size:1.05rem;color:var(--primary-dark);margin-bottom:4px;}
.app-compact-body p{font-size:.82rem;color:var(--gray-500);line-height:1.5;}
.app-compact-products{font-size:.75rem;font-weight:600;color:var(--accent);padding-top:8px;border-top:1px solid var(--gray-100);}

/* ===== Animations ===== */


/* ===== Source: responsive.css ===== */

/* ============================================
   PLASMA Rock Tools — Responsive Styles
   All breakpoints in one place for easy maintenance
   ============================================ */

/* ===== Tablet (≤1100px) ===== */
@media (max-width: 1100px) {
  .hero-v2 .hero-content { grid-template-columns: 1fr; }
  .hero-v2-visual { max-width: 480px; }
  .core-stats-grid { grid-template-columns: 1fr 1fr; }
  .core-stat-item:nth-child(2) { border-right: none; }
  .core-stat-item:nth-child(1), .core-stat-item:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,0.04); }
  .vs-grid { grid-template-columns: 1fr; gap: 24px; }
  .vs-divider { padding: 0; min-height: 40px; }
  .app-compact-grid { grid-template-columns: 1fr 1fr; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { max-width: 500px; }
  .product-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid.prod-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  /* New factory layout */
  .factory-grid-new { grid-template-columns: 1fr; }
  .factory-hero-img { min-height: 340px; }
}

@media (max-width: 768px) {

  /* Navigation */
  .header { z-index: 1000; }
  .nav {
    padding: 0 16px;
    height: 60px;
    position: relative;
    z-index: 1000;
  }
  .nav-actions {
    gap: 8px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    margin-top: 12px;
    padding: 16px;
    font-size: 1.05rem;
    text-align: center;
    border-radius: 12px;
  }
  .nav-link {
    display: block;
    padding: 16px 12px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    line-height: 1.4;
  }
  .nav-link:hover, .nav-link.active { background: rgba(37,99,235,0.12); color: var(--highlight); }
  .nav-logo { font-size: 1rem; }
  .nav-logo-text span { font-size: 0.55rem; }
  .nav-menu li { width: 100%; }
  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease, visibility 0s linear 0s;
  }
  .nav-toggle { display: flex; z-index: 1002; }
  .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); }
  .topbar { display: none; }
  /* Make icon and title inline at top */
  .fail-card-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }
  /* Mobile nav menu — hidden by default, slides in as overlay */
  .nav-menu {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 60px);
    width: 100%;
    background: var(--primary-dark);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 32px;
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    overflow-y: auto;
    z-index: 1001;
  }

  /* Hero */
  .comparison-hero-desc, .app-compact-desc, .app-desc {
    overflow: visible !important;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    display: block;
    white-space: normal;
  }
  .factory-hero-img { min-height: 240px; }
  .fail-card p, .fail-card div, .vs-hero-card p, .vs-hero-card div, .ark-step p, .ark-step div, .hardness-zone p, .hardness-zone div, .hardness-zone span, .test-card p, .test-card div, .vs-table-row p, .vs-table-row div {
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal;
    max-height: none !important;
    -webkit-line-clamp: unset !important;
    display: block;
  }
  .fail-card p, .vs-hero-card p, .ark-step p,
  .tech-adv-card p, .testing-card p { margin-bottom: 6px; font-size: 0.8rem; }
  .fail-card, .vs-hero-card, .ark-step,
  .tech-adv-grid > div {
    padding: 18px 14px;
    border-radius: 10px;
    margin: 0;
  }
  .fail-card, .vs-hero-card, .ark-step, .hardness-zone, .test-card, .vs-table-row {
    height: auto;
    min-height: auto;
    overflow: visible !important;
  }
  .fail-grid, .vs-hero-grid, .tech-adv-grid { gap: 12px; }
  .hero-actions {
    margin-top: 20px;
    gap: 16px;
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { text-align: center; }
  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 20px;
    font-size: 0.85rem;
  }
  .hero-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 2px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .hero-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--highlight) !important;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px 0 0;
    margin-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08) !important;
  }
  .hero-stats, .hero-stats-grid { display: none; }
  .hero-stats-grid { display: none; }
  .hero-text > div[style*="grid-template-columns"] > div { padding: 18px 16px; }
  .hero-text > div[style*="grid-template-columns"] > div > div:first-child { font-size: 0.7rem; margin-bottom: 8px; }
  .hero-text > div[style*="grid-template-columns"] p { font-size: 0.85rem; line-height: 1.6; }
  .hero-v2 { padding: 32px 0 16px; min-height: auto; }
  .hero-v2 .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-v2 .hero-text > p { font-size: 0.95rem; }
  .hero-v2 .hero-text h1 { font-size: 1.3rem; }
  .hero-v2 .hero-text p { font-size: 0.85rem; max-width: 100%; line-height: 1.6; }
  .hero-v2-tag { font-size: 0.75rem; }
  .hero-v2-visual { display: none; }
  .vs-hero-card { padding: 16px 14px; }
  .vs-hero-card .vs-subtitle { font-size: 0.82rem; margin-bottom: 18px; }
  .vs-hero-card .vs-subtitle, .vs-hero-card > p { font-size: 0.8rem; line-height: 1.55; }
  .vs-hero-card > p,
  .vs-hero-card .vs-subtitle {
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .vs-hero-card > p, .vs-hero-card .vs-subtitle { font-size: 0.78rem; line-height: 1.6; }
  .vs-hero-card h3 { font-size: 0.95rem; }
  .vs-hero-divider { display: none; }
  .vs-hero-grid { gap: 16px; }
  .vs-hero-img { margin: 8px auto; max-width: 240px; }
  /* 2. Hero cards: more padding */
  .hero-text > div[style*="grid-template-columns"] > div { padding: 20px 18px; }
  /* All cards: less padding, smaller radius */
  .fail-card, .vs-hero-card, .ark-step,
  .tech-adv-grid > div, .tech-adv-card,
  .testing-card, .product-preview-card {
    padding: 14px 14px;
    border-radius: 8px;
    margin-bottom: 0;
  }
  /* All grids: tighter gap */
  .fail-grid, .vs-hero-grid, .tech-adv-grid,
  .ark-steps, .product-grid, .testing-grid { gap: 10px; }
  /* Card body: no extra spacing */
  .fail-card-body, .vs-hero-card-body, .tech-adv-card-body,
  .testing-card-body, .product-preview-card-body { gap: 6px; padding: 0; }
  /* Cards stick to container edges */
  .fail-card, .vs-hero-card, .ark-step,
  .tech-adv-grid > div,
  .product-preview-card, .app-compact-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box !important;
  }
  /* Cards: clean spacing */
  .vs-hero-card { padding: 18px 16px; }
  /* Hide mixed EN text in vs-hero-card and ark-step — keep only CN */
  .vs-hero-card .en-text,
  .vs-hero-card [lang="en"],
  .vs-hero-card .vs-card-text-en,
  .ark-step .en-text,
  .ark-step [lang="en"] { display: none; }
  /* Highlighted text emphasis */
  .vs-hero-card strong,
  .vs-hero-card .highlight,
  .ark-step strong,
  .ark-step .highlight { color: var(--highlight) !important; font-weight: 600; }
  /* If text is in a single <p> with EN+CN mixed, we can't split —
     instead improve readability: larger font, more line-height, less padding */
  .vs-hero-card > p,
  .vs-hero-card .vs-card-text,
  .vs-hero-card .vs-body,
  .vs-hero-card .vs-content {
    font-size: 0.82rem;
    line-height: 1.65;
    padding: 6px 0;
    color: rgba(255,255,255,0.85) !important;
  }
  /* Larger body text for readability */
  .fail-card p, .vs-hero-card p, .ark-step p,
  .tech-adv-grid p {
    font-size: 0.85rem;
    line-height: 1.65;
    word-break: normal;
    overflow-wrap: break-word !important;
  }
  /* Remove any inner max-width constraints on text blocks */
  .fail-card p, .fail-card div,
  .vs-hero-card p, .vs-hero-card div,
  .ark-step p, .ark-step div,
  .tech-adv-grid p, .tech-adv-grid div { max-width: 100%; width: 100%; }
  /* Step numbers: slightly smaller, keep visible */
  .vs-hero-card .vs-number,
  .ark-step .step-number {
    font-size: 1.6rem;
    margin-bottom: 8px;
    opacity: 0.9;
  }
  /* Target the inline 3-col grid in hero section — the Problem/Solution/Result cards */
  .hero-text > div[style*="grid-template-columns"] { grid-template-columns: 1fr; gap: 12px; }
  /* Tighter, consistent card spacing */
  .fail-grid, .vs-hero-grid, .tech-adv-grid, .ark-steps { gap: 14px; }
  /* VS cards: also tighten */
  .vs-hero-card { padding: 20px 16px; border-radius: 10px; }
  /* VS hero: already single col, but ensure */
  .vs-hero-grid { grid-template-columns: 1fr; }

  /* Typography & Layout */
  .btn { padding: 12px 20px; font-size: 0.85rem; }
  .btn-datasheet { display: none; }
  .btn-lg { padding: 14px 24px; font-size: 0.9rem; }
  .btn-rfq { padding: 8px 12px; font-size: 0.78rem; }
  .btn-rfq-v4 { font-size: 0.8rem; padding: 5px 10px; }
  .container { max-width: 100%; }
  .section { padding: 20px 0; }
  .section .section-desc { margin-bottom: 12px; font-size: 0.85rem; line-height: 1.6; }
  .section .section-title { margin-bottom: 10px; font-size: 1.1rem; }
  .section-desc { font-size: 0.85rem; line-height: 1.55; }
  .section-gray { padding: 40px 0; }
  .section-gray .section-desc { font-size: 0.85rem; line-height: 1.55; }
  .section-gray .section-title { font-size: 1.15rem; }
  .section-tag-v4 { font-size: 0.6rem; margin-bottom: 6px; }
  .section-title { font-size: 1.15rem; }
  .section.section-gray { padding: 24px 0; }

  /* Footer */
  .footer { padding: 40px 0 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Comparison Page */
  .ark-step { padding: 16px 16px; }
  .ark-step h4 { font-size: 0.85rem; }
  .ark-step p { font-size: 0.78rem; line-height: 1.6; }
  .ark-step p,
  .ark-step .ark-step-text,
  .ark-step .ark-body {
    font-size: 0.82rem;
    line-height: 1.65;
    padding: 4px 0;
  }
  .ark-steps { gap: 14px; }
  .comp-table th, .comp-table td {
    padding: 12px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
  .comp-table-cell { width: 100%; padding: 2px 0; }
  .comp-table-row {
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    align-items: flex-start;
  }
  .comp-table-v4 * { max-width: none; }
  .comp-table-wrap { overflow-x: auto-webkit-overflow-scrolling: touch; }
  .fail-card { margin-bottom: 0; }
  .fail-card .fail-costs {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    margin-top: 8px;
  }
  .fail-card .fail-costs,
  .fail-card .fail-impact { font-size: 0.82rem; padding: 6px 10px; }
  .fail-card .fail-impact {
    background: var(--gray-50) !important;
    border: none !important;
    border-left: 2px solid var(--danger) !important;
    border-radius: 0 6px 6px 0;
    color: var(--gray-600) !important;
  }
  .fail-card .fail-label { color: var(--gray-500) !important; }
  .fail-card h3 {
    font-size: 0.85rem;
    margin-bottom: 4px;
    line-height: 1.3;
  }
  .fail-card p {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 4px;
    display: block;
    -webkit-line-clamp: unset !important;
    
    overflow: visible;
    width: 100%;
    order: 3;
    flex: 0 0 100%;
  }
  .fail-card-icon svg,
  .fail-card .fail-icon { width: 16px; height: 16px; }
  .fail-card-photo img { width: 100% !important; height: auto !important; object-fit: cover !important; }
  .fail-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px 10px;
  }
  .fail-card-body > * { flex: 1 1 auto; }
  .fail-card-icon {
    width: 22px;
    height: 22px;
    background: transparent !important;
    border: none !important;
    border-radius: 0;
    margin-bottom: 8px;
    display: inline-flex;
  }
  .fail-card-icon svg { width: 22px; height: 22px; }
  .fail-card-top { background: linear-gradient(90deg, var(--gray-300), var(--gray-200)) !important; }
  /* Baseline card (Normal Wear) keeps blue accents on mobile (2026-10-06) */
  .fail-card-baseline .fail-card-top { background: var(--accent) !important; }
  .fail-card-baseline .fail-card-icon { background: rgba(37,99,235,0.1) !important; color: var(--accent) !important; border: none !important; }
  .fail-card-baseline .fail-label { color: var(--accent) !important; }
  .fail-card-baseline .fail-impact { background: rgba(37,99,235,0.06) !important; border: 1px solid rgba(37,99,235,0.15) !important; border-left: 3px solid var(--accent) !important; color: var(--accent) !important; }
  .fail-grid { grid-template-columns: 1fr; gap: 16px; }
  .fail-label {
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
  }
  .vs-card { padding: 16px 14px; }
  .vs-card h3 { font-size: 1.1rem; }
  .vs-card-body { padding: 12px 0 0; }
  .vs-card-subtitle { font-size: 0.75rem; }
  .vs-card-title { font-size: 1rem; }
  .vs-cards { grid-template-columns: 1fr; gap: 16px; }
  .vs-metric { padding: 10px 12px; border-radius: 6px; }
  .vs-metric + .vs-metric { border-top: 1px solid rgba(255,255,255,0.06); }
  .vs-metric-label { font-size: 0.7rem; }
  .vs-metric-row { padding: 10px 0; }
  .vs-metric-row .mr-label { font-size: 0.75rem; }
  .vs-metric-row .mr-value { font-size: 0.8rem; }
  .vs-metric-value { font-size: 0.82rem; }
  .vs-section, .ark-section { padding: 48px 0; }
  .vs-table { gap: 0; }
  .vs-table-label { font-size: 0.82rem; }
  .vs-table-row { padding: 6px 8px; }
  .vs-table-value { font-size: 0.82rem; }
  /* 1. Fail-card icons: remove pink bg, use clean style */
  .fail-card-icon {
    background: none !important;
    border: 1px solid var(--gray-200) !important;
    border-radius: 6px;
    color: var(--gray-600) !important;
  }
  /* 4. VS section: tighter metric rows */
  .vs-metric-row { padding: 8px 0; }
  /* ARK steps: tighten */
  .ark-step { padding: 16px 16px; border-radius: 10px; }
  /* Card body: row layout, icon to left, content to right */
  .fail-card-body {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 14px;
  }
  /* Description: full width text */
  .fail-card p {
    font-size: 0.78rem;
    line-height: 1.55;
    margin: 0 0 10px;
    padding: 0;
  }
  /* English text: single line truncate to stop wrapping */
  .fail-card p {
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 6px;
    display: block;
    -webkit-line-clamp: unset !important;
    
    overflow: visible;
  }
  /* Fail card: tighter internal layout */
  .fail-card {
    padding: 16px 16px;
    border-radius: 10px;
    gap: 0;
  }
  /* Hide EN text in fail-card p — the second sentence is English */
  .fail-card p {
    font-size: 0.82rem;
    line-height: 1.55;
    margin-bottom: 8px;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset !important;
    
  }
  /* Icon goes first in flex flow, text flows after */
  .fail-card-icon { order: 0; flex: 0 0 40px; }
  /* Icon: fixed small square, NOT full-width */
  .fail-card-icon {
    display: inline-flex;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 8px;
    margin-bottom: 8px;
    flex: 0 0 auto;
  }
  /* Impact bar: inline compact tag, not full block */
  .fail-card .fail-impact {
    display: inline-block;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-top: 4px;
    width: auto;
    align-self: flex-start;
  }
  /* Impact/cost bar: full width compact */
  .fail-card .fail-costs,
  .fail-card .fail-impact {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    margin-top: 4px;
    border: 1px solid rgba(239,68,68,0.1) !important;
    text-align: center;
  }
  /* Inline icon+label+title in one row */
  .fail-card-body {
    padding: 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  /* Keep icon as a compact square */
  .fail-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0 !important;
  }
  /* Restore icon to readable size */
  .fail-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 10px;
  }
  /* Shrink fail-card-icon to min, just an accent mark */
  .fail-card-icon {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    margin-bottom: 8px;
    background: rgba(239,68,68,0.1) !important;
    border: 1px solid rgba(239,68,68,0.2) !important;
    flex-shrink: 0 !important;
  }
  /* Shrink icon dramatically (icons only — never the .fail-card-photo image) */
  .fail-card svg,
  .fail-card .fail-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0 !important;
  }
  .fail-card-photo { height: auto !important; }
  .fail-card-photo img { width: 100% !important; height: auto !important; aspect-ratio: 4/3 !important; object-fit: cover !important; }
  /* Text: 2 lines max */
  .fail-card p {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 6px;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset !important;
    
  }
  /* Title next to icon */
  .fail-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--danger) !important;
  }
  /* Top gradient line: thinner */
  .fail-card-top { height: 3px; }
  /* comparison table: keep scroll but prevent parent overflow */
  .comp-table-v4 {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Products Page */
  #productGrid { gap: 0; padding: 0; }
  .app-compact-products { font-size: 0.82rem; }
  .prod-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 12px;
    border-radius: 0;
    border: none !important;
    border-bottom: 1px solid var(--gray-100) !important;
    box-shadow: none !important;
    background: var(--white) !important;
  }
  .prod-card-actions {
    order: 1;
    flex-direction: column;
    gap: 6px;
  }
  .prod-card-advantage { font-size:0.8rem; padding:10px 12px; }
  .prod-card-app-tag { font-size:0.78rem; padding:2px 7px; }
  .prod-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .prod-card-body > .prod-card-actions { order: 3; }
  .prod-card-body > .prod-card-code { order: 0; }
  .prod-card-body > .prod-card-desc {
    order: 2;
    display: block;
    font-size: 0.82rem;
    color: var(--gray-500) !important;
  }
  .prod-card-body > .prod-card-section { order: 4; display: none; }
  .prod-card-body > .prod-card-specs {
    order: 5;
    display: block;
    width: 100%;
    padding-top: 6px;
    margin-top: 6px;
    border-top: 1px solid var(--gray-100) !important;
    font-size: 0.6rem;
    color: var(--gray-500) !important;
    line-height: 1.6;
  }
  .prod-card-body > .prod-card-specs .prod-spec {
    display: inline;
    border: none !important;
    padding: 0;
  }
  .prod-card-body > .prod-card-specs .prod-spec-label {
    display: inline;
    font-size: inherit;
    color: var(--gray-400) !important;
    text-transform: none;
  }
  .prod-card-body > .prod-card-specs .prod-spec-label::after { content: " " !important; }
  .prod-card-body > .prod-card-specs .prod-spec-value {
    display: inline;
    font-size: inherit;
    color: var(--gray-600) !important;
  }
  .prod-card-body > .prod-card-specs .prod-spec::after { content: "  ·  " !important; }
  .prod-card-body > .prod-card-specs .prod-spec:last-child::after { content: "" !important; }
  .prod-card-body > .prod-card-title { order: 1; }
  .prod-card-code { font-size: 0.6rem; margin-bottom: 0; }
  .prod-card-desc { display: none; }
  .prod-card-featured { border-left: 3px solid var(--accent) !important; background: linear-gradient(90deg, rgba(37,99,235,0.03) 0%, var(--white) 100%) !important; }
  .prod-card-featured-badge {
    position: static;
    font-size: 0.5rem;
    padding: 1px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-left: 6px;
  }
  .prod-card-img {
    flex: 0 0 72px;
    height: 56px;
    aspect-ratio: auto;
    border-radius: 6px;
    overflow: hidden !important;
  }
  .prod-card-img .img-ph svg { width: 24px; height: 24px; }
  .prod-card-section-label { font-size:0.75rem; margin-bottom:4px; }
  .prod-card-section:nth-of-type(2) { display:none; }
  .prod-card-specs {
    order: 2;
    display: block;
    width: 100%;
    flex-basis: 100%;
    padding: 8px 0 0;
    margin: 8px 0 0;
    border-top: 1px solid var(--gray-100) !important;
    font-size: 0.75rem;
    color: var(--gray-500) !important;
    line-height: 1.6;
  }
  .prod-card-specs .prod-spec {
    display: inline;
    border: none !important;
    padding: 0;
    margin: 0;
    background: none !important;
  }
  .prod-card-specs .prod-spec-label {
    display: inline;
    padding: 0;
    margin: 0;
    font-size: inherit;
    color: inherit !important;
    background: none !important;
    text-transform: none;
    letter-spacing: 0;
  }
  .prod-card-specs .prod-spec-label::after { content: ": " !important; }
  .prod-card-specs .prod-spec-value {
    display: inline;
    font-size: inherit;
    color: var(--gray-700) !important;
  }
  .prod-card-specs .prod-spec:not(:last-child)::after { content: " · " !important; }
  .prod-card-specs, .prod-card-section, .prod-card-advantage { display: none; }
  .prod-card-tag { display: none; }
  /* — Module ②: Products Mobile Optimization — */
  /* Unify card height: image + body consistent */
  .prod-card { min-height: 238px; }
  .prod-card-img { flex: 0 0 64px; height: 64px; }
  .prod-card-body { padding: 10px 12px; gap: 2px; }
  .prod-card-title { font-size: 0.9rem; line-height: 1.3; }
  .prod-card-code { font-size: 0.78rem; }
  /* Hide desc on mobile for uniform height */
  .prod-card-desc { display: none; }
  /* Actions: compact */
  .prod-card-actions { padding-top: 6px; margin-top: auto; }
  .btn-rfq-v4 { font-size: 0.8rem; padding: 6px 10px; border-radius: 6px; }
  /* Datasheet already hidden, show Add to RFQ as full width */
  .prod-card-actions .btn-rfq-v4 { flex: 1; }
  .prod-card-title {
    font-size: 0.85rem;
    margin-bottom: 2px;
    line-height: 1.2;
  }
  .prod-card:last-child { border-bottom: none !important; }
  .product-card-action { flex-wrap: wrap; }
  .product-card-body { padding: 16px; }
  .product-card-specs { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 0; }
  .product-grid, .factory-grid, .app-grid, .dl-grid, .value-grid, .compare-mini-grid { grid-template-columns: 1fr; }
  .product-preview-btn { font-size: 0.8rem; padding: 10px 16px; }
  .product-preview-card { padding: 16px; }
  .product-preview-card .product-preview-img { margin-bottom: 12px; }
  .product-preview-content { padding: 0; }
  .product-preview-desc { display: none; }
  .product-preview-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-preview-img { aspect-ratio: 2/1; }
  .product-preview-title { font-size: 1rem; }

  /* Applications Page */
  .app-card { padding: 18px 14px; }
  .app-card h3 { font-size: 0.95rem; }
  .app-card p { font-size: 0.78rem; }
  .app-card-body { padding: 20px 16px; }
  .app-compact-card { padding: 16px 14px; }
  .app-compact-card:nth-child(3) { border-left: none !important; border-right: 3px solid var(--accent) !important; }
  .app-compact-card:nth-child(even) { border-left: 3px solid var(--highlight) !important; }
  .app-compact-desc { display: none; }
  .app-compact-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-compact-link { font-size: 0.75rem; }
  .app-compact-title { font-size: 0.95rem; }
  .app-grid { grid-template-columns: 1fr; gap: 16px; }
  .app-icon { width: 40px; height: 40px; }

  /* Factory Page */
  .factory-card-body { padding: 20px 16px; }
  .factory-cta { padding-top: 12px; margin-top: 0; }
  .factory-cta .btn { font-size: 0.8rem; padding: 8px 16px; }
  .factory-metric { padding: 14px 10px; }
  .factory-metric-box { padding: 16px 12px; border-radius: 10px; }
  .factory-metric-label {
    font-size: 0.72rem;
    opacity: 0.7;
    text-transform: uppercase;
  }
  .factory-metric-num {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 2px;
  }
  .factory-metric-value { font-size: 1.1rem; }
  .factory-metrics { grid-template-columns: 1fr 1fr; gap: 8px; }
  .factory-metrics-v4 { grid-template-columns: 1fr; }
  /* New factory layout mobile */
  .factory-tiles-grid { grid-template-columns: 1fr; }

  /* Downloads Page */
  .dl-card { padding: 16px 14px; }
  .dl-card h3 { font-size: 0.9rem; }
  .dl-card p { font-size: 0.75rem; }
  .dl-grid { grid-template-columns: 1fr; gap: 14px; }
  .dl-icon { width: 36px; height: 36px; }

  /* Contact & RFQ */
  .contact-detail-item { padding: 10px 0; }
  .contact-form { padding: 20px 16px; }
  .contact-form input, .contact-form textarea, .contact-form select { font-size: 0.9rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }
  .contact-info { padding: 16px; }
  .contact-info-card, .contact-form-card { padding: 24px 20px; }
  .rfq-cart-display { padding: 14px; }
  .rfq-float { padding: 10px 14px; border-radius: 10px; }

  /* Misc */
  .compare-mini { padding: 24px 16px; }
  .compare-mini-grid { gap: 16px; }
  .compare-mini-item { padding: 16px 12px; }
  .compare-mini-item .num { font-size: 1.8rem; }
  .core-stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .core-stat-icon { width: 36px; height: 36px; margin-bottom: 10px; background: linear-gradient(135deg, rgba(37,99,235,0.25), rgba(6,182,212,0.15)); }
  .core-stat-icon svg { width: 18px; height: 18px; fill: var(--accent); }
  .core-stat-title { font-size: 0.8rem; }
  .core-stat-desc { font-size: 0.7rem; }
  .core-stats-grid { grid-template-columns: 1fr 1fr; gap: 0; }
  .core-stat-item { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); }
  .core-stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.04); }
  .core-stat-item:nth-child(3), .core-stat-item:nth-child(4) { border-bottom: none; }
  .cta-banner { padding: 36px 20px; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-v2 { padding: 40px 0; }
  .cta-v2 h2 { font-size: 1.2rem; }
  .cta-v2 p { font-size: 0.82rem; }
  .cta-v2-grid { gap: 10px; }
  .filter-bar {
    gap:6px;
    margin-bottom:6px;
    padding:0 4px;
  }
  .filter-bar .filter-label { display:none; }
  .filter-btn-v4 {
    padding:6px 12px;
    font-size:0.82rem;
    border-radius:6px;
  }
  .form-row { grid-template-columns: 1fr; }
  .hardness-chart { max-width: 100%; }
  .lang-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
    border-color: rgba(255,255,255,0.1);
  }
  .lang-dropdown {
    right: 0;
    left: auto;
    min-width: 150px;
    max-height: 260px;
  }
  .lang-switcher {
    margin-left: 4px;
    position: relative;
    z-index: 1002;
  }
  .metric-box { padding: 24px 16px; }
  .metric-box .num { font-size: 2rem; }
  .metrics-row { grid-template-columns: 1fr 1fr; }
  .no-results { padding: 40px 20px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-step { margin-bottom: 8px; }
  .tech-adv-card { padding: 16px 16px; }
  .tech-adv-card h4 { font-size: 0.95rem; }
  .tech-adv-card p strong { font-weight: 700; }
  .tech-adv-grid { grid-template-columns: 1fr; gap: 14px; }
  .tech-adv-grid > div,
  .tech-adv-grid > .adv-card { padding: 16px 16px; }
  .tech-adv-grid h4 { font-size: 0.9rem; }
  .tech-adv-grid p { font-size: 0.78rem; line-height: 1.6; }
  .tech-adv-num { font-size: 1.5rem; margin-bottom: 6px; }
  .tech-compare-v2 { padding: 36px 0; }
  .tech-compare-v2 .container { padding: 0 16px; }
  .tech-compare-v2 .section-desc { display: none; }
  .tech-compare-v2 .section-title { font-size: 1.15rem; }
  .testing-card .ph-area span { font-size: 0.82rem; }
  .testing-card .ph-area svg { width: 24px; height: 24px; }
  .value-card { padding: 24px 20px; }
  .zone-diagram { padding: 20px 16px; }
  .zone-item { grid-template-columns: auto 1fr; }
  .zone-item .zone-hardness { grid-column: 1 / -1; justify-self: start; }
  /* 3. Tech-adv: bolder numbers */
  .tech-adv-num {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
  }
  /* 5. Testing cards: smaller placeholder */
  .testing-card .ph-area {
    aspect-ratio: 3/1;
    max-height: 80px !important;
    margin: 8px 0;
  }
  /* 6. Overall spacing system: 8px grid */
  section { padding: 24px 0; }
  /* Buttons: less vertical space */
  .btn, .cta-btn { padding: 10px 20px; }
  /* CTA section */
  .cta-v2 { padding: 16px 0; }
  /* Check mark badge */
  .tech-adv-card div[style*="width:32px"][style*="height:32px"] { width: 24px; height: 24px; }
  /* FIX-OVERFLOW-ALL — removed section overflow to fix sticky header */
  /* Fold toggle */
  [data-fold-toggle] { padding: 6px 0; margin: 8px 0; }
  /* Hide gradient hardness diagram on mobile — too heavy */
  .tech-advantage > .container > div[style*="max-width:860px"] { display: none; }
  /* Let cards stretch edge-to-edge */
  .container { padding-left: 12px; padding-right: 12px; }
  /* Mini tags */
  .tech-adv-card span[style*="border-radius:20px"] { font-size: 0.75rem; padding: 2px 8px; }
  /* Paragraphs: compact line-height */
  p { line-height: 1.5; }
  /* Section padding: cut to minimum */
  section { padding-top: 20px; padding-bottom: 20px; }
  /* Section titles: reduce top/bottom */
  .section .section-title { margin-bottom: 16px; }
  /* Show more button center */
  .show-more-btn, [data-fold-toggle] {
    display: block;
    text-align: center;
    width: 100%;
    margin: 12px auto;
  }
  /* Smaller number badge */
  .tech-adv-num { font-size: 1.6rem; margin-bottom: 8px; }
  /* Tags: smaller */
  .tech-adv-card span[style*="border-radius:20px"] { font-size: 0.75rem; padding: 2px 8px; }
  /* Unified section spacing */
  .section { padding: 32px 0; }
  /* Titles: tighter margin */
  .section .section-title { margin-bottom: 8px; font-size: 1rem; }
  /* Truncate EN-heavy paragraphs to 2 lines */
  .tech-adv-card p {
    font-size: 0.78rem;
    line-height: 1.5;
    margin: 4px 0;
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset !important;
    
  }
  /* Truncate card paragraphs to 3 lines max */
  .tech-adv-card p {
    overflow: visible;
    display: block;
    -webkit-line-clamp: unset !important;
    
    font-size: 0.78rem;
    line-height: 1.55;
    margin-bottom: 4px;
  }
  body { overflow-x: clip; }
  html { overflow-x: clip; max-width: 100vw; }
  /* Note: using clip instead of hidden to preserve position:sticky on header */
  section { padding: 32px 0; }
  section, .container { overflow: visible !important; }

  /* ===== Module ①: Mobile Home Optimization ===== */

  /* — Hero: full description, no truncation — */
  .hero-v2 .hero-text > p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 100%;
  }

  /* — Core Stats: compact 2x2 grid — */
  .core-stat-item { padding: 14px 12px; }
  .core-stat-icon { width: 28px; height: 28px; margin: 0 auto 4px; }
  .core-stat-icon svg { width: 14px; height: 14px; }
  .core-stat-title { font-size: 0.82rem; margin-bottom: 2px; }
  .core-stat-desc { font-size: 0.8rem; line-height: 1.5; }

  /* — Section spacing: unify to 32px — */
  .section.section-gray { padding: 32px 0; }

  /* — Fold animation: smoother reveal — */
  @keyframes foldRevealSmooth {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  [data-fold-after]:not(.fold-collapsed) .fold-extra {
    animation: foldRevealSmooth 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  /* ===== Module ③: Technology Mobile Optimization ===== */

  /* — Fail cards: compact 2x2 grid — */
  .fail-grid { grid-template-columns: 1fr !important; gap: 16px !important; padding: 0 !important; }
  .fail-card { padding: 12px 12px !important; border-radius: 8px !important; min-height: auto !important; }
  .fail-card-top { height: 3px !important; }
  .fail-card-body { padding: 10px 10px !important; gap: 4px !important; display: flex !important; flex-direction: column !important; }
  .fail-card-header { margin-bottom: 0 !important; gap: 6px !important; }
  .fail-card-icon { width: 20px !important; height: 20px !important; min-width: 20px !important; max-width: 20px !important; border-radius: 4px !important; margin-bottom: 0 !important; }
  .fail-card-icon svg { width: 12px !important; height: 12px !important; }
  .fail-card-icon svg { width: 12px !important; height: 12px !important; }
  .fail-card-photo img { width: 100% !important; height: auto !important; aspect-ratio: 4/3 !important; object-fit: cover !important; }
  .fail-label { font-size: 0.7rem !important; margin-bottom: 0 !important; }
  .fail-card h3 { font-size: 0.82rem !important; margin: 0 !important; line-height: 1.2 !important; }
  .fail-card p { font-size: 0.85rem !important; line-height: 1.5 !important; margin-bottom: 0 !important; order: unset !important; flex: unset !important; }
  .fail-card .fail-impact { font-size: 0.72rem !important; padding: 3px 6px !important; border-radius: 3px !important; margin-top: 2px !important; width: auto !important; }
  .fail-card .fail-costs { font-size: 0.72rem !important; padding: 3px 6px !important; }

  /* — VS hero cards: stronger visual contrast — */
  .vs-hero-card.brand-col { border-width: 2px !important; box-shadow: 0 4px 24px rgba(37,99,235,0.2) !important; }
  .vs-hero-card .data-ph-bar { font-size: 0.75rem !important; padding: 6px 10px !important; margin-top: 10px !important; }

  /* — Tech advantage cards: concise — */
  .tech-adv-card { padding: 14px 14px !important; }
  .tech-adv-num { font-size: 1.4rem !important; margin-bottom: 4px !important; }
  .tech-adv-card h4 { font-size: 0.85rem !important; margin-bottom: 6px !important; }
  .tech-adv-card p { font-size: 0.85rem !important; line-height: 1.5 !important; }
  .tech-adv-card p + p { margin-top: 4px !important; }

  /* — Cross-section diagram: compact rows — */
  .tech-adv-card + div, .tech-advantage .container > div[style*="max-width:860px"] { display: block !important; padding: 20px !important; }
  .tech-advantage .container > div[style*="max-width:860px"] > div[style*="flex-direction:column"] > div { padding: 10px 12px !important; gap: 8px !important; }
  .tech-advantage .container > div[style*="max-width:860px"] h3 { font-size: 0.95rem !important; }
  .tech-advantage .container > div[style*="max-width:860px"] > div > div > div:last-child { font-size: 0.82rem !important; }

  /* — Testing timeline: already vertical via existing CSS, tighten spacing — */
  .testing-node { gap: 10px !important; }
  .testing-node h4 { font-size: 0.82rem !important; }
  .testing-node p { font-size: 0.7rem !important; line-height: 1.4 !important; }
  .testing-node-circle { width: 36px !important; height: 36px !important; }
  .testing-node-circle svg { width: 16px !important; height: 16px !important; }

  /* ================================================ */
  /*  MOBILE OPTIMIZATION — 2026-08-09                  */
  /*  Type scale + Spacing + Home slim + Products clean */
  /* ================================================ */

  /* --- 5-tier Type Scale --- */
  .hero-v2 .hero-text h1,
  .comparison-hero h1, .products-hero h1, .factory-hero h1,
  .downloads-hero h1, .contact-hero h1 { font-size: 1.5rem !important; }
  .section-title, .section .section-title,
  .section-gray .section-title { font-size: 1.25rem !important; }
  .sol-title { font-size: 1.5rem !important; }
  .sol-block.featured .sol-title { font-size: 1.75rem !important; }
  .section-desc, .section .section-desc,
  .section-gray .section-desc { font-size: 0.95rem !important; line-height: 1.6 !important; }
  .fail-card h3, .vs-hero-card h3, .vs-card h3,
  .prod-card-title, .tech-adv-card h4,
  .ark-step h4, .product-preview-card h3,
  .testing-card h4 { font-size: 1rem !important; }
  .fail-card p, .vs-hero-card p, .vs-hero-card .vs-subtitle,
  .vs-hero-card > p, .ark-step p,
  .tech-adv-grid p, .tech-adv-card p,
  .testing-card p, .testing-card div,
  .prod-card-desc, .product-preview-card p,
  .core-stat-desc,
  .prod-card-condition, .prod-card-advantage,
  .vs-metric-row .mr-value, .vs-metric-value,
  .vs-table-value, .vs-card-subtitle,
  .sol-item-content { font-size: 0.95rem !important; line-height: 1.6 !important; }
  .section-tag-v4, .prod-card-tag, .prod-card-section-label,
  .prod-card-app-tag, .prod-card-code,
  .prod-spec-label, .prod-spec-value,
  .fail-label, .vs-metric-label, .vs-table-label,
  .vs-metric-row .mr-label, .factory-metric-label,
  .hero-badge, .hero-v2-tag,
  .dl-card-tag, .dl-format, .dl-cat-count,
  .sol-featured-badge, .sol-item-label,
  .ci-label, .ci-value,
  .fold-btn, .rfq-float-label,
  .footer-col a, .footer-col li,
  .footer-brand p,
  .img-ph span { font-size: 0.8rem !important; }
  .nav-logo-text span { font-size: 0.65rem !important; }
  .hero-stat-label { font-size: 0.7rem !important; }
  .hero-stat-num { font-size: 1.5rem !important; }
  .core-stat-num { font-size: 1.75rem !important; }
  .factory-metric-num { font-size: 1.5rem !important; }

  /* --- Buttons: 44px touch target --- */
  .btn, .btn-lg, .btn-rfq, .btn-rfq-v4, .btn-datasheet, .fold-btn {
    min-height: 44px !important;
    font-size: 0.9rem !important;
    padding: 12px 20px !important;
  }

  /* --- Spacing & Breathing Room --- */
  .section { padding: 48px 0 !important; }
  .section-gray { padding: 48px 0 !important; }
  .hero-v2 { padding: 40px 0 32px !important; }
  .cta-v2 { padding: 56px 0 !important; }
  .container { padding: 0 20px !important; }
  .fail-card, .vs-hero-card, .ark-step,
  .tech-adv-card, .testing-card,
  .product-preview-card,
  .prod-card { padding: 20px !important; }
  .fail-grid, .vs-hero-grid, .tech-adv-grid,
  .ark-steps, .product-grid, .testing-grid { gap: 16px !important; }

  /* --- Core stats prominence --- */
  .core-stats { padding: 32px 20px !important; }
  .core-stats-grid { gap: 24px !important; }
  .core-stat { text-align: center; }

  /* --- Home: hide detail sub-cards on mobile --- */
  .hero-text > div[style*="grid-template-columns"] { display: none !important; }
  .app-compact-desc { display: none !important; }
  .product-preview-card .prod-card-specs,
  .product-preview-card .prod-card-advantage,
  .product-preview-card .prod-card-section-label,
  .product-preview-card .prod-card-apps { display: none !important; }
  .process-grid { display: none !important; }

  /* --- VS cards (homepage tech compare): compact on mobile --- */
  .vs-card-img { display: none !important; }
  .vs-metric-list { gap: 8px !important; }
  .vs-metric { padding: 6px 0 !important; }
  .vs-metric-label, .vs-metric-row .mr-label { font-size: 0.8rem !important; }
  .vs-metric-value, .vs-metric-row .mr-value { font-size: 0.85rem !important; }
  .vs-card-label { font-size: 0.75rem !important; margin-bottom: 4px !important; }
  .vs-card h3 { font-size: 0.95rem !important; margin-bottom: 8px !important; }

  /* --- Products: clean vertical cards --- */
  .prod-card {
    flex-direction: column !important;
    padding: 0 !important;
    border: 1px solid var(--gray-100) !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    overflow: hidden;
  }
  .prod-card-body { padding: 20px !important; gap: 10px !important; }
  .prod-card-specs { display: none !important; }
  .prod-card-section-label { display: none !important; }
  .prod-card-actions { gap: 10px !important; padding-top: 16px !important; }
  .btn-datasheet { display: none !important; }
  .btn-rfq-v4 { width: 100% !important; min-height: 44px !important; font-size: 0.9rem !important; padding: 12px 16px !important; }
  .filter-btn { padding: 10px 16px !important; font-size: 0.85rem !important; min-height: 44px !important; }

  /* --- Comparison: collapse table + swipeable steps --- */
  .ark-steps {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 12px !important;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .ark-step { min-width: 85% !important; scroll-snap-align: start; flex-shrink: 0; }
  .testing-grid > div:nth-child(n+3) { display: none !important; }
}

/* ===== Small Mobile (≤380px) ===== */
@media (max-width: 380px) {
  .hero-v2 .hero-text h1 { font-size: 1.55rem; }
  .hero-stat-num { font-size: 1.3rem; }
  .section-title { font-size: 1.3rem; }
  .container { padding: 0 12px; }
  .nav { padding: 0 12px; }
  .lang-btn { padding: 5px 8px; font-size: 0.7rem; }
}


/* ===== WhatsApp quick-contact floating button (all pages, desktop + mobile) ===== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-float);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: transform .3s, opacity .3s;
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 30px; height: 30px; fill: #ffffff; }

/* Mobile: smaller + avoid overlap with RFQ float when it appears */
@media (max-width: 768px) {
  .wa-float { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .rfq-float.visible ~ .wa-float { transform: translateY(-58px); }
  .wa-float ~ .rfq-float.visible { transform: translateY(-58px); }
}

/* ===== MOBILE POLISH v2 (2026-09-08) =====
   Appended per MOBILE-OPTIMIZATION-PLAN.md gap-fill:
   type-scale floor, section rhythm, touch targets, mobile slimming.
   Mobile-only (≤768px) — zero desktop impact. */

@media (max-width: 768px) {

  /* --- A. Type scale (5-tier alignment) --- */
  .hero-v2 .hero-text h1 { font-size: 1.5rem !important; }
  .section-title, .section .section-title,
  .section-gray .section-title { font-size: 1.25rem !important; }
  .section-desc, .section .section-desc,
  .section-gray .section-desc { font-size: 0.95rem !important; }
  .section-tag-v4 { font-size: 0.75rem !important; }
  .nav-logo-text span { font-size: 0.7rem !important; }

  /* Raise remaining sub-0.75rem small text to the XS floor */
  .hero-stat-label,
  .testing-node p,
  .fail-card .fail-impact,
  .fail-card .fail-costs,
  .factory-tile-caption p,
  .lang-btn { font-size: 0.75rem !important; }

  /* --- B. Breathing room (section rhythm) --- */
  .section { padding: 40px 0 !important; }
  .section-gray { padding: 48px 0 !important; }

  /* --- C. Touch targets (44px min; lang switch 40px) --- */
  .btn, .btn-lg, .btn-rfq, .btn-rfq-v4, .btn-datasheet,
  .fold-btn, .filter-btn, .filter-btn-v4 { min-height: 44px !important; }
  .lang-btn { min-height: 40px !important; }

  /* --- D. Mobile slimming (display:none only, no HTML change) --- */
  /* Tech-compare failure cards: shown on mobile since 2026-09-20 (wiki#2)
     was display:none — that hid ALL failure-mode photos on phones. */
  .fail-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 16px !important; padding: 0 !important; }
  .fail-grid + .fold-btn { display: none !important; }
  /* Homepage factory detail tiles: keep first 2, hide the rest */
  .factory-tiles-grid > .factory-tile:nth-child(n+3) { display: none !important; }
  .factory-grid-new + .fold-btn { display: none !important; }
}

/* ===== FEEDBACK FIX 2026-09-11 =====
   1) Mobile: comparison field-photo grid 4col -> 1col (multi-pick photos need full width)
   2) Nav highlight for Technology page: body[data-page=comparison] vs data-nav=technology
      (i18n.js matches data-page===data-nav; only this pair mismatches. CSS-only, no frozen-file change.) */

@media (max-width: 768px) {
  .field-photo-grid { grid-template-columns: 1fr !important; }
  .field-photo-grid img { height: auto !important; }
}

body[data-page="comparison"] .nav-link[data-nav="technology"] {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}
@media (max-width: 768px) {
  body[data-page="comparison"] .nav-link[data-nav="technology"] {
    background: rgba(37,99,235,0.12) !important;
    color: #06b6d4 !important;
  }
}

