/* ==========================================================
   DX FOR ELECTRIC — CINEMATIC LUXURY WEBSITE EXPERIENCE
   Brand Palette:
     Primary Yellow: #FFD200
     Carbon Black:   #08090B
     Carbon Ink:     #14171A
     DX Red:         #E31E24
     DX Navy:        #01236C
     Surface Dark:   #08090B
     Surface Card:   #111317
   ========================================================== */

:root {
  --brand-yellow: #FFD200;
  --brand-black: #08090B;
  --brand-ink: #14171A;
  --brand-red: #E31E24;
  --brand-blue: #01236C;
  --surface-dark: #08090B;
  --surface-card: #111317;
  --surface-card-hover: #171A21;
  --border-subtle: rgba(255, 210, 0, 0.22);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 210, 0, 0.35);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--brand-black);
}

body {
  font-family: 'Cairo', 'Montserrat', system-ui, -apple-system, sans-serif;
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================= 0. FIRST-VISIT LANGUAGE SELECTION PORTAL ================= */
body.lang-portal-active .hero-content,
body.lang-portal-active .top-nav {
  opacity: 0 !important;
  transform: translateY(14px) !important;
  pointer-events: none !important;
}

.lang-portal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background-color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
  overflow-y: auto;
  pointer-events: auto;
  transition: opacity 0.5s var(--ease-luxury), visibility 0.5s var(--ease-luxury), transform 0.5s var(--ease-luxury);
  will-change: opacity, transform;
}

.lang-portal.lang-portal--hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: scale(0.98) !important;
}

.lang-portal-stage {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.2rem, 2.5vh, 2rem);
  animation: portalFadeIn 0.6s var(--ease-luxury) forwards;
}

@keyframes portalFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-portal-logo-wrap {
  width: 100%;
  max-width: clamp(280px, 48vw, 440px);
}

.dx-logo-portal {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
}

.lang-portal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.lang-portal-title {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  color: var(--brand-black);
  line-height: 1.35;
}

.lang-portal-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(0.85rem, 1.3vw, 1.05rem);
  color: var(--brand-ink);
  opacity: 0.85;
}

/* 3-Language Cards Grid */
.lang-portal-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.75rem, 1.8vw, 1.25rem);
}

.lang-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background-color: var(--brand-black);
  color: #FFFFFF;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: clamp(1.2rem, 2.5vh, 1.75rem) clamp(0.85rem, 1.5vw, 1.25rem);
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(8, 9, 11, 0.16);
  transition: transform 0.25s var(--ease-luxury),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background-color 0.25s ease;
  user-select: none;
}

.lang-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--brand-yellow);
  box-shadow: 0 8px 24px rgba(8, 9, 11, 0.25);
  background-color: #121419;
}

.lang-card:active {
  transform: translateY(-1px) scale(1);
}

.lang-card-flag {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  line-height: 1;
}

.lang-card-flag--sun {
  filter: drop-shadow(0 0 6px #FFA500);
}

.lang-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.lang-card-primary {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 900;
  color: var(--brand-yellow);
}

.lang-card-secondary {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: clamp(0.72rem, 1.1vw, 0.85rem);
  font-weight: 600;
  color: #A0A5B0;
}

.lang-card-indicator {
  font-size: 0.95rem;
  color: var(--brand-yellow);
  opacity: 0.65;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-card:hover .lang-card-indicator {
  transform: translateX(-3px);
  opacity: 1;
}

@media (max-width: 640px) {
  .lang-portal-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    max-width: 320px;
    margin: 0 auto;
  }

  .lang-card {
    flex-direction: row;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-radius: 14px;
  }

  .lang-card-info {
    align-items: flex-start;
  }
}

/* ================= 1. CINEMATIC INTRODUCTION OVERLAY ================= */
.cinematic-intro {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: var(--brand-black);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  transition: opacity 0.55s var(--ease-luxury), visibility 0.55s var(--ease-luxury);
}

.cinematic-intro.intro--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #101217 0%, #08090B 72%);
  opacity: 0.95;
  pointer-events: none;
}

.intro-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 620px;
  padding: 1.5rem;
}

/* Phase 1: Electric Laser Line */
.intro-laser-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand-red) 35%, #FFFFFF 50%, var(--brand-yellow) 65%, transparent 100%);
  transform: translate(-50%, -50%) scaleX(0);
  opacity: 0;
  border-radius: 2px;
  filter: drop-shadow(0 0 10px var(--brand-red));
  animation: laserPulse 1.2s var(--ease-luxury) forwards;
}

