/* ═══════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════ */
:root {
  --bg:        #06060A;
  --surface:   #0E0E16;
  --raised:    #16161F;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);

  --gold:      #E8A020;
  --gold-dim:  rgba(232,160,32,0.15);
  --gold-glow: rgba(232,160,32,0.35);
  --violet:    #7C5CFC;
  --violet-dim:rgba(124,92,252,0.14);

  --text:      #F0F0F5;
  --muted:     rgba(240,240,245,0.50);
  --faint:     rgba(240,240,245,0.22);

  --r:  14px;
  --r2: 22px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', 'Space Grotesk', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ──────────────────────────────── */
.display {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.headline {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
}
.subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Layout ──────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: 96px 0; }

/* ── NAV ─────────────────────────────────────── */
/* ── NAV (Optimized for Mobile/App style) ──────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 16px; /* Reduced side padding slightly for tiny screens */
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6,6,10,0.85);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; 
  align-items: center; 
  gap: 8px;
  text-decoration: none;
  min-width: 0; /* Prevents text overflow blowouts */
}

.nav-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--violet));
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: #fff;
  flex-shrink: 0;
}

.nav-logo-name { 
  font-size: 0.95rem; 
  font-weight: 800; 
  color: var(--text);
  white-space: nowrap;
}

.nav-logo-sub { 
  font-size: 0.6rem; 
  color: var(--muted); 
  display: block; 
  margin-top: -2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex; 
  align-items: center; 
  gap: 16px; /* Adaptive spacing */
  list-style: none;
}

.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--gold);
  color: #06060A !important;
  padding: 6px 12px; /* Touch-friendly but compact vertical bounds */
  border-radius: 6px;
  font-weight: 800 !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #f0b030 !important; transform: translateY(-1px); }

/* ── Language Switcher ───────────────────────── */
.lang-switcher {
  display: flex; 
  align-items: center; 
  gap: 2px;
  background: var(--raised);
  border: 1px solid var(--border2);
  border-radius: 6px;
  padding: 2px;
}
.lang-btn {
  padding: 4px 6px; /* Narrower button padding on small touchpoints */
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: transparent;
}
.lang-btn.active { background: var(--gold); color: #06060A; }

/* ── Mobile UI Media Query Fix ────────────────── */
@media (max-width: 640px) {
  .nav-logo-name{
    display: none;
  }
  .nav-logo-sub{
    display: none;
  }
  /* Safely hide the text links to ensure logo & buttons can sit beautifully on one clean line */
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { 
    display: none; 
  }
  
  nav {
    padding: 0 12px;
  }
  
  .nav-links {
    gap: 8px; /* Tighter button convergence on mobile */
  }
  
  .nav-logo-sub {
    display: none; /* Drops the description line on mobile for a punchier branding box */
  }
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--gold);
  color: #06060A !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 800 !important;
  font-size: 0.82rem !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: #f0b030 !important; transform: translateY(-1px); }

/* ── Language Switcher ───────────────────────── */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  background: var(--raised);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  transition: background .2s, color .2s;
  cursor: pointer;
  border: none;
  background: transparent;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--gold); color: #06060A; }

@media (max-width: 640px) {
  .nav-links li:not(:last-child):not(:nth-last-child(2)) { display: none; }
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  padding-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  /* position: relative; */
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; left: 55%;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: breathe 6s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -10%; left: 60%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, var(--violet-dim) 0%, transparent 70%);
  pointer-events: none;
}
@keyframes breathe {
  0%,100% { opacity: .6; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid rgba(232,160,32,0.3);
  border-radius: 99px; padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; } 50% { opacity:.4; }
}
.hero-badge-text { font-size: 0.75rem; font-weight: 700; color: var(--gold); }
.hero-title { margin-bottom: 20px; }
.hero-title .accent { color: var(--gold); }
.hero-sub { margin-bottom: 36px; max-width: 500px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn-primary-lg {
  background: var(--gold);
  color: #06060A;
  font-weight: 800; font-size: 1rem;
  padding: 14px 32px; border-radius: 10px;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 24px var(--gold-glow);
  display: inline-block;
}
.btn-primary-lg:hover { background: #f0b030; transform: translateY(-2px); box-shadow: 0 8px 32px var(--gold-glow); }

.btn-ghost-lg {
  background: transparent;
  color: var(--text);
  font-weight: 700; font-size: 1rem;
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid var(--border2);
  cursor: pointer; text-decoration: none;
  transition: border-color .2s, background .2s;
  display: inline-block;
}
.btn-ghost-lg:hover { border-color: var(--gold); background: var(--gold-dim); }

/* ── Device Showcase ──────── */
.hero-device-wrap {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  height: 480px;
}
.device-phone {
  width: 200px; height: 390px;
  background: var(--surface);
  border: 2px solid var(--border2);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 32px 80px rgba(0,0,0,0.6),
    0 0 60px var(--gold-glow);
  flex-shrink: 0;
  z-index: 3;
  animation: floatPhone 5s ease-in-out infinite;
}
@keyframes floatPhone {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.device-phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; background: var(--raised); border-radius: 99px;
  z-index: 5;
}
.device-screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
}
.slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
  display: flex; flex-direction: column;
}
.slide.active { opacity: 1; }

