/* =========================================================
   TASS — Dark-Tech Design System
   Hybrid Dark / Light, GSAP-friendly, responsive
   ========================================================= */

/* ---- TOKENS ---- */
:root {
  --navy:    #040d1a;
  --navy-2:  #0a1729;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.07);
  --border:  rgba(255,255,255,.10);
  --border-2: rgba(255,255,255,.18);

  --blue:    #1a56db;
  --blue-2:  #3b7ef8;
  --blue-3:  #60a5fa;
  --cyan:    #06b6d4;
  --cyan-2:  #22d3ee;
  --green:   #10b981;
  --purple:  #8b5cf6;
  --gold:    #f59e0b;
  --gold-2:  #fbbf24;
  --red:     #ef4444;

  --white:   #f0f6ff;
  --gray:    #7a90b0;
  --gray-2:  #98aac6;

  --accent:  var(--cyan);
  --shadow:  0 10px 40px rgba(6, 182, 212, .12);
  --shadow-strong: 0 20px 60px rgba(6, 182, 212, .25);

  --radius:   16px;
  --radius-sm:10px;
  --radius-lg:24px;

  --container: 1440px;
  --nav-h: 72px;

  --font-body:    'Be Vietnam Pro', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-display: 'Orbitron', 'Be Vietnam Pro', sans-serif;

  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* ---- LIGHT THEME OVERRIDES ---- */
html[data-theme="light"] {
  --navy:    #f5f8ff;
  --navy-2:  #ffffff;
  --surface: rgba(10, 23, 41, .045);
  --surface-2: rgba(10, 23, 41, .08);
  --border:  rgba(10, 23, 41, .12);
  --border-2: rgba(10, 23, 41, .22);
  --white:   #0a0f1c;          /* near-black for body text */
  --gray:    #475569;          /* darker for sub text */
  --gray-2:  #1e293b;          /* darker for important sub text */
  --shadow:  0 10px 40px rgba(26, 86, 219, .12);

  /* Darker accent variants for text readability on white */
  --cyan:    #0891b2;
  --cyan-2:  #0e7490;
  --blue:    #1e40af;
  --blue-2:  #1d4ed8;
  --blue-3:  #2563eb;
  --purple:  #6d28d9;
  --gold:    #b45309;
  --gold-2:  #92400e;
  --green:   #047857;
}

/* ---- RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Chặn overscroll chỉ khi chat mở — tránh pull-to-refresh bị vô hiệu hoá trên mobile */
body.chat-open { overscroll-behavior-y: none; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .4s var(--ease), color .4s var(--ease);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; margin: 0; }

::selection { background: var(--cyan); color: var(--navy); }

/* Force Be Vietnam Pro on all Vietnamese-heavy text (avoid Orbitron's poor diacritics) */
.pc-name, .page-title, .section-title, .hero-title,
.hero-subtitle, .page-subtitle, .long-text,
.faq-item summary, .doc-title, .doc-desc, .trouble-card h3, .trouble-card p,
.cc-card h3, .cc-card p, .mvv-card h3, .mvv-card p,
.why-card h3, .why-card p, .case-card h3,
.team-card h3, .team-card p, .tl-item h3, .tl-item p {
  font-family: var(--font-body);
  font-feature-settings: "kern" 1, "liga" 1;
}

/* ---- CONTAINER & SECTION ---- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section   { padding: clamp(56px, 9vw, 120px) 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 64px); }
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 12px; line-height: 1.15; }
.section-subtitle { color: var(--gray-2); font-size: clamp(15px, 1.4vw, 18px); margin: 0; }
.section-foot { text-align: center; margin-top: 48px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: .18em; font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  padding: 6px 12px; border: 1px solid var(--border-2);
  border-radius: 999px; display: inline-block;
  background: var(--surface);
}
.two-col { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.long-text { font-size: 17px; line-height: 1.85; color: var(--gray-2); }

/* ---- GRADIENT / GLOW TEXT ---- */
.gradient-text {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--blue-2) 50%, var(--purple) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.glow-text {
  color: var(--gold);
  text-shadow: 0 0 40px rgba(245, 158, 11, .4), 0 0 80px rgba(245, 158, 11, .2);
}

/* ---- PARTICLES CANVAS ---- */
.particles {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .85;
}

/* Custom cursor removed in Phase 8 (perf — mousemove triggered repaint) */

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav-wrap {
  position: sticky; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  background: color-mix(in srgb, var(--navy) 75%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background .3s var(--ease), border-color .3s, box-shadow .3s;
}
.nav-wrap.scrolled {
  background: color-mix(in srgb, var(--navy) 92%, transparent);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25);
}
.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-inline: clamp(16px, 3vw, 28px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark svg { display: block; box-shadow: 0 4px 12px rgba(6,182,212,.4); border-radius: 14px; animation: logoPulse 4s ease-in-out infinite; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display); font-weight: 900; font-size: 28px; letter-spacing: .08em;
  background: linear-gradient(120deg, var(--cyan) 0%, var(--blue-2) 30%, var(--purple) 55%, var(--gold) 80%, var(--cyan) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 5s ease-in-out infinite;
  line-height: 1;
  text-shadow: 0 0 12px rgba(6,182,212,.35), 0 0 24px rgba(26,86,219,.18);
}
@keyframes brandShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.brand-sub  { font-family: var(--font-body); font-size: 11px; color: var(--cyan); font-weight: 600; letter-spacing: .14em; margin-top: 6px; text-transform: uppercase; }

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(6,182,212,.4); }
  50%      { box-shadow: 0 6px 20px rgba(6,182,212,.7); }
}

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  position: relative; padding: 9px 12px; font-weight: 500; font-size: 14.5px; white-space: nowrap;
  color: var(--gray-2); border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--surface); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 14px; right: 14px;
  height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue-2));
  border-radius: 2px;
}

.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--white);
  transition: border-color .2s, background .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--cyan); background: var(--surface-2); transform: rotate(15deg); }

/* Theme switch — iOS-style slider with sun/moon icons */
.theme-switch { display: inline-flex; cursor: pointer; align-items: center; user-select: none; }
.theme-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ts-track {
  position: relative;
  display: inline-flex; align-items: center; justify-content: space-between;
  width: 60px; height: 30px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: 999px; padding: 0 7px;
  transition: background .25s var(--ease), border-color .25s;
}
.theme-switch:hover .ts-track { border-color: var(--cyan); }
.ts-ico { width: 14px; height: 14px; transition: opacity .25s, color .25s; z-index: 1; }
.ts-sun  { color: var(--gold); }
.ts-moon { color: var(--cyan); }
.ts-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fbbf24);
  box-shadow: 0 2px 8px rgba(245, 158, 11, .5);
  transition: transform .35s var(--ease), background .35s;
  z-index: 2;
}
/* dark mode: thumb on right, cyan glow */
html[data-theme="dark"] .ts-thumb {
  transform: translateX(30px);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 2px 10px rgba(6, 182, 212, .55);
}
html[data-theme="dark"] .ts-sun  { opacity: .45; }
html[data-theme="light"] .ts-moon { opacity: .45; }