/* Phase 1: Subtle Electric Yellow Energy Glow */
.intro-glow-disc {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 440px;
  height: 260px;
  background: radial-gradient(ellipse at center, rgba(255, 210, 0, 0.28) 0%, rgba(227, 30, 36, 0.12) 45%, transparent 75%);
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  filter: blur(28px);
  animation: glowBloom 1.4s var(--ease-luxury) 0.3s forwards;
  pointer-events: none;
}

/* Phase 1 & 2: DX Brand Box */
.intro-brand-box {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.intro-logo-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.intro-emblem-group {
  opacity: 0;
  transform: scale(0.93) translateY(8px);
  animation: emblemReveal 1.3s var(--ease-luxury) 0.4s forwards;
  transform-origin: center center;
}

.intro-path-text {
  opacity: 0;
  transform: translateY(6px);
  animation: subtextReveal 1.1s var(--ease-luxury) 0.85s forwards;
}

/* Phase 3: Smooth Expanding Yellow Wipe Circle */
.intro-wipe-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--brand-yellow);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  z-index: 10;
  will-change: transform;
}

.intro-wipe-circle.wipe-expand {
  transform: translate(-50%, -50%) scale(55);
  transition: transform 0.82s cubic-bezier(0.2, 0.9, 0.2, 1);
}

/* Skip Button */
.intro-skip-btn {
  position: absolute;
  top: clamp(1rem, 3vh, 2rem);
  right: clamp(1rem, 4vw, 2.5rem);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CCCCCC;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  user-select: none;
}

.intro-skip-btn:hover {
  background: rgba(255, 210, 0, 0.16);
  color: var(--brand-yellow);
  border-color: rgba(255, 210, 0, 0.45);
  transform: translateY(-1px);
}

.skip-kbd {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #FFFFFF;
}

/* Intro Keyframes */
@keyframes laserPulse {
  0% {
    transform: translate(-50%, -50%) scaleX(0);
    opacity: 0;
  }
  30% {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -50%) scaleX(1.15);
    opacity: 0.9;
  }
  100% {
    transform: translate(-50%, -50%) scaleX(1.3);
    opacity: 0;
  }
}

@keyframes glowBloom {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0;
  }
  50% {
    opacity: 0.85;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 0.4;
  }
}

@keyframes emblemReveal {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(8px);
    filter: drop-shadow(0 0 16px rgba(255, 210, 0, 0.5));
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.5));
  }
}

@keyframes subtextReveal {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= 2. MAIN HERO SECTION ================= */
.hero {
  min-height: 100svh;
  width: 100%;
  background-color: var(--brand-yellow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.75rem, 1.8vw, 1.35rem) clamp(1rem, 3.5vw, 2.5rem) clamp(1rem, 2.2vw, 1.8rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Hero Content Wrapper */
.hero-content {
  width: 100%;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 1.2vh, 0.95rem);
  margin: auto 0;
  transition: opacity 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury);
}

body.intro-active .hero-content {
  opacity: 0;
  transform: translateY(14px);
}

/* Top Headings */
.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.2rem, 0.5vh, 0.35rem);
  margin-bottom: clamp(0.15rem, 0.6vh, 0.5rem);
}

.headline-primary {
  font-family: 'Cairo', sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 3.8vw, 3.15rem);
  color: var(--brand-black); /* strong DX black */
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-rendering: optimizeLegibility;
}

.headline-secondary {
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: clamp(0.82rem, 1.3vw, 1.12rem);
  color: var(--brand-blue); /* exact DX navy blue */
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ================= 3. TOP NAVIGATION / ORIGINAL COMPANY & SOCIALS ================= */
.top-nav {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0.5rem;
  z-index: 20;
  transition: opacity 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury);
}

body.intro-active .top-nav {
  opacity: 0;
  transform: translateY(-12px);
}

.top-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  background-color: rgba(8, 9, 11, 0.05);
  border: 1px solid rgba(8, 9, 11, 0.1);
  border-radius: 999px;
  padding: 0.35rem 0.65rem 0.35rem 0.55rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Original Company Badge */
.original-company {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--brand-black);
  color: var(--brand-yellow);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 210, 0, 0.32);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14);
  user-select: none;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.original-company:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 210, 0, 0.6);
}

.original-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-yellow);
  flex-shrink: 0;
}

.original-title {
  white-space: nowrap;
}

/* Controls Group (Socials + 3-Way Lang + Replay) */
.top-controls-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Top Social Channels */
.top-socials {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.social-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.cluster-label {
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-black);
  user-select: none;
}

.cluster-label--memes {
  color: var(--brand-ink);
  opacity: 0.85;
}

