/* ==========================================================================
   RAB3 ATHLETIC APP - LANDING PAGE STYLESHEET
   Design System: Deep Dark Cyber-Athletic with Rab3 Crimson Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
  --font-primary: 'Outfit', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
  
  --bg-dark: #070b14;
  --bg-surface: rgba(15, 23, 42, 0.7);
  --bg-surface-elevated: rgba(30, 41, 59, 0.6);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-hover: rgba(233, 29, 50, 0.45);

  /* Rab3 Official App Primary Red */
  --brand-red: #E91D32;
  --brand-red-shade: #CD1A2C;
  --brand-red-tint: #EB3447;
  --brand-red-glow: rgba(233, 29, 50, 0.35);
  --brand-red-subtle: rgba(233, 29, 50, 0.12);
  --brand-accent: #E91D32;

  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 35px var(--brand-red-glow);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ================= NAV HEADER ================= */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 24px;
  transition: all 0.3s ease;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.65);
  border-bottom: 1px solid var(--border-glass);
}

.lp-header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.brand-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-shade));
  color: #ffffff;
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--brand-red-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(233, 29, 50, 0.6);
}

.lp-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-switch-btn:hover {
  background: rgba(233, 29, 50, 0.2);
  border-color: rgba(233, 29, 50, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(233, 29, 50, 0.3);
}

.lang-switch-btn svg {
  width: 17px;
  height: 17px;
  color: var(--brand-red);
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px 24px;
  overflow: hidden;
}

/* Fullscreen Background & Atmosphere Layers */
.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.28) contrast(1.15);
  transform: scale(1.02);
  z-index: 1;
}

