/* ==========================================================================
   New Nexus — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Noto+Sans+SC:wght@300;400;500;600;700&family=Tajawal:wght@300;400;500;700;900&display=swap');

:root {
  /* Palette — New Nexus Global Color Template (Deep Navy / Steel Blue / Amber) */
  --navy-950: #0f2b46;
  --navy-900: #15355a;
  --navy-800: #1b4270;
  --navy-700: #234e82;
  --navy-600: #2e6da4;

  --gold-300: #dec873;
  --gold-400: #d3b750;
  --gold-500: #c9a227;
  --gold-600: #a8871f;
  --gold-700: #86691a;

  --silver-200: #f0f1f3;
  --silver-300: #dbdee3;
  --silver-400: #c3c7ce;
  --silver-500: #a8adb6;
  --silver-600: #9ca3af;

  --white: #ffffff;
  --paper: #ffffff;
  --ink-900: #1a1a1a;
  --ink-700: #3d3d3d;
  --ink-500: #5a5a5a;

  --section-bg: #f8f9fa;

  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;

  --line-dark: rgba(255, 255, 255, 0.09);
  --line-dark-strong: rgba(255, 255, 255, 0.16);
  --line-light: #e5e7eb;
  --line-light-strong: #d1d5db;

  --glass-dark: rgba(255, 255, 255, 0.045);
  --glass-light: rgba(26, 26, 26, 0.025);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; color: var(--ink-900); }
h3, h4 { font-weight: 600; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid var(--line-light-strong);
  color: var(--gold-700);
  background: var(--glass-light);
}
.on-dark .eyebrow { border-color: var(--line-dark-strong); color: var(--gold-300); background: var(--glass-dark); }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); }
.on-dark .eyebrow .dot { background: var(--gold-300); }