/* ---------- HEADER HOTLINE CHIP (compact: icon + number only) ---------- */
.nav-hotline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 4px; white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent);
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 14%, transparent), color-mix(in srgb, var(--blue) 8%, transparent));
  transition: transform .2s var(--ease), border-color .2s, background .2s;
}
.nav-hotline:hover { transform: translateY(-1px); border-color: var(--cyan); background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 22%, transparent), color-mix(in srgb, var(--blue) 14%, transparent)); }
.nh-ico {
  position: relative;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff; display: grid; place-items: center;
  flex-shrink: 0;
}
.nh-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; animation: nhPulse 2.4s ease-out infinite; }
@keyframes nhPulse { 0% { transform: scale(1); opacity: .65; } 100% { transform: scale(1.55); opacity: 0; } }
.nh-num { font-family: var(--font-body); font-size: 13px; font-weight: 800; color: var(--cyan); letter-spacing: -.01em; }
html[data-theme="light"] .nav-hotline { border-color: rgba(8,145,178,.4); }
html[data-theme="light"] .nh-num { color: #0e7490; }
@media (max-width: 1280px) {
  .nav-hotline { padding: 3px; }
  .nav-hotline .nh-num { display: none; }
}
@media (max-width: 640px) {
  .nav-hotline { display: none; }
}

/* ---------- FOOTER HOTLINE BLOCK ---------- */
.footer-hotline {
  display: flex; align-items: center; gap: 14px;
  margin: 6px 0 14px; padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, transparent);
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 12%, transparent), color-mix(in srgb, var(--purple) 6%, transparent));
  transition: transform .2s var(--ease), border-color .2s;
}
.footer-hotline:hover { transform: translateY(-2px); border-color: var(--cyan); }
.fh-ico {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff; display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(6,182,212,.4);
}
.fh-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; animation: nhPulse 2.4s ease-out infinite; }
.fh-text { display: flex; flex-direction: column; gap: 2px; }
.fh-label { font-family: var(--font-body); font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--gray-2); }
.fh-num {
  font-family: var(--font-body); font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  background: linear-gradient(120deg, var(--cyan), var(--blue-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[data-theme="light"] .footer-hotline { border-color: rgba(8,145,178,.35); background: #ffffff; }
html[data-theme="light"] .fh-label { color: #475569; }
html[data-theme="light"] .fh-num { background: linear-gradient(120deg, #0e7490, #1e40af); -webkit-background-clip: text; background-clip: text; }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--gray-2);
  border: 1px solid var(--border); border-radius: 999px;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.lang-switch a .flag { display: inline-flex; line-height: 0; border-radius: 3px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.lang-switch a .short { display: none; }
.lang-switch a.on { background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 22%, transparent), color-mix(in srgb, var(--blue) 14%, transparent)); color: var(--white); border-color: var(--cyan); }
.lang-switch a:hover:not(.on) { color: var(--white); border-color: var(--border-2); background: var(--surface); transform: translateY(-1px); }
@media (max-width: 1100px) {
  .lang-switch a .lbl { display: none; }
  .lang-switch a .short { display: inline; font-family: var(--font-display); letter-spacing: .1em; font-size: 11px; }
}
@media (max-width: 480px) {
  .lang-switch a { padding: 5px 8px; }
  .lang-switch a .short { display: none; }
}

.hamburger { display: none; flex-direction: column; gap: 4px; width: 38px; height: 38px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.hamburger span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: all .25s var(--ease);
  white-space: nowrap; cursor: pointer; line-height: 1;
}
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-sm { padding: 8px 14px;  font-size: 13px; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(120deg, var(--cyan), var(--blue));
  color: #fff; box-shadow: 0 8px 30px rgba(6, 182, 212, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(6, 182, 212, .5); }

.btn-outline {
  background: var(--surface); color: var(--white); border-color: var(--border-2);
}
.btn-outline:hover { border-color: var(--cyan); background: var(--surface-2); transform: translateY(-2px); }

.nav-cta { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
@media (max-width: 900px) { .nav-cta { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; padding: clamp(80px, 12vw, 160px) 0 clamp(60px, 10vw, 120px);
  overflow: hidden;
}
.hero-min { padding: clamp(80px, 12vw, 160px) 0 clamp(40px, 6vw, 80px); }
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,182,212,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,182,212,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 800px; height: 800px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(6,182,212,.18), transparent 70%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid var(--border-2); border-radius: 999px;
  background: var(--surface); font-family: var(--font-body); font-weight: 700; font-size: 11px;
  letter-spacing: .16em; color: var(--cyan); margin-bottom: 20px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(6,182,212,.5); animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0   rgba(6,182,212,.5); }
  70%  { box-shadow: 0 0 0 12px rgba(6,182,212,0); }
  100% { box-shadow: 0 0 0 0   rgba(6,182,212,0); }
}

.hero-title {
  font-family: var(--font-body);
  font-size: clamp(28px, 4.2vw, 54px); font-weight: 900;
  line-height: 1.1; letter-spacing: -.03em; margin: 0;
}
.hero-title .line { display: block; }
.hero-subtitle { color: var(--gray-2); font-size: clamp(15px, 1.4vw, 19px); margin: 20px 0 28px; max-width: 600px; }
.hero-rotator {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; color: var(--gold);
  font-size: 16px; letter-spacing: .04em;
  padding: 8px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; margin-bottom: 24px;
}
.rotator-text { transition: opacity .3s, transform .3s; min-width: 140px; display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero visual / tech card */
.hero-visual { position: relative; perspective: 1200px; }
.tech-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--navy-2) 92%, var(--surface-2)), color-mix(in srgb, var(--navy-2) 88%, var(--surface)));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-strong);
  animation: techFloat 6s ease-in-out infinite;
}
@keyframes techFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.tc-head {
  display: flex; align-items: center; gap: 12px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.tc-dots { display: flex; gap: 6px; }
.tc-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--gray); opacity: .6; }
.tc-dots span:nth-child(1) { background: #ef4444; opacity: .9; }
.tc-dots span:nth-child(2) { background: var(--gold); opacity: .9; }
.tc-dots span:nth-child(3) { background: var(--green); opacity: .9; }
.tc-title { font-family: var(--font-display); font-size: 12px; color: var(--gray-2); letter-spacing: .1em; }

.tc-body { padding-top: 16px; }
.tc-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; }
.tc-key { color: var(--gray); font-family: var(--font-display); letter-spacing: .1em; }
.tc-pill { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .1em; font-family: var(--font-display); }
.tc-ok   { background: rgba(16, 185, 129, .15); color: var(--green); }

.tc-bars { display: grid; gap: 10px; margin: 16px 0; }
.tc-bar  { position: relative; }
.tc-bar label { font-size: 11px; color: var(--gray); font-family: var(--font-display); letter-spacing: .1em; }
.tc-bar span  {
  display: block; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--blue-2));
  width: var(--w); margin-top: 4px;
  box-shadow: 0 0 12px var(--cyan);
  animation: fillBar 1.4s var(--ease) both;
}
@keyframes fillBar { from { width: 0; } }

