:root {
  --header-bg: rgba(0, 0, 0, 0.3);
  --header-h:  40px;
  --muted:     #999;
  --black:     #0c0c0c;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-weight: 500;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  width: 69.6%;
  max-width: 1322px;
  margin: 1rem auto 0;
  height: var(--header-h);
  background: var(--header-bg);
  border-radius: 99px;
  transition: background 0.3s ease, border-radius 0.3s ease;
}

.header.scrolled {
  background: rgba(0, 0, 0, 0.7);
}

.header-inner {
  height: 100%;
  padding: 0 1.75rem;
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  height: var(--header-h);
  padding: 0 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.nav-link.active::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(1.14);
  background: rgba(0, 0, 0, 0.3);
  z-index: -1;
}

.header-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.search-input {
  background: rgba(0, 0, 0, 0.3);
  border: none;
  outline: none;
  padding: 0 1rem;
  height: 20.4px;
  width: 126px;
  font-size: 0.88rem;
  color: #fff;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  transition: width 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.search-input:focus {
  width: 170px;
  background: #fff;
  color: #333;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus::placeholder {
  color: #999;
}

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  border: none;
  width: 20.4px;
  height: 20.4px;
  padding: 0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-input:focus ~ .search-btn {
  background: #fff;
  color: #333;
}

.search-btn:hover {
  background: rgb(0, 155, 74);
}

.search-input:focus ~ .search-btn:hover {
  background: #e6e6e6;
}

.hero-image {
  position: relative;
  width: calc(100% - 4rem);
  margin: 0 auto;
  aspect-ratio: 21 / 9;
  max-height: 78vh;
  background: #d9d9d9;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}

.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  max-width: 580px;
  pointer-events: none;
}

.main {
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.4rem;
}

.image-row {
  display: flex;
  gap: 0.4rem;
  width: 100%;
}

.placeholder-img {
  width: calc((100% - 0.8rem) / 3);
  flex-shrink: 0;
  height: 420px;
  background: #d9d9d9;
  overflow: hidden;
}

.placeholder-img:nth-child(1) {
  border-radius: 0 12px 12px 0;
}

.placeholder-img:nth-child(2) {
  border-radius: 12px;
}

.placeholder-img:nth-child(3) {
  border-radius: 12px 0 0 12px;
}

.placeholder-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
}


/* ── Footer ── */
.footer {
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  max-width: 1900px;
  margin: 0 auto;
  padding: 0 21%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-divider {
  width: 69.6%;
  max-width: 1322px;
  margin: 0 auto 0.4rem;
  height: 2px;
  background: #dcdcdc;
}

.footer > .footer-divider:last-child {
  margin: 0.4rem auto 0;
}

.badge-row {
  display: none;
}

.store-badge {
  display: block;
  width: auto;
}

.badge-chrome {
  height: 53.2px;
}

/* Google Play image has ~30% whitespace top/bottom — scale up so visible badge matches Chrome */
.badge-gplay {
  height: 105px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-links > *:not(:last-child)::after {
  content: '|';
  margin-left: 1.2rem;
  color: #dcdcdc;
  font-size: 1.1088rem;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  font-size: 1.1088rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a.active {
  color: #666;
}

/* ── Footer dropdown ── */
.footer-dropdown-wrap {
  position: relative;
}

.footer-drop-trigger {
  cursor: pointer;
}

.footer-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0;
  box-shadow: none;
  min-width: 140px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px);
  transition: opacity 0.15s linear, transform 0.15s linear;
}

.footer-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.footer-dropdown-item {
  display: block;
  padding: 0.65rem 1.1rem;
  color: rgba(0, 0, 0, 0.6) !important;
  font-size: 0.9rem !important;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s !important;
}

.footer-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #4da3e8 !important;
}

/* ── Mobile / responsive ── */
@media (max-width: 768px) {
  .main {
    min-height: 65vh;
  }

  .header,
  .footer-divider {
    width: 92%;
  }

  .header {
    border-radius: 0;
  }

  .header.scrolled {
    border-radius: 20px;
  }

  .header-inner {
    padding: 0 1.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .header-search {
    display: none;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: rgba(20, 20, 20, 0.92);
    border-radius: 16px;
    padding: 0.5rem;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-link {
    height: auto;
    width: 100%;
    padding: 0.85rem 1rem;
    justify-content: flex-start;
    border-radius: 8px;
  }

  .nav-link.active::before {
    transform: none;
    border-radius: 8px;
  }

  .hero-image {
    width: 92%;
    aspect-ratio: 7 / 9;
    max-height: 90vh;
  }

  .hero-logo {
    width: 110%;
    max-width: none;
  }

  .footer-inner {
    padding: 0 1.5rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.5rem;
  }

  .image-row {
    position: relative;
    width: 92%;
    margin: 0 auto;
    height: 260px;
    overflow: hidden;
  }

  .placeholder-img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    border-radius: 18px !important;
    transform: translateX(100%);
    transition: transform 0.6s ease;
  }

  .placeholder-img.slide-active {
    transform: translateX(0);
  }

  .placeholder-img.slide-prev {
    transform: translateX(-100%);
  }

  .placeholder-img.no-transition {
    transition: none !important;
  }
}
