/* ══════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════ */
.hero {
  min-height: 92vh;
  display:grid; grid-template-columns: 1.05fr 1fr;
  align-items:center; gap:64px;
  padding: calc(var(--nav-h) + 80px) 32px 80px;
  max-width: var(--max-w); margin:0 auto;
  position:relative;
}
.hero-left { position:relative; z-index:3; animation: fade-up .9s var(--ease); }
.hero-badge {
  display:inline-flex; align-items:center; gap:10px;
  padding:6px 14px;
  background: rgba(139,92,246,.08);
  border:1px solid rgba(139,92,246,.22);
  border-radius:999px;
  font-family: var(--font-mono);
  font-size:11.5px; font-weight:500;
  letter-spacing:.12em; text-transform:uppercase;
  color: var(--purple-l);
  margin-bottom:24px;
}
.hero-badge-dot {
  width:6px; height:6px; border-radius:50%;
  background: var(--purple);
  position:relative;
}
.hero-badge-dot::after {
  content:''; position:absolute; inset:-3px;
  border-radius:50%; background: var(--purple);
  opacity:.4; animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.4rem);
  font-weight:600; line-height:1.05;
  letter-spacing:-.035em;
  margin-bottom:24px;
}
.hero h1 .line { display:block; }
.hero-desc {
  font-size: clamp(1rem, 1.15vw, 1.125rem);
  color: var(--text-dim); line-height:1.65;
  max-width:520px; margin-bottom:36px;
}
.hero-btns {
  display:flex; flex-wrap:wrap; gap:10px;
  margin-bottom:56px;
}

.hero-trust { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.trust-logo {
  height:22px; opacity:.5;
  transition: opacity .3s;
  font-family: var(--font); font-weight:600; font-size:14px;
  color: var(--text-dim); letter-spacing:.05em;
  white-space:nowrap;
  cursor: pointer;
  text-decoration: none;
}
.trust-logo:hover { opacity:1; color: var(--text); }
.hero-trust-sep {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
}

/* Hero right — Interactive product preview */
/* ══════════════════════════════════════════════════════════
   HERO STAGE — Dynamic Featured Products
   Compressed Option B · 3-col row 1 · wide row 2
   Data-driven via hero-stage.js · RTL automatic
   No hardcoded cards · No center image · No connection lines
══════════════════════════════════════════════════════════ */
.hero-right {
  position:relative; z-index:3;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:16px;
  animation: fade-up 1s var(--ease) .15s backwards;
}
.hero-stage {
  position:relative;
  width:100%; max-width:560px;
}
.hero-stage-bg {
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(ellipse at 55% 40%, rgba(139,92,246,.24) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 75%, rgba(59,130,246,.16) 0%, transparent 55%);
  filter: blur(50px);
}
.hero-stage-grid {
  position:absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(139,92,246,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  opacity:.5;
}

/* ── Stage inner — holds all rendered cards ── */
.hs-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto;
  gap: 10px;
  align-items: start;
}

/* ── Loading state ── */
.hs-loading {
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
}
.hs-loading-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(139,92,246,.4);
  animation: hs-blink 1.4s ease-in-out infinite;
  margin: 0 4px;
}
.hs-loading-dot:nth-child(2) { animation-delay: .2s; }
.hs-loading-dot:nth-child(3) { animation-delay: .4s; }
@keyframes hs-blink { 0%,80%,100% { opacity:.2; } 40% { opacity:1; } }

/* ── Error / empty fallback ── */
.hs-fallback {
  min-height: 260px;
  display: flex; flex-direction:column; align-items:center; justify-content:center;
  gap: 12px;
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
}
.hs-fallback-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--grad-glow);
  border: 1px solid rgba(139,92,246,.2);
  display: grid; place-items: center;
  color: var(--purple-l);
}
.hs-fallback-icon svg { width: 22px; height: 22px; }
.hs-fallback-text {
  font-size: 13px; color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: .05em;
}

/* ── Featured product card ── */
.hfc {
  position: relative;
  z-index: 2;
  background: linear-gradient(160deg, var(--bg-card-hi) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10px;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .3s;
  will-change: transform;
  cursor: default;
}
.hfc::before {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(139,92,246,.10) 0%, transparent 55%);
  pointer-events: none;
}
.hfc:hover {
  border-color: rgba(139,92,246,.3);
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 24px 48px -12px rgba(0,0,0,.6),
    0 0 0 1px rgba(139,92,246,.12),
    0 0 24px -6px rgba(139,92,246,.22);
  z-index: 10;
}

/* ── Card image area ── */
.hfc-img-wrap {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg) url('../images/products/placeholder.svg') center / 50% no-repeat;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
/* Primary card (position 0): 6:5 portrait */
.hfc--pos-0 .hfc-img-wrap { aspect-ratio: 5 / 6; }
/* Standard cards (positions 1,2,4): 16:9 widescreen */
.hfc--pos-1 .hfc-img-wrap,
.hfc--pos-2 .hfc-img-wrap,
.hfc--pos-4 .hfc-img-wrap { aspect-ratio: 16 / 9; }
/* Wide card (position 3): full-width panoramic 3.5:1 */
.hfc--pos-3 .hfc-img-wrap { aspect-ratio: 3.5 / 1; }

.hfc-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s var(--ease);
}
/* Placeholder shown when image is absent or fails */
.hfc-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.hfc-img-placeholder svg {
  width: 28px; height: 28px;
  color: rgba(139,92,246,.25);
}