.tc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); margin-top: 8px; }
.tc-grid div { text-align: center; }
.tc-grid strong { display: block; font-family: var(--font-display); color: var(--cyan); font-size: 18px; font-weight: 800; }
.tc-grid span   { font-family: var(--font-body); font-weight: 600; font-size: 10px; color: var(--gray); letter-spacing: .08em; text-transform: uppercase; }

.floaty {
  position: absolute; padding: 8px 14px; border-radius: 999px;
  background: var(--navy-2); border: 1px solid var(--border-2);
  font-family: var(--font-display); font-size: 11px; letter-spacing: .14em;
  color: var(--cyan); box-shadow: var(--shadow);
  animation: techFloat 5s ease-in-out infinite;
}
.floaty-1 { top: -10px; left: -20px; color: var(--gold); animation-delay: .5s; }
.floaty-2 { top: 30%; right: -30px; animation-delay: 1.2s; }
.floaty-3 { bottom: 10%; left: -10px; color: var(--purple); animation-delay: 2s; }

/* =========================================================
   PAGE HERO (sub-pages)
   ========================================================= */
.page-hero {
  position: relative;
  padding: clamp(60px, 9vw, 120px) 0 clamp(32px, 5vw, 56px);
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(6,182,212,.18), transparent 70%);
  pointer-events: none;
}
.page-title { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.02em; margin: 16px 0 12px; line-height: 1.1; }
.page-subtitle { color: var(--gray-2); max-width: 720px; margin: 0 auto; font-size: clamp(15px, 1.4vw, 18px); }

/* =========================================================
   STATS
   ========================================================= */
.stats { padding: 32px 0 16px; position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: border-color .3s, transform .3s;
  will-change: transform;
}
.stat:hover { border-color: var(--cyan); transform: translate3d(0, -4px, 0); }
.stat-n { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 800; background: linear-gradient(120deg, var(--cyan), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { font-size: 13px; color: var(--gray-2); margin-top: 6px; letter-spacing: .04em; }

/* =========================================================
   PRODUCT GRID / CARD
   ========================================================= */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.products-section .product-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .products-section .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .products-section .product-grid { grid-template-columns: 1fr; } }
.product-card {
  --accent: var(--cyan);
  position: relative; padding: 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  transition: border-color .3s, transform .3s, background .3s;
}
.product-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.product-card { will-change: transform; }
.product-card:hover { border-color: var(--accent); transform: translate3d(0,-4px,0); background: var(--surface-2); }
.product-card:hover::before { opacity: 1; }

.pc-head { display: flex; align-items: center; justify-content: space-between; }
.pc-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); display: grid; place-items: center;
}
.pc-cat { font-family: var(--font-display); font-size: 10px; letter-spacing: .14em; color: var(--gray); }
.pc-name { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0; }
.pc-tag  { color: var(--accent); font-size: 13px; font-weight: 500; margin: 0; }
.pc-sum  { font-size: 14px; color: var(--gray-2); margin: 0; }
.pc-features { display: grid; gap: 6px; margin: 4px 0; }
.pc-features li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-2); }
.pc-features .ico { color: var(--accent); }
.pc-cta { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .04em; color: var(--accent); margin-top: auto; padding-top: 12px; }

/* =========================================================
   FILTER CHIPS
   ========================================================= */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.chip {
  padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--gray-2); font-size: 13px; font-weight: 500;
  transition: all .2s var(--ease);
}
.chip:hover { color: var(--white); border-color: var(--border-2); }
.chip.on    { background: var(--cyan); color: var(--navy); border-color: var(--cyan); font-weight: 700; }

/* =========================================================
   WHY US
   ========================================================= */
.why-section { background: linear-gradient(180deg, transparent, rgba(6,182,212,.04), transparent); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.why-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .3s, transform .3s;
}
.why-card { will-change: transform; }
.why-card:hover { border-color: var(--cyan); transform: translate3d(0,-4px,0); }
.why-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 25%, transparent), color-mix(in srgb, var(--blue) 15%, transparent));
  color: var(--cyan); display: grid; place-items: center;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 18px; margin: 0 0 8px; }
.why-card p  { color: var(--gray-2); font-size: 14px; margin: 0; }

/* =========================================================
   CASE STUDIES
   ========================================================= */
.cases-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.case-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .3s, transform .3s;
  display: flex; flex-direction: column; gap: 16px;
}
.case-card { will-change: transform; }
.case-card:hover { border-color: var(--gold); transform: translate3d(0,-4px,0); }
.case-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 22px;
  color: var(--gold); letter-spacing: .1em;
}
.case-card h3 { font-size: 18px; margin: 0; flex: 1; }
.case-metric {
  font-family: var(--font-display); font-size: 14px; color: var(--cyan);
  padding-top: 12px; border-top: 1px solid var(--border);
}

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band { padding: clamp(56px, 8vw, 100px) 0; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(139,92,246,.2), transparent 70%);
}
.cta-inner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 18%, var(--navy-2)), color-mix(in srgb, var(--purple) 14%, var(--navy-2)));
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 64px); text-align: center;
  position: relative;
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 36px); margin: 0 0 12px; }
.cta-inner p  { color: var(--gray-2); margin: 0 0 28px; }

/* =========================================================
   ABOUT
   ========================================================= */
.mvv-section { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, .04), transparent); }
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.mvv-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; position: relative;
  transition: border-color .3s, transform .3s;
}
.mvv-card { will-change: transform; }
.mvv-card:hover { border-color: var(--purple); transform: translate3d(0,-4px,0); }
.mvv-num {
  position: absolute; top: 16px; right: 20px;
  font-family: var(--font-display); font-size: 56px; font-weight: 900;
  color: var(--surface-2); line-height: 1;
}
.mvv-card h3 { font-size: 22px; margin: 0 0 12px; color: var(--purple); }
.mvv-card p  { color: var(--gray-2); margin: 0; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.team-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; text-align: center;
  transition: border-color .3s, transform .3s;
}
.team-card { will-change: transform; }
.team-card:hover { border-color: var(--cyan); transform: translate3d(0,-4px,0); }
.team-avatar {
  width: 80px; height: 80px; margin: 0 auto 16px;
  border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--purple));
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 32px; font-weight: 900; color: var(--navy);
}
.team-card h3 { font-size: 18px; margin: 0 0 4px; }
.team-role { font-size: 12px; color: var(--cyan); font-family: var(--font-body); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.team-card p { font-size: 14px; color: var(--gray-2); margin: 12px 0 0; }

.timeline-section { background: linear-gradient(180deg, transparent, rgba(245, 158, 11, .04), transparent); }
.timeline { position: relative; padding-left: 32px; max-width: 720px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--purple)); }
.tl-item { position: relative; padding: 12px 0 28px 32px; }
.tl-dot { position: absolute; left: -28px; top: 16px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--gold); }
.tl-year { font-family: var(--font-display); font-size: 14px; color: var(--gold); letter-spacing: .1em; }
.tl-item h3 { font-size: 18px; margin: 4px 0 6px; }
.tl-item p  { color: var(--gray-2); margin: 0; }

