/* ============================================================
   YB Auto Parts — Design System
   ============================================================ */
:root {
  --accent: #1a56db;
  --accent-dark: #1240a8;
  --accent-light: #e8f0fe;
  --gold: #c8922a;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --card: #ffffff;
  --text: #1a1f2e;
  --muted: #5a6478;
  --border: #e2e8f0;
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(15,30,70,.06);
  --shadow-md: 0 8px 24px rgba(15,30,70,.10);
  --shadow-lg: 0 20px 48px rgba(15,30,70,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Microsoft YaHei', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ── Page Transitions ── */
html, body { height: 100%; }
.page-enter { opacity: 0; transform: translateY(10px); }
.page-enter-active {
  transition: opacity .4s ease, transform .4s cubic-bezier(.2,.9,.2,1);
  opacity: 1; transform: none;
}
.page-exit { opacity: 1; }
.page-exit-active { opacity: 0; transition: opacity .28s ease; }

/* ── Scroll Reveal ── */
.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.2,1);
  will-change: opacity, transform;
}
.reveal-item.in-view { opacity: 1; transform: none; }

/* stagger children */
.reveal-item:nth-child(2) { transition-delay: .1s; }
.reveal-item:nth-child(3) { transition-delay: .2s; }
.reveal-item:nth-child(4) { transition-delay: .3s; }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
main.container { text-align: left; }

/* ── Header ── */
.site-header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 12px rgba(15,30,70,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  gap: 1rem;
}
.brand img { height: 42px; }

/* ── Nav ── */
.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  transition: color .18s, background .18s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--accent); background: var(--accent-light); }
.main-nav a:focus { outline: 3px solid var(--accent-light); border-radius: 6px; }

/* ── Language Toggle ── */
.lang-toggle {
  margin-left: 0.5rem;
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: .4rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,86,219,.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  display: inline-flex; align-items: center; gap: 0.4rem;
  z-index: 1500;
  white-space: nowrap;
}
.lang-toggle:hover { transform: translateY(-2px); background: var(--accent-dark); box-shadow: 0 8px 20px rgba(26,86,219,.3); }
.lang-toggle:focus { outline: 3px solid rgba(26,86,219,.2); }
.lang-toggle .zh, .lang-toggle .en { opacity: 0.85; transition: opacity .12s; }
html[lang^="zh"] .lang-toggle .zh { opacity: 1; font-weight: 900; }
html[lang^="zh"] .lang-toggle .en { opacity: 0.55; }
html[lang="en"] .lang-toggle .en { opacity: 1; font-weight: 900; }
html[lang="en"] .lang-toggle .zh { opacity: 0.55; }

@media (max-width: 420px) {
  .lang-toggle { padding: .35rem .6rem; font-size: .82rem; }
}

/* ── Mobile Toggle ── */
.mobile-nav-toggle { display: none; background: transparent; border: 0; padding: .3rem; border-radius: 6px; cursor: pointer; }
.mobile-nav-toggle svg { height: 24px; width: 24px; }

/* ── Hero ── */
.hero {
  padding: 4rem 0 3.5rem;
  background: linear-gradient(135deg, #0f1e46 0%, #1a3a7a 50%, #1a56db 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(26,86,219,.35) 0%, transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  display: flex;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-left { flex: 0 0 auto; display: flex; align-items: center; }
.page-left-logo {
  height: 200px;
  width: auto;
  border-radius: var(--radius);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}
.hero-text { flex: 1; }
.hero-title { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-title h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
}
.hero-text p {
  color: rgba(255,255,255,.75);
  margin: 0 0 1.75rem;
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
}
.site-logo { height: 100px; width: auto; border-radius: var(--radius-sm); object-fit: contain; flex-shrink: 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  color: var(--accent);
  padding: .7rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.2); background: var(--accent-light); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.5);
  box-shadow: none;
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.stats-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: .5rem 1rem; }
.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  display: block;
}
.stat-label { font-size: .82rem; color: var(--muted); margin-top: .25rem; }

/* ── Slogans ── */
.slogans {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  margin: 2rem 0;
}
.slogan {
  flex: 1;
  text-align: center;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.slogan::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.slogan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.slogan.lead { font-size: 1.1rem; color: var(--accent); }
.slogan p { margin: .4rem 0 0; color: var(--muted); font-weight: 500; font-size: .88rem; }

@media (max-width: 900px) {
  .slogans { flex-direction: column; gap: .75rem; }
}

/* ── Section Titles ── */
.section-header { margin-bottom: 2rem; }
.section-header h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 .5rem;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  margin-top: .4rem;
}
.section-header p { color: var(--muted); font-size: .95rem; }