.cluster-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Social Buttons */
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background-color: var(--brand-black);
  color: #FFFFFF;
  text-decoration: none;
  border: 1px solid rgba(255, 210, 0, 0.16);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s var(--ease-luxury),
              background-color 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease;
  flex-shrink: 0;
}

.social-btn svg {
  display: block;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn:active {
  transform: translateY(0);
}

.social-btn:focus-visible {
  outline: 2px solid var(--brand-black);
  outline-offset: 2px;
}

/* Social Platform Hover States */
.social-btn--facebook:hover {
  background-color: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 4px 10px rgba(24, 119, 242, 0.45);
}

.social-btn--tiktok:hover {
  background-color: #010101;
  border-color: #25F4EE;
  box-shadow: -2px 2px 0 #25F4EE, 2px -2px 0 #FE2C55;
}

.social-btn--instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(214, 36, 159, 0.45);
}

/* Divider between Official & Memes */
.social-divider {
  display: inline-block;
  width: 1px;
  height: 18px;
  background-color: rgba(8, 9, 11, 0.22);
  margin: 0 0.15rem;
}

/* 3-Way Language Switcher (عربي / EN / کوردی) */
.lang-switch-wrap {
  display: inline-flex;
  align-items: center;
}

.lang-trio-toggle {
  display: inline-flex;
  align-items: center;
  background: rgba(8, 9, 11, 0.08);
  border: 1px solid rgba(8, 9, 11, 0.16);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-trio-btn {
  background: transparent;
  border: none;
  outline: none;
  color: var(--brand-black);
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s var(--ease-luxury);
  user-select: none;
}

.lang-trio-btn:hover {
  background: rgba(8, 9, 11, 0.1);
  color: var(--brand-black);
}

.lang-trio-btn.active {
  background-color: var(--brand-black);
  color: var(--brand-yellow);
  font-weight: 900;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* Replay Cinematic Intro Button */
.replay-intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: rgba(8, 9, 11, 0.08);
  border: 1px solid rgba(8, 9, 11, 0.18);
  color: var(--brand-black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.replay-intro-btn:hover {
  background: var(--brand-black);
  color: var(--brand-yellow);
  border-color: var(--brand-black);
  transform: rotate(-45deg);
}

/* ================= 4. DX LOGO MASTERPIECE & ORBIT ================= */
.logo-wrapper {
  width: 100%;
  max-width: clamp(300px, 48vw, 540px);
  margin: clamp(0.2rem, 1.2vh, 0.9rem) auto;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: default;
  transition: transform 0.4s var(--ease-luxury);
}

.logo-wrapper:hover {
  transform: scale(1.015);
}

.dx-logo {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.05));
  will-change: transform;
}

/* Orbiting Swooshes (Independent Smooth Orbit Around DX) */
.swoosh-left,
.swoosh-right {
  will-change: d;
  transform-origin: center center;
}

/* ================= 5. TRADE & DELIVERY META + SCROLL DOWN ================= */
.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.35rem, 0.8vh, 0.65rem);
  width: 100%;
  max-width: 520px;
  margin-top: clamp(0.15rem, 0.6vh, 0.5rem);
}

.trade-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 2vw, 1.35rem);
  width: 100%;
}

.divider-line {
  flex: 1;
  max-width: 105px;
  height: 1.5px;
  background-color: var(--brand-black);
  border-radius: 1px;
  opacity: 0.85;
}

.trade-text {
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  font-weight: 900;
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  color: var(--brand-black); /* strong DX black */
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.trade-bullet {
  color: var(--brand-red); /* small red accent separator */
  font-size: 1.3em;
  line-height: 1;
  display: inline-block;
}

.delivery-text {
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.4vw, 1.15rem);
  color: var(--brand-blue); /* exact DX navy blue */
  letter-spacing: 0.01em;
  line-height: 1.4;
}

/* Scroll Down Indicator with Automatic Disappearing Smooth Animation */
.scroll-indicator {
  margin-top: clamp(0.2rem, 0.8vh, 0.55rem);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--brand-black);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.4s var(--ease-luxury),
              transform 0.4s var(--ease-luxury),
              visibility 0.4s ease,
              background-color 0.25s ease;
  will-change: opacity, transform;
}

.scroll-indicator:hover,
.scroll-indicator:focus-visible {
  transform: translateY(3px);
  background-color: rgba(8, 9, 11, 0.08);
  outline: none;
}

/* Hidden when user scrolls down from top */
.scroll-indicator.scroll-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) !important;
}

.scroll-label {
  font-family: 'Montserrat', 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: clamp(0.76rem, 1vw, 0.88rem);
  letter-spacing: 0.22em;
  color: var(--brand-black); /* strong DX black */
}