.certs-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 28px; animation: marquee 40s linear infinite; padding: 18px 0; }
@keyframes marquee { to { transform: translateX(-50%); } }
.cert-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 22px; border-radius: 14px; background: var(--navy-2);
  border: 1px solid var(--border); white-space: nowrap;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  color: var(--white); letter-spacing: -.005em;
  transition: border-color .25s, transform .25s;
}
.cert-chip:hover { border-color: var(--cyan); transform: translate3d(0,-2px,0); }
.cert-ico { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }
.cert-name { line-height: 1.2; }
html[data-theme="light"] .cert-chip { background: #ffffff; border-color: rgba(10,23,41,.12); color: #0a0f1c; box-shadow: 0 2px 8px rgba(10,23,41,.05); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cc-card {
  --c: var(--cyan);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .3s, transform .3s;
}
.cc-card { will-change: transform; }
.cc-card:hover { border-color: var(--c); transform: translate3d(0,-4px,0); }
.cc-icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c); display: grid; place-items: center;
  margin-bottom: 16px;
}
.cc-card h3 { font-size: 18px; margin: 0 0 4px; }
.cc-card p  { color: var(--gray-2); font-size: 13px; margin: 0 0 12px; }
.cc-card strong {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-body); font-weight: 700;
  color: var(--c); font-size: 17px; letter-spacing: -.01em;
  word-break: break-word;
}
.cc-card h3 { font-size: 19px; }
.cc-card p  { font-size: 14px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: start; }
.contact-form-wrap, .contact-map-wrap {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
/* Make sure these don't tilt — easier to interact */
.contact-form-wrap, .contact-map-wrap { transform: none !important; transform-style: flat; }
.contact-form { display: grid; gap: 16px; margin-top: 20px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--gray-2); font-weight: 500; }
.field input, .field textarea {
  background: var(--navy); color: var(--white);
  border: 1px solid var(--border-2); border-radius: var(--radius-sm);
  padding: 12px 14px; font-family: inherit; font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent);
}
.field textarea { resize: vertical; min-height: 100px; }
.err { color: var(--red); font-size: 12px; }
.alert { padding: 16px; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 16px; }
.alert.success { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); }
.alert.success strong { color: var(--green); }
.alert p { margin: 4px 0 0; color: var(--gray-2); font-size: 14px; }

.map-title { display: flex; align-items: center; gap: 8px; font-size: 18px; margin: 0 0 16px; color: var(--cyan); font-family: var(--font-body); font-weight: 700; letter-spacing: .02em; }
.map-frame { aspect-ratio: 16/11; min-height: 460px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); }
@media (max-width: 1100px) { .map-frame { min-height: 360px; aspect-ratio: 4/3; } }
.map-frame iframe { filter: grayscale(.3) brightness(.85) contrast(1.1); }
html[data-theme="light"] .map-frame iframe { filter: none; }
.map-addr { color: var(--gray-2); margin: 12px 0 0; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.map-addr .ico { color: var(--cyan); }

/* =========================================================
   SUPPORT
   ========================================================= */
.support-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 600px; margin: 28px auto 0;
  padding: 14px 20px; background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 999px; transition: border-color .2s, box-shadow .2s;
}
.support-search:focus-within { border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 18%, transparent); }
.support-search .ico { color: var(--cyan); }
.support-search input {
  flex: 1; background: transparent; border: 0; color: var(--white);
  font-family: inherit; font-size: 15px;
}
.support-search input:focus { outline: none; }

.support-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.stab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--gray-2); font-size: 14px; font-weight: 500;
  transition: all .2s var(--ease);
}
.stab:hover { color: var(--white); }
.stab.on { background: var(--cyan); color: var(--navy); border-color: var(--cyan); font-weight: 700; }
.stab.on .ico { color: var(--navy); }
.stab-panel { display: none; }
.stab-panel.on { display: block; }

.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.doc-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .3s, transform .3s;
  display: flex; flex-direction: column; gap: 10px;
}
.doc-card { will-change: transform; }
.doc-card:hover { border-color: var(--cyan); transform: translate3d(0,-4px,0); }
.doc-ext {
  align-self: flex-start; padding: 4px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--cyan) 20%, transparent);
  font-family: var(--font-display); font-size: 11px; color: var(--cyan);
  letter-spacing: .1em;
}
.doc-title { font-size: 16px; margin: 0; line-height: 1.4; }
.doc-desc  { font-size: 13px; color: var(--gray-2); margin: 0; flex: 1; }
.doc-meta  { font-size: 12px; color: var(--gray); margin-top: 4px; }
.doc-card .btn { align-self: flex-start; margin-top: 4px; }

.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color .2s;
}
.faq-item[open] { border-color: var(--cyan); }
.faq-item summary {
  padding: 18px 20px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; transition: background .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-toggle {
  font-family: var(--font-display); color: var(--cyan); font-size: 20px;
  transition: transform .3s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-body { padding: 0 20px 18px; color: var(--gray-2); font-size: 14px; line-height: 1.7; }

.trouble-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.trouble-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
  transition: border-color .3s, transform .3s;
}
.trouble-card { will-change: transform; }
.trouble-card:hover { border-color: var(--gold); transform: translate3d(0,-4px,0); }
.tr-num {
  font-family: var(--font-display); font-size: 36px; font-weight: 900;
  background: linear-gradient(120deg, var(--gold), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.trouble-card h3 { font-size: 17px; margin: 8px 0; }
.trouble-card p  { color: var(--gray-2); font-size: 14px; margin: 0; }

/* =========================================================
   PRODUCT DETAIL
   ========================================================= */
.product-detail { --accent: var(--cyan); }
.pd-hero { position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); overflow: hidden; }
.pd-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 80% 40%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(circle at 20% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
}
.pd-hero-inner {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  position: relative;
}
.pd-back {
  display: inline-block; margin-bottom: 16px; color: var(--gray-2); font-size: 14px;
  transition: color .2s;
}
.pd-back:hover { color: var(--accent); }
.pd-hero-art {
  background: color-mix(in srgb, var(--navy-2) 88%, var(--surface));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-strong);
  aspect-ratio: 4/3; display: grid; place-items: center;
}
.art-default { color: var(--accent); }

.pd-features { display: grid; gap: 12px; margin-top: 20px; }
.pd-features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.pd-features .check {
  width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent); display: grid; place-items: center;
}

/* Rich-text long body inside product detail (.prose) */
.prose { max-width: 780px; margin: 0 auto; color: var(--gray-2); line-height: 1.8; }
.prose h3 {
  font-family: var(--font-body); font-weight: 800; font-size: clamp(20px, 2.4vw, 26px);
  color: var(--accent); margin: 36px 0 12px; letter-spacing: -.01em;
  position: relative; padding-left: 18px;
}
.prose h3::before {
  content: ''; position: absolute; left: 0; top: .4em;
  width: 4px; height: .9em; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 30%, transparent));
}
.prose h3:first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; font-size: 16px; }
.prose ul { display: grid; gap: 10px; margin: 0 0 16px; }
.prose ul li { position: relative; padding-left: 26px; font-size: 15px; }
.prose ul li::before { content: '▸'; position: absolute; left: 6px; top: 0; color: var(--accent); font-weight: 900; }
.prose strong { color: var(--white); font-weight: 700; }
.pd-body { padding-top: 40px; padding-bottom: 40px; }

