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

:root {
  --bg: #f6f5f7;
  --bg-dark: #150826;
  --bg-accent: #002055;
  --text: #150826;
  --text-muted: #575859;
  --text-light: #ffffff;
  --accent: #fa5732;
  --accent-secondary: #6b39bd;
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

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


/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(246, 245, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(21, 8, 38, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  border-radius: 10px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

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


/* ===== Hero ===== */
.hero {
  padding: 120px 0 40px;
  overflow: hidden;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(250, 87, 50, 0.1);
  border-radius: 100px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 48px;
}

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

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-apps {
  display: flex;
  gap: 20px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: #fff;
  border-radius: var(--radius);
  transition: transform 0.3s, box-shadow 0.3s;
  min-width: 130px;
}

.hero-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(21, 8, 38, 0.1);
}

.hero-app-card img {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hero-app-card span {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}


/* ===== App Section ===== */
.app-section {
  padding: 80px 0;
}

.app-section--dark {
  background: linear-gradient(135deg, #0a1628 0%, #104db4 100%);
  color: var(--text-light);
}

.app-section--accent {
  background: linear-gradient(135deg, #001233 0%, #002055 50%, #0a3d91 100%);
  color: var(--text-light);
}

.app-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 60px;
}

.app-icon {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.app-section:not(.app-section--dark):not(.app-section--accent) .app-icon {
  border-color: rgba(0, 0, 0, 0.08);
}

.app-name {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
}

.app-tagline {
  font-size: 18px;
  opacity: 0.7;
  margin-top: 4px;
}

.app-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.app-body--reverse {
  grid-template-columns: 1fr 1.2fr;
}

.app-body--reverse .app-screenshot {
  order: 2;
}

.app-body--reverse .app-info {
  order: 1;
}

.app-screenshot img {
  border-radius: var(--radius);
  max-height: 500px;
  width: auto;
  object-fit: contain;
}

/* App Hero — two-column: info + phones */
.app-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.app-hero .app-header {
  margin-bottom: 24px;
}

.app-hero .app-description {
  margin-bottom: 32px;
}

.app-hero .app-facts {
  margin-bottom: 32px;
}

/* Phone mockups — overlapping pair */
.app-phones {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  min-height: 420px;
}

.phone img {
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone--front {
  position: relative;
  z-index: 2;
  width: 200px;
}

.phone--back {
  position: relative;
  z-index: 1;
  width: 180px;
  margin-right: -40px;
  opacity: 0.7;
  transform: scale(0.92) rotate(-4deg);
}

/* Phones on the left (reverse layout for light sections) */
.app-hero:has(.app-phones--left) {
  grid-template-columns: 1fr 1fr;
}

.app-phones--left {
  order: -1;
}

/* Screenshot gallery — horizontal scroll */
.app-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 20px;
  margin-bottom: 48px;
}

.app-gallery img {
  flex-shrink: 0;
  height: 360px;
  width: auto;
  border-radius: 16px;
  scroll-snap-align: start;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s;
}

.app-gallery img:hover {
  transform: scale(1.03);
}

.app-gallery::-webkit-scrollbar {
  height: 6px;
}

.app-gallery::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.app-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

/* Awards row */
.app-awards-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.app-awards-row .award {
  flex: 1;
  min-width: 220px;
}

.app-section:not(.app-section--dark):not(.app-section--accent) .app-awards-row .award {
  background: rgba(21, 8, 38, 0.04);
}

.app-section:not(.app-section--dark):not(.app-section--accent) .app-gallery img {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Landscape gallery (Smart Driver) */
.app-gallery--landscape img {
  height: 240px;
  width: auto;
  border-radius: var(--radius);
}

/* Banner preview in hero */
.app-banner-preview {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-banner-preview img {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.app-description {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: 36px;
}

.app-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.fact-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.fact-label {
  font-size: 14px;
  opacity: 0.6;
  margin-top: 2px;
}

.app-download {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}


/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all 0.25s;
  border: 2px solid transparent;
  background: var(--accent);
  color: #fff;
}

.btn:hover {
  background: #e04525;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--text);
}

.btn--light:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.7);
}


/* ===== Awards ===== */
.app-awards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.award {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}

.app-section:not(.app-section--dark):not(.app-section--accent) .award {
  background: rgba(21, 8, 38, 0.04);
}

.award-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.award-title {
  font-size: 15px;
  font-weight: 700;
}

.award-desc {
  font-size: 13px;
  opacity: 0.6;
  margin-top: 2px;
}


/* ===== Countries ===== */
.app-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.app-countries span {
  font-size: 24px;
}


/* ===== About ===== */
.about-section {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 48px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: transform 0.3s;
}

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

.about-card-value {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.about-card-label {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}


/* ===== Contact ===== */
.contact-section {
  padding: 60px 0 100px;
}

.contact-inner {
  background: #fff;
  border-radius: 32px;
  padding: 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.contact-card {
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius);
}

.contact-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contact-value {
  font-size: 18px;
  font-weight: 600;
}

a.contact-value {
  color: var(--accent);
  transition: opacity 0.2s;
}

a.contact-value:hover {
  opacity: 0.7;
}


/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  border-top: 1px solid rgba(21, 8, 38, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.footer-logo img {
  border-radius: 8px;
}

.footer-copy {
  font-size: 14px;
  color: var(--text-muted);
}


/* ===== Animations ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title,
.hero-subtitle,
.hero-stats,
.hero-apps {
  animation: fadeInUp 0.8s ease-out both;
}

.hero-subtitle { animation-delay: 0.15s; }
.hero-stats { animation-delay: 0.3s; }
.hero-apps { animation-delay: 0.45s; }


/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .app-body,
  .app-body--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-hero {
    grid-template-columns: 1fr;
  }

  .app-phones {
    min-height: 320px;
  }

  .phone--front {
    width: 160px;
  }

  .phone--back {
    width: 140px;
  }

  .app-gallery img {
    height: 280px;
  }

  .app-awards-row {
    flex-direction: column;
  }

  .app-gallery--landscape img {
    height: 180px;
  }

  .app-body--reverse .app-screenshot {
    order: 0;
  }

  .app-body--reverse .app-info {
    order: 0;
  }

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

@media (max-width: 768px) {
  .hero {
    padding: 110px 0 60px;
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-value {
    font-size: 24px;
  }

  .hero-apps {
    gap: 12px;
  }

  .hero-app-card {
    padding: 16px;
    min-width: 0;
    flex: 1;
  }

  .hero-app-card img {
    width: 56px;
    height: 56px;
  }

  .app-section {
    padding: 60px 0;
  }

  .app-header {
    margin-bottom: 36px;
  }

  .app-icon {
    width: 64px !important;
    height: 64px !important;
  }

  .app-name {
    font-size: 28px;
  }

  .app-facts {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .fact-value {
    font-size: 22px;
  }

  .contact-inner {
    padding: 36px 24px;
    border-radius: var(--radius);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .about-card {
    padding: 24px 20px;
  }

  .about-card-value {
    font-size: 36px;
  }

  .section-title {
    margin-bottom: 32px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero-app-card span {
    font-size: 12px;
  }

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

  .app-facts {
    grid-template-columns: 1fr 1fr;
  }

  .app-gallery img {
    height: 240px;
  }

  .phone--front {
    width: 140px;
  }

  .phone--back {
    width: 120px;
  }

  .app-phones {
    min-height: 280px;
  }

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