/* ===================================================
   ROCK-i DownApp — Glassmorphism Landing Page
   Color Palette: Cyan #00BFFF → Blue #0055FF
   Dark Surface: #0A0E1A / #121628
   Accent: #00E5FF / #00E676
   =================================================== */

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

:root {
  /* Brand */
  --cyan: #00BFFF;
  --blue: #0055FF;
  --accent-green: #00E676;
  --accent-aqua: #00E5FF;

  /* Surfaces */
  --bg-deep: #060A14;
  --bg-primary: #0A0E1A;
  --bg-secondary: #121628;
  --bg-card: rgba(18, 22, 40, 0.55);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-hover: rgba(255, 255, 255, 0.09);
  --glass-blur: 24px;

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-display: 'Outfit', 'SF Pro Display', sans-serif;
  --font-body: 'DM Sans', 'SF Pro Text', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Borders */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-pill: 100px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---------- Animated Background ---------- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-deep);
}

.page-bg::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, rgba(0, 191, 255, 0.15) 0%, transparent 70%);
  animation: bgOrb1 18s ease-in-out infinite alternate;
}

.page-bg::after {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  bottom: -100px;
  right: -200px;
  background: radial-gradient(circle, rgba(0, 85, 255, 0.12) 0%, transparent 70%);
  animation: bgOrb2 22s ease-in-out infinite alternate;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black, transparent);
}

@keyframes bgOrb1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 80px) scale(1.2); }
}

@keyframes bgOrb2 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-120px, -60px) scale(1.15); }
}

/* ---------- Noise Grain Overlay ---------- */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ---------- Glass Card Mixin ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: background var(--duration-normal) var(--ease-out),
              border-color var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.glass:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.16);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background var(--duration-normal) var(--ease-out),
              backdrop-filter var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
  background: rgba(6, 10, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
}

.nav-brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.nav-brand-text span {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-radius: 2px;
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .nav-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}

.nav-cta-icon {
  display: block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 85, 255, 0.35);
}

.nav-cta::after { display: none !important; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--duration-fast), opacity var(--duration-fast);
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 191, 255, 0.1);
  border: 1px solid rgba(0, 191, 255, 0.2);
  font-size: 13px;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s var(--ease-out) 0.15s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--cyan), var(--blue), var(--accent-aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-out) 0.45s both;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  transition: transform var(--duration-fast), box-shadow var(--duration-normal);
  position: relative;
  overflow: hidden;
}

.btn-download::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast);
}

.btn-download:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 85, 255, 0.4);
}

.btn-download:hover::before { opacity: 1; }

.btn-download:active {
  transform: translateY(0) scale(0.98);
}

.btn-download .btn-icon,
.btn-ios .btn-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.btn-ios {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 16px;
  transition: all var(--duration-normal) var(--ease-out);
}

.btn-ios:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.18);
  color: var(--text-primary);
}

/* btn-icon sizing handled above in combined rule */

.btn-ios .soon-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 1s var(--ease-out) 0.5s both;
}

.hero-app-showcase {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-app-icon {
  width: 200px;
  height: 200px;
  border-radius: 48px;
  filter: drop-shadow(0 30px 80px rgba(0, 191, 255, 0.35));
  animation: floatScooter 6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

.hero-glow {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 160px;
  background: radial-gradient(ellipse, rgba(0, 191, 255, 0.25) 0%, transparent 70%);
  filter: blur(30px);
  z-index: 1;
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes floatScooter {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* Hero Stats Row */
.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

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

.hero-stat .value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  animation: fadeInUp 1s var(--ease-out) 1s both;
}

.scroll-indicator .mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator .mouse::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--cyan);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateX(-50%) translateY(0); opacity: 1; }
  100% { transform: translateX(-50%) translateY(14px); opacity: 0; }
}

/* ---------- Section Base ---------- */
.section {
  position: relative;
  padding: var(--space-3xl) 0;
  z-index: 1;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Features Section ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--blue), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

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

.feature-card:hover {
  transform: translateY(-4px);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.12), rgba(0, 85, 255, 0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.feature-icon img {
  width: 28px;
  height: 28px;
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.3px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* (Scooter Models Section removed — page is download-only) */

/* ---------- Screenshots / App Preview ---------- */
.preview-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-secondary) 50%, var(--bg-deep) 100%);
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.preview-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: var(--space-md);
  text-align: center;
  transition: transform var(--duration-normal) var(--ease-out);
}

.preview-card:hover {
  transform: translateY(-6px);
}

.preview-card .preview-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.preview-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.preview-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* "Soon" badge inside preview cards */
.feature-soon-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 191, 255, 0.15);
  color: var(--cyan);
  vertical-align: middle;
  margin-inline-start: 6px;
}

.preview-card--soon {
  opacity: 0.55;
}