/* Product theme arts */
.art-dashboard { width: 100%; padding: 16px; background: var(--navy-2); border-radius: var(--radius-sm); }
.dash-header { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.dh-dots { display: flex; gap: 6px; }
.dh-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); opacity: .6; }
.dh-title { font-family: var(--font-display); font-size: 11px; color: var(--gray-2); }
.dash-body { padding: 16px 0; display: grid; gap: 14px; }
.dash-card { display: grid; gap: 4px; }
.dc-label { font-size: 11px; color: var(--gray); letter-spacing: .08em; }
.dc-value { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--accent); }
.dc-bar   { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.dc-bar span { display: block; height: 100%; background: var(--accent); width: var(--w); animation: fillBar 1.4s var(--ease) both; }
.dash-rows { display: grid; gap: 6px; margin-top: 8px; }
.dr { font-size: 12px; color: var(--gray-2); padding: 6px 8px; background: var(--surface); border-radius: 6px; }
.dr span { color: var(--green); font-weight: 700; }
.dr.off span { color: var(--gray); }

.art-waveform { padding: 16px; }
.art-waveform .bar { transform-origin: bottom; animation: barBeat 1.6s ease-in-out infinite; }
@keyframes barBeat { 0%,100% { transform: scaleY(.7); } 50% { transform: scaleY(1.1); } }
.wf-cap { text-align: center; font-family: var(--font-display); font-size: 13px; color: var(--accent); margin-top: 12px; }
.wf-cap strong { color: var(--gold); font-size: 20px; display: inline-block; margin-right: 6px; }

.art-network svg { width: 100%; max-width: 320px; margin: 0 auto; }
.art-network circle { animation: nodePulse 3s ease-in-out infinite; transform-origin: center; }
@keyframes nodePulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

.art-vision svg { width: 100%; }

.art-code { width: 100%; background: var(--navy-2); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.art-code .cd-head { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.art-code .cd-body { padding: 16px; margin: 0; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.6; color: var(--gray-2); overflow-x: auto; }
.kw { color: var(--purple); } .vr { color: var(--cyan); } .st { color: var(--gold); } .fn { color: var(--blue-3); }

.art-lang { width: 100%; padding: 16px; background: var(--navy-2); border-radius: var(--radius-sm); }
.lang-card { display: grid; gap: 8px; }
.lc-row { display: grid; grid-template-columns: 28px 36px 1fr; gap: 8px; align-items: center; padding: 8px 12px; background: var(--surface); border-radius: 8px; font-size: 12px; }
.lc-row.out { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.lc-row .flag { font-size: 18px; }
.lc-row strong { font-family: var(--font-display); color: var(--accent); font-size: 11px; letter-spacing: .08em; }
.lc-arrow { text-align: center; font-family: var(--font-display); color: var(--accent); font-size: 11px; letter-spacing: .14em; padding: 4px 0; }

.art-bot { padding: 14px; background: var(--navy-2); border-radius: var(--radius-sm); display: grid; gap: 10px; }
.bot-msg { padding: 10px 14px; border-radius: 12px; font-size: 13px; max-width: 90%; }
.bot-msg.user { background: var(--surface-2); margin-left: auto; border-bottom-right-radius: 2px; }
.bot-msg.ai   { background: color-mix(in srgb, var(--accent) 14%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-bottom-left-radius: 2px; }
.ai-tag { display: inline-block; font-family: var(--font-display); font-size: 9px; letter-spacing: .12em; color: var(--accent); padding: 2px 6px; border: 1px solid var(--accent); border-radius: 4px; margin-bottom: 4px; }
.bot-typing { display: inline-flex; gap: 4px; padding: 10px 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 12px; max-width: 60px; }
.bot-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: typing 1.4s infinite; }
.bot-typing span:nth-child(2) { animation-delay: .2s; }
.bot-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* =========================================================
   FLOATING CONTACT (right side)
   ========================================================= */
.float-contact {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 12px;
  transition: transform .35s var(--ease), opacity .3s;
}
/* When chat is open, slide floating contacts LEFT so chat panel doesn't cover them */
body.chat-open .float-contact { transform: translate(-410px, -50%); }
@media (max-width: 768px) {
  body.chat-open .float-contact { opacity: 0; pointer-events: none; transform: translateY(0) translateX(80px); }
}
.fc-toggle { display: none; }
.fc-items  { display: flex; flex-direction: column; gap: 10px; }
.fc-item {
  --c: var(--cyan);
  position: relative;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy-2); border: 1px solid var(--border-2);
  color: var(--c); display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: transform .25s var(--ease), color .25s, background .25s;
}
.fc-item:hover { transform: scale(1.1); background: var(--c); color: #fff; }
.fc-call   { --c: var(--red); }
.fc-zalo   { --c: var(--blue-2); }
.fc-wa     { --c: var(--green); }
.fc-msg    { --c: var(--blue-3); }
.fc-mail   { --c: var(--cyan); }
.fc-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--c); opacity: 0;
  animation: fcRing 2s ease-out infinite;
}
.fc-item:nth-child(1) .fc-ring { animation-delay: 0s;  }
.fc-item:nth-child(2) .fc-ring { animation-delay: .4s; }
.fc-item:nth-child(3) .fc-ring { animation-delay: .8s; }
@keyframes fcRing {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.5); opacity: 0;  }
}
.fc-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(8px);
  padding: 6px 12px; background: var(--navy-2); border: 1px solid var(--border-2);
  border-radius: 8px; font-size: 12px; color: var(--white);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: all .25s var(--ease);
}
.fc-item:hover .fc-tip { opacity: 1; transform: translateY(-50%) translateX(0); }

@media (max-width: 768px) {
  .float-contact { right: 12px; bottom: 90px; top: auto; transform: none; }
  .fc-toggle {
    display: grid; place-items: center; width: 52px; height: 52px;
    border-radius: 50%; border: none;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff; box-shadow: 0 6px 24px rgba(6,182,212,.5);
    z-index: 1;
  }
  .fc-items { display: none; position: absolute; bottom: calc(100% + 12px); right: 0; }
  .float-contact.open .fc-items { display: flex; }
  .fc-items .fc-item { transform: scale(.9); }
}

/* =========================================================
   CHAT WIDGET (bottom-right)
   ========================================================= */