.hero-overlay-radial {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 45%, rgba(233, 29, 50, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 20% 80%, rgba(205, 26, 44, 0.08) 0%, transparent 50%),
              linear-gradient(180deg, rgba(7, 11, 20, 0.4) 0%, rgba(7, 11, 20, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, transparent 75%);
  z-index: 2;
  pointer-events: none;
}

/* Hero Content Grid (2 Columns) */
.hero-content-container {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 60px;
}

/* Left Column: Text & Store Badges */
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(233, 29, 50, 0.1);
  border: 1px solid rgba(233, 29, 50, 0.35);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 24px;
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-title {
  font-size: 56px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title .highlight-red {
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-red-shade) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub-ar {
  font-family: var(--font-ar);
  font-size: 22px;
  font-weight: 700;
  color: #f1f5f9;
  direction: rtl;
  margin-bottom: 14px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 36px;
}

/* Download Store Buttons */
.store-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: rgba(233, 29, 50, 0.6);
  box-shadow: 0 8px 30px rgba(233, 29, 50, 0.25);
  background: rgba(25, 33, 52, 0.85);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.btn-label-small {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  line-height: 1.2;
}

.btn-label-big {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
  line-height: 1.3;
}

/* Micro Metric Ticker below buttons */
.hero-stats-strip {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hero-stat-lbl {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Right Column: Latest iPhone Mockup */
.hero-mockup-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Luminous Glow behind iPhone */
.mockup-aura-glow {
  position: absolute;
  width: 380px;
  height: 520px;
  background: radial-gradient(circle, rgba(233, 29, 50, 0.28) 0%, rgba(205, 26, 44, 0.1) 50%, transparent 70%);
  filter: blur(55px);
  z-index: 1;
  pointer-events: none;
  animation: float-glow 6s ease-in-out infinite alternate;
}

@keyframes float-glow {
  0% { transform: scale(0.95) translateY(0); opacity: 0.7; }
  100% { transform: scale(1.08) translateY(-15px); opacity: 1; }
}

/* iPhone Hardware Chassis */
.iphone-device-frame {
  position: relative;
  z-index: 5;
  width: 310px;
  /* Aspect ratio matches screenshot: 828:1792 ≈ 1:2.164 */
  height: 671px;
  background: #11141b;
  border-radius: 28px;
  box-shadow: 0 0 0 3px #282f3d,
              0 0 0 5px #151922,
              0 25px 60px -15px rgba(0, 0, 0, 0.8),
              0 0 40px -5px rgba(233, 29, 50, 0.25);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: perspective(1000px) rotateY(-5deg) rotateX(4deg);
  transition: transform 0.4s ease;
}

.iphone-device-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
}

/* iPhone Screen Housing */
.iphone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Dynamic Island (hidden — removed from HTML) */
.iphone-dynamic-island {
  display: none;
}

/* App Screenshot image */
.app-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Subtle Glass Glare over screen */
.iphone-screen-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 45%);
  pointer-events: none;
  z-index: 15;
}

/* ================= FEATURES SECTION (3 COLUMNS) ================= */
.features-section {
  position: relative;
  padding: 100px 24px;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a0f1d 50%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

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

.section-tag {
  display: inline-block;
  color: var(--brand-red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #ffffff;
}

.section-subtext {
  font-size: 16px;
  color: var(--text-muted);
}

/* Three Columns Grid */
.features-grid-3col {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 38px 28px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand-red), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px rgba(233, 29, 50, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-bubble {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: rgba(233, 29, 50, 0.1);
  border: 1px solid rgba(233, 29, 50, 0.25);
  color: var(--brand-red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover .feature-icon-bubble {
  transform: scale(1.1);
  background: rgba(233, 29, 50, 0.2);
}

.feature-icon-bubble svg {
  width: 30px;
  height: 30px;
}

.feature-title {
  font-size: 21px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.feature-title-ar {
  font-family: var(--font-ar);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 14px;
  direction: rtl;
}

.feature-desc {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.feature-pill-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
  font-weight: 600;
  color: #cbd5e1;
  width: fit-content;
}

/* ================= FOOTER (3 COLUMNS) ================= */
.lp-footer {
  background: #05080e;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 80px 24px 30px 24px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid-3col {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 60px;
}

/* Column 1: About Paragraph */
.footer-col-about {
  display: flex;
  flex-direction: column;
}

.footer-logo-wrap {
  margin-bottom: 18px;
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.footer-about-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 440px;
  margin-bottom: 16px;
}

.footer-about-text-ar {
  font-family: var(--font-ar);
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.7;
  direction: rtl;
  max-width: 440px;
}

/* Column 2: Legal & Important Links */
.footer-col-links {
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav-item a:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-nav-item a svg {
  width: 14px;
  height: 14px;
  color: var(--brand-red);
}

/* Column 3: Social Media Links */
.footer-col-social {
  display: flex;
  flex-direction: column;
}

.footer-social-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.social-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.25s ease;
}

.social-icon-btn:hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--brand-red-glow);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Bottom Bar */
.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-copyright-ar {
  font-family: var(--font-ar);
  direction: rtl;
}

/* ================= RESPONSIVENESS ================= */
@media (max-width: 1024px) {
  .hero-content-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-text-col {
    align-items: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .store-buttons-row {
    justify-content: center;
  }

  .hero-stats-strip {
    justify-content: center;
  }

  .features-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid-3col {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .brand-nav-links {
    display: none;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-sub-ar {
    font-size: 19px;
  }

  .features-grid-3col {
    grid-template-columns: 1fr;
  }

  .footer-grid-3col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .iphone-device-frame {
    width: 270px;
    height: 584px;
    border-radius: 24px;
    padding: 7px;
  }
}

/* ================= RTL & ARABIC SPECIFIC STYLES ================= */
html[dir="rtl"],
body[dir="rtl"] {
  font-family: var(--font-ar);
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .hero-text-col {
  align-items: flex-start;
  text-align: right;
}

html[dir="rtl"] .hero-title {
  letter-spacing: -0.5px;
  line-height: 1.25;
}

html[dir="rtl"] .hero-desc {
  font-size: 18px;
  line-height: 1.8;
}

html[dir="rtl"] .store-btn {
  flex-direction: row;
}

html[dir="rtl"] .store-btn-text {
  text-align: right;
}

html[dir="rtl"] .hero-stat-item {
  text-align: right;
}

html[dir="rtl"] .iphone-device-frame {
  transform: perspective(1000px) rotateY(5deg) rotateX(4deg);
}

html[dir="rtl"] .iphone-device-frame:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) translateY(-8px);
}

html[dir="rtl"] .feature-card {
  text-align: right;
}

html[dir="rtl"] .feature-icon-bubble {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .feature-title {
  font-size: 22px;
  letter-spacing: normal;
}

html[dir="rtl"] .feature-desc {
  font-size: 15.5px;
  line-height: 1.75;
}

html[dir="rtl"] .feature-pill-stat {
  margin-left: auto;
  margin-right: 0;
}

html[dir="rtl"] .footer-col-about,
html[dir="rtl"] .footer-col-links,
html[dir="rtl"] .footer-col-social {
  text-align: right;
}

html[dir="rtl"] .footer-about-text {
  font-size: 15.5px;
  line-height: 1.8;
}

html[dir="rtl"] .footer-nav-item a:hover {
  transform: translateX(-4px);
}