.scroll-chevrons {
  animation: scrollDoubleBounce 1.9s ease-in-out infinite;
}

.scroll-chevrons polyline {
  stroke: var(--brand-red); /* red downward arrows */
}

/* ================= 5B. COORDINATED HOMEPAGE ENTRANCE ANIMATION ================= */
.hero.hero--revealed .headline-primary {
  animation: heroTextReveal 0.65s var(--ease-luxury) 0.05s both;
}

.hero.hero--revealed .headline-secondary {
  animation: heroTextReveal 0.65s var(--ease-luxury) 0.18s both;
}

.hero.hero--revealed .logo-wrapper {
  animation: heroLogoSettle 0.75s var(--ease-luxury) 0.32s both;
}

.hero.hero--revealed .hero-meta {
  animation: heroMetaReveal 0.65s var(--ease-luxury) 0.48s both;
}

.hero.hero--revealed .scroll-indicator {
  animation: heroScrollFade 0.65s var(--ease-luxury) 0.65s both;
}

@keyframes heroTextReveal {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroLogoSettle {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes heroMetaReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScrollFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scrollDoubleBounce {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.95;
  }
  50% {
    transform: translateY(7px);
    opacity: 0.45;
  }
}

/* ================= 6. SALES PORTAL SECTION (PAGE 2 — RETAIL & WHOLESALE) ================= */
.portal-section {
  background-color: #08090B;
  color: #F0F2F5;
  padding: clamp(4rem, 8vw, 6.5rem) 1.5rem;
  border-top: 4px solid var(--brand-black);
  position: relative;
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255, 210, 0, 0.06), transparent 70%);
}

.portal-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.portal-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.portal-badge {
  display: inline-block;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--brand-black);
  background-color: var(--brand-yellow);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.portal-title {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.75rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.3;
}

.portal-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: #A0A5B2;
  line-height: 1.7;
}

/* Symmetrical Two-Card Grid */
.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

/* Base Portal Card */
.portal-card {
  position: relative;
  border-radius: 24px;
  padding: clamp(2rem, 3.5vw, 2.85rem) clamp(1.5rem, 2.8vw, 2.25rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease-luxury),
              box-shadow 0.35s var(--ease-luxury),
              border-color 0.35s ease,
              background-color 0.35s ease;
  overflow: hidden;
  box-sizing: border-box;
}

/* CARD 1: RETAIL (مفرد) — Premium & Clickable */
.portal-card--retail {
  background: linear-gradient(165deg, #13151D 0%, #0A0B0F 100%);
  border: 2px solid rgba(255, 210, 0, 0.28);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.portal-card--retail:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--brand-yellow);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7),
              0 0 35px rgba(255, 210, 0, 0.2),
              inset 0 1px 0 rgba(255, 210, 0, 0.3);
}

.portal-card--retail:focus-visible {
  outline: 3px solid var(--brand-yellow);
  outline-offset: 4px;
}

/* CARD 2: WHOLESALE (جملة) — Disabled & Locked */
.portal-card--wholesale {
  background: #090A0D;
  border: 2px dashed rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
  user-select: none;
  opacity: 0.76;
}

.portal-card--wholesale:hover {
  border-color: rgba(227, 30, 36, 0.4);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 15px rgba(227, 30, 36, 0.1);
}

