/* ============================================================
   XiangshuTech — Global Stylesheet
   Modern medical-tech aesthetic for an investor-grade website
   ============================================================ */

:root {
  --bg: #060b18;
  --bg-elev: #0b1426;
  --bg-card: #0f1c33;
  --bg-card-hover: #142441;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(0, 212, 255, 0.35);

  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent: #00d4ff;
  --accent-2: #0ea5e9;
  --accent-3: #6366f1;
  --accent-glow: rgba(0, 212, 255, 0.15);

  --grad-hero: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 212, 255, 0.18), transparent 60%),
               radial-gradient(ellipse 60% 50% at 90% 30%, rgba(99, 102, 241, 0.12), transparent 60%),
               linear-gradient(180deg, #060b18 0%, #0b1426 100%);
  --grad-accent: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 50%, #6366f1 100%);

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0, 212, 255, 0.08);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ====== Container ====== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 768px) { .container { padding: 0 20px; } }

/* ====== Navbar ====== */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6, 11, 24, 0.75);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; font-size: 18px; letter-spacing: 0.3px;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; color: #061224; font-size: 16px;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.4);
}
.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.nav-link {
  position: relative;
  padding: 8px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,0.04); }
.nav-link.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--grad-accent); border-radius: 2px;
}
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  min-width: 180px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 6px; box-shadow: var(--shadow);
  display: none; flex-direction: column;
}
.nav-dropdown:hover .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  padding: 8px 12px; border-radius: 6px; font-size: 14px;
  color: var(--text-secondary);
}
.nav-dropdown-menu a:hover { color: var(--text); background: rgba(0, 212, 255, 0.08); }
.lang-toggle {
  margin-left: 16px;
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04); border-radius: 8px; padding: 4px;
  border: 1px solid var(--border);
}
.lang-toggle button {
  border: 0; background: transparent;
  color: var(--text-secondary); font-weight: 600; font-size: 12px;
  padding: 4px 10px; border-radius: 6px; cursor: pointer;
  font-family: var(--font-sans);
}
.lang-toggle button.active { background: var(--grad-accent); color: #061224; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border);
  color: var(--text); padding: 6px 10px; border-radius: 8px; cursor: pointer;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-elev); padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    align-items: stretch;
  }
  .nav-dropdown-menu { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; background: transparent; }
  .nav-dropdown:hover .nav-dropdown-menu { display: flex; }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: 100px 0 80px;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 920px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--accent); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero h1 .grad {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p.lede {
  font-size: clamp(16px, 1.8vw, 20px);
  color: var(--text-secondary);
  max-width: 720px; margin: 0 auto 36px;
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  cursor: pointer; border: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: var(--font-sans);
}
.btn-primary {
  background: var(--grad-accent); color: #061224;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0, 212, 255, 0.45); }
.btn-secondary {
  background: rgba(255,255,255,0.06); color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); border-color: var(--border-strong); }

/* ====== Section ====== */
section { padding: 96px 0; position: relative; }
@media (max-width: 768px) { section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.section-sub { color: var(--text-secondary); font-size: 17px; }

/* ====== Stats Grid ====== */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  position: relative; padding: 32px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stat-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad-accent);
  opacity: 0; transition: opacity 0.2s ease;
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
  font-size: 44px; font-weight: 800; line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}
.stat-label { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

/* ====== Feature/Card Grid ====== */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px; transition: all 0.25s ease;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card::after {
  content: ""; position: absolute; inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, transparent, rgba(0,212,255,0.2), transparent);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none; z-index: -1;
}
.card:hover::after { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--accent);
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.005em; }
.card p { color: var(--text-secondary); font-size: 15px; }

/* ====== Split (image + text) ====== */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-figure {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.split-figure img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(26px, 3.5vw, 36px); font-weight: 700; margin-bottom: 16px; letter-spacing: -0.01em; }
.split p { color: var(--text-secondary); font-size: 16px; margin-bottom: 16px; }
.split ul { list-style: none; }
.split ul li {
  padding: 10px 0 10px 28px; position: relative;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary); font-size: 15px;
}
.split ul li:last-child { border-bottom: 0; }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 16px; height: 2px; background: var(--grad-accent); border-radius: 2px;
}

/* ====== Tech showcase gallery ====== */
.gallery {
  display: grid; gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.tile {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: transform 0.2s ease;
}
.tile:hover { transform: scale(1.02); border-color: var(--border-strong); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 20px;
  background: linear-gradient(180deg, transparent, rgba(6,11,24,0.85));
  font-weight: 600; font-size: 15px;
}

/* ====== Section with bg variant ====== */
.bg-soft { background: var(--bg-elev); }
.bg-gradient {
  background: radial-gradient(ellipse 50% 50% at 50% 0%, rgba(0, 212, 255, 0.1), transparent 60%), var(--bg);
}

/* ====== CTA banner ====== */
.cta-banner {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid var(--border-strong);
  position: relative; overflow: hidden;
}
.cta-banner h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.cta-banner p { color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto 28px; }

/* ====== Footer ====== */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  background: var(--bg-elev);
}
.footer-grid {
  display: grid; gap: 40px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  margin-bottom: 40px;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 18px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-secondary); font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-brand p { color: var(--text-secondary); font-size: 14px; max-width: 320px; margin: 12px 0; line-height: 1.6; }