/* ---------- Download CTA Section ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-card {
  position: relative;
  padding: var(--space-3xl) var(--space-2xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(0, 191, 255, 0.08), rgba(0, 85, 255, 0.06));
  border: 1px solid rgba(0, 191, 255, 0.15);
  text-align: center;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(0, 191, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-card p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto var(--space-xl);
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--space-md);
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

.footer-brand-name span {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 340px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--duration-fast);
}

.footer-col ul li a:hover {
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--cyan);
  transition: opacity var(--duration-fast);
}

.footer-bottom a:hover { opacity: 0.7; }

/* ---------- Scroll Animation (reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.1s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.3s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.4s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ---------- Fade In Up ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Compatibility Section ---------- */
.compat-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.compat-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
}

.compat-badge svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: var(--cyan);
}

.compat-badge .compat-info {
  text-align: left;
}

.compat-badge .compat-info .os-name {
  font-weight: 700;
  font-size: 15px;
}

.compat-badge .compat-info .os-version {
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-2xl);
  }

  .hero-content { order: 1; }
  .hero-visual { order: 0; }

  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

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

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

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

  /* Mobile menu */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(6, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    padding: var(--space-lg);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 16px;
  }

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

  .hero h1 { letter-spacing: -1px; }
  .hero-app-showcase { max-width: 200px; margin: 0 auto; }

  .hero-stats { gap: var(--space-lg); }
  .hero-stat .value { font-size: 22px; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-download,
  .btn-ios {
    width: 100%;
    justify-content: center;
  }

  .preview-grid { grid-template-columns: 1fr; }

  .cta-card { padding: var(--space-2xl) var(--space-lg); }
}

/* ---------- Version pill in hero ---------- */
.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-green);
  margin-left: 12px;
}

/* ---------- Trusted By / Partner Logos ---------- */
.trusted-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
  opacity: 0.4;
  font-size: 14px;
  color: var(--text-muted);
}

.trusted-row span {
  white-space: nowrap;
}

/* ===================================================
   LANGUAGE SWITCHER
   =================================================== */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-switcher:hover {
  background: var(--glass-hover);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.lang-switcher:active {
  transform: scale(0.97);
}

.lang-icon {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  object-fit: contain;
}

.lang-code {
  letter-spacing: 0.5px;
}

/* Mobile language button — visible only on small screens */
.mobile-lang {
  display: none;
}

@media (max-width: 768px) {
  .mobile-lang {
    display: inline-flex;
    margin-right: 8px;
  }
}

/* ===================================================
   RTL OVERRIDES — Arabic (body.rtl)
   =================================================== */

/* Arabic font stack */
body.rtl {
  font-family: 'Noto Kufi Arabic', 'DM Sans', 'SF Pro Text', sans-serif;
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl .nav-brand-text,
body.rtl .footer-brand-name,
body.rtl .section-title,
body.rtl .section-label,
body.rtl .hero-stat .value {
  font-family: 'Noto Kufi Arabic', 'Outfit', sans-serif;
}

/* Reset letter-spacing for Arabic (doesn't use it) */
body.rtl .section-title,
body.rtl .hero h1,
body.rtl .cta-card h2,
body.rtl .feature-card h3 {
  letter-spacing: 0;
}

body.rtl .section-label {
  letter-spacing: 0;
}

/* Nav underline goes from right in RTL */
body.rtl .nav-links a::after {
  left: auto;
  right: 0;
}

/* Hero grid: flip order in LTR mode content is left, visual right. RTL should mirror. */
body.rtl .hero-inner {
  direction: rtl;
}

body.rtl .hero-content {
  text-align: right;
}

body.rtl .hero-desc {
  margin-left: 0;
  margin-right: 0;
}

body.rtl .hero-actions {
  justify-content: flex-start;
}

body.rtl .hero-stats {
  justify-content: flex-start;
}

/* Gradient direction flip */
body.rtl .hero h1 .gradient-text,
body.rtl .cta-card .gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--cyan), var(--accent-aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.rtl .nav-brand-text span,
body.rtl .footer-brand-name span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Feature cards — text align right */
body.rtl .feature-card {
  text-align: right;
}

/* Preview cards stay centered */
body.rtl .preview-card {
  text-align: center;
}

/* Compat badge info */
body.rtl .compat-badge .compat-info {
  text-align: right;
}

/* Footer */
body.rtl .footer-top {
  direction: rtl;
}

body.rtl .footer-col ul {
  align-items: flex-start;
}

body.rtl .footer-bottom {
  direction: rtl;
}

body.rtl .footer-desc {
  margin-left: auto;
  margin-right: 0;
}

/* Version pill margin flip */
body.rtl .version-pill {
  margin-left: 0;
  margin-right: 12px;
}

/* Mobile menu in RTL */
@media (max-width: 768px) {
  body.rtl .mobile-lang {
    margin-right: 0;
    margin-left: 8px;
  }
}

/* Responsive hero center on tablet in RTL */
@media (max-width: 1024px) {
  body.rtl .hero-content {
    text-align: center;
  }

  body.rtl .hero-actions {
    justify-content: center;
  }

  body.rtl .hero-stats {
    justify-content: center;
  }
}

/* Stagger animation for nth-child 7, 8 (preview cards) */
.stagger > .reveal:nth-child(7) { transition-delay: 0.6s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.7s; }