h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); }
@media (max-width: 600px) {
  h1 { font-size: clamp(1.6rem, 7.5vw, 2rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .stat-grid { gap: 18px !important; }
  .stat-grid .stat-num { font-size: 1.5rem; }
  .stat-grid .stat-label { font-size: 11px; }
  .mini-grid-2 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
  .mini-grid-2 .core { padding: 18px !important; }
  .mini-grid-2 .stat-num { font-size: 1.5rem; }
  .mini-grid-2 .stat-label { font-size: 10.5px; }
}
h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
h4 { font-size: 1.05rem; }
p { line-height: 1.7; color: var(--ink-500); }
.on-dark p { color: var(--silver-400); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

.lede { font-size: clamp(1.05rem, 1.3vw, 1.25rem); max-width: 46ch; }

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

section { padding: clamp(56px, 7vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }

.bg-dark { background: var(--navy-950); }
.bg-elevated { background: var(--navy-900); }
.bg-white { background: var(--paper); }
.bg-wash { background: var(--section-bg); }
.wash-photo { background-size: cover; background-position: center; }
.wash-photo::before { display: none; }
.bg-wash::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.05;
  background-image: radial-gradient(circle, var(--ink-900) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- Photo frames (double-bezel, image variant) ---------- */
.photo-shell { padding: 8px; border-radius: 2rem; background: var(--glass-light); border: 1px solid var(--line-light); }
.on-dark .photo-shell { background: var(--glass-dark); border-color: var(--line-dark); }
.photo-core { border-radius: calc(2rem - 6px); overflow: hidden; position: relative; }
.photo-core img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-ratio-4-3 { aspect-ratio: 4 / 3; }
.photo-ratio-16-10 { aspect-ratio: 16 / 10; }
.photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px;
  background: linear-gradient(0deg, rgba(15,43,70,0.88) 0%, rgba(15,43,70,0.35) 65%, transparent 100%);
}
.photo-caption h4, .photo-caption p { color: var(--white); margin: 0; }
.photo-caption p { color: var(--silver-300); font-size: 13px; margin-top: 4px; }

/* ---------- Full-bleed hero photo background ---------- */
.hero-photo { background-size: cover; background-position: center; }
.hero-photo::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(175deg, rgba(15,43,70,0.82) 8%, rgba(21,53,90,0.6) 42%, rgba(15,43,70,0.92) 100%);
}

/* ---------- Photo bento card (image + gradient + text) ---------- */
.photo-card {
  position: relative; border-radius: 2rem; overflow: hidden; height: 100%; min-height: 320px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
}
.photo-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,43,70,0.92) 0%, rgba(15,43,70,0.45) 55%, rgba(15,43,70,0.05) 100%);
}
.photo-card-content { position: relative; z-index: 1; padding: 32px; }
.photo-card-content h3, .photo-card-content h4 { color: var(--white); }
.photo-card-content p { color: var(--silver-300); }
.photo-card .card-icon { margin-bottom: 16px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: 1fr; }
  .grid-12 > * { grid-column: 1 / -1 !important; }
}

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Mesh glow (dark sections) ---------- */
.mesh { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.mesh::before, .mesh::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.5;
}
.mesh::before {
  width: 640px; height: 640px; top: -220px; right: -160px;
  background: radial-gradient(circle, rgba(201,162,39,0.45), transparent 70%);
}
.mesh::after {
  width: 520px; height: 520px; bottom: -200px; left: -140px;
  background: radial-gradient(circle, rgba(46,109,164,0.16), transparent 70%);
}
.grid-overlay {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
}
.content-above { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav-wrap { position: fixed; top: 20px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 20px; }
.nav {
  width: min(1160px, 100%);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: rgba(21, 53, 90, 0.66);
  border: 1px solid var(--line-dark-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.5s var(--ease-fluid), border-color 0.5s var(--ease-fluid);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; color: var(--white); letter-spacing: 0.01em; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; object-fit: cover; border-radius: 7px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; color: var(--silver-300);
  transition: color 0.4s var(--ease-fluid), background 0.4s var(--ease-fluid);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: var(--glass-dark); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 480px) {
  .nav { padding: 8px 8px 8px 16px; gap: 8px; }
  .brand { font-size: 0.92rem; gap: 7px; }
  .brand .mark { width: 24px; height: 24px; flex-shrink: 0; }
  .nav-actions { gap: 6px; }
  .lang-switch { margin-left: 0; }
  html[dir="rtl"] .lang-switch { margin-right: 0; }
  .lang-btn { padding: 7px 9px; font-size: 11px; gap: 3px; }
  .lang-btn svg:first-child { display: none; }
}
@media (max-width: 360px) {
  .brand span, .brand-text { display: none; }
}

.hamburger {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-dark-strong);
  background: var(--glass-dark); display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hamburger span {
  position: absolute; width: 15px; height: 1.5px; background: var(--white);
  transition: transform 0.5s var(--ease-fluid), opacity 0.3s var(--ease-fluid);
}
.hamburger span:nth-child(1) { transform: translateY(-4px); }
.hamburger span:nth-child(2) { transform: translateY(4px); }
.hamburger.open span:nth-child(1) { transform: translateY(0) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(0) rotate(-45deg); }

.menu-overlay {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(15, 43, 70, 0.86);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease-fluid);
  overflow-y: auto; padding: 100px 20px 40px;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-links { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.menu-links a {
  font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2.1rem); color: var(--white);
  padding: 9px 0; opacity: 0; transform: translateY(48px);
  transition: transform 0.7s var(--ease-out), opacity 0.7s var(--ease-out);
}
.menu-overlay.open .menu-links a { opacity: 1; transform: translateY(0); }
.menu-links a:nth-child(1) { transition-delay: 0.08s; }
.menu-links a:nth-child(2) { transition-delay: 0.14s; }
.menu-links a:nth-child(3) { transition-delay: 0.2s; }
.menu-links a:nth-child(4) { transition-delay: 0.26s; }
.menu-links a:nth-child(5) { transition-delay: 0.32s; }
.menu-links a:nth-child(6) { transition-delay: 0.38s; }
.menu-links a:nth-child(7) { transition-delay: 0.44s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 6px 6px 22px; border-radius: 999px;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.4s var(--ease-fluid), background 0.4s var(--ease-fluid), border-color 0.4s var(--ease-fluid);
}
.btn:active { transform: scale(0.98); }
.btn-icon {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s var(--ease-fluid), background 0.4s var(--ease-fluid);
}
.btn-icon svg { width: 14px; height: 14px; }

.btn-primary { background: linear-gradient(135deg, var(--gold-400), var(--gold-600)); color: var(--navy-950); }
.btn-primary .btn-icon { background: rgba(15,43,70,0.14); }
.btn-primary:hover { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); }
.btn-primary:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }

