:root {
  --bg: #0b1220;
  --surface: #172033;
  --surface-elevated: #1e293b;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.15);
  --secondary: #14b8a6;
  --secondary-soft: rgba(20, 184, 166, 0.15);
  --text: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #64748b;
  --border: #263244;
  --border-hover: rgba(37, 99, 235, 0.45);
  --income: #22c55e;
  --purple: #a78bfa;
  --warning: #fbbf24;
  --orange: #f97316;
  --huawei: #cf0a2c;
  --gradient-hero: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
  --gradient-premium: linear-gradient(135deg, #7c3aed 0%, #2563eb 50%, #14b8a6 100%);
  --gradient-warm: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(37, 99, 235, 0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --nav-height: 72px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body[dir="rtl"] { font-family: "Tajawal", "Inter", system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 32px, var(--max-width));
  margin-inline: auto;
}

/* ─── Particle Canvas ─── */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ─── Cursor Glow ─── */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

body:hover .cursor-glow { opacity: 1; }

/* ─── Scroll Progress ─── */
.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline-start: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-hero);
  z-index: 200;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

/* ─── Background Effects ─── */
.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 15% 10%, rgba(37, 99, 235, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 35% at 85% 20%, rgba(20, 184, 166, 0.12), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 90%, rgba(124, 58, 237, 0.08), transparent 50%);
}

.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: orb-drift 20s ease-in-out infinite;
}

.orb-1 { width: 350px; height: 350px; background: #2563eb; top: 8%; left: -5%; }
.orb-2 { width: 280px; height: 280px; background: #14b8a6; top: 40%; right: -8%; animation-delay: -7s; }
.orb-3 { width: 220px; height: 220px; background: #7c3aed; bottom: 10%; left: 30%; animation-delay: -13s; }

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.08); }
  50% { transform: translate(-20px, 40px) scale(0.95); }
  75% { transform: translate(30px, 20px) scale(1.03); }
}

/* ─── Reveal Animations ─── */
.reveal, .reveal-scale {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal { transform: translateY(40px); }
.reveal-scale { transform: translateY(30px) scale(0.96); }

.reveal.is-visible, .reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.reveal[data-delay="5"] { transition-delay: 0.4s; }

.reveal-scale[data-delay="1"] { transition-delay: 0.08s; }
.reveal-scale[data-delay="2"] { transition-delay: 0.16s; }
.reveal-scale[data-delay="3"] { transition-delay: 0.24s; }

/* ─── Navigation ─── */
.site-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.site-header-bg {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  background: rgba(11, 18, 32, 0.65);
  transition: background 0.4s;
  pointer-events: none;
  z-index: 0;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-header.scrolled .site-header-bg {
  background: rgba(11, 18, 32, 0.92);
}

.nav-inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  transition: transform 0.3s var(--ease-spring);
}

.brand:hover img { transform: rotate(-8deg) scale(1.1); }

.nav-links { display: flex; align-items: center; gap: 4px; }

.nav-links a {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.25s, background 0.25s, transform 0.25s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-hero);
  border-radius: 1px;
  transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 50%; left: 25%; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 14px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, transform 0.2s;
}

.lang-toggle button:hover { color: var(--text-secondary); }
.lang-toggle button.active { background: var(--primary); color: #fff; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: 16px; }

.pulse-btn { animation: pulse-shadow 3s ease-in-out infinite; }

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 8px 28px rgba(37, 99, 235, 0.35); }
  50% { box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55), 0 0 0 8px rgba(37, 99, 235, 0.1); }
}

/* ─── Hamburger ─── */
.menu-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s;
}