.chat-widget { position: fixed; right: 20px; bottom: 20px; z-index: 95; }
.chat-bubble {
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--purple));
  color: #fff; box-shadow: 0 12px 36px rgba(6,182,212,.5);
  position: relative; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .3s var(--ease);
}
.chat-bubble:hover { transform: scale(1.08); }
.chat-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--cyan);
  animation: fcRing 2s ease-out infinite;
}
.chat-label {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translateY(-50%);
  padding: 6px 12px; background: var(--navy-2); border: 1px solid var(--border-2);
  border-radius: 8px; font-size: 13px; color: var(--white); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.chat-bubble:hover .chat-label { opacity: 1; }

.chat-panel {
  position: absolute; right: 0; bottom: 76px;
  width: 380px; max-width: calc(100vw - 32px); height: 540px; max-height: calc(100vh - 120px);
  background: var(--navy-2); border: 1px solid var(--border-2);
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right;
  animation: chatOpen .3s var(--ease);
}
/* HTML [hidden] attribute is overridden by display:flex above — restore */
.chat-panel[hidden] { display: none !important; }
@keyframes chatOpen { from { opacity: 0; transform: scale(.9) translateY(20px); } }
.chat-head {
  padding: 16px; display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 18%, var(--navy-2)), var(--navy-2));
  border-bottom: 1px solid var(--border);
}
.chat-id { display: flex; align-items: center; gap: 12px; }
.chat-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; display: grid; place-items: center; }
.chat-meta strong { display: block; font-size: 14px; }
.chat-meta span   { display: block; font-size: 11px; color: var(--green); }
.chat-meta span::before { content: '●'; margin-right: 4px; }
.chat-close { background: none; border: none; color: var(--gray); font-size: 26px; cursor: pointer; padding: 0 8px; }
.chat-close:hover { color: var(--white); }

.chat-body { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 85%; }
.chat-msg.user { align-self: flex-end; }
.chat-msg.bot  { align-self: flex-start; }
.chat-msg .bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5;
}
.chat-msg.user .bubble { background: linear-gradient(135deg, var(--cyan), var(--blue)); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.bot  .bubble { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; }

.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--navy); }
.chat-form input {
  flex: 1; background: var(--surface); border: 1px solid var(--border-2);
  color: var(--white); padding: 10px 14px; border-radius: 999px;
  font-family: inherit; font-size: 14px;
}
.chat-form input:focus { outline: none; border-color: var(--cyan); }
.chat-form button {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff; display: grid; place-items: center;
  transition: transform .2s;
}
.chat-form button:hover { transform: scale(1.05); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; padding: 80px 0 30px; border-top: 1px solid var(--border); margin-top: 40px; }
.footer-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 1000px 400px at 50% 0%, rgba(6,182,212,.05), transparent 70%); }
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px);
  display: grid; grid-template-columns: 1.5fr 1fr 1.5fr 1fr; gap: 40px;
  position: relative;
}
.footer-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .08em; color: var(--cyan); margin: 0 0 16px; text-transform: uppercase; }
.footer-col ul li { padding: 5px 0; font-size: 14px; }
.footer-col ul li a { color: var(--gray-2); transition: color .2s; }
.footer-col ul li a:hover { color: var(--cyan); }
.footer-company { color: var(--white); font-weight: 600; margin: 12px 0 4px; }
.footer-slogan  { color: var(--gray-2); font-size: 13px; margin: 0; }
.footer-meta li { color: var(--gray-2); font-size: 13px; line-height: 1.6; padding: 4px 0; }
.footer-meta li span { color: var(--cyan); font-weight: 600; }
.footer-meta li a { color: var(--gray-2); }
.footer-meta li a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); display: grid; place-items: center; color: var(--gray-2);
  transition: all .2s var(--ease);
}
.footer-social a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-3px); }
.footer-bottom {
  max-width: var(--container); margin: 40px auto 0; padding: 20px clamp(16px, 4vw, 32px) 0;
  border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  color: var(--gray); font-size: 12px;
}
.brand.mini { gap: 10px; }

