/* ─── Global Reset & Variable definitions ─────────────────── */
:root {
  --primary-blue: #5B8DEF;
  --primary-blue-dark: #1B4DDB;
  --primary-blue-container: #3F68F5;
  --on-primary: #FFFFFF;
  
  --primary-green: #087A4F;
  --primary-green-dark: #065F3D;
  --primary-green-container: #34A853;
  
  --surface: #F8F9FB;
  --surface-lowest: #FFFFFF;
  --surface-low: #F2F4F6;
  --surface-container: #ECEEF0;
  --surface-high: #E6E8EA;
  --surface-highest: #E0E3E5;
  
  --on-surface: #191C1E;
  --on-surface-variant: #434655;
  --outline: #747686;
  --outline-variant: #C4C5D7;
  
  --error: #BA1A1A;
  --success: #2E7D32;
  --warning: #F9A825;
  
  --font-family: 'Cairo', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(25, 28, 30, 0.04);
  --shadow-md: 0 8px 24px rgba(25, 28, 30, 0.08);
  --shadow-lg: 0 16px 48px rgba(25, 28, 30, 0.12);
  --shadow-inset-glass: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn--primary {
  background-color: var(--primary-blue);
  color: var(--on-primary);
  box-shadow: 0 4px 14px rgba(91, 141, 239, 0.4);
}

.btn--primary:hover {
  background-color: var(--primary-blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 141, 239, 0.5);
}

.btn--green {
  background-color: var(--primary-green);
  color: var(--on-primary);
  box-shadow: 0 4px 14px rgba(8, 122, 79, 0.4);
}

.btn--green:hover {
  background-color: var(--primary-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 122, 79, 0.5);
}

.btn--ghost {
  background-color: transparent;
  color: var(--primary-blue-container);
  border: 2px solid var(--primary-blue-container);
}

.btn--ghost:hover {
  background-color: rgba(91, 141, 239, 0.08);
  transform: translateY(-2px);
}

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(248, 249, 2FB, 0.85);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(236, 238, 240, 0.5);
  transition: var(--transition-smooth);
}

.navbar--scrolled {
  background-color: var(--surface-lowest);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-blue-dark);
}

.navbar__logo-img {
  height: 55px;
  width: auto;
  border-radius: 8px;
}

.navbar__logo-text {
  font-weight: 900;
}

.navbar__links {
  display: flex;
  gap: 32px;
}

.navbar__links a {
  font-weight: 500;
  color: var(--on-surface-variant);
  transition: var(--transition-smooth);
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transform: scaleX(0);
  transition: var(--transition-smooth);
}

.navbar__links a:hover {
  color: var(--primary-blue);
}

.navbar__links a:hover::after {
  transform: scaleX(1);
}

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.navbar__burger span {
  width: 100%;
  height: 2px;
  background-color: var(--on-surface);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.burger--active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.burger--active span:nth-child(2) {
  opacity: 0;
}

.burger--active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.navbar__links--active {
  display: flex !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--surface-lowest);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  font-size: 1.5rem;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out forwards;
}

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

/* ─── Hero Section ──────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 140px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--surface-lowest);
  overflow: hidden;
}

.hero__bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
}

.hero__shape--1 {
  top: -10%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary-blue);
}

.hero__shape--2 {
  bottom: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--primary-green);
}

.hero__shape--3 {
  top: 40%;
  left: 30%;
  width: 300px;
  height: 300px;
  background: var(--primary-blue-container);
  opacity: 0.1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(91, 141, 239, 0.1);
  color: var(--primary-blue-dark);
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 9999px;
  margin-bottom: 24px;
  border: 1px solid rgba(91, 141, 239, 0.2);
}

.hero__title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--on-surface);
}

.hero__title--gradient {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: var(--on-surface-variant);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

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

.hero__trust-avatars {
  display: flex;
  flex-direction: row-reverse;
}

.hero__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--surface-lowest);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: -12px;
}

.hero__trust-text {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-surface-variant);
}

/* ─── Phone Mockups ─────────────────────────────────────── */
.hero__phones {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 600px;
}

.phone {
  position: absolute;
  width: 270px;
  height: 560px;
  background-color: #000;
  border-radius: 40px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transition: var(--transition-smooth);
}

.phone__frame {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background-color: #fff;
  border: 2px solid #222;
}

.phone__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone--renter {
  z-index: 5;
  transform: translateX(60px) translateY(-20px) rotate(-6deg);
}

.phone--provider {
  z-index: 4;
  transform: translateX(-100px) translateY(40px) rotate(6deg);
}

.hero__phones:hover .phone--renter {
  transform: translateX(90px) translateY(-30px) rotate(-3deg);
}

.hero__phones:hover .phone--provider {
  transform: translateX(-130px) translateY(50px) rotate(3deg);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--outline);
  font-size: 0.85rem;
  font-weight: 700;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* ─── Features ────────────────────────────────────────── */
.features {
  padding: 100px 0;
  background-color: var(--surface);
}

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

.section-header__badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: rgba(91, 141, 239, 0.08);
  color: var(--primary-blue-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.section-header__title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--on-surface);
}