.socials { display: flex; gap: 10px; margin-top: 16px; }
.socials a {
  width: 36px; height: 36px; border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s ease;
}
.socials a:hover { background: rgba(0, 212, 255, 0.1); border-color: var(--border-strong); color: var(--accent); }
.copy { text-align: center; padding-top: 32px; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 13px; }

/* ====== Page header (for inner pages) ====== */
.page-header {
  padding: 80px 0 40px;
  background: var(--grad-hero);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px;
}
.page-header p { color: var(--text-secondary); font-size: 18px; max-width: 720px; margin: 0 auto; }

/* ====== Patent / list card variants ====== */
.patent-list { display: flex; flex-direction: column; gap: 16px; }
.patent-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 24px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  transition: all 0.2s ease;
}
.patent-item:hover { border-color: var(--border-strong); transform: translateX(4px); }
.patent-num {
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.08em;
}
.patent-title { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.patent-meta { color: var(--text-muted); font-size: 13px; }
.tag {
  display: inline-block; padding: 4px 10px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  color: var(--accent);
}
@media (max-width: 700px) {
  .patent-item { grid-template-columns: 1fr; gap: 8px; }
}

/* ====== News timeline ====== */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item { position: relative; padding: 20px 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -28px; top: 28px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}
.timeline-date { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.timeline-item h3 { font-size: 19px; font-weight: 700; margin: 6px 0 8px; }
.timeline-item p { color: var(--text-secondary); font-size: 15px; }

/* ====== Contact section ====== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  display: flex; gap: 16px; align-items: center;
  padding: 20px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(0, 212, 255, 0.1); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.contact-card .label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.contact-card .value { font-size: 16px; font-weight: 600; }

/* ====== Bilingual visibility (toggled by JS) ====== */
[data-lang] { display: none; }
html[lang="zh"] [data-lang="zh"] { display: revert; }
html[lang="en"] [data-lang="en"] { display: revert; }

/* fade-in on scroll — only hide when JS is active (fail-safe: visible by default) */
html.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ===== Product cards (image-heavy) ===== */
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.product-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.25s ease;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.product-image {
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #0b1426, #142441);
  display: flex; align-items: center; justify-content: center;
}
.product-image img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform 0.4s ease;
  padding: 24px;
}
.product-card:hover .product-image img { transform: scale(1.05); }
.product-image::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0,212,255,0.08), transparent 70%);
  pointer-events: none;
}
.product-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.product-tier {
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.product-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.product-tag { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; }
.product-spec {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 16px; margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 13px;
}
.product-spec-row { display: flex; justify-content: space-between; gap: 12px; }
.product-spec-row .label { color: var(--text-muted); }
.product-spec-row .value { color: var(--text); font-weight: 600; text-align: right; }
.product-price {
  font-size: 18px; font-weight: 800;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Video player ===== */
.video-frame {
  position: relative;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }
.video-caption {
  margin-top: 14px; font-size: 14px; color: var(--text-secondary);
}
.video-caption strong { color: var(--text); font-weight: 700; }
.video-grid {
  display: grid; gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
}

/* ===== Why-now grid ===== */
.why-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.why-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden;
  transition: all 0.2s ease;
}
.why-item:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.why-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.18em; margin-bottom: 12px;
}
.why-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why-item p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ===== Team / People cards ===== */
.people-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.person-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all 0.2s ease;
}
.person-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.person-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--grad-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 900; color: #061224;
  margin-bottom: 20px; overflow: hidden;
  border: 2px solid var(--border-strong);
}
.person-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.person-name { font-size: 19px; font-weight: 700; margin-bottom: 4px; }
.person-role { color: var(--accent); font-weight: 600; font-size: 13px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.05em; }
.person-bio { color: var(--text-secondary); font-size: 14px; line-height: 1.7; }

/* ===== Number highlight ===== */
.big-numbers {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.big-num-card {
  background: linear-gradient(135deg, rgba(0,212,255,0.06), rgba(99,102,241,0.03));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative; overflow: hidden;
}
.big-num-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: var(--grad-accent);
}
.big-num-value {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 900; line-height: 1;
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 14px; letter-spacing: -0.02em;
}
.big-num-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.big-num-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

/* ===== Layer architecture ===== */
.layer-stack { display: flex; flex-direction: column; gap: 12px; }
.layer-row {
  display: grid; grid-template-columns: 80px 1fr;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.2s ease;
}
.layer-row:hover { border-color: var(--border-strong); transform: translateX(4px); }
.layer-tag {
  background: var(--grad-accent); color: #061224;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; padding: 24px 0;
}
.layer-body { padding: 20px 24px; }
.layer-name { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.layer-name span { color: var(--accent); font-weight: 600; font-size: 13px; margin-left: 8px; }
.layer-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }

@media (max-width: 600px) {
  .layer-row { grid-template-columns: 60px 1fr; }
  .layer-tag { font-size: 18px; padding: 16px 0; }
}

/* ===== Hero with video poster background ===== */
.hero-with-bg {
  position: relative;
  background: var(--grad-hero);
  overflow: hidden;
}
.hero-bg-image {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.18;
  filter: blur(2px);
}
.hero-with-bg .hero-inner { position: relative; z-index: 2; }
.hero-with-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6,11,24,0.65) 0%, rgba(6,11,24,0.92) 80%, var(--bg) 100%);
}