/* ── Card text ── */
.hfc-name {
  font-size: 13px; font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Grid placement: count-based layouts ── */
/* 1 product: single card full-width */
.hs-inner--count-1 { grid-template-columns: 1fr; }
.hs-inner--count-1 .hfc--pos-0 {
  grid-column: 1; grid-row: 1;
  transform: translateY(-14px);
  animation: hfc-float-0 6.5s ease-in-out infinite;
}

/* 2 products: left + right */
.hs-inner--count-2 { grid-template-columns: 1fr 1fr; }
.hs-inner--count-2 .hfc--pos-0 {
  grid-column: 1; grid-row: 1;
  transform: translateY(-14px);
  animation: hfc-float-0 6.5s ease-in-out infinite;
}
.hs-inner--count-2 .hfc--pos-1 {
  grid-column: 2; grid-row: 1;
  transform: translateY(0px);
  animation: hfc-float-1 7s ease-in-out infinite;
}

/* 3 products: three equal columns */
.hs-inner--count-3 { grid-template-columns: repeat(3, 1fr); }
.hs-inner--count-3 .hfc--pos-0 {
  grid-column: 1; grid-row: 1;
  transform: translateY(-14px);
  animation: hfc-float-0 6.5s ease-in-out infinite;
}
.hs-inner--count-3 .hfc--pos-1 {
  grid-column: 2; grid-row: 1;
  transform: translateY(0px);
  animation: hfc-float-1 7s ease-in-out infinite;
}
.hs-inner--count-3 .hfc--pos-2 {
  grid-column: 3; grid-row: 1;
  transform: translateY(+12px);
  animation: hfc-float-2 8s ease-in-out infinite;
}

/* 4 products: 3-col row 1 + wide row 2 */
.hs-inner--count-4 { grid-template-columns: repeat(3, 1fr); }
.hs-inner--count-4 .hfc--pos-0 {
  grid-column: 1; grid-row: 1;
  transform: translateY(-14px);
  animation: hfc-float-0 6.5s ease-in-out infinite;
}
.hs-inner--count-4 .hfc--pos-1 {
  grid-column: 2; grid-row: 1;
  transform: translateY(0px);
  animation: hfc-float-1 7s ease-in-out infinite;
}
.hs-inner--count-4 .hfc--pos-2 {
  grid-column: 3; grid-row: 1;
  transform: translateY(+12px);
  animation: hfc-float-2 8s ease-in-out infinite;
}
.hs-inner--count-4 .hfc--pos-3 {
  grid-column: 1 / -1; grid-row: 2;
  transform: translateY(-4px);
  animation: hfc-float-3 9s ease-in-out infinite;
}

/* 5 products: 3-col row 1 + wide row 2 + 1-card row 3 */
.hs-inner--count-5 { grid-template-columns: repeat(3, 1fr); }
.hs-inner--count-5 .hfc--pos-0 {
  grid-column: 1; grid-row: 1;
  transform: translateY(-14px);
  animation: hfc-float-0 6.5s ease-in-out infinite;
}
.hs-inner--count-5 .hfc--pos-1 {
  grid-column: 2; grid-row: 1;
  transform: translateY(0px);
  animation: hfc-float-1 7s ease-in-out infinite;
}
.hs-inner--count-5 .hfc--pos-2 {
  grid-column: 3; grid-row: 1;
  transform: translateY(+12px);
  animation: hfc-float-2 8s ease-in-out infinite;
}
.hs-inner--count-5 .hfc--pos-3 {
  grid-column: 1 / -1; grid-row: 2;
  transform: translateY(-4px);
  animation: hfc-float-3 9s ease-in-out infinite;
}
.hs-inner--count-5 .hfc--pos-4 {
  grid-column: 1; grid-row: 3;
  transform: translateY(+8px);
  animation: hfc-float-4 7.5s ease-in-out infinite;
}

/* Float keyframes — translateY only, no rotation */
@keyframes hfc-float-0 { 0%,100% { transform: translateY(-14px); } 50% { transform: translateY(-26px); } }
@keyframes hfc-float-1 { 0%,100% { transform: translateY(0px);   } 50% { transform: translateY(-11px); } }
@keyframes hfc-float-2 { 0%,100% { transform: translateY(+12px); } 50% { transform: translateY(+2px);  } }
@keyframes hfc-float-3 { 0%,100% { transform: translateY(-4px);  } 50% { transform: translateY(-10px); } }
@keyframes hfc-float-4 { 0%,100% { transform: translateY(+8px);  } 50% { transform: translateY(-2px);  } }

/* ── Stage CTA — "View All Products" ── */
.hs-cta {
  display: flex; justify-content: flex-end;
  width: 100%; max-width: 560px;
}
.hs-cta-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.hs-cta-link:hover {
  color: var(--purple-l);
  border-bottom-color: rgba(139,92,246,.4);
}
.hs-cta-link svg { width: 12px; height: 12px; }
[dir="rtl"] .hs-cta { justify-content: flex-start; }
[dir="rtl"] .hs-cta-link svg { transform: scaleX(-1); }

/* reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hfc, .hs-loading-dot { animation: none !important; transform: none !important; }
  .cta-inner::before { animation: none; }   /* stop cta-orbit */
  .wa-float { animation: none; }             /* stop wa-float-anim */
  /* Note: broad catch-all at bottom of file also covers all remaining animations */
}


.watch-face {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  color: var(--purple-l);
}
.watch-face .watch-num { font-family:var(--font-mono); font-size:22px; font-weight:600; letter-spacing:.05em; line-height:1; }
.watch-face .watch-label { font-size:8px; color: var(--text-muted); text-transform:uppercase; letter-spacing:.15em; }
.watch-pulse {
  width:8px; height:8px; border-radius:50%;
  background: var(--green);
  box-shadow:0 0 8px var(--green);
  animation: blink 1.2s infinite;
}
@keyframes blink { 50% { opacity: .25; } }