.section-header__subtitle {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background-color: var(--surface-lowest);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  border: 1px solid rgba(236, 238, 240, 0.8);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

.feature-card--highlight {
  border-color: rgba(91, 141, 239, 0.3);
  background-gradient: linear-gradient(to bottom, #ffffff, #f0f4ff);
}

.feature-card__icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.feature-card__desc {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── App Showcase ────────────────────────────────────── */
.app-showcase {
  padding: 120px 0;
  background-color: var(--surface-lowest);
  position: relative;
  overflow: hidden;
}

.app-showcase--renter {
  background: linear-gradient(180deg, var(--surface-lowest) 0%, var(--surface-low) 100%);
}

.app-showcase--provider {
  background: linear-gradient(180deg, var(--surface-low) 0%, var(--surface-lowest) 100%);
}

.app-showcase__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.app-showcase__inner--reversed {
  grid-template-columns: 1.1fr 1fr;
}

.app-showcase__screens {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 600px;
}

.phone--showcase {
  position: absolute;
  width: 250px;
  height: 520px;
}

.phone--tilt-right {
  transform: translateX(-40px) translateY(30px) rotate(8deg);
  z-index: 1;
  opacity: 0.7;
}

.phone--tilt-left {
  transform: translateX(40px) translateY(30px) rotate(-8deg);
  z-index: 1;
  opacity: 0.7;
}

.phone--front {
  transform: translateX(0) translateY(0) rotate(0);
  z-index: 10;
  opacity: 1;
}

.app-showcase__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-showcase__label {
  display: inline-block;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 9999px;
  margin-bottom: 20px;
}

.app-showcase__title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--on-surface);
}

.app-showcase__desc {
  font-size: 1.1rem;
  color: var(--on-surface-variant);
  margin-bottom: 32px;
}

.app-showcase__features {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-showcase__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--on-surface);
}

.app-showcase__check {
  font-size: 1.2rem;
  font-weight: 800;
}

/* ─── Stats ───────────────────────────────────────────── */
.stats {
  padding: 80px 0;
  background-color: var(--primary-blue-dark);
  color: #fff;
  position: relative;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-card__number {
  font-size: 3rem;
  font-weight: 900;
}

.stat-card__label {
  font-size: 1.1rem;
  opacity: 0.8;
  font-weight: 500;
}

/* ─── How It Works ────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background-color: var(--surface);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-top: 40px;
}

.step {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step__number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 24px;
  box-shadow: var(--shadow-md);
}

.step__content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step__content p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
}

.step__connector {
  width: 80px;
  height: 2px;
  background-color: var(--outline-variant);
  margin-top: 32px;
}

/* ─── Download CTA ────────────────────────────────────── */
.download {
  padding: 100px 0;
  background-color: var(--surface-lowest);
  position: relative;
  overflow: hidden;
}

.download__bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.download__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.08;
}

.download__shape--1 {
  top: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary-blue);
}

.download__shape--2 {
  bottom: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: var(--primary-green);
}

.download__inner {
  position: relative;
  z-index: 5;
  text-align: center;
}

.download__title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
}

.download__subtitle {
  font-size: 1.2rem;
  color: var(--on-surface-variant);
  margin-bottom: 60px;
}

.download__apps {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.download__app {
  flex: 1;
  background-color: var(--surface);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid var(--surface-container);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download__app-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.download__app h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.download__app p {
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.download__divider {
  width: 1px;
  background-color: var(--surface-container);
}

.download__badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: var(--on-surface);
  color: #fff;
  padding: 12px 24px;
  border-radius: 14px;
  transition: var(--transition-smooth);
  width: 100%;
  justify-content: center;
}

.store-badge:hover {
  background-color: #000;
  transform: translateY(-2px);
}

.store-badge div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.store-badge small {
  font-size: 0.75rem;
  opacity: 0.8;
}

.store-badge strong {
  font-size: 1.05rem;
  font-weight: 700;
}

/* ─── Footer ──────────────────────────────────────────── */
.footer {
  background-color: var(--on-surface);
  color: #fff;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.8rem;
  font-weight: 900;
}

.footer__logo-img {
  height: 55px;
  width: auto;
  border-radius: 8px;
}

.footer__brand p {
  opacity: 0.7;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer__col a {
  opacity: 0.7;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.footer__col a:hover {
  opacity: 1;
  color: var(--primary-blue);
}

.footer__bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  opacity: 0.5;
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
  }
  
  .hero__title {
    font-size: 2.8rem;
  }
  
  .hero__subtitle {
    margin: 0 auto 32px;
  }
  
  .hero__actions {
    justify-content: center;
  }
  
  .hero__trust {
    justify-content: center;
  }
  
  .hero__phones {
    height: 480px;
  }
  
  .phone {
    width: 220px;
    height: 450px;
  }
  
  .app-showcase__inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .app-showcase__inner--reversed {
    grid-template-columns: 1fr;
  }
  
  .app-showcase__screens {
    height: 450px;
    order: 2;
  }
  
  .app-showcase__content {
    align-items: center;
    text-align: center;
  }
  
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .navbar__links {
    display: none;
  }
  
  .navbar__cta {
    display: none;
  }
  
  .navbar__burger {
    display: flex;
  }
  
  .steps {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
  
  .step-connector {
    display: none;
  }
  
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download__apps {
    flex-direction: column;
    gap: 32px;
  }
  
  .download__divider {
    width: 100%;
    height: 1px;
  }
}
