:root {
  --font-family: 'Segoe UI', Arial, sans-serif;
  --primary-color: #0072ce;
  --primary-dark: #005fa3;
  --ios-color: #222;
  --ios-dark: #444;
  --success-color: #1db954;
  --inactive-color: #666;
  --body-bg: #f8f9fa;
  --text-color: #222;
  --bg-dark: #000;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--body-bg);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}

header {
  position: relative;
  width: 100vw;
  height: 48px;
  background: transparent;
  z-index: 10;
  display: flex;
  align-items: center;
}

.main-site-link {
  position: static;
  display: flex;
  align-items: center;
  height: auto;
  width: auto;
  background: transparent;
  padding: 0;
  box-shadow: none;
}
.logo-title {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0.2rem;
}
.logo-img-title {
  width: -webkit-fill-available;
  max-width: 340px;
  height: auto;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.logo-long-img {
  display: block;
  max-width: 7vw;
  max-height: 7vh;
  width: auto;
  height: auto;
  border-radius: 6px;
  transition: box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.main-site-link:hover .logo-long-img {
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transform: scale(1.04);
}

.logo-link {
  position: absolute;
  right: 16px;
  top: 4px;
  display: flex;
  align-items: center;
  height: 40px;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 6px;
  transition: box-shadow 0.2s, transform 0.1s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.logo-link:hover .logo-img {
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
  transform: scale(1.04);
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  margin-top: -25vh;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.download-buttons {
  display: flex;
  gap: 2rem;
}

.download-btn {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 8px;
  background: var(--inactive-color);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, transform 0.1s;
}
.download-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--bg-dark);
  border-top: 1px solid var(--ios-color);
  font-size: 0.95rem;
  z-index: 10;
  padding: 8px 0;
  color: #fff;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100vw;
  margin: 0;
  color: #fff;
}
.footer-content .copyright {
  text-align: left;
  justify-self: flex-start;
  margin-left: 5px;
}
.footer-content .contact {
  text-align: right;
  justify-self: flex-end;
  margin-right: 5px;
}
.footer-content .contact a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .download-buttons {
    flex-direction: column;
    gap: 1.2rem;
  }

  .footer-content {
    flex-direction: row;
    gap: 0;
    align-items: center;
    padding: 0 10px;
  }

  main {
    margin-top: 60px;
    margin-bottom: 80px;
  }

  header {
    height: 56px;
  }

  .logo-link {
    top: 8px;
    right: 8px;
    height: 36px;
  }

  .logo-img {
    height: 36px;
  }

  .main-site-link {
    margin-left: 8px;
  }

  .logo-title {
    margin-top: 4vh;
    min-height: 0;
    margin-bottom: 0;
  }

  .logo-img-title {
    max-width: 90vw;
    width: 180px;
  }

  .logo-long-img {
    height: 28px;
  }

  .main-content-box {
    padding: 0 4vw 18px 4vw;
    max-width: 95vw;
    height: auto;
    min-height: 0;
  }

  .header-logo-box {
    padding: 8px 8px 4px 8px;
    margin-left: 0;
    margin-top: 8px;
  }
}

.background-carousel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}
.background-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.45);
  z-index: 2;
  pointer-events: none;
}
.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease;
  filter: grayscale(100%);
  pointer-events: none;
}
.carousel-image.active {
  opacity: 0.3;
  z-index: 1;
}

header, main, footer, .logo-title {
  position: relative;
  z-index: 2;
}

.main-content-box {
  background: rgba(0,0,0,0.95);
  border-radius: 22px;
  padding: 0 48px 40px 48px;
  box-shadow: 0 40px 120px 24px rgba(0,0,0,0.85), 0 8px 32px 0 rgba(0,0,0,0.38);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.main-content-box, .main-content-box * {
  color: #fff !important;
}

.main-content-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 1rem;
  gap: 0.7rem;
}
.main-content-bottom h1 {
  margin: 0 0 0.2rem 0;
}
.main-content-bottom .app-info {
  margin: 0 0 0.6rem 0;
}
.main-content-bottom .download-buttons {
  gap: 2rem;
}

.header-logo-box {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  padding: 10px 18px 6px 18px;
  z-index: 12;
}
.header-logo-box .logo-long-img {
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.18));
}

@media (max-width: 1439px) {
  .site-header,
  .header-logo-box {
    display: none;
  }
}

.app-info {
  color: #e0e0e0;
  font-size: 1.08rem;
  text-align: center;
  margin: 0 0 1.5rem 0;
  line-height: 1.5;
  max-width: 420px;
}

.platform-detect-msg {
  font-size: 0.98rem;
  color: #b0b0b0;
  margin-top: 0.3rem;
  text-align: center;
}

.app-info-disclaimer {
  color: #ff0000 !important;
  font-size: 0.92rem;
  margin-top: 0;
}