@keyframes shakeLocked {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.portal-card--wholesale.shake-locked {
  animation: shakeLocked 0.4s ease-in-out;
  border-color: rgba(227, 30, 36, 0.7) !important;
}

/* Badges */
.portal-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'Montserrat', 'Cairo', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.portal-badge--active {
  background: rgba(46, 204, 113, 0.14);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #2ECC71;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #2ECC71;
  box-shadow: 0 0 8px #2ECC71;
  animation: badgePulse 2s infinite ease-in-out;
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.portal-badge--locked {
  background: rgba(227, 30, 36, 0.14);
  border: 1px solid rgba(227, 30, 36, 0.38);
  color: #FF5A5F;
}

/* Icon Wraps */
.portal-card-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 210, 0, 0.12);
  border: 1px solid rgba(255, 210, 0, 0.3);
  color: var(--brand-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.portal-card--retail:hover .portal-card-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  background-color: var(--brand-yellow);
  color: var(--brand-black);
  border-color: var(--brand-yellow);
  box-shadow: 0 8px 24px rgba(255, 210, 0, 0.35);
}

.portal-icon-wrap--locked {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #6C7280;
}

/* Card Content */
.portal-card-content {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 2rem;
}

.portal-card-title {
  font-family: 'Cairo', 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1.15;
}

.portal-card--retail .portal-card-title {
  color: var(--brand-yellow);
}

.portal-card-sub {
  font-family: 'Montserrat', 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #8E95A5;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portal-card-desc {
  font-size: 0.98rem;
  color: #C0C5D0;
  line-height: 1.75;
  margin-top: 0.5rem;
}

/* Actions */
.portal-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-action-btn {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--brand-black);
  background-color: var(--brand-yellow);
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 210, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.portal-card--retail:hover .portal-action-btn {
  background-color: #FFE033;
  box-shadow: 0 6px 20px rgba(255, 210, 0, 0.45);
}

.portal-action-arrow {
  font-size: 1.35rem;
  color: var(--brand-yellow);
  transition: transform 0.3s var(--ease-luxury);
}

html[dir="rtl"] .portal-action-arrow {
  transform: rotate(180deg);
}

.portal-card--retail:hover .portal-action-arrow {
  transform: translateX(6px);
}

html[dir="rtl"] .portal-card--retail:hover .portal-action-arrow {
  transform: rotate(180deg) translateX(6px);
}

/* Disabled Action */
.portal-action--disabled {
  justify-content: center;
  border-top-color: rgba(255, 255, 255, 0.05);
}

.portal-action-notice {
  font-family: 'Cairo', 'Montserrat', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #717684;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  width: 100%;
  text-align: center;
}

/* ================= 7. FOOTER ================= */
.site-footer {
  background-color: #050608;
  color: #8E939E;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.75rem 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  font-size: 0.9rem;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: var(--brand-yellow);
  letter-spacing: 0.06em;
}

.footer-tagline {
  font-family: 'Cairo', sans-serif;
  font-size: 0.82rem;
  color: #717682;
}

.back-to-top {
  color: var(--brand-yellow);
  text-decoration: none;
  font-weight: 800;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 210, 0, 0.08);
  border: 1px solid rgba(255, 210, 0, 0.2);
  transition: all 0.2s ease;
}

.back-to-top:hover {
  background: var(--brand-yellow);
  color: var(--brand-black);
  transform: translateY(-2px);
}

/* ================= 8. RESPONSIVE DESIGN ================= */
@media (max-width: 960px) {
  .top-nav-inner {
    justify-content: center;
    border-radius: 20px;
    padding: 0.45rem 0.75rem;
    gap: 0.55rem 0.95rem;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 0.65rem 0.75rem 1rem;
  }

  .top-nav {
    padding: 0;
  }

  .top-nav-inner {
    border-radius: 16px;
    padding: 0.4rem 0.55rem;
    gap: 0.45rem;
  }

  .original-company {
    font-size: 0.7rem;
    padding: 0.28rem 0.7rem;
  }

  .cluster-label {
    font-size: 0.66rem;
  }

  .social-btn {
    width: 28px;
    height: 28px;
  }

  .social-btn svg {
    width: 13.5px;
    height: 13.5px;
  }

  .social-divider {
    height: 16px;
    margin: 0 0.05rem;
  }

  .lang-trio-btn {
    padding: 0.18rem 0.45rem;
    font-size: 0.66rem;
  }

  .replay-intro-btn {
    width: 26px;
    height: 26px;
  }

  .replay-intro-btn svg {
    width: 12px;
    height: 12px;
  }

  .trade-divider {
    gap: 0.6rem;
  }

  .divider-line {
    max-width: 70px;
  }
}

/* Safe Area Insets for Modern Mobile Phones */
@supports (padding-top: env(safe-area-inset-top)) {
  .hero {
    padding-top: max(clamp(0.75rem, 1.8vw, 1.35rem), env(safe-area-inset-top));
    padding-bottom: max(clamp(1rem, 2.2vw, 1.8rem), env(safe-area-inset-bottom));
  }
}

/* ================= 9. ACCESSIBILITY: REDUCED MOTION ================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cinematic-intro {
    display: none !important;
  }

  body.intro-active .hero-content,
  body.intro-active .top-nav {
    opacity: 1 !important;
    transform: none !important;
  }

  .scroll-chevrons,
  .intro-laser-line,
  .intro-glow-disc,
  .intro-emblem-group,
  .intro-path-text,
  .hero.hero--revealed .headline-primary,
  .hero.hero--revealed .headline-secondary,
  .hero.hero--revealed .logo-wrapper,
  .hero.hero--revealed .hero-meta,
  .hero.hero--revealed .scroll-indicator {
    animation: none !important;
  }

  .pillar-card:hover,
  .social-btn:hover,
  .logo-wrapper:hover,
  .lang-card:hover {
    transform: none !important;
  }
}