/* Display screen */
.display-grid {
  display:grid; grid-template-columns: repeat(4, 1fr); gap:6px;
  width:100%;
}
.display-cell {
  background: rgba(139,92,246,.08);
  border: 1px solid rgba(139,92,246,.15);
  border-radius:5px;
  padding: 8px 4px;
  text-align:center;
  font-family:var(--font-mono);
  font-size:11px; font-weight:600;
  color: var(--text-dim);
  transition: all .3s;
}
.display-cell.active {
  background: rgba(139,92,246,.3);
  border-color: var(--purple);
  color: var(--text);
  box-shadow: 0 0 10px rgba(139,92,246,.4);
  animation: cell-pulse 1.5s infinite;
}
@keyframes cell-pulse {
  0%,100% { box-shadow: 0 0 10px rgba(139,92,246,.4); }
  50% { box-shadow: 0 0 18px rgba(139,92,246,.7); }
}

/* Call button visual */
.btn-visual {
  width:100%; aspect-ratio: 1.3 / 1;
  display:flex; align-items:center; justify-content:center;
  position:relative;
}
.btn-visual-inner {
  width:55%; aspect-ratio:1/1; border-radius:50%;
  background: var(--grad);
  display:flex; align-items:center; justify-content:center;
  position:relative;
  box-shadow:
    0 0 0 6px rgba(139,92,246,.1),
    0 10px 30px rgba(59,130,246,.4);
}
.btn-visual-inner::before, .btn-visual-inner::after {
  content:''; position:absolute; inset:0;
  border-radius:50%;
  border:1.5px solid var(--purple);
  animation: btn-ripple 2s ease-out infinite;
}
.btn-visual-inner::after { animation-delay: 1s; }
@keyframes btn-ripple {
  0% { transform: scale(1); opacity:.6; }
  100% { transform: scale(2.2); opacity:0; }
}
.btn-visual-inner span {
  width:30%; aspect-ratio:1/1; border-radius:50%;
  background: rgba(255,255,255,.25);
}

/* Tablet */
.tablet-bars { width:100%; display:flex; flex-direction:column; gap:4px; }
.tablet-bar {
  height:6px; background:rgba(139,92,246,.15);
  border-radius:3px;
}
.tablet-bar.fill {
  background: var(--grad);
  width:70%;
}
.tablet-bar:nth-child(2) { width:90%; }
.tablet-bar:nth-child(3) { width:50%; }

/* @keyframes fade-up — defined in core.css (canonical, 24px travel).
   Home.css previously duplicated it at 28px; removed in Phase H1. */

/* ══════════════════════════════════════════════════
   STATS BAR
══════════════════════════════════════════════════ */
.stats-bar {
  padding: 64px 0;
  background:
    radial-gradient(ellipse at top, rgba(139,92,246,.06), transparent 60%),
    var(--bg-2);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.stats-grid {
  display:grid; grid-template-columns: repeat(4, 1fr); gap:32px;
}
.stat-item { text-align:center; }
/* ── Display numbers — Phase H1 consolidation ─────────────
   Shared animated gradient pattern (same as .display-value
   and .grad-text in core.css). Individual rules below set
   only what differs: font-size, weight, spacing, margin.
   ─────────────────────────────────────────────────────── */
.stat-num,
.roi-amount,
.about-stat-num {
  background: var(--grad-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: grad-move 5s linear infinite;
  display: inline-block;
}

.stat-num {
  font-family: var(--font);
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: var(--h-weight-default);   /* 600 */
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════
   PROBLEM → SOLUTION
══════════════════════════════════════════════════ */
.ps-grid {
  display:grid; grid-template-columns: 1fr auto 1fr; gap:32px;
  align-items:stretch;
  max-width: 1100px; margin:0 auto;
}
.ps-arrow {
  display:flex; align-items:center; justify-content:center;
  align-self:center;
  width:56px; height:56px;
  background: var(--grad);
  border-radius:50%;
  box-shadow: 0 0 40px var(--purple-glow);
  flex-shrink:0;
}
.ps-arrow svg { width:22px; height:22px; color:#fff; }

.ps-box {
  border-radius: var(--radius);
  padding:36px 32px;
  display:flex; flex-direction:column; gap:18px;
}
.ps-box.problem {
  background: rgba(239,68,68,.04);
  border: 1px solid rgba(239,68,68,.14);
}
.ps-box.solution {
  background: linear-gradient(180deg, rgba(59,130,246,.06), rgba(139,92,246,.06));
  border: 1px solid rgba(139,92,246,.22);
}
.ps-box h3 {
  font-size:1.125rem; font-weight:600;
  display:flex; align-items:center; gap:10px;
  margin-bottom:4px;
}
.ps-box.problem h3 { color:#F87171; }
.ps-box.solution h3 { color: var(--purple-l); }
.ps-item {
  display:flex; align-items:flex-start; gap:12px;
  font-size:.95rem;
  color: var(--text-dim);
  line-height:1.55;
}
.ps-item svg { width:18px; height:18px; flex-shrink:0; margin-top:2px; }
.ps-box.problem .ps-item svg { color: var(--red); }
.ps-box.solution .ps-item svg { color: var(--purple-l); }

/* ══════════════════════════════════════════════════
   LIVE DEMO
══════════════════════════════════════════════════ */
.demo-section {
  background:
    radial-gradient(ellipse at center, rgba(139,92,246,.05), transparent 60%),
    var(--bg);
}
.demo-stage {
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-m);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  max-width: 1100px; margin: 0 auto;
  display:grid; grid-template-columns: 1fr 1fr; gap:40px;
  align-items:center;
  position:relative;
  overflow:hidden;
}
.demo-stage::before {
  content:''; position:absolute;
  top:-50%; left:-20%; width:140%; height:200%;
  background: radial-gradient(ellipse at center, rgba(139,92,246,.08), transparent 50%);
  pointer-events:none;
}

.demo-tables-wrap { position:relative; z-index:2; }
.demo-tables-title {
  font-family:var(--font-mono);
  font-size:10px; letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--text-muted);
  margin-bottom:16px;
}
.demo-tables {
  display:grid; grid-template-columns: repeat(3, 1fr); gap:12px;
}
.demo-table {
  position:relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-card);
  border: 1.5px solid var(--border-m);
  border-radius: var(--radius-sm);
  display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:6px;
  cursor:pointer;
  transition: all .25s var(--ease);
  font-family: var(--font-mono);
  font-size:11px;
  color: var(--text-dim);
  user-select:none;
}
.demo-table:hover {
  border-color: var(--border-s);
  transform: translateY(-2px);
}
.demo-table .table-num {
  font-size:22px; font-weight:600;
  color: var(--text);
  letter-spacing:-.02em;
}
.demo-table.called {
  background: rgba(139,92,246,.15);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(139,92,246,.3), 0 0 0 4px rgba(139,92,246,.1);
  animation: table-pulse 1.5s infinite;
}
.demo-table.called .table-num { color: var(--purple-l); }
@keyframes table-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(139,92,246,.3), 0 0 0 4px rgba(139,92,246,.1); }
  50% { box-shadow: 0 0 30px rgba(139,92,246,.5), 0 0 0 6px rgba(139,92,246,.15); }
}
.demo-ripple {
  position:absolute; inset:0;
  border-radius: inherit;
  border:2px solid var(--purple);
  pointer-events:none;
  opacity:0;
}
.demo-table.called .demo-ripple {
  animation: ripple-out 1.2s ease-out infinite;
}
@keyframes ripple-out {
  0% { transform: scale(1); opacity:.6; }
  100% { transform: scale(1.5); opacity:0; }
}