/* ── About Section ── */
.about { padding: 3rem 0; }
.about-inner { align-items: center; gap: 3rem; }
.about-text h2 { margin-top: 0; font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.about-text h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 2px;
  margin-top: .4rem;
}
.about-text p { color: var(--muted); margin-bottom: 1rem; line-height: 1.8; font-size: .95rem; }
.about-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* ── CTA ── */
.cta {
  background: linear-gradient(135deg, #0f1e46 0%, #1a3a7a 100%);
  padding: 3.5rem 2rem;
  border-radius: var(--radius);
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 50%, rgba(26,86,219,.4) 0%, transparent 70%);
  pointer-events: none;
}
.cta h2 { color: #fff; font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem; position: relative; }
.cta p { color: rgba(255,255,255,.75); margin-bottom: 1.75rem; position: relative; }
.cta .btn { position: relative; }

/* ── Cards ── */
.card {
  background: var(--card);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .22s ease, box-shadow .22s ease;
  contain: layout;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  margin-bottom: .75rem;
  display: block;
  background: #f6f8fc;
  padding: 6px;
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.card p { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── Cards Grid ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.cards .card { min-height: 220px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; }

/* ── Card Gallery ── */
.card .gallery { display: flex; gap: 0.6rem; align-items: center; }
.card .gallery img { width: calc(50% - 0.3rem); height: 140px; object-fit: contain; border-radius: var(--radius-sm); display: block; background: #f6f8fc; padding: 6px; }

/* ── Product Grid ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; align-items: start; }
.product-grid .card img { width: 100%; height: auto; max-height: 220px; object-fit: contain; background: #f6f8fc; padding: 6px; border-radius: var(--radius-sm); }

/* ── Product Detail ── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.product-detail .detail-image img { width: 100%; height: auto; border-radius: var(--radius); }
.product-detail .detail-info h2 { margin-top: 0; }
.product-detail .detail-image .gallery img { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: var(--radius); display: block; margin-bottom: 0.6rem; }

/* ── Brand Frame ── */
.brand-frame {
  width: 400px; height: 300px; max-width: 100%;
  background: transparent; padding: 12px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  transition: transform .15s ease;
}
.brand-frame .brand-logo { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.card .brand-logo:hover { transform: translateY(-4px); }

/* ── Grid Helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── Map ── */
.map { background: #e9eef5; height: 260px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.contact-map img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.contact-map figcaption { color: var(--muted); }
.contact-map iframe { width: 100%; height: 320px; border-radius: var(--radius); display: block; }

/* ── Footer ── */
.site-footer {
  background: #0f1e46;
  margin-top: 4rem;
  color: rgba(255,255,255,.7);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner p { font-size: .88rem; }
.footer-nav a { margin-left: 1.25rem; color: rgba(255,255,255,.6); text-decoration: none; font-size: .88rem; transition: color .15s; }
.footer-nav a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { padding: 2.5rem 0 2rem; }
  .hero-inner { flex-direction: column; text-align: left; gap: 1.5rem; }
  .hero-title h1 { font-size: 1.7rem; }
  .page-left-logo { height: 140px; }
  .hero-left { margin-right: 0; }
  .site-logo { height: 80px; }
  .hero-title { gap: .75rem; }
  .about-inner { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .card .gallery { flex-direction: column; }
  .card .gallery img { width: 100%; height: 160px; }
  .brand-frame { width: 80%; height: auto; padding: 10px; }
  .brand-frame .brand-logo { max-height: 200px; }
  .contact-map iframe { height: 280px; }
  .stats-inner { gap: .5rem; }
  .stat-number { font-size: 1.5rem; }

  /* Mobile Nav */
  .main-nav {
    display: flex; flex-direction: column;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .24s ease, transform .24s ease, visibility .24s;
  }
  .mobile-nav-toggle { display: block; }
  .main-nav.open {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed; inset: 0;
    padding: 2.5rem 1.5rem;
    z-index: 1400; overflow: auto;
    gap: .5rem;
  }
  .main-nav.open a {
    font-size: 1.1rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open > * { width: 100%; }
}

/* ── Nav Open Lock ── */
html.nav-open, body.nav-open { overflow: hidden; height: 100%; }
.nav-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .2s ease;
  z-index: 1350;
}
html.nav-open .nav-backdrop { opacity: 1; visibility: visible; }
.site-header.hidden-during-overlay { opacity: 0; pointer-events: none; transition: opacity .18s ease; }

/* ── Features Grid ── */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.feature {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature img { height: 72px; margin-bottom: .75rem; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ============================================================
   2026 Visual Refresh
   ============================================================ */
:root {
  --accent: #1f5eff;
  --accent-dark: #143ca2;
  --accent-soft: #dfe8ff;
  --ink: #0c162d;
  --ink-soft: #41506d;
  --steel: #7b879a;
  --surface-alt: #eef3fb;
  --surface-dark: #091223;
  --line: rgba(25, 46, 89, 0.1);
  --gold: #c89d47;
  --gradient-hero: linear-gradient(135deg, #081120 0%, #10254c 44%, #1d4ed8 100%);
  --shadow-card: 0 18px 42px rgba(9, 18, 35, 0.12);
  --shadow-soft: 0 10px 28px rgba(9, 18, 35, 0.08);
}

body {
  background:
    radial-gradient(circle at top left, rgba(31, 94, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  color: var(--ink);
}

a { color: inherit; }

.site-header {
  background: rgba(244, 247, 251, 0.84);
  border-bottom: 1px solid rgba(91, 116, 170, 0.14);
  box-shadow: 0 10px 32px rgba(9, 18, 35, 0.06);
}

.header-inner {
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
  gap: 1.25rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}

.site-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(31, 94, 255, 0.08);
}

.site-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.site-brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.site-brand-copy span {
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-left: auto;
}

.main-nav {
  gap: 0.35rem;
}

.main-nav a {
  color: var(--ink-soft);
  font-weight: 700;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--accent-dark);
  background: rgba(31, 94, 255, 0.08);
}

.mobile-nav-toggle,
.lang-toggle {
  flex-shrink: 0;
}

.lang-toggle {
  background: var(--ink);
  box-shadow: 0 10px 20px rgba(12, 22, 45, 0.16);
}

.lang-toggle:hover {
  background: #14284e;
}

.home-main {
  overflow: clip;
}

.home-hero {
  padding: 4.6rem 0 3.25rem;
  background: var(--gradient-hero);
}

.home-hero::before {
  background:
    radial-gradient(circle at 22% 18%, rgba(200, 157, 71, 0.18), transparent 24%),
    radial-gradient(circle at 85% 24%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 82% 78%, rgba(31, 94, 255, 0.24), transparent 20%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 670px;
}

.hero-eyebrow,
.section-kicker,
.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 1rem;
}

.hero-title h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.02;
  max-width: 12ch;
  margin-bottom: 1rem;
}

.hero-subtitle {
  max-width: 54ch;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  min-width: 150px;
  justify-content: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
}

.hero-visual {
  display: grid;
  gap: 1rem;
}

.hero-visual-card {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-card);
}

.hero-visual-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.hero-visual-copy {
  padding: 1.2rem 1.25rem 1.35rem;
  color: #fff;
}

.hero-card-label {
  color: rgba(255, 255, 255, 0.62);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
}

.hero-visual-copy h2 {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: 0.55rem;
}

.hero-visual-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-mini-card,
.stat-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-soft);
}

.hero-mini-card strong,
.stat-card .stat-number {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.hero-mini-card span,
.stat-card .stat-label {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

.home-metrics {
  margin-top: -1.8rem;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-section {
  padding: 4.4rem 0;
}

.section-surface {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(233, 239, 248, 0.82)),
    radial-gradient(circle at right top, rgba(31, 94, 255, 0.08), transparent 30%);
}

.section-header {
  margin-bottom: 1.8rem;
}

.section-kicker {
  color: var(--accent-dark);
  margin-bottom: 0.7rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.65rem;
}

.section-header h2::after {
  width: 68px;
  height: 4px;
}

.section-header p:last-child {
  max-width: 60ch;
  font-size: 1rem;
  color: var(--ink-soft);
}

.page-main {
  padding-top: 2.5rem;
  padding-bottom: 1rem;
}

.page-block {
  margin-top: 2rem;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card {
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border-color: var(--line);
  overflow: hidden;
}

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

.card img,
.product-grid .card img {
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f9fc, #edf2f8);
}

.product-showcase .card,
.product-grid .card,
.cards .card {
  padding: 1.2rem;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.feature-tile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.feature-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(31, 94, 255, 0.22);
}

.feature-tile img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 18px;
}

.feature-tile h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.feature-tile p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.company-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.company-copy p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.story-highlight {
  padding: 1rem 1.15rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(31, 94, 255, 0.08), rgba(200, 157, 71, 0.12));
  color: var(--ink);
}

.company-media img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  border-radius: 26px;
  box-shadow: var(--shadow-card);
}

.story-panel {
  margin-top: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.story-panel-label {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.story-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
}

.story-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--ink-soft);
}

.story-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
}

.logo-ribbon {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.logo-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform .18s ease, box-shadow .18s ease;
}

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

.logo-pill img {
  width: 100%;
  max-width: 150px;
  max-height: 64px;
  object-fit: contain;
}

.home-cta {
  margin-bottom: 3rem;
  padding: 3.6rem 2rem;
  border-radius: 28px;
}

.home-cta .section-kicker {
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.3rem 0 2.2rem;
  background:
    linear-gradient(180deg, rgba(9, 18, 35, 0.94), rgba(16, 37, 76, 0.88)),
    radial-gradient(circle at 12% 22%, rgba(200, 157, 71, 0.16), transparent 24%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%),
    radial-gradient(circle at 82% 26%, rgba(31, 94, 255, 0.3), transparent 22%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-breadcrumb {
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 0.9rem;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2rem, 3.2vw, 3.3rem);
  line-height: 1.05;
  margin-bottom: 0.7rem;
}

.page-hero p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.78);
}

.page-shell {
  margin-top: -1.2rem;
  position: relative;
  z-index: 2;
}

.page-shell.container {
  padding-top: 0;
}

.page-shell > *:first-child {
  margin-top: 0;
}

.page-shell .page-block,
.page-shell > section,
.page-shell > div,
.page-shell > article,
.page-shell > .card {
  position: relative;
}

.page-shell .section-header {
  margin-bottom: 1.4rem;
}

.brand-grid .card,
.patent-item.card {
  text-align: center;
}

.brand-grid .card h4 {
  font-size: 1rem;
  margin-top: 0.3rem;
}

.brand-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 1.15rem;
  align-items: start;
}

.brand-highlight {
  position: sticky;
  top: 6.2rem;
  padding: 1.6rem;
  border-radius: 30px;
  background:
    linear-gradient(155deg, rgba(8, 17, 32, 0.98), rgba(16, 37, 76, 0.94)),
    radial-gradient(circle at top right, rgba(200, 157, 71, 0.16), transparent 30%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.brand-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 18%, rgba(31, 94, 255, 0.25), transparent 24%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.06), transparent 42%);
  pointer-events: none;
}

.brand-highlight > * {
  position: relative;
  z-index: 1;
}

.brand-highlight-label {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.brand-highlight h3 {
  color: #fff;
  font-size: 1.9rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.8rem;
}

.brand-highlight p {
  color: rgba(255, 255, 255, 0.76);
}

.brand-metric-strip {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.brand-metric-strip article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-metric-strip strong {
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
}

.brand-metric-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  text-align: right;
}

.brand-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.brand-panel {
  position: relative;
  min-height: 228px;
  padding: 1rem;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 252, 0.98)),
    radial-gradient(circle at top right, rgba(31, 94, 255, 0.08), transparent 28%);
  border: 1px solid rgba(25, 46, 89, 0.1);
  box-shadow: var(--shadow-soft);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  overflow: hidden;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0.95;
}