.menu-toggle:hover {
  background: var(--surface-elevated);
  border-color: var(--border-hover);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-open .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.is-open .hamburger-line:nth-child(2) { opacity: 0; }
.menu-toggle.is-open .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

main { position: relative; z-index: 1; }

/* ─── Hero ─── */
.hero {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 48px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #93c5fd;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: badge-pulse 3s ease-in-out infinite;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); }
  50% { box-shadow: 0 0 0 12px rgba(37, 99, 235, 0); }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 24px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.shimmer {
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin: 0 0 36px;
  max-width: 520px;
  line-height: 1.75;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.stat-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card span { font-size: 0.82rem; color: var(--text-muted); }

/* ─── Hero Image ─── */
.hero-visual { position: relative; }

.hero-image-wrap {
  position: relative;
  transition: transform 0.5s var(--ease-out);
}

.hero-image-glow {
  position: absolute;
  inset: 10%;
  background: var(--gradient-hero);
  filter: blur(80px);
  opacity: 0.2;
  border-radius: 50%;
  z-index: 0;
  animation: glow-pulse 6s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.28; transform: scale(1.1); }
}

.hero-special-img {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.float { animation: float 8s ease-in-out infinite; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.float-chip {
  position: absolute;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

.chip-1 {
  width: 14px; height: 14px;
  background: #fbbf24;
  top: 12%; right: 8%;
  box-shadow: 0 0 24px rgba(251, 191, 36, 0.6);
  animation: chip-orbit 5s ease-in-out infinite;
}

.chip-2 {
  width: 10px; height: 10px;
  background: #14b8a6;
  bottom: 20%; left: 5%;
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.6);
  animation: chip-orbit 6s ease-in-out infinite -1.5s;
}

.chip-3 {
  width: 8px; height: 8px;
  background: #60a5fa;
  top: 45%; right: 2%;
  animation: chip-orbit 4s ease-in-out infinite -3s;
}

@keyframes chip-orbit {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  25% { transform: translate(12px, -8px) scale(1.2); opacity: 1; }
  50% { transform: translate(-6px, -16px) scale(0.9); opacity: 0.8; }
  75% { transform: translate(8px, 6px) scale(1.1); opacity: 1; }
}

/* ─── Marquee ─── */
.marquee-section {
  padding: 24px 0 56px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee 35s linear infinite;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.marquee-track span { white-space: nowrap; }
.marquee-track span:not(.marquee-dot) { color: var(--text-secondary); }
.marquee-dot { color: var(--primary); opacity: 0.5; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

body[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }

@keyframes marquee-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* ─── Section Head ─── */
.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--secondary);
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--secondary-soft);
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin: 0 0 16px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ─── Feature Categories ─── */
.features-section { padding: 72px 0 40px; }

.features-category {
  margin-top: 48px;
  margin-bottom: 24px;
}

.features-category:first-of-type { margin-top: 0; }

.category-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin: 0;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.cat-icon { font-size: 1.1rem; }

/* ─── Bento Grid ─── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(23, 32, 51, 0.6);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s var(--ease-spring), border-color 0.35s, box-shadow 0.35s, background 0.35s;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.bento-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.3), var(--shadow-glow);
  background: rgba(23, 32, 51, 0.85);
}

.bento-card:hover::before { opacity: 1; }

.bento-large { grid-column: span 2; }
.bento-wide { grid-column: span 3; }

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.3s;
}

.bento-card:hover .bento-icon {
  transform: scale(1.15) rotate(-6deg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.bento-icon.blue { background: var(--primary-soft); color: #60a5fa; }
.bento-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--income); }
.bento-icon.purple { background: rgba(167, 139, 250, 0.15); color: var(--purple); }
.bento-icon.teal { background: var(--secondary-soft); color: var(--secondary); }
.bento-icon.orange { background: rgba(249, 115, 22, 0.15); color: var(--orange); }

.bento-icon.gradient-icon {
  background: var(--gradient-hero);
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.bento-card h3 { margin: 0 0 8px; font-size: 1.08rem; font-weight: 700; }
.bento-card p { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }

/* Featured card */
.featured-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(20, 184, 166, 0.05));
  border-color: rgba(37, 99, 235, 0.25);
}

.featured-card-soon {
  opacity: 0.88;
  border-style: dashed;
  border-color: rgba(251, 191, 36, 0.35);
}

.featured-card-soon .bento-icon.gradient-icon {
  opacity: 0.75;
}

.soon-badge-inline {
  top: 16px;
  inset-inline-end: 16px;
  font-size: 0.72rem;
  padding: 5px 12px;
  letter-spacing: 0.06em;
}

.featured-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gradient-hero);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  animation: featured-glow 3s ease-in-out infinite;
}