.demo-info { position:relative; z-index:2; }
.demo-info h3 {
  font-size: 1.6rem; font-weight:600;
  letter-spacing:-.02em; margin-bottom:14px;
  line-height:1.15;
}
.demo-info p {
  font-size:.95rem; color: var(--text-dim);
  line-height:1.65; margin-bottom:28px;
}
.demo-status {
  display:flex; align-items:center; gap:12px;
  padding:14px 18px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--border-m);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom:24px;
  min-height: 52px;
}
.demo-status-dot {
  width:8px; height:8px; border-radius:50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  flex-shrink:0;
}
.demo-status-text { color: var(--text); flex:1; }
.demo-time {
  color: var(--purple-l);
  font-weight:500;
}
.demo-reset {
  font-family: var(--font-mono);
  font-size: 12px; padding: 8px 14px;
}

/* Watch mock in demo */
.demo-watch {
  display:flex; align-items:center; gap:16px;
  margin-bottom:24px;
}
.demo-watch-circle {
  width:80px; height:80px; border-radius:50%;
  background: linear-gradient(135deg, #1a1a2e, #0E0E1C);
  border:2px solid var(--border-m);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
  position:relative;
  transition: all .3s var(--ease);
}
.demo-watch-circle.active {
  border-color: var(--purple);
  box-shadow: 0 0 30px rgba(139,92,246,.5);
  animation: watch-vibrate .2s linear 5;
}
@keyframes watch-vibrate {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}
.demo-watch-content {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align:center;
}
.demo-watch-num {
  font-size: 24px; font-weight:600;
  color: var(--text-muted);
  display:block; line-height:1;
  transition: color .3s;
}
.demo-watch-circle.active .demo-watch-num { color: var(--purple-l); }
.demo-watch-label {
  font-size: 9px; letter-spacing:.15em;
  text-transform:uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ══════════════════════════════════════════════════
   PRODUCTS SHOWCASE
══════════════════════════════════════════════════ */
.products-showcase {
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap:20px;
}
/* Phase 7D: prevents layout collapse while JS renders featured products */
.products-showcase--loading { min-height: 380px; }
/* Phase 7D: product image in showcase cards (when p.image is set) */
.sc-img-wrap {
  margin: -32px -28px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow:hidden;
  background: var(--bg-card-hi);
}
.sc-product-img {
  width:100%;
  aspect-ratio: 4/3;
  object-fit:cover;
  object-position:center;
  display:block;
  transition: transform .5s var(--ease);
}
.showcase-card:hover .sc-product-img { transform: scale(1.03); }
.showcase-card {
  background: linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  padding: 32px 28px;
  display:flex; flex-direction:column;
  gap:18px;
  position:relative; overflow:hidden;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.showcase-card::after {
  content:''; position:absolute;
  top:0; left:0; right:0; height:1px;
  background: var(--grad);
  opacity:0; transition: opacity .3s;
}
.showcase-card:hover {
  border-color: rgba(139,92,246,.25);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(59,130,246,.15);
}
.showcase-card:hover::after { opacity:1; }

/* .sc-icon removed — Phase 24: all cards now render <img> with poster layout */
.sc-tag {
  display:inline-block;
  font-family: var(--font-mono);
  font-size:10px; letter-spacing:.15em;
  text-transform:uppercase;
  color: var(--text-muted);
  margin-bottom:-10px;
}
.sc-name { font-size:1.0625rem; font-weight:600; }
.sc-desc {
  font-size:.875rem; color: var(--text-dim);
  line-height:1.6; flex:1;
}
.sc-meta {
  display:flex; align-items:center; gap:14px;
  padding-top:14px; border-top:1px solid var(--border);
  font-family: var(--font-mono);
  font-size:11px; color: var(--text-muted);
}
.sc-meta-item { display:flex; align-items:center; gap:5px; }
.sc-meta svg { width:11px; height:11px; }

/* ══════════════════════════════════════════════════
   HOW IT WORKS
══════════════════════════════════════════════════ */
.hiw-steps {
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:24px;
  position:relative;
}
.hiw-steps::before {
  content:''; position:absolute;
  top:36px; left:15%; right:15%; height:1px;
  background: linear-gradient(90deg, transparent, var(--border-m), transparent);
  z-index:0;
}
.hiw-step {
  background: transparent;
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  padding: 32px 28px;
  position:relative; z-index:1;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.hiw-step:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.25);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.hiw-num {
  width:72px; height:72px; border-radius:50%;
  background:
    radial-gradient(circle, rgba(139,92,246,.2), rgba(139,92,246,.05) 70%),
    var(--bg-card);
  border:1px solid var(--border-m);
  display:grid; place-items:center;
  font-family:var(--font);
  font-size:1.5rem; font-weight:600;
  color: var(--purple-l);
  letter-spacing:-.02em;
  margin: 0 auto 20px;
}
.hiw-step h3 {
  font-size:1.125rem; font-weight:600;
  text-align:center; margin-bottom:10px;
}
.hiw-step p {
  font-size:.875rem; color: var(--text-dim);
  line-height:1.6; text-align:center;
}

/* ══════════════════════════════════════════════════
   INDUSTRIES
══════════════════════════════════════════════════ */
.industries-grid {
  display:grid; grid-template-columns: repeat(5, 1fr); gap:16px;
}
.ind-card {
  background: transparent;
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  padding: 28px 20px;
  display:flex; flex-direction:column; align-items:center;
  gap:14px; text-align:center;
  cursor:default;
  transition: transform .3s, border-color .3s, background .3s, box-shadow .3s;
}
}
.ind-card:hover {
  background: var(--bg-card-hi);
  border-color: rgba(59,130,246,.3);
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.ind-icon {
  width:56px; height:56px; border-radius:14px;
  background: var(--blue-glow);
  border:1px solid rgba(59,130,246,.2);
  display:grid; place-items:center;
  transition: background .3s;
}
.ind-card:hover .ind-icon { background: rgba(59,130,246,.18); }
.ind-icon svg { width:24px; height:24px; color: var(--blue-l); }
.ind-name { font-size:.9375rem; font-weight:600; }
.ind-desc { font-size:.75rem; color: var(--text-muted); line-height:1.5; }

/* ══════════════════════════════════════════════════
   ROI CALCULATOR
══════════════════════════════════════════════════ */
.roi-wrap {
  background:
    radial-gradient(ellipse at top right, rgba(139,92,246,.08), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(59,130,246,.06), transparent 60%),
    linear-gradient(180deg, var(--bg-card-hi), var(--bg-card));
  border: 1px solid var(--border-m);
  border-radius: var(--radius-lg);
  padding: 48px;
  max-width: 1100px; margin: 0 auto;
  display:grid; grid-template-columns: 1fr 1fr; gap:48px;
  align-items:center;
}
.roi-controls { display:flex; flex-direction:column; gap:28px; }
.roi-control label {
  display:flex; justify-content:space-between;
  font-size:.875rem; font-weight:500;
  margin-bottom:10px;
}
.roi-control label .roi-value {
  font-family: var(--font-mono);
  font-weight:600;
  color: var(--purple-l);
}
.roi-slider {
  -webkit-appearance:none; appearance:none;
  width:100%; height:6px;
  background: rgba(255,255,255,.08);
  border-radius:3px;
  outline:none;
}
.roi-slider::-webkit-slider-thumb {
  -webkit-appearance:none; appearance:none;
  width:22px; height:22px; border-radius:50%;
  background: var(--grad);
  cursor:pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--purple), 0 4px 12px rgba(139,92,246,.4);
  transition: transform .15s;
}
.roi-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }
.roi-slider::-moz-range-thumb {
  width:22px; height:22px; border-radius:50%;
  background: var(--purple);
  cursor:pointer; border:none;
  box-shadow: 0 0 0 2px var(--bg), 0 4px 12px rgba(139,92,246,.4);
}
.roi-segment {
  display:grid; grid-template-columns: 1fr 1fr 1fr; gap:6px;
  padding:4px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--border);
  border-radius: var(--radius-sm);
}
.roi-segment button {
  padding: 10px 8px;
  background:transparent; border:none;
  font-family: var(--font); font-size: 13px; font-weight:500;
  color: var(--text-dim);
  border-radius: 8px;
  cursor:pointer;
  transition: background .2s, color .2s;
}
.roi-segment button.active {
  background: var(--grad);
  color: #fff;
}