/* =========================================================
   REVEAL ANIMATION (intersection observer)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pd-hero-inner { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--navy-2); border-bottom: 1px solid var(--border);
    padding: 12px; align-items: stretch;
    transform: translateY(-150%); transition: transform .35s var(--ease);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 14px 16px; border-radius: 8px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: color-mix(in srgb, var(--cyan) 14%, transparent); }
  .hamburger { display: flex; }
  .brand-sub { display: none; }
  .lang-switch a { padding: 5px 9px; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .chat-panel { width: calc(100vw - 32px); height: calc(100vh - 120px); }
}
/* Mobile: chat panel chiếm toàn màn hình, JS dùng visualViewport để resize theo keyboard */
@media (max-width: 640px) {
  .chat-widget { right: 12px; bottom: 12px; }
  body.chat-open .chat-panel {
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%; height: 100%;   /* JS sẽ override height khi keyboard hiện */
    max-width: 100%; max-height: 100%;
    border-radius: 0;
    z-index: 300;
    display: flex; flex-direction: column;
  }
  body.chat-open .chat-head   { padding: 12px 14px; flex-shrink: 0; }
  body.chat-open .chat-body   { flex: 1; min-height: 0; padding: 12px 14px; overflow-y: auto; }
  body.chat-open .chat-form   {
    flex-shrink: 0; padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  body.chat-open .chat-form input { font-size: 16px; /* ngăn iOS zoom khi focus */ }
}
@media (max-width: 768px) {
  /* Disable continuous animations on mobile for smooth scroll */
  .tech-card, .floaty { animation: none !important; }
  .brand-name { animation: none !important; }
  .marquee-track { animation-duration: 50s; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .filter-chips { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .chip { white-space: nowrap; flex-shrink: 0; }
  .support-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   LIGHT THEME — explicit overrides for legibility
   ========================================================= */
html[data-theme="light"] {
  /* Body / surfaces */
}
html[data-theme="light"] body { background: linear-gradient(180deg, #ffffff, #f5f8ff 60%); }

/* Gradient text — darker stops for white background */
html[data-theme="light"] .gradient-text {
  background: linear-gradient(120deg, #0e7490 0%, #1e40af 50%, #6d28d9 100%);
  -webkit-background-clip: text; background-clip: text;
}
/* Glow text — disable glow, use solid dark gold */
html[data-theme="light"] .glow-text {
  color: #b45309 !important;
  text-shadow: none !important;
}

/* Brand TASS — darker gradient + no glow */
html[data-theme="light"] .brand-name {
  background: linear-gradient(120deg, #0e7490 0%, #1e40af 35%, #6d28d9 65%, #b45309 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
}
html[data-theme="light"] .brand-name { text-shadow: none; }
html[data-theme="light"] .brand-mark svg { box-shadow: 0 4px 12px rgba(8, 145, 178, .35); animation: none; }

/* Hero glow blobs — much subtler on white */
html[data-theme="light"] .hero-glow {
  background: radial-gradient(closest-side, rgba(8, 145, 178, .12), transparent 70%);
}
html[data-theme="light"] .page-hero::before {
  background: radial-gradient(ellipse 600px 300px at 50% 0%, rgba(8, 145, 178, .12), transparent 70%);
}
html[data-theme="light"] .cta-band::before {
  background: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(109, 40, 217, .14), transparent 70%);
}

/* Particles canvas mờ hơn trên trắng */
html[data-theme="light"] .particles { opacity: .55; }

/* Surface backgrounds in light mode need to be slightly opaque so text readable */
html[data-theme="light"] .stat,
html[data-theme="light"] .product-card,
html[data-theme="light"] .why-card,
html[data-theme="light"] .case-card,
html[data-theme="light"] .mvv-card,
html[data-theme="light"] .team-card,
html[data-theme="light"] .cc-card,
html[data-theme="light"] .doc-card,
html[data-theme="light"] .trouble-card,
html[data-theme="light"] .faq-item,
html[data-theme="light"] .contact-form-wrap,
html[data-theme="light"] .contact-map-wrap {
  background: #ffffff;
  border-color: rgba(10, 23, 41, .12);
  box-shadow: 0 2px 12px rgba(10, 23, 41, .04);
}

/* Tech card / pd-hero-art / cta-inner — keep slight tint */
html[data-theme="light"] .tech-card {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
}
html[data-theme="light"] .pd-hero-art {
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
}
html[data-theme="light"] .cta-inner {
  background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 8%, #ffffff), color-mix(in srgb, var(--purple) 6%, #ffffff));
}

/* Text colors that need extra contrast on white */
html[data-theme="light"] .hero-subtitle,
html[data-theme="light"] .page-subtitle,
html[data-theme="light"] .section-subtitle,
html[data-theme="light"] .long-text,
html[data-theme="light"] .pc-sum,
html[data-theme="light"] .faq-body,
html[data-theme="light"] .doc-desc,
html[data-theme="light"] .trouble-card p,
html[data-theme="light"] .mvv-card p,
html[data-theme="light"] .why-card p,
html[data-theme="light"] .team-card p,
html[data-theme="light"] .footer-meta li,
html[data-theme="light"] .footer-col ul li a {
  color: #334155;
}

/* Nav background more opaque on white */
html[data-theme="light"] .nav-wrap {
  background: color-mix(in srgb, #ffffff 88%, transparent);
  border-bottom: 1px solid rgba(10, 23, 41, .1);
}
html[data-theme="light"] .nav-wrap.scrolled {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 24px rgba(10, 23, 41, .08);
}
html[data-theme="light"] .nav-links a { color: #475569; }
html[data-theme="light"] .nav-links a:hover,
html[data-theme="light"] .nav-links a.active { color: #0a0f1c; background: rgba(8, 145, 178, .08); }

/* Buttons */
html[data-theme="light"] .btn-outline {
  background: #ffffff;
  border-color: rgba(10, 23, 41, .25);
  color: #0a0f1c;
}
html[data-theme="light"] .btn-outline:hover { border-color: #0891b2; background: #f0f9ff; }

/* Chips */
html[data-theme="light"] .chip { background: #ffffff; border-color: rgba(10, 23, 41, .15); color: #475569; }
html[data-theme="light"] .chip.on { background: #0891b2; color: #ffffff; border-color: #0891b2; }

/* Form inputs */
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea {
  background: #ffffff; color: #0a0f1c;
  border-color: rgba(10, 23, 41, .2);
}

/* Footer */
html[data-theme="light"] .footer { border-top-color: rgba(10, 23, 41, .12); }
html[data-theme="light"] .footer-social a { background: #ffffff; border-color: rgba(10, 23, 41, .15); color: #475569; }
html[data-theme="light"] .footer-social a:hover { color: #0891b2; border-color: #0891b2; }

/* Floating contact + chat bubble — keep accent but ensure visible */
html[data-theme="light"] .fc-item { background: #ffffff; box-shadow: 0 6px 20px rgba(10, 23, 41, .15); }
html[data-theme="light"] .fc-tip { background: #ffffff; color: #0a0f1c; }

/* Eyebrow + small "label" elements — darker accent */
html[data-theme="light"] .eyebrow {
  background: #ffffff; border-color: rgba(8, 145, 178, .35); color: #0e7490;
}
html[data-theme="light"] .hero-badge { background: #ffffff; border-color: rgba(8, 145, 178, .35); color: #0e7490; }
html[data-theme="light"] .brand-sub { color: #0e7490; }
html[data-theme="light"] .hero-rotator { background: #ffffff; border-color: rgba(180, 83, 9, .35); color: #b45309; }
html[data-theme="light"] .pc-cta { color: var(--accent); }
html[data-theme="light"] .team-role { color: #0e7490; }
html[data-theme="light"] .map-title { color: #0e7490; }
html[data-theme="light"] .footer-col h4 { color: #0e7490; }
html[data-theme="light"] .case-metric { color: #0e7490; border-top-color: rgba(10, 23, 41, .1); }
html[data-theme="light"] .footer-meta li span { color: #0e7490; }

/* Section titles & headings — pure dark for max contrast */
html[data-theme="light"] .section-title,
html[data-theme="light"] .page-title,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .pc-name,
html[data-theme="light"] .why-card h3,
html[data-theme="light"] .case-card h3,
html[data-theme="light"] .mvv-card h3,
html[data-theme="light"] .team-card h3,
html[data-theme="light"] .doc-title,
html[data-theme="light"] .trouble-card h3 {
  color: #0a0f1c;
}

/* MVV num huge number — soft gray on white */
html[data-theme="light"] .mvv-num { color: rgba(10, 23, 41, .08); }

/* Faq accordion: open border darker */
html[data-theme="light"] .faq-item[open] { border-color: #0891b2; }
html[data-theme="light"] .faq-toggle { color: #0891b2; }

/* Support search */
html[data-theme="light"] .support-search { background: #ffffff; border-color: rgba(10, 23, 41, .2); }
html[data-theme="light"] .support-search input { color: #0a0f1c; }

/* Theme switch track on light — darker bg so contrast visible */
html[data-theme="light"] .ts-track { background: #e2e8f0; border-color: rgba(10, 23, 41, .2); }

/* Lang switch — dark text in light mode */
html[data-theme="light"] .lang-switch a { color: #475569; border-color: rgba(10, 23, 41, .15); }
html[data-theme="light"] .lang-switch a.on { color: #0a0f1c; }

/* Tech card metric values — darker */
html[data-theme="light"] .tc-grid strong { color: #0891b2; }
html[data-theme="light"] .stat-n { background: linear-gradient(120deg, #0e7490, #1e40af); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="light"] .stat-l { color: #475569; }

/* Contact card phone/email — darker accents per type */
html[data-theme="light"] .cc-card[style*="ef4444"] strong { color: #b91c1c; }
html[data-theme="light"] .cc-card[style*="3b7ef8"] strong { color: #1d4ed8; }
html[data-theme="light"] .cc-card[style*="10b981"] strong { color: #047857; }
html[data-theme="light"] .cc-card[style*="06b6d4"] strong { color: #0e7490; }
html[data-theme="light"] .cc-card[style*="ef4444"] .cc-icon { background: rgba(220, 38, 38, .12); color: #b91c1c; }
html[data-theme="light"] .cc-card[style*="3b7ef8"] .cc-icon { background: rgba(29, 78, 216, .12); color: #1d4ed8; }
html[data-theme="light"] .cc-card[style*="10b981"] .cc-icon { background: rgba(4, 120, 87, .12); color: #047857; }
html[data-theme="light"] .cc-card[style*="06b6d4"] .cc-icon { background: rgba(14, 116, 144, .12); color: #0e7490; }

/* Map address */
html[data-theme="light"] .map-addr { color: #475569; }

/* Custom scrollbar — subtle on light */
html[data-theme="light"] ::selection { background: #0891b2; color: #ffffff; }


/* =========================================================
   SOFTWARE DETAIL — V1.1
   ========================================================= */

/* ---- SW HERO ---- */
.sw-detail { --accent: #06b6d4; }

.sw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.sw-hero-bg { position: absolute; inset: 0; z-index: 0; }
.sw-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 60% 50%, black, transparent);
}
.sw-hero-glow { position: absolute; inset: 0; }
.sw-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .sw-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .sw-hero-art { display: none; }
}
.sw-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sw-code-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--accent);
}
.sw-version-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(6,182,212,.12);
  border: 1px solid rgba(6,182,212,.3);
  border-radius: 100px;
  font-size: 12px;
  color: var(--cyan-2);
}
.sw-hero-features { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sw-hero-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-2); }
.sw-hero-features .check { color: var(--accent); }
.sw-dl-btn { display: inline-flex; align-items: center; gap: 8px; }

/* ---- HIGHLIGHTS GRID ---- */
.sw-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
@media (max-width: 900px) { .sw-highlights { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .sw-highlights { grid-template-columns: 1fr; } }

.sw-highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
  position: relative;
  overflow: hidden;
}
.sw-highlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
  border-radius: inherit;
}
.sw-highlight-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(6,182,212,.18); border-color: var(--accent); }
.sw-highlight-card:hover::before { opacity: .05; }
.sw-hl-icon { color: var(--accent); margin-bottom: 14px; position: relative; }
.sw-hl-title { font-size: 16px; font-weight: 700; color: var(--white); margin: 0 0 8px; position: relative; }
.sw-hl-desc { font-size: 14px; color: var(--gray); line-height: 1.6; margin: 0; position: relative; }

/* ---- SPECS TABLE ---- */
.sw-specs-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.sw-specs-table { width: 100%; border-collapse: collapse; }
.sw-specs-table tr:nth-child(even) { background: rgba(255,255,255,.03); }
.sw-specs-table tr:hover { background: rgba(255,255,255,.05); }
.sw-specs-table th,
.sw-specs-table td { padding: 14px 24px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); }
.sw-specs-table tr:last-child th,
.sw-specs-table tr:last-child td { border-bottom: none; }
.sw-specs-table th { color: var(--accent); font-weight: 600; width: 35%; white-space: nowrap; }
.sw-specs-table td { color: var(--gray-2); }

/* ---- DOWNLOAD SECTION ---- */
.sw-dl-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px;
  width: fit-content;
}
.sw-dl-tabs .tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: none;
  background: transparent;
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  border-radius: calc(var(--radius-sm) - 4px);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.sw-dl-tabs .tab-btn.active { background: var(--accent); color: var(--navy); font-weight: 700; }
.sw-tab-panel { display: none; }
.sw-tab-panel.active { display: block; }

.sw-release-latest {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 16px;
  box-shadow: 0 0 30px rgba(6,182,212,.08);
}
.sw-release-latest-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.sw-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--white);
}
.sw-version-badge.latest { background: rgba(6,182,212,.15); border-color: var(--accent); color: var(--accent); }
.sw-latest-label { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.sw-platform-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; font-size: 12px; color: var(--gray-2); margin-left: 8px; }
.sw-release-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--gray); }
.sw-release-notes { font-size: 14px; color: var(--gray-2); line-height: 1.6; margin: 12px 0 16px; }
.sw-release-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sw-dl-count { font-size: 13px; color: var(--gray); }

.sw-older-releases { margin-top: 16px; }
.sw-older-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--gray-2);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: border-color .2s, color .2s;
}
.sw-older-toggle:hover { border-color: var(--accent); color: var(--white); }
.sw-toggle-arrow { margin-left: auto; font-size: 16px; transition: transform .2s; }
.sw-older-list { display: none; }
.sw-older-list.open { display: block; }

.sw-release-item { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sw-release-item:last-child { border-bottom: none; }
.sw-release-item-info { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; flex: 1; }
.sw-platform-sm, .sw-size, .sw-date { font-size: 13px; color: var(--gray); }

/* Documents */
.sw-doc-group { margin-bottom: 24px; }
.sw-doc-group-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.sw-doc-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.sw-doc-item:last-child { border-bottom: none; }
.sw-doc-icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.sw-doc-info { flex: 1; }
.sw-doc-info strong { font-size: 15px; color: var(--white); display: block; margin-bottom: 4px; }
.sw-doc-info p { font-size: 13px; color: var(--gray); margin: 0 0 6px; }
.sw-doc-meta { display: flex; align-items: center; gap: 8px; }
.sw-ext-badge { padding: 2px 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px; font-size: 11px; font-weight: 700; color: var(--gray-2); text-transform: uppercase; }
.sw-doc-dl { flex-shrink: 0; }
.sw-support-link { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; color: var(--gray); }
.sw-support-link a { color: var(--accent); }

/* ---- FAQ ACCORDION ---- */
.sw-faq { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.sw-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .25s; }
.sw-faq-item.open { border-color: var(--accent); }
.sw-faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  transition: color .2s;
}
.sw-faq-q:hover { color: var(--accent); }
.sw-faq-arrow { font-size: 18px; color: var(--accent); flex-shrink: 0; transition: transform .3s var(--ease); }
.sw-faq-item.open .sw-faq-arrow { transform: rotate(180deg); }
.sw-faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.sw-faq-item.open .sw-faq-a { max-height: 600px; }
.sw-faq-a-inner { padding: 0 24px 20px; font-size: 15px; line-height: 1.7; color: var(--gray-2); }
.sw-faq-a-inner p { margin: 0 0 12px; }
.sw-faq-a-inner p:last-child { margin: 0; }

/* ---- LIGHT MODE OVERRIDES (SW) ---- */
html[data-theme="light"] .sw-hero-grid {
  background-image: linear-gradient(rgba(10,23,41,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(10,23,41,.04) 1px, transparent 1px);
}
html[data-theme="light"] .sw-highlight-card { background: rgba(10,23,41,.04); border-color: rgba(10,23,41,.1); }
html[data-theme="light"] .sw-hl-title { color: #0a0f1c; }
html[data-theme="light"] .sw-hl-desc { color: #475569; }
html[data-theme="light"] .sw-specs-wrap { background: rgba(10,23,41,.03); border-color: rgba(10,23,41,.1); }
html[data-theme="light"] .sw-specs-table th { color: #0891b2; }
html[data-theme="light"] .sw-specs-table td { color: #334155; }
html[data-theme="light"] .sw-specs-table tr:nth-child(even) { background: rgba(10,23,41,.03); }
html[data-theme="light"] .sw-release-latest { border-color: #0891b2; background: rgba(8,145,178,.04); }
html[data-theme="light"] .sw-faq-item { background: rgba(10,23,41,.03); border-color: rgba(10,23,41,.1); }
html[data-theme="light"] .sw-faq-q { color: #0a0f1c; }
html[data-theme="light"] .sw-faq-item.open { border-color: #0891b2; }
html[data-theme="light"] .sw-faq-a-inner { color: #334155; }
html[data-theme="light"] .sw-doc-info strong { color: #0a0f1c; }