.brand-panel:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(31, 94, 255, 0.18);
}

.brand-panel-featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 1rem;
  min-height: 250px;
}

.brand-panel-featured .brand-frame {
  width: 100%;
  height: 180px;
  margin: 0;
}

.brand-panel-featured h4 {
  font-size: 1.25rem;
}

.brand-panel-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(31, 94, 255, 0.08);
  color: var(--accent-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-panel .brand-frame {
  width: 100%;
  height: 140px;
  padding: 1rem 0.5rem 0.8rem;
  margin: 0 0 0.6rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.92), rgba(235, 241, 248, 0.94));
}

.brand-panel .brand-logo {
  max-width: 88%;
  max-height: 100%;
}

.brand-panel h4 {
  margin-top: 0;
  padding-right: 6.8rem;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
}

.home-brand-grid.brand-grid .card,
.home-brand-grid.brand-grid .card h4 {
  text-align: left;
}

.patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.patent-item.card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.patent-item.card p {
  margin-top: 0.9rem;
  font-size: 0.9rem;
}

.product-detail {
  gap: 1.6rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.product-detail .detail-image img,
.product-detail .detail-image .gallery img {
  background: linear-gradient(180deg, #f7f9fc, #edf2f8);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-info h2 {
  font-size: 1.65rem;
  line-height: 1.2;
}

.detail-info p,
.detail-info li {
  color: var(--ink-soft);
}

.detail-info ul {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
}

.detail-info li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 1.6rem;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid rgba(31, 94, 255, 0.08);
}

.detail-info li::before {
  content: "";
  position: absolute;
  left: 0.8rem;
  top: 1.25rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.generated-hero-from-detail .detail-info > h2:first-child,
.generated-hero-from-detail .detail-info > p:first-of-type {
  display: none;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(360px, 1.08fr);
  gap: 1rem;
  margin-top: 2rem;
}

.contact-card,
.contact-map-card {
  padding: 1.4rem;
}

.contact-card h2,
.contact-map-card h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-info-grid {
  display: grid;
  gap: 0.9rem;
}

.contact-info-grid p {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: var(--surface-alt);
  border: 1px solid rgba(31, 94, 255, 0.08);
  color: var(--ink-soft);
}

.contact-map {
  margin-top: 0.8rem;
}

.contact-map figcaption {
  color: var(--ink-soft);
  margin-top: 0.65rem;
  font-size: 0.9rem;
}

.site-footer {
  margin-top: 5rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background:
    linear-gradient(180deg, #07111f, #0b1628);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.9fr) minmax(220px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.footer-meta h4,
.footer-links h4 {
  color: #fff;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.footer-meta p,
.footer-links a,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-nav {
  margin-left: 0;
}

.patent-detail-view,
.image-detail-card {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.image-detail-card img,
.patent-detail-view img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}

@media (max-width: 1100px) {
  .brand-showcase {
    grid-template-columns: 1fr;
  }

  .brand-highlight {
    position: relative;
    top: 0;
  }

  .hero-layout,
  .company-story,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .logo-ribbon {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.85rem;
  }

  .header-tools {
    width: 100%;
    justify-content: flex-end;
  }

  .site-brand-copy span {
    white-space: normal;
  }

  .home-hero {
    padding-top: 3.25rem;
  }

  .hero-title h1,
  .page-hero h1 {
    max-width: none;
  }

  .stats-grid,
  .hero-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .main-nav.open {
    padding-top: 5.5rem;
  }
}

@media (max-width: 640px) {
  .brand-wall {
    grid-template-columns: 1fr;
  }

  .brand-panel-featured {
    grid-template-columns: 1fr;
  }

  .brand-panel-featured {
    grid-column: span 1;
  }

  .brand-panel h4,
  .brand-panel-featured h4 {
    padding-right: 0;
    padding-top: 0.25rem;
  }

  .brand-panel-badge {
    position: static;
    margin-bottom: 0.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .site-brand {
    max-width: calc(100% - 7rem);
  }

  .site-brand-copy strong {
    font-size: 0.95rem;
  }

  .site-brand-copy span {
    font-size: 0.7rem;
  }

  .header-tools {
    width: auto;
    margin-left: auto;
  }

  .hero-actions,
  .hero-trust {
    flex-direction: column;
    align-items: stretch;
  }

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

  .stats-grid,
  .hero-mini-grid,
  .logo-ribbon {
    grid-template-columns: 1fr;
  }

  .home-section {
    padding: 3.3rem 0;
  }

  .home-cta {
    padding: 2.5rem 1.25rem;
  }

  .feature-tile {
    grid-template-columns: 1fr;
  }

  .feature-tile img {
    width: 100%;
    height: 180px;
  }

  .product-detail {
    padding: 1rem;
  }

  .contact-card,
  .contact-map-card,
  .card {
    padding: 1rem;
  }
}
