/* ==========================================================
   JALEESCO — PREMIUM ARABIC DIGITAL CONSULTING LANDING DESIGN
   ========================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Color System */
  --bg-primary: #06070a;
  --bg-secondary: #0b0d14;
  --bg-card: rgba(15, 18, 28, 0.55);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent: #38bdf8;
  --accent-glow: rgba(56, 189, 248, 0.25);
  --accent-secondary: #818cf8;
  
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(56, 189, 248, 0.4);
  
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.07);
  
  /* Typography */
  --font-sans: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'IBM Plex Sans Arabic', 'Space Grotesk', var(--font-sans);
  
  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
  
  /* Transitions & Animation */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Background Canvas & Atmosphere --- */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.cursor-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
  z-index: -1;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
  opacity: 0;
}

.site-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(6, 7, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(129, 140, 248, 0.2));
  border: 1px solid var(--border-active);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--accent);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.en-sub {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-right: 6px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-ring 2s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(56, 189, 248, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: var(--header-height);
  right: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: rgba(6, 7, 10, 0.95);
  backdrop-filter: blur(20px);
  z-index: 99;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.4s var(--ease-out-expo), opacity 0.4s ease;
  pointer-events: none;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-inner {
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.mobile-menu-tag {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-link:hover {
  color: var(--accent);
}

.mobile-menu-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 60px 0;
}

.hero-container {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Intro Reveal Animations */
.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-in-element.animated {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.brand-title {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 80%, var(--accent-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtext {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 660px;
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.8;
}

/* Status Indicator Pill */
.status-box-wrapper {
  margin-bottom: 40px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.status-indicator {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
}

.core-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.pulse-ring {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: pulse-expand 2s infinite ease-out;
}

@keyframes pulse-expand {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

.status-label-sub {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-divider {
  color: var(--border);
  font-weight: 300;
}

.status-label-main {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
}

/* Countdown Module */
.countdown-wrapper {
  margin-bottom: 44px;
  width: 100%;
}

.countdown-title {
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 600;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.countdown-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 14px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.count-val {
  font-family: 'Space Grotesk', var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.count-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

.countdown-colon {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  color: var(--accent);
  font-weight: 700;
  margin-top: -12px;
}

.countdown-live {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Glassmorphism Subscribe Panel */
.subscribe-wrapper {
  width: 100%;
  max-width: 540px;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.subscribe-card {
  padding: 32px;
  text-align: right;
}

.subscribe-header h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.subscribe-header p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.subscribe-form .input-group {
  display: flex;
  gap: 12px;
  position: relative;
}

.subscribe-form input {
  flex: 1;
  height: 50px;
  padding: 0 18px;
  background: rgba(6, 7, 10, 0.6);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.subscribe-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.subscribe-form input::placeholder {
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--accent) 0%, #0284c7 100%);
  border: none;
  border-radius: 10px;
  color: #06070a;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out-expo), box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

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

.form-feedback {
  margin-top: 12px;
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 22px;
  transition: opacity 0.3s ease;
}

.form-feedback.success {
  color: #34d399;
}

.form-feedback.error {
  color: #f87171;
}

/* Floating Concept Chips */
.floating-chips {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.glass-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.1s linear;
}

.chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--accent);
}

.chip-1 { top: 20%; right: 8%; }
.chip-2 { top: 35%; left: 10%; }
.chip-3 { top: 65%; right: 12%; }
.chip-4 { top: 75%; left: 14%; }
.chip-5 { top: 15%; left: 28%; }
.chip-6 { top: 80%; right: 32%; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent);
}

.scroll-indicator svg {
  animation: bounce-down 2s infinite ease-in-out;
}

@keyframes bounce-down {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(6px); }
  60% { transform: translateY(3px); }
}

/* --- Secondary Vision Section --- */
.vision-section {
  position: relative;
  padding: 120px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(circle at 50% 0%, var(--bg-secondary) 0%, var(--bg-primary) 70%);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px auto;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  margin-top: 8px;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.concept-card {
  position: relative;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: right;
}

.concept-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
}

.card-glow {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top left, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.concept-card:hover .card-glow {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent);
  margin-bottom: 24px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.card-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  flex-grow: 1;
}

.card-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.card-tag {
  font-size: 0.8125rem;
  color: var(--accent);
  font-weight: 600;
}

/* Reveal on Scroll Elements */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background-color: var(--bg-primary);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  font-family: 'Space Grotesk', var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-primary);
  text-decoration: none;
}

.footer-tagline {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--accent);
}

.copyright {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* --- Media Queries / Responsive --- */
@media (max-width: 992px) {
  .floating-chips {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .badge-launch {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-section {
    padding: 100px 0 40px 0;
  }

  .subscribe-form .input-group {
    flex-direction: column;
  }

  .subscribe-form input, 
  .btn-primary {
    width: 100%;
  }

  .status-pill {
    flex-wrap: wrap;
    justify-content: center;
    padding: 8px 16px;
    gap: 8px;
  }

  .status-divider {
    display: none;
  }

  .status-label-sub {
    width: 100%;
    text-align: center;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-card {
    min-width: 68px;
    padding: 10px 8px;
  }

  .count-val {
    font-size: 1.75rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-glow, #bg-canvas {
    display: none !important;
  }
}