.roi-result {
  background: var(--bg);
  border:1px solid var(--border-m);
  border-radius: var(--radius);
  padding: 32px;
  position:relative;
  overflow:hidden;
}
.roi-result::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at top right, rgba(139,92,246,.1), transparent 50%);
  pointer-events:none;
}
.roi-label {
  font-family: var(--font-mono);
  font-size:11px; letter-spacing:.18em;
  text-transform:uppercase;
  color: var(--text-muted);
  margin-bottom:8px;
}
.roi-amount {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--h-weight-default);   /* 600 */
  letter-spacing: -.03em;
  margin-bottom: 6px;
  line-height: 1;
}
.roi-unit {
  font-size:.875rem; color: var(--text-dim);
  margin-bottom:24px;
}
.roi-breakdown {
  display:flex; flex-direction:column; gap:10px;
  padding-top:20px; border-top:1px solid var(--border);
  font-size:.875rem;
}
.roi-row {
  display:flex; justify-content:space-between;
  color: var(--text-dim);
}
.roi-row strong { color: var(--text); font-weight:500; }
.roi-disclaimer {
  font-size:.75rem;
  color: var(--text-muted);
  margin-top:16px;
  line-height:1.5;
}

/* ══════════════════════════════════════════════════
   WHY XNEXUS
══════════════════════════════════════════════════ */
.why-grid {
  display:grid; grid-template-columns: repeat(3, 1fr); gap:20px;
}
.why-card {
  background: transparent;
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  padding: 32px 28px;
  display:flex; flex-direction:column; gap:14px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position:relative;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.3);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.why-icon {
  width:48px; height:48px; border-radius:12px;
  background: var(--purple-glow);
  border:1px solid rgba(139,92,246,.2);
  display:grid; place-items:center;
}
.why-icon svg { width:22px; height:22px; color: var(--purple-l); }
.why-card h3 { font-size:1.0625rem; font-weight:600; }
.why-card p { font-size:.875rem; color: var(--text-dim); line-height:1.6; }