@keyframes featured-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0); }
}

/* ─── Showcase ─── */
.showcase-section {
  padding: 80px 0;
  overflow: hidden;
}

.showcase-track {
  display: flex;
  gap: 24px;
  justify-content: center;
}

.showcase-card {
  flex: 0 0 auto;
  max-width: 900px;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}

.showcase-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.showcase-img-wrap {
  position: relative;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  transition: transform 0.6s var(--ease-out);
}

.showcase-card:hover .showcase-img { transform: scale(1.03); }

.showcase-caption {
  padding: 24px 28px;
}

.showcase-caption h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.showcase-caption p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ─── How it Works ─── */
.how-section { padding: 80px 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-spring), border-color 0.35s, box-shadow 0.35s;
}

.step-line {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: var(--gradient-hero);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out);
}

body[dir="rtl"] .step-line { transform-origin: right; }

.step-card:hover .step-line { transform: scaleX(1); }
.step-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.step-num {
  display: block;
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 18px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.6;
  transition: opacity 0.3s;
}

.step-card:hover .step-num { opacity: 1; }

.step-card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 700; }
.step-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ─── Why Section ─── */
.why-section { padding: 80px 0; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why-content h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.why-lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 32px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(34, 197, 94, 0.15);
  color: var(--income);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease-spring), background 0.3s;
}

.why-list li:hover .why-check {
  transform: scale(1.15);
  background: rgba(34, 197, 94, 0.25);
}

/* Glass panel */
.glass-panel {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: rgba(23, 32, 51, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease-out);
}

.glass-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
}

.glass-stat-val {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.glass-stat-label { font-size: 0.88rem; color: var(--text-muted); }

.glass-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  margin: 28px 0 18px;
  overflow: hidden;
}

.glass-bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--gradient-hero);
  transition: width 1.6s var(--ease-out);
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.glass-bar-fill.is-animated { width: 72%; }

.glass-caption {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Count Strip ─── */
.count-strip {
  padding: 64px 0;
  position: relative;
}

.count-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(37, 99, 235, 0.03), transparent);
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.count-item {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s;
}

.count-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.count-val {
  display: block;
  font-size: 2.25rem;
  font-weight: 900;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}

.count-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ─── CTA ─── */
.cta { padding: 80px 0 100px; }

.cta-card {
  padding: 64px 56px;
  border-radius: var(--radius-lg);
  background: var(--gradient-premium);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.12), transparent 50%);
  animation: cta-shine 10s ease-in-out infinite;
}

@keyframes cta-shine {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.5; transform: translateX(10%); }
}

.cta-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.cta-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  animation: cta-particle-float 8s ease-in-out infinite;
}

.cta-particles span:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.cta-particles span:nth-child(2) { top: 60%; left: 25%; animation-delay: -1s; width: 3px; height: 3px; }
.cta-particles span:nth-child(3) { top: 30%; left: 70%; animation-delay: -2s; }
.cta-particles span:nth-child(4) { top: 70%; left: 80%; animation-delay: -3s; width: 5px; height: 5px; }
.cta-particles span:nth-child(5) { top: 15%; left: 50%; animation-delay: -4s; }
.cta-particles span:nth-child(6) { top: 80%; left: 40%; animation-delay: -5s; width: 3px; height: 3px; }
.cta-particles span:nth-child(7) { top: 45%; left: 90%; animation-delay: -6s; }
.cta-particles span:nth-child(8) { top: 50%; left: 5%; animation-delay: -7s; width: 6px; height: 6px; }