/* Slide 1 — QR Menu */
.slide-qr { background: #0A0A0B; }
.slide-qr-header {
  padding: 24px 14px 10px;
  background: linear-gradient(180deg, #141416 0%, transparent 100%);
}
.slide-qr-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--gold); margin: 0 auto 6px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 0.75rem; color: #000;
}
.slide-qr-name { font-size: 0.65rem; font-weight: 700; color: #fff; text-align: center; }
.slide-qr-cats { display: flex; gap: 5px; padding: 8px 10px 0; overflow: hidden; }
.slide-qr-cat {
  background: rgba(232,160,32,0.15); border: 1px solid rgba(232,160,32,0.3);
  color: var(--gold); border-radius: 99px;
  padding: 2px 9px; font-size: 0.55rem; font-weight: 700; white-space: nowrap;
}
.slide-qr-cat.active { background: var(--gold); color: #000; }
.slide-qr-items { padding: 8px 10px; flex: 1; overflow: hidden; }
.slide-qr-item {
  display: flex; align-items: center; gap: 7px;
  background: #141416; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px; padding: 7px; margin-bottom: 6px;
}
.slide-qr-item-img {
  width: 34px; height: 34px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.slide-qr-item-info { flex: 1; min-width: 0; }
.slide-qr-item-name  { font-size: 0.55rem; font-weight: 700; color: #f0f0f5; }
.slide-qr-item-price { font-size: 0.52rem; color: var(--gold); font-weight: 700; margin-top: 1px; }
.slide-qr-item-add {
  width: 18px; height: 18px; border-radius: 5px;
  background: var(--gold); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 900; flex-shrink: 0;
}

/* Slide 2 — POS */
.slide-pos { background: #0A0A0B; }
.slide-pos-header {
  background: #111118; padding: 14px 10px 8px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.slide-pos-title { font-size: 0.6rem; font-weight: 800; color: #fff; }
.slide-pos-badge {
  font-size: 0.48rem; background: var(--gold); color: #000;
  border-radius: 4px; padding: 2px 5px; font-weight: 700;
}
.slide-pos-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 4px; padding: 8px;
}
.slide-pos-prod {
  background: #141416; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 7px; padding: 6px 4px; text-align: center;
}
.slide-pos-prod-emoji { font-size: 1rem; }
.slide-pos-prod-name  { font-size: 0.42rem; color: rgba(240,240,245,0.7); margin-top: 2px; }
.slide-pos-prod-price { font-size: 0.48rem; color: var(--gold); font-weight: 700; }
.slide-pos-cart {
  margin: 0 8px;
  background: #111118; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; padding: 7px;
}
.slide-pos-cart-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 4px;
}
.slide-pos-cart-label { font-size: 0.48rem; color: var(--muted); }
.slide-pos-cart-val   { font-size: 0.52rem; color: #fff; font-weight: 700; }
.slide-pos-total {
  display: flex; justify-content: space-between;
  padding-top: 5px; border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}
.slide-pos-total-label { font-size: 0.55rem; color: #fff; font-weight: 700; }
.slide-pos-total-val   { font-size: 0.6rem; color: var(--gold); font-weight: 900; }
.slide-pos-confirm {
  margin: 6px 8px 0;
  background: var(--gold); border-radius: 7px;
  padding: 6px; text-align: center;
  font-size: 0.55rem; font-weight: 800; color: #000;
}

/* Slide 3 — Web */
.slide-web { background: #06080A; }
.slide-web-header {
  background: #0D1117; padding: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.slide-web-bar {
  height: 6px; background: #161b22; border-radius: 4px;
  display: flex; align-items: center; padding: 0 5px; gap: 3px;
}
.slide-web-dot { width: 4px; height: 4px; border-radius: 50%; }
.slide-web-url {
  flex: 1; background: #21262d; border-radius: 3px;
  margin: 0 5px; height: 4px;
}
.slide-web-hero-bg {
  margin: 8px; height: 80px; border-radius: 8px;
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 6px;
}
.slide-web-hero-title { font-size: 0.55rem; font-weight: 800; color: #e6edf3; text-align: center; }
.slide-web-hero-sub   { font-size: 0.4rem; color: rgba(230,237,243,0.5); text-align: center; }
.slide-web-hero-btn {
  background: #238636; color: #fff;
  border-radius: 4px; padding: 2px 8px;
  font-size: 0.42rem; font-weight: 700; margin-top: 2px;
}
.slide-web-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px; padding: 0 8px;
}
.slide-web-card {
  background: #0d1117; border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px; padding: 7px;
}
.slide-web-card-icon  { font-size: 0.85rem; margin-bottom: 3px; }
.slide-web-card-title { font-size: 0.44rem; font-weight: 700; color: #e6edf3; }
.slide-web-card-desc  { font-size: 0.38rem; color: rgba(230,237,243,0.45); margin-top: 2px; line-height: 1.4; }

.device-indicators {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.ind-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border2); transition: background .3s, width .3s;
  cursor: pointer;
}
.ind-dot.active { background: var(--gold); width: 18px; border-radius: 3px; }

.hero-float-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  font-size: 0.75rem;
  white-space: nowrap;
}
.hfc-left  { left: 0; top: 30%; animation: floatCard1 4s ease-in-out infinite; }
.hfc-right { right: 0; bottom: 28%; animation: floatCard2 4s ease-in-out 2s infinite; }
@keyframes floatCard1 {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); }
}
@keyframes floatCard2 {
  0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); }
}
.hfc-label { color: var(--muted); font-size: 0.65rem; }
.hfc-val   { font-weight: 800; color: var(--text); margin-top: 1px; }
.hfc-green { color: #3dd68c; }
.hfc-stat  { display: flex; align-items: center; gap: 6px; }

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
    text-align: center;
  }
  .hero::before { left: 20%; top: 0; width: 360px; height: 360px; }
  .hero-sub { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-device-wrap { height: 420px; }
  .hfc-left  { left: 5%; }
  .hfc-right { right: 5%; }
}

/* ═══════════════════════════════════════════════
   STATS STRIP
═══════════════════════════════════════════════ */
.stats-strip {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  text-align: center;
  padding: 20px;
  border-inline-end: 1px solid var(--border);
}
.stat-item:last-child { border-inline-end: none; }
.stat-num {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold) 0%, #ffcc5c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-item:nth-child(2) { border-inline-end: none; }
}

/* ═══════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════ */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .eyebrow { margin-bottom: 12px; }
.section-header p { max-width: 540px; margin: 16px auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.service-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r2);
  background: linear-gradient(135deg, var(--card-from, transparent), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover { border-color: var(--border2); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.service-card:hover::before { opacity: 1; }

.service-card.qr  { --card-from: var(--gold-dim); }
.service-card.pos { --card-from: var(--violet-dim); }
.service-card.web { --card-from: rgba(59,130,246,0.1); }

.service-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 22px;
}
.service-card.qr  .service-icon { background: var(--gold-dim); }
.service-card.pos .service-icon { background: var(--violet-dim); }
.service-card.web .service-icon { background: rgba(59,130,246,0.12); }

.service-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.service-desc  { font-size: 0.9rem; color: var(--muted); line-height: 1.7; }
.service-features {
  list-style: none; margin-top: 18px;
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.service-features li {
  font-size: 0.82rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: 8px;
}
.service-features li::before {
  content: '✓'; color: var(--gold); font-weight: 800; flex-shrink: 0; margin-top: 1px;
}
.service-card.pos .service-features li::before { color: var(--violet); }
.service-card.web .service-features li::before { color: #60a5fa; }

.service-badge {
  position: absolute; top: 18px; left: 18px;
  font-size: 0.6rem; font-weight: 800;
  padding: 3px 9px; border-radius: 6px;
}
.badge-hot { background: rgba(255,90,54,0.15); color: #ff6b3d; border: 1px solid rgba(255,90,54,0.25); }
.badge-new { background: var(--violet-dim); color: #a78bfa; border: 1px solid rgba(124,92,252,0.3); }

.service-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 24px; padding: 11px 20px;
  background: transparent;
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, transform .15s;
  position: relative; z-index: 2;
}
.service-card.qr  .service-cta:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }
.service-card.pos .service-cta:hover { background: var(--violet-dim); border-color: var(--violet); color: #a78bfa; }
.service-card.web .service-cta:hover { background: rgba(59,130,246,0.1); border-color: #60a5fa; color: #60a5fa; }
.service-cta:hover { transform: translateY(-1px); }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════════ */
.how-section { background: var(--surface); padding: 96px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px; left: 40px; right: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--violet), var(--gold));
  opacity: 0.3;
}
.step-item { padding: 0 16px; text-align: center; position: relative; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--raised); border: 2px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1rem; color: var(--gold);
  margin: 0 auto 20px; position: relative; z-index: 2;
}
.step-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 8px; }
.step-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 720px) {
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.testimonials-track { position: relative; overflow: hidden; }
.testi-row {
  display: flex; gap: 20px;
  animation: scrollTrack 28s linear infinite;
}
.testi-row:hover { animation-play-state: paused; }
@keyframes scrollTrack {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testi-card {
  flex-shrink: 0; width: 300px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}
.testi-stars  { color: var(--gold); font-size: 0.75rem; margin-bottom: 10px; }
.testi-text   { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.testi-author { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.testi-name { font-size: 0.82rem; font-weight: 700; }
.testi-role { font-size: 0.72rem; color: var(--muted); }
.fade-edges { position: relative; }
.fade-edges::before,
.fade-edges::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.fade-edges::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.fade-edges::after  { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }

/* ═══════════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════════ */
.cta-section {
  text-align: center;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,92,252,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 2; }
.cta-title   { margin-bottom: 16px; }
.cta-sub     { max-width: 480px; margin: 0 auto 36px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 48px;
}
.footer-brand-desc {
  font-size: 0.85rem; color: var(--muted);
  margin-top: 12px; line-height: 1.7; max-width: 240px;
}
.footer-col-title {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: 0.78rem; color: var(--faint); flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { color: var(--muted); text-decoration: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   GALLERY
═══════════════════════════════════════════════ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-card {
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  display: block;
}
.gallery-card:hover {
  border-color: var(--border2);
  transform: translateY(-5px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.gallery-thumb { position: relative; height: 220px; overflow: hidden; }
.gallery-chrome {
  position: absolute; top: 0; left: 0; right: 0;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(8px);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  z-index: 2;
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,10,0.7);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s; z-index: 3;
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-card:hover .gallery-img { transform: scale(1.04); }
.gallery-visit-btn {
  background: var(--gold); color: #06060A;
  font-weight: 800; font-size: .85rem;
  padding: 10px 22px; border-radius: 10px;
}
.gallery-info {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   DEMO CTA BOX
═══════════════════════════════════════════════ */
.demo-cta-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.demo-cta-box::before {
  content: '';
  position: absolute; top: -40%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, var(--violet-dim) 0%, transparent 70%);
  pointer-events: none;
}
.demo-cta-box::after {
  content: '';
  position: absolute; bottom: -40%; right: 5%;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, var(--gold-dim) 0%, transparent 70%);
  pointer-events: none;
}
.demo-cta-left,
.demo-cta-right { position: relative; z-index: 2; }
.demo-features-list { display: flex; flex-direction: column; gap: 16px; }
.demo-feat {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--raised);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.demo-feat-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.demo-feat-title { font-size: .88rem; font-weight: 800; color: var(--text); margin-bottom: 2px; }
.demo-feat-sub   { font-size: .75rem; color: var(--muted); }
@media (max-width: 820px) {
  .demo-cta-box { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
}

/* ── Scroll Reveal ───────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