/* ══════════════════════════════════════════════════
   ABOUT XNEXUS
══════════════════════════════════════════════════ */
.about-intro {
  max-width: 820px;
  margin: 0 auto 56px;
  text-align: center;
}
.about-intro p {
  font-size: 1.0625rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 18px;
}
.about-intro p:last-child { margin-bottom: 0; }
.about-intro .about-highlight {
  color: var(--text);
  font-weight: 500;
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.about-pillar {
  background: transparent;
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.about-pillar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-text);
  opacity: 0;
  transition: opacity .3s;
}
.about-pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.3);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}
.about-pillar:hover::before { opacity: 1; }
.about-pillar-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--purple-glow);
  border: 1px solid rgba(139,92,246,.2);
  display: grid; place-items: center;
}
.about-pillar-icon svg {
  width: 24px; height: 24px; color: var(--purple-l);
}
.about-pillar h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}
.about-pillar p {
  font-size: .9375rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-m);
  border-radius: var(--radius);
  padding: 36px 28px;
}
.about-stat {
  text-align: center;
  padding: 8px;
  position: relative;
}
.about-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -8px; top: 20%;
  width: 1px; height: 60%;
  background: var(--border);
}
[dir="rtl"] .about-stat:not(:last-child)::after {
  right: auto; left: -8px;
}
.about-stat-num {
  font-size: 2.25rem;
  font-weight: var(--h-weight-strong);    /* 700 */
  line-height: 1.1;
  margin-bottom: 6px;
}
.about-stat-label {
  font-size: .8125rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ══════════════════════════════════════════════════
   COMPARISON TABLE
══════════════════════════════════════════════════ */
.compare-wrap {
  max-width: 1000px; margin:0 auto;
  background: var(--bg-card);
  border:1px solid var(--border-m);
  border-radius: var(--radius);
  overflow:hidden;
}
.compare-row {
  display:grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap:0;
  border-bottom: 1px solid var(--border);
  font-size:.9375rem;
}
.compare-row:last-child { border-bottom:none; }
.compare-row > div { padding: 18px 24px; }
.compare-row > div:not(:last-child) { border-right:1px solid var(--border); }
.compare-row.header {
  background: rgba(139,92,246,.05);
  font-family: var(--font-mono);
  font-size:11px; letter-spacing:.15em;
  text-transform:uppercase;
  color: var(--text-muted);
  font-weight:600;
}
.compare-row.header .compare-xnexus {
  color: var(--purple-l);
  background: rgba(139,92,246,.08);
}
.compare-feature { font-weight:500; color: var(--text-dim); }
.compare-old { color: var(--text-muted); }
.compare-xnexus { color: var(--text); font-weight:500; }
.compare-icon {
  display:inline-flex; align-items:center; gap:8px;
}
.compare-icon svg { width:16px; height:16px; flex-shrink:0; }
.compare-icon.bad svg { color: var(--red); }
.compare-icon.good svg { color: var(--green); }

/* ══════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════ */
.faq-list {
  max-width: 800px; margin: 0 auto;
  display:flex; flex-direction:column; gap:12px;
}
.faq-item {
  background: transparent;
  border:1px solid var(--border-m);
  border-radius: var(--radius);
  overflow:hidden;
  transition: border-color .25s;
}
.faq-item.open { border-color: rgba(139,92,246,.3); }
.faq-q {
  width:100%;
  display:flex; justify-content:space-between; align-items:center;
  gap:20px;
  padding: 20px 24px;
  background:transparent; border:none;
  font-family: var(--font);
  font-size: 1rem; font-weight:500;
  color: var(--text); text-align:left;
  cursor:pointer;
}
[dir="rtl"] .faq-q { text-align:right; }
.faq-q-icon {
  width:24px; height:24px;
  flex-shrink:0;
  position:relative;
  transition: transform .3s var(--ease);
}
.faq-item.open .faq-q-icon { transform: rotate(45deg); }
.faq-q-icon::before, .faq-q-icon::after {
  content:''; position:absolute;
  top:50%; left:50%;
  background: var(--purple-l);
  border-radius:1px;
}
.faq-q-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-q-icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-a {
  max-height:0; overflow:hidden;
  transition: max-height .35s var(--ease);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a-inner {
  padding: 0 24px 22px;
  font-size:.9375rem;
  color: var(--text-dim);
  line-height:1.65;
}

/* ══════════════════════════════════════════════════
   CTA
══════════════════════════════════════════════════ */
.cta-section {
  padding: 100px 0;
}
.cta-inner {
  text-align:center;
  padding: 80px 48px;
  background:
    radial-gradient(ellipse at center, rgba(139,92,246,.15), transparent 70%),
    var(--bg-card);
  border:1px solid rgba(139,92,246,.25);
  border-radius: var(--radius-lg);
  max-width: 900px; margin: 0 auto;
  position:relative;
  overflow:hidden;
}
.cta-inner::before {
  content:''; position:absolute;
  top: -50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(139,92,246,.12), transparent 60%);
  transform: translateX(-50%);
  pointer-events:none;
  animation: cta-orbit 12s linear infinite;
}
@keyframes cta-orbit {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(20px); }
  100% { transform: translateX(-50%) translateY(0); }
}
.cta-inner > * { position:relative; z-index:1; }
.cta-inner h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);   /* aligned to section-head h2 baseline */
  font-weight: var(--h-weight-default);
  letter-spacing: -.03em;
  margin-bottom: 16px;
  line-height: 1.05;
}
.cta-inner p {
  font-size:1rem; color: var(--text-dim);
  max-width: 480px; margin: 0 auto 36px;
  line-height:1.65;
}
.cta-btns { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  padding: 80px 0 0;
  border-top: 1px solid var(--border);
  position:relative; z-index:2;
}
.footer-grid {
  display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 56px;
}
.footer-brand img { height: 40px; margin-bottom: 20px; }
.footer-brand p {
  font-size:.9375rem; color: var(--text-dim);
  line-height:1.65; max-width: 320px; margin-bottom: 24px;
}
.footer-socials { display:flex; gap:8px; }
.social-btn {
  width:38px; height:38px; border-radius: 10px;
  background: rgba(255,255,255,.03);
  border:1px solid var(--border-m);
  display:grid; place-items:center;
  color: var(--text-dim);
  transition: all .2s;
}
.social-btn:hover {
  background: var(--purple-glow);
  border-color: rgba(139,92,246,.3);
  color: var(--purple-l);
  transform: translateY(-2px);
}
.social-btn svg { width: 15px; height: 15px; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size:11px; font-weight:600;
  letter-spacing:.18em; text-transform:uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul {
  list-style:none; display:flex; flex-direction:column; gap: 10px;
}
.footer-col ul a {
  font-size:.9375rem; color: var(--text-dim);
  transition: color .2s;
}
.footer-col ul a:hover { color: var(--text); }
.footer-contact { display:flex; flex-direction:column; gap: 14px; }
.footer-contact a {
  display:flex; align-items:center; gap: 10px;
  font-size:.9375rem; color: var(--text-dim);
  transition: color .2s;
}
.footer-contact a:hover { color: var(--text); }
.footer-contact svg { width: 15px; height: 15px; color: var(--purple-l); flex-shrink:0; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:12px;
  font-size:.8125rem; color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); transition: color .2s; }
