/* ============================================================
   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: 150px 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.06em;
  overflow-wrap: anywhere; word-break: break-word; line-height: 1.5;
}
.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%);
}

/* ============================================================
   v2 — Brainlab-inspired cinematic polish & motion
   ============================================================ */

/* ---- Animated aurora + drifting grid in hero ---- */
.hero::after {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 120%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 40% at 20% 20%, rgba(0,212,255,0.16), transparent 60%),
    radial-gradient(ellipse 45% 45% at 85% 15%, rgba(99,102,241,0.16), transparent 60%),
    radial-gradient(ellipse 40% 40% at 60% 80%, rgba(14,165,233,0.12), transparent 60%);
  filter: blur(8px);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  50%  { transform: translate3d(-3%,2%,0) scale(1.08); opacity: 1; }
  100% { transform: translate3d(3%,-2%,0) scale(1.04); opacity: 0.85; }
}
.hero-inner { animation: heroRise 1s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes heroRise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::after, .hero-inner, .marquee-track { animation: none !important; }
}

/* ---- Nav: shrink + solidify on scroll ---- */
.nav { transition: background 0.3s ease, height 0.3s ease, box-shadow 0.3s ease; }
.nav.scrolled {
  background: rgba(6, 11, 24, 0.92);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav.scrolled .nav-inner { height: 60px; }
.brand-mark { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.06); box-shadow: 0 0 32px rgba(0,212,255,0.6); }

/* ---- Buttons: shimmer sweep ---- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 140%; }

/* ---- Reveal: richer motion + stagger ---- */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1); }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal[data-reveal="left"]  { transform: translateX(-36px); }
html.js .reveal[data-reveal="right"] { transform: translateX(36px); }
html.js .reveal[data-reveal="scale"] { transform: scale(0.94); }
html.js .reveal.in[data-reveal] { transform: none; }
html.js [data-stagger] > .reveal { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---- Section eyebrow: animated leading bar ---- */
.section-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.section-eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px;
  background: var(--grad-accent); display: inline-block;
}

/* ---- Cinematic full-bleed statement ---- */
.statement {
  position: relative; overflow: hidden;
  padding: 120px 0; text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,212,255,0.10), transparent 65%),
    linear-gradient(180deg, var(--bg-elev), var(--bg));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.statement .container { position: relative; z-index: 2; max-width: 960px; }
.statement h2 {
  font-size: clamp(30px, 5vw, 60px); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
.statement h2 .grad {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.statement p { color: var(--text-secondary); font-size: clamp(16px,1.6vw,20px); max-width: 680px; margin: 0 auto; }

/* ---- Full-bleed cinematic video band (eye loop) ---- */
.video-band {
  position: relative; overflow: hidden;
  min-height: 460px; display: flex; align-items: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.video-band__media {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.video-band::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse 70% 90% at 30% 50%, rgba(6,11,24,0.55), transparent 70%),
    linear-gradient(90deg, rgba(6,11,24,0.92) 0%, rgba(6,11,24,0.72) 40%, rgba(6,11,24,0.30) 100%);
}
.video-band .container { position: relative; z-index: 2; }
.video-band--hero { min-height: 600px; }
.video-band--hero .eyebrow { margin-bottom: 22px; }
.video-band__inner { max-width: 660px; }
.video-band h2 {
  font-size: clamp(30px, 4.5vw, 56px); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em; margin-bottom: 18px;
}
.video-band h2 .grad {
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.video-band p { color: var(--text-secondary); font-size: clamp(16px,1.6vw,19px); margin-bottom: 28px; }
@media (max-width: 768px) { .video-band { min-height: 380px; } .video-band::after { background: linear-gradient(180deg, rgba(6,11,24,0.55), rgba(6,11,24,0.85)); } }

/* ---- Kinetic marquee of capability keywords ---- */
.marquee {
  overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-elev); padding: 20px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: inline-flex; gap: 48px; white-space: nowrap; animation: marquee 32s linear infinite; }
.marquee-track span {
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--text-secondary); text-transform: uppercase; display: inline-flex; align-items: center; gap: 48px;
}
.marquee-track span::after { content: "◆"; color: var(--accent); font-size: 8px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---- Publications (linked, richer) ---- */
.pub-list { display: flex; flex-direction: column; gap: 16px; }
.pub-card {
  position: relative; display: grid; grid-template-columns: 96px 1fr auto;
  gap: 24px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 26px;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.pub-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--grad-accent); opacity: 0; transition: opacity 0.25s ease;
}
.pub-card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.pub-card:hover::before { opacity: 1; }
.pub-venue {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; line-height: 1.5;
  color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase;
}
.pub-title { font-weight: 700; font-size: 16px; margin-bottom: 5px; letter-spacing: -0.005em; }
.pub-authors { color: var(--text-secondary); font-size: 13px; }
.pub-authors b { color: var(--text); font-weight: 700; }
.pub-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pub-link { color: var(--accent); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.pub-link:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .pub-card { grid-template-columns: 1fr; gap: 10px; }
  .pub-right { flex-direction: row; align-items: center; }
}

/* ---- Status badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid var(--border-strong);
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-published { color: #34d399; border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.08); }
.badge-press     { color: #34d399; border-color: rgba(52,211,153,0.4); background: rgba(52,211,153,0.08); }
.badge-dev       { color: #fbbf24; border-color: rgba(251,191,36,0.4); background: rgba(251,191,36,0.08); }
.badge-dev::before { animation: pulse 2s ease-in-out infinite; }

/* ---- R&D / next-gen system cards ---- */
.rnd-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.rnd-card {
  position: relative; background: linear-gradient(160deg, var(--bg-card), rgba(15,28,51,0.4));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px; overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.rnd-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-lg); z-index: 0;
  background: conic-gradient(from 180deg at 50% 50%, transparent, rgba(0,212,255,0.25), transparent 30%);
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.rnd-card:hover { border-color: var(--border-strong); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.rnd-card:hover::after { opacity: 1; }
.rnd-card > * { position: relative; z-index: 1; }
.rnd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.rnd-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  background: rgba(0,212,255,0.1); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.rnd-card h3 { font-size: 21px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -0.01em; }
.rnd-sub { color: var(--accent); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.rnd-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.rnd-feats { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.rnd-feats li { position: relative; padding-left: 24px; font-size: 13.5px; color: var(--text-secondary); }
.rnd-feats li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px;
  border-radius: 3px; background: var(--grad-accent);
  box-shadow: 0 0 10px var(--accent-glow);
}
.rnd-metric {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; gap: 28px; flex-wrap: wrap;
}
.rnd-metric .m-val {
  font-size: 22px; font-weight: 800; line-height: 1;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rnd-metric .m-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ---- Card hover lift for existing grids gets a subtle glow line ---- */
.big-num-card, .why-item, .layer-row { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
.big-num-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ---- Count-up numbers keep their gradient while animating ---- */
[data-count] { font-variant-numeric: tabular-nums; }