.btn-ghost { background: var(--glass-dark); border-color: var(--line-dark-strong); color: var(--white); }
.btn-ghost .btn-icon { background: rgba(255,255,255,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn-ghost:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }

.btn-outline-light { background: transparent; border-color: var(--line-light-strong); color: var(--ink-900); }
.btn-outline-light .btn-icon { background: var(--glass-light); }
.btn-outline-light:hover { background: var(--glass-light); }
.btn-outline-light:hover .btn-icon { transform: translate(2px, -2px) scale(1.06); }

.btn-sm { padding: 4px 4px 4px 18px; font-size: 12.5px; }
.btn-sm .btn-icon { width: 28px; height: 28px; }
.btn-sm .btn-icon svg { width: 12px; height: 12px; }

/* ---------- Double-bezel cards ---------- */
.shell {
  padding: 8px; border-radius: 2rem;
  background: var(--glass-light); border: 1px solid var(--line-light);
}
.on-dark .shell { background: var(--glass-dark); border-color: var(--line-dark); }
.core {
  border-radius: calc(2rem - 6px); padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
  height: 100%;
}
.on-dark .core {
  background: var(--navy-800);
  border-color: var(--line-dark);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
}

.card-icon {
  width: 46px; height: 46px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--gold-400), var(--gold-600));
  margin-bottom: 22px;
}
.card-icon svg { width: 22px; height: 22px; stroke: var(--navy-950); }

/* ---------- Stats ---------- */
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink-900); }
.on-dark .stat-num { color: var(--white); }
.stat-label { font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); margin-top: 6px; }
.on-dark .stat-label { color: var(--silver-500); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(44px); filter: blur(6px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* ---------- Divider ---------- */
.hairline { height: 1px; background: var(--line-light); border: none; }
.on-dark .hairline { background: var(--line-dark); }

/* ---------- Tag pill ---------- */
.tag {
  display: inline-flex; padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid var(--line-light-strong); color: var(--ink-500);
}
.on-dark .tag { border-color: var(--line-dark-strong); color: var(--silver-400); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--silver-500); }
.field input, .field textarea, .field select {
  background: var(--glass-dark); border: 1px solid var(--line-dark-strong);
  border-radius: 14px; padding: 14px 16px; color: var(--white); font-size: 14.5px;
  transition: border-color 0.4s var(--ease-fluid), background 0.4s var(--ease-fluid);
}
.field input::placeholder, .field textarea::placeholder { color: var(--silver-600); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold-400); background: rgba(255,255,255,0.06);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 12.5px; color: var(--silver-600); margin-top: 14px; }