.footer-bottom a:hover { color: var(--text); }

/* ══════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
══════════════════════════════════════════════════ */
.wa-float {
  position:fixed; bottom:24px;
  z-index:998;
  width:56px; height:56px; border-radius:50%;
  background: #25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 28px rgba(37,211,102,.4), 0 0 0 6px rgba(37,211,102,.15);
  transition: transform .3s var(--ease);
  animation: wa-float-anim 3s ease-in-out infinite;
}
[dir="ltr"] .wa-float { right:24px; }
[dir="rtl"] .wa-float { left:24px; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width:28px; height:28px; color:#fff; }
@keyframes wa-float-anim {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,.4), 0 0 0 6px rgba(37,211,102,.15); }
  50% { box-shadow: 0 8px 28px rgba(37,211,102,.5), 0 0 0 12px rgba(37,211,102,.05); }
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --section-py: 90px; }
  .nav-links { display:none; }
  .nav-toggle { display:flex; }
  .hero { grid-template-columns: 1fr; text-align:center; min-height:auto; padding-top: calc(var(--nav-h) + 60px); }
  .hero-desc { max-width: 100%; margin-left:auto; margin-right:auto; }
  .hero-btns { justify-content:center; }
  .hero-trust { justify-content:center; }
  .hero-right { display:none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap:32px; }
  .ps-grid { grid-template-columns: 1fr; gap: 16px; }
  .ps-arrow { transform: rotate(90deg); margin: 0 auto; }
  .demo-stage { grid-template-columns: 1fr; padding: 40px 28px; }
  .roi-wrap { grid-template-columns: 1fr; padding: 32px 28px; gap: 32px; }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-pillars { grid-template-columns: 1fr; gap: 16px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; padding: 32px 24px; }
  .about-stat:nth-child(2)::after { display: none; }
  .hiw-steps { grid-template-columns: 1fr; }
  .hiw-steps::before { display:none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 640px) {
  :root { --section-py: 72px; --nav-h: 60px; }
  .container { padding: 0 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: calc(50% - 8px);
  }
  .why-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; gap: 24px 12px; padding: 28px 20px; }
  .about-stat:nth-child(2)::after { display: none; }
  .about-stat-num { font-size: 1.875rem; }
  .about-intro p { font-size: 1rem; }
  .products-showcase { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div { border-right: none; border-bottom: 1px solid var(--border); padding: 12px 18px; }
  .compare-row > div:last-child { border-bottom: none; }
  .compare-row.header { display:none; }
  .compare-feature { font-weight:600; color: var(--text); padding-bottom: 8px !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { padding: 56px 24px; }
  .roi-wrap, .demo-stage { padding: 28px 20px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-trust-sep { display: none; }
}

/* ══════════════════════════════════════════════════
   PROJECT GALLERY — Section + Cards + Modal
   Phase 9B · Showcase System
══════════════════════════════════════════════════ */

/* ── Section head ── */
.sc-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.sc-head-copy { flex: 1; min-width: 0; }
.sc-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);   /* aligned to standard section range */
  font-weight: var(--h-weight-strong);      /* 700 — slightly elevated for gallery heading */
  letter-spacing: -.028em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.sc-subtitle {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.65;
}
.sc-view-all {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--purple-l);
  text-decoration: none;
  border: 1px solid rgba(139,92,246,.25);
  padding: 9px 18px;
  border-radius: 8px;
  white-space: nowrap;
  transition: border-color .2s, color .2s, background .2s;
  flex-shrink: 0;
}
.sc-view-all:hover {
  border-color: rgba(139,92,246,.5);
  color: var(--text);
  background: rgba(139,92,246,.07);
}
.sc-view-all svg { width: 14px; height: 14px; }

/* ── Loading / fallback ── */
.sc-loading {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 64px 0;
}
.sc-loading-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
  animation: hs-blink 1.4s ease-in-out infinite;
  margin: 0 4px; opacity: .4;
}
.sc-loading-dot:nth-child(2) { animation-delay: .2s; }
.sc-loading-dot:nth-child(3) { animation-delay: .4s; }
.sc-fallback {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
  font-size: .9rem;
}

/* ── Grid ── */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

/* ── Card ── */
.sc-card {
  background: rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s var(--ease), border-color .28s, box-shadow .28s;
  animation: cardIn .4s ease both;
}
.sc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.22);
  box-shadow: 0 14px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(139,92,246,.08);
}
.sc-card:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}

/* ── Thumbnail area ── */
.sc-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}
.sc-thumb-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
  display: block;
}
.sc-card:hover .sc-thumb-img { transform: scale(1.04); }
.sc-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.12);
}
.sc-thumb-placeholder svg { width: 32px; height: 32px; }

