* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1f2937;
  background: #f8fafc;
  line-height: 1.6;
}

a {
  color: #0f766e;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  background: #0f172a;
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 64px;
}

.brand strong {
  font-size: 1.2rem;
}

.brand::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: url("../img/logo.png") center/contain no-repeat;
}

.brand span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav a {
  color: #f8fafc;
  font-weight: 600;
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}

nav a:hover {
  text-decoration: none;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 3px;
  background: #22c55e;
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #f8fafc;
  padding: 2px 4px;
  cursor: pointer;
  line-height: 1;
}

.menu-toggle .menu-icon {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.apk-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
}

.apk-modal.is-visible {
  display: block;
}

.apk-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.apk-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, 92%);
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 18px 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #0f172a;
}

.apk-modal__card h3 {
  margin: 0 0 8px;
}

.apk-modal__card p {
  margin: 0 0 8px;
}

.apk-modal__card ol {
  margin: 0 0 12px 20px;
  padding: 0;
}

.apk-modal__button {
  border: 0;
  background: #0ea5e9;
  color: #ffffff;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

main {
  padding: 36px 0 56px;
}

.hero {
  background: linear-gradient(135deg, #0f766e 0%, #0369a1 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 44px 36px;
  margin-bottom: 28px;
}

.hero--home {
  position: relative;
  overflow: hidden;
  min-height: min(420px, 70vh);
  padding: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 36px 40px 36px 24px;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 0;
}

.hero__photo {
  flex: 1 1 50%;
  min-height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero__photo--food {
  background-image: url("https://images.unsplash.com/photo-1546069901-ba9599a7e63c?auto=format&fit=crop&w=900&q=80");
}

.hero__photo--grocery {
  background-image: url("https://images.unsplash.com/photo-1588966545850-4884d6749b58?auto=format&fit=crop&w=900&q=80");
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.25) 0%,
      rgba(15, 23, 42, 0.35) 35%,
      rgba(15, 23, 42, 0.55) 70%,
      rgba(15, 23, 42, 0.6) 100%
    ),
    linear-gradient(
      135deg,
      rgba(15, 118, 110, 0.2) 0%,
      rgba(3, 105, 161, 0.35) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  flex: 0 1 min(520px, 48%);
  max-width: min(520px, 100%);
  margin: 0;
  padding: 0;
  color: #ffffff;
  text-align: left;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), 0 2px 12px rgba(0, 0, 0, 0.25);
}

.hero--home .hero__content h1,
.hero--home .hero__content p {
  color: #ffffff;
}

.hero-logo-image {
  display: block;
  margin-bottom: 10px;
  max-width: 100%;
}

.hero h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 2.1rem;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  display: inline-block;
  padding: 11px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.btn-primary {
  background: #f8fafc;
  color: #0f172a;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.7rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid #e2e8f0;
}

.card h3 {
  margin-top: 0;
}

.muted {
  color: #64748b;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.list {
  padding-left: 18px;
}

.input,
.select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  background: #ffffff;
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.price {
  font-weight: 700;
  color: #0f172a;
}

.btn-dark {
  background: #0f172a;
  color: #ffffff;
  border: 0;
  cursor: pointer;
}

.btn-android {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #0ea5e9;
  border-radius: 10px;
  padding: 9px 14px;
  color: #0369a1;
  background: #e0f2fe;
  font-weight: 700;
}

.btn-android:hover {
  text-decoration: none;
  background: #bae6fd;
}

.android-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.android-badge .robot {
  font-size: 1rem;
}

.android-badge .label {
  font-size: 0.55rem;
  margin-top: 1px;
  color: #0c4a6e;
  text-transform: lowercase;
}

.cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.tag {
  display: inline-block;
  background: #e2e8f0;
  color: #0f172a;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 0.8rem;
  font-weight: 600;
}

.app-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
}

.app-showcase.reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.app-showcase.reverse .app-visual {
  order: 2;
}

.app-showcase.reverse .app-copy {
  order: 1;
}

.app-visual {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 10px;
  min-height: 250px;
}

.app-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

.app-copy h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.app-copy p {
  margin-top: 0;
}

.app-copy .btn {
  margin-top: 6px;
}

.whatsapp-btn {
  background: #25d366;
  color: #052e16;
}

.pre-footer {
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  padding: 28px 0;
}

.pre-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}

.pre-footer h4 {
  margin: 0 0 10px;
}

.pre-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pre-footer li {
  margin: 6px 0;
}

footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 22px 0;
}

footer p {
  margin: 0;
  text-align: center;
}

@media (max-width: 820px) {
  .topbar {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .topbar.nav-open nav {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  nav li {
    width: 100%;
  }

  nav a {
    width: 100%;
    display: inline-block;
  }

  .hero--home {
    min-height: min(520px, 75vh);
    justify-content: center;
    padding: 20px 18px 24px;
  }

  .hero__backdrop {
    flex-direction: column;
  }

  .hero__photo {
    flex: 1 1 45%;
    min-height: 140px;
  }

  .hero__content {
    flex: 1 1 auto;
    max-width: none;
    text-align: center;
  }

  .hero--home .hero__content h1 {
    font-size: 1.55rem;
  }

  .hero--home .cta-row {
    justify-content: center;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .app-showcase,
  .app-showcase.reverse {
    grid-template-columns: 1fr;
  }

  .app-showcase.reverse .app-visual,
  .app-showcase.reverse .app-copy {
    order: unset;
  }

  .hero {
    padding: 30px 22px;
  }
}