/* ---------- Case spec sheet (reserved fields for future project data) ---------- */
.case-spec { display: flex; flex-direction: column; }
.case-spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line-light-strong); font-size: 12.5px; }
.case-spec-row:last-child { border-bottom: none; }
.case-spec-row .spec-label { color: var(--ink-700); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }
.case-spec-row .spec-value { color: var(--silver-600); }
.on-dark .case-spec-row { border-bottom-color: var(--line-dark-strong); }
.on-dark .case-spec-row .spec-label { color: var(--silver-200); }
.on-dark .case-spec-row .spec-value { color: var(--silver-500); }
.form-success { display: none; padding: 18px 20px; border-radius: 16px; background: rgba(22,163,74,0.14); border: 1px solid rgba(22,163,74,0.4); color: var(--silver-200); font-size: 14px; }
.form-error { display: none; padding: 14px 18px; border-radius: 14px; background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.35); color: var(--silver-200); font-size: 13px; margin-top: 14px; }
.form-error.show { display: block; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.form-success.show { display: block; }

/* ---------- Footer ---------- */
footer { background: var(--navy-950); padding: 80px 0 28px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 { color: var(--white); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; margin-bottom: 18px; }
.footer-col a, .footer-col p { color: var(--silver-500); font-size: 14px; line-height: 2; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line-dark); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { color: var(--silver-600); font-size: 12.5px; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-dark-strong);
  display: flex; align-items: center; justify-content: center; transition: background 0.4s var(--ease-fluid), border-color 0.4s var(--ease-fluid);
}
.social-row a:hover { background: var(--glass-dark); border-color: var(--line-dark-strong); }
.social-row svg { width: 15px; height: 15px; stroke: var(--silver-300); }

/* ---------- Language support (Chinese / Arabic) ---------- */
html[lang="zh-CN"] { --font-display: 'Noto Sans SC', 'Fraunces', serif; --font-sans: 'Noto Sans SC', -apple-system, sans-serif; }
html[lang="ar"] { --font-display: 'Tajawal', 'Fraunces', serif; --font-sans: 'Tajawal', -apple-system, sans-serif; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3, html[lang="zh-CN"] h4 { font-weight: 700; letter-spacing: 0; }
html[lang="zh-CN"] h3, html[lang="zh-CN"] h4 { font-weight: 600; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 700; letter-spacing: 0; }
html[lang="ar"] h3, html[lang="ar"] h4 { font-weight: 600; }
html[dir="rtl"] .eyebrow .dot { order: 2; }
html[dir="rtl"] .compare tbody th, html[dir="rtl"] .compare thead th:first-child, html[dir="rtl"] .compare .group-row th {
  left: auto; right: 0; box-shadow: -8px 0 16px -8px rgba(0,0,0,0.5);
}
html[dir="rtl"] .breadcrumb, html[dir="rtl"] .compare tbody th, html[dir="rtl"] .compare thead th:first-child { text-align: right; }

/* ---------- Language switcher ---------- */
.lang-switch { position: relative; margin-left: 10px; }
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 10px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: var(--glass-dark); border: 1px solid var(--line-dark-strong);
  color: var(--silver-200); font-size: 12.5px; font-weight: 600;
  transition: background 0.4s var(--ease-fluid);
}
.lang-btn:hover { background: rgba(255,255,255,0.09); }
.lang-btn svg { width: 13px; height: 13px; stroke: var(--silver-400); transition: transform 0.4s var(--ease-fluid); }
.lang-switch.open .lang-btn svg { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 150px;
  background: rgba(21,53,90,0.96); border: 1px solid var(--line-dark-strong); border-radius: 16px;
  padding: 6px; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity 0.35s var(--ease-fluid), transform 0.35s var(--ease-fluid);
  z-index: 70;
}
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-switch.open .lang-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; font-size: 13px; color: var(--silver-300);
  transition: background 0.3s var(--ease-fluid), color 0.3s var(--ease-fluid);
  font-family: var(--font-sans);
}
.lang-menu a:hover { background: var(--glass-dark); color: var(--white); }
.lang-menu a.active { color: var(--gold-300); background: rgba(201,162,39,0.1); }
.lang-menu a.active::after { content: '✓'; font-size: 11px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-48 { margin-bottom: 48px; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.max-w-narrow { max-width: 640px; }

/* ---------- Page hero pattern ---------- */
.page-hero { padding-top: clamp(140px, 16vw, 190px); padding-bottom: clamp(56px, 7vw, 96px); }
.breadcrumb { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver-500); margin-bottom: 24px; }
.breadcrumb a { color: var(--silver-400); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- World-line SVG pattern (decorative) ---------- */
.deco-lines { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }

/* ---------- Comparison matrix (Competitors vs New Nexus) ---------- */
.compare-wrap {
  overflow-x: auto; border-radius: 1.75rem;
  border: 1px solid var(--line-dark-strong);
  background: linear-gradient(180deg, var(--navy-900), var(--navy-800));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7);
}
.compare { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; }
.compare-basic { min-width: 0; }
.compare-basic tbody th { max-width: none; }
@media (max-width: 480px) {
  .compare-basic th, .compare-basic td { padding: 12px 8px; font-size: 12px; }
  .compare-basic thead th { padding: 16px 8px 12px; font-size: 10px; }
  .compare-basic .nx-head-badge { font-size: 12.5px; gap: 5px; }
  .compare-basic .nx-head-badge svg { width: 13px; height: 13px; }
  .compare-basic .verdict-row td { font-size: 1rem; }
  .compare-basic .verdict-row td.col-nx { font-size: 1.1rem; }
}
.compare th, .compare td {
  padding: 16px 18px; text-align: center; font-size: 13.5px;
  border-bottom: 1px solid var(--line-dark); color: var(--silver-400);
}
.compare thead th {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--silver-300); font-weight: 600; padding: 24px 18px 18px;
  border-bottom: 1px solid var(--line-dark-strong); vertical-align: bottom;
}
.compare thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--silver-500); margin-top: 6px; font-size: 11px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare tbody th {
  text-align: left; font-family: var(--font-sans); font-weight: 500;
  color: var(--silver-200); font-size: 13.5px; max-width: 260px;
}
/* Sticky capability column for horizontal scroll */
.compare tbody th, .compare thead th:first-child, .compare .group-row th {
  position: sticky; left: 0; z-index: 2;
  background: var(--navy-900);
  box-shadow: 8px 0 16px -8px rgba(0,0,0,0.5);
}
/* Category group rows */
.compare .group-row th, .compare .group-row td {
  padding: 20px 18px 8px; border-bottom: none;
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-400); font-weight: 700; background: transparent;
}
.compare .group-row th { background: var(--navy-900); }
.compare .group-row td { color: transparent; }
/* Row hover */
.compare tbody tr:not(.group-row):hover td:not(.col-nx) { background: rgba(255,255,255,0.025); }
.compare tbody tr:not(.group-row):hover th { background: var(--navy-800); }
/* New Nexus column */
.compare .col-nx {
  background: linear-gradient(180deg, rgba(201,162,39,0.15), rgba(201,162,39,0.05));
  border-left: 1px solid rgba(211,183,80,0.4); border-right: 1px solid rgba(211,183,80,0.4);
  color: var(--gold-300); font-weight: 600; min-width: 150px;
}
.compare thead .col-nx {
  color: var(--gold-300);
  border-top: 3px solid var(--gold-400);
  background:
    radial-gradient(ellipse 90% 70% at 50% 0%, rgba(211,183,80,0.3), transparent 75%),
    linear-gradient(180deg, rgba(201,162,39,0.24), rgba(201,162,39,0.08));
}
.nx-head-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 15px; letter-spacing: 0.01em;
  text-transform: none; color: var(--gold-300);
}
.nx-head-badge svg { width: 17px; height: 17px; }
/* Summary verdict row */
.compare .verdict-row th, .compare .verdict-row td {
  border-top: 1px solid var(--line-dark-strong); border-bottom: none;
  padding: 18px; font-weight: 700;
}
.compare .verdict-row td { font-family: var(--font-display); font-size: 1.15rem; color: var(--silver-500); }
.compare .verdict-row td.col-nx { color: var(--gold-300); font-size: 1.3rem; }
.compare .verdict-row th { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--silver-500); }
/* Marks */
.mark-yes, .mark-no, .mark-part {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
}
.mark-yes svg, .mark-no svg, .mark-part svg { width: 13px; height: 13px; }
.mark-yes { background: linear-gradient(160deg, rgba(211,183,80,0.32), rgba(201,162,39,0.14)); border: 1px solid rgba(211,183,80,0.55); box-shadow: 0 0 14px rgba(201,162,39,0.25); }
.mark-yes svg { stroke: var(--gold-300); }
.col-nx .mark-yes { background: linear-gradient(160deg, var(--gold-400), var(--gold-600)); border-color: var(--gold-300); box-shadow: 0 0 18px rgba(201,162,39,0.45); }
.col-nx .mark-yes svg { stroke: var(--navy-950); }
.mark-no { background: rgba(255,255,255,0.03); border: 1px solid var(--line-dark); }
.mark-no svg { stroke: var(--silver-600); }
.mark-part { background: rgba(255,255,255,0.05); border: 1px solid var(--line-dark-strong); }
.mark-part svg { stroke: var(--silver-400); }
.compare-note { font-size: 12px; color: var(--silver-600); margin-top: 16px; }
/* Verdict banner under the table */
.verdict-banner {
  margin-top: 40px; border-radius: 1.5rem; padding: 28px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(211,183,80,0.16), rgba(201,162,39,0.05));
  border: 1px solid rgba(211,183,80,0.35);
}
.verdict-banner h3 { color: var(--white); font-size: clamp(1.15rem, 1.8vw, 1.5rem); max-width: 34ch; }
.verdict-banner .gold-word { color: var(--gold-300); }

/* ---------- Competitor type cards ---------- */
.rival-card { position: relative; }
.rival-card .core { padding-top: 28px; }
.rival-label {
  display: inline-flex; padding: 5px 12px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(26,26,26,0.06); color: var(--ink-500); border: 1px solid var(--line-light-strong);
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4), 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.35s var(--ease-fluid);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
html[dir="rtl"] .wa-float { right: auto; left: 24px; }
.wa-tooltip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: var(--navy-950); color: #fff; padding: 8px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease-fluid);
}
html[dir="rtl"] .wa-tooltip { right: auto; left: calc(100% + 12px); }
.wa-float:hover .wa-tooltip { opacity: 1; }
@media (max-width: 600px) {
  .wa-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  html[dir="rtl"] .wa-float { right: auto; left: 16px; }
  .wa-float svg { width: 27px; height: 27px; }
  .wa-tooltip { display: none; }
}