/* Type badge — top-right corner of thumbnail */
.sc-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(6,6,11,.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  z-index: 2;
}
[dir="rtl"] .sc-type-badge { right: auto; left: 10px; }

/* Type icon — centered overlay, on hover */
.sc-type-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  opacity: 0;
  transition: opacity .25s;
}
.sc-card:hover .sc-type-icon { opacity: 1; }
.sc-type-icon svg {
  width: 44px; height: 44px;
  color: rgba(255,255,255,.75);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

/* Industry chip — bottom-left of thumbnail */
.sc-industry-chip {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(6,6,11,.6);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.08);
  z-index: 2;
}
[dir="rtl"] .sc-industry-chip { left: auto; right: 10px; }

/* ── Card body ── */
.sc-body { padding: 16px 18px 18px; }
.sc-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}
.sc-card-subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 9px;
}
.sc-card-desc {
  font-size: .83rem;
  color: var(--text-dim);
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sc-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.055);
  font-size: .75rem;
  color: var(--text-muted);
}
.sc-meta-tag {
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  text-transform: capitalize;
}

/* ── Modal overlay ── */
.sc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .2s ease;
}
.sc-modal-overlay.open { display: flex; }

.sc-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .25s var(--ease);
}
.sc-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,.07);
  border: none;
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .18s;
  z-index: 1;
}
.sc-modal-close:hover { background: rgba(255,255,255,.14); }
[dir="rtl"] .sc-modal-close { right: auto; left: 14px; }
.sc-modal-body { padding: 36px; }

/* Modal: video */
/* Gallery video player — Phase Gallery ───────────────────────────────────────
   Three rendering contexts:
   1. sc-video-embed-wrap: responsive 16:9 wrapper for YouTube / Vimeo iframes.
      padding-bottom trick (56.25% = 9/16) gives a fluid container at any width.
      iframe is absolutely positioned to fill it, matching every browser/device.
   2. sc-video-native: HTML5 <video> for managed MP4 or external direct links.
      max-height prevents very tall containers on portrait mobile; object-fit
      covers the element without distortion.
   3. sc-video-empty: shown when videoUrl is absent or blank.
   ─────────────────────────────────────────────────────────────────────────── */
.sc-modal-video { width: 100%; margin-top: 16px; }

/* YouTube / Vimeo responsive embed */
.sc-video-embed-wrap {
  position: relative;
  padding-bottom: 56.25%;   /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #000;
}
.sc-video-embed-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Native HTML5 <video> — managed MP4 or external direct URL */
.sc-video-native {
  display: block;
  width: 100%;
  max-height: 65vh;          /* prevent overflow on short viewports */
  border-radius: 10px;
  background: #000;
  object-fit: contain;
  /* Safari requires explicit -webkit-playsinline attribute on the element;
     the playsinline attribute is set in the HTML, not CSS. */
}

/* Fallback when no source is available */
.sc-video-empty {
  padding: 48px;
  text-align: center;
  opacity: .4;
  font-size: .9rem;
}

/* Legacy fallback: pre-Phase-Gallery items may still render direct
   <video> elements inside .sc-modal-video without the wrapper class.
   These selectors preserve backwards-compatible rendering. */
.sc-modal-video iframe, .sc-modal-video video:not(.sc-video-native) {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  background: #000;
  display: block;
}

/* Modal: image */
.sc-modal-img { width: 100%; border-radius: 10px; margin-top: 16px; display: block; }

/* Modal: gallery */
.sc-gallery-main { width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.4); position: relative; margin-top: 16px; }
.sc-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sc-gallery-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; gap: 10px;
}
.sc-gallery-btn {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  padding: 8px 16px; border-radius: 8px;
  cursor: pointer; font-size: .85rem;
  transition: background .18s;
}
.sc-gallery-btn:hover { background: rgba(255,255,255,.14); }
.sc-gallery-count { font-size: .82rem; color: var(--text-dim); }
.sc-gallery-strip { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.sc-gallery-strip img {
  width: 56px; height: 38px; object-fit: cover; border-radius: 4px;
  cursor: pointer; opacity: .55; transition: opacity .2s;
  border: 1px solid transparent;
}
.sc-gallery-strip img.active, .sc-gallery-strip img:hover { opacity: 1; border-color: var(--purple); }

/* Modal: before/after */
.sc-ba-wrap { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-top: 16px; user-select: none; }
.sc-ba-after { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-ba-before-wrap { position: absolute; inset: 0; overflow: hidden; }
.sc-ba-before-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-ba-handle {
  position: absolute; top: 0; bottom: 0;
  width: 3px; background: #fff;
  transform: translateX(-50%);
  cursor: col-resize;
}
.sc-ba-handle::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 36px; height: 36px;
  background: #fff; border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.sc-ba-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: .78rem; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: .05em; }
.sc-ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: col-resize;
  -webkit-appearance: none;
  margin: 0;
}

/* Modal: case study */
.sc-cs-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.sc-cs-stat {
  background: var(--bg-card-hi);
  border: 1px solid var(--border-m);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
}
.sc-cs-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--purple-l);
  margin-bottom: 4px;
}
.sc-cs-stat-label { font-size: .78rem; color: var(--text-dim); line-height: 1.4; }
.sc-cs-doc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 10px 20px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: opacity .18s;
}
.sc-cs-doc-btn:hover { opacity: .85; }
.sc-modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; line-height: 1.2; }
.sc-modal-subtitle { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.sc-modal-desc { font-size: .9rem; color: var(--text-dim); line-height: 1.7; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-head { align-items: flex-start; }
}
@media (max-width: 640px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-head { flex-direction: column; align-items: stretch; }
  .sc-view-all { text-align: center; justify-content: center; }
  .sc-modal-body { padding: 20px; }
  .sc-cs-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