@keyframes cta-particle-float {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  25% { transform: translate(20px, -30px); opacity: 0.7; }
  50% { transform: translate(-10px, -50px); opacity: 0.2; }
  75% { transform: translate(15px, -20px); opacity: 0.6; }
}

.cta-card > * { position: relative; z-index: 1; }

.cta-card h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}

.cta-card p {
  margin: 0 auto 32px;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.huawei-notice {
  margin: 0 auto 20px !important;
  max-width: 480px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.92rem !important;
  backdrop-filter: blur(8px);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease-out);
  position: relative;
}

.store-btn:hover:not(.store-btn-disabled) {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.store-btn-huawei.is-primary {
  background: rgba(207, 10, 44, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
  animation: huawei-glow 2.5s ease-in-out infinite;
}

@keyframes huawei-glow {
  0%, 100% { box-shadow: 0 0 0 2px rgba(207, 10, 44, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(207, 10, 44, 0.15); }
}

.store-btn-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.store-btn small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

.soon-badge {
  position: absolute;
  top: -8px;
  inset-inline-end: -8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--warning);
  color: #1a1a1a;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  animation: soon-bounce 2.5s ease-in-out infinite;
}

@keyframes soon-bounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-4px) rotate(-2deg); }
  75% { transform: translateY(-2px) rotate(2deg); }
}

/* ─── Footer ─── */
.footer {
  padding: 36px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer-brand img { border-radius: 8px; }

.footer-links { display: flex; gap: 24px; }
.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--text-secondary); }

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  .float, .orb, .shimmer, .badge-pulse, .glow-pulse, .cta-shine,
  .huawei-glow, .soon-bounce, .marquee-track, .chip-orbit,
  .pulse-btn, .btn-shine, .dot-blink, .featured-glow,
  .cta-particle-float { animation: none !important; }
  .glass-bar-fill.is-animated { width: 72%; }
  #particle-canvas { display: none; }
  .cursor-glow { display: none; }
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    inset-inline: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    margin: 0;
    background: rgba(11, 18, 32, 0.98);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 110;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    color: var(--text);
  }

  .nav-links a:hover { background: var(--surface); }
  .nav-links a::after { display: none; }

  .nav-links.open { display: flex; }

  .menu-toggle { display: inline-flex; }

  .nav-actions .btn-primary { display: none; }

  .hero { min-height: auto; padding-top: calc(var(--nav-height) + 32px); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-cta .btn-lg { flex: 1; min-width: 140px; }

  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-large, .bento-wide { grid-column: span 2; }

  .steps-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .count-grid { grid-template-columns: repeat(2, 1fr); }

  .cta-card { padding: 44px 28px; }

  body.menu-open { overflow: hidden; }
}

@media (max-width: 640px) {
  :root { --nav-height: 64px; }

  .container { width: min(100% - 24px, var(--max-width)); }

  .brand { font-size: 1rem; gap: 10px; }
  .brand img { width: 36px; height: 36px; }

  .lang-toggle button { padding: 7px 11px; font-size: 0.8rem; }

  .hero h1 { font-size: 1.85rem; }
  .hero-lead { font-size: 1rem; margin-bottom: 28px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn-lg { width: 100%; }
  .hero-stats { grid-template-columns: 1fr; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-large, .bento-wide { grid-column: span 1; }
  .bento-card { padding: 22px; }

  .count-grid { grid-template-columns: 1fr 1fr; }
  .store-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 280px; justify-content: center; }

  .section-head { margin-bottom: 40px; }
  .features-section { padding: 56px 0 32px; }
  .showcase-section, .how-section, .why-section { padding: 56px 0; }
  .cta { padding: 56px 0 72px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-links { justify-content: center; }
}
