:root {
  --primary: #8a4dff;
  --primary-dark: #6f35e6;
  --primary-light: #a57bff;
  --accent: #ff6b35;
  --white: #ffffff;
  --black: #1a1a2e;
  --background: #ffffff;
  --text: #2d3748;
  --gradient-start: #9a5cff;
  --gradient-end: #6a2fe0;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Hero Section */
.hero {
  flex: 1;
  background: linear-gradient(
    135deg,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: visible;
  padding-top: 60px;
  padding-bottom: 50px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
  background-size: cover;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: var(--white);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 300;
  opacity: 0.9;
}

.app-icon {
  width: 150px;
  height: 150px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 6px solid var(--white);
  background: var(--white);
  transition: transform 0.3s ease;
}

.app-icon:hover {
  transform: scale(1.05);
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 14px 40px;
  margin: 25px 0 35px;
}

.features div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  opacity: 0.95;
}

.features i {
  font-size: 1.4rem;
  opacity: 0.9;
}

/* Download Buttons (store badges) */
.download-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  padding: 10px 24px 10px 20px;
  background: #000;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.store-badge i {
  font-size: 2rem;
}

.store-badge span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.store-badge small {
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
}

.store-badge strong {
  font-size: 1.35rem;
  font-weight: 600;
}

/* Screenshots */
.screens {
  background: var(--white);
  color: var(--text);
  text-align: center;
  padding: 70px 20px 80px;
}

.screens h2 {
  font-size: 2.2rem;
  margin: 0 0 8px;
  color: var(--black);
}

.screens-sub {
  margin: 0 auto 40px;
  max-width: 560px;
  font-size: 1.1rem;
  color: #4a5568;
}

.screens-row {
  display: flex;
  justify-content: flex-start;
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 10px 24px;
}

/* auto margins center the row when it fits, but keep the first image reachable when it overflows */
.screens-row > :first-child {
  margin-left: auto;
}

.screens-row > :last-child {
  margin-right: auto;
}

/* Two images that form one wide panorama: no gap, rounded only on the outside */
.screen-pair {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(26, 26, 46, 0.18);
  scroll-snap-align: start;
}

.screens-row .screen-pair img {
  display: block;
  flex: 0 0 auto;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}

.screens-row img {
  height: 520px;
  width: auto;
  aspect-ratio: 540 / 960;
  flex: 0 0 auto;
  border-radius: 28px;
  box-shadow: 0 12px 30px rgba(26, 26, 46, 0.18);
  scroll-snap-align: center;
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: linear-gradient(135deg, #6f35e6, #5a26c4);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-link {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.footer-link:hover {
  color: #ffdd00;
  transform: translateY(-1px);
}

.footer-link i {
  font-size: 0.8rem;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.7rem;
}

.footer-copyright a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.footer-copyright a:hover {
  color: #ffdd00;
}

/* Responsive Design - Mobile First */
@media (max-width: 768px) {
  /* Hero Section */
  .hero {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .app-icon {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    margin-bottom: 15px;
  }

  /* Features */
  .features {
    gap: 12px;
    margin: 15px 0 20px;
  }

  .features div {
    font-size: 0.9rem;
    gap: 6px;
  }

  .features i {
    font-size: 0.9rem;
  }

  /* Store badges */
  .download-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .store-badge {
    min-width: 190px;
    padding: 8px 20px 8px 16px;
  }

  .store-badge i {
    font-size: 1.6rem;
  }

  .store-badge strong {
    font-size: 1.15rem;
  }

  /* Screenshots */
  .screens {
    padding: 50px 0 60px;
  }

  .screens h2 {
    font-size: 1.7rem;
  }

  .screens-sub {
    font-size: 1rem;
    padding: 0 20px;
    margin-bottom: 28px;
  }

  .screens-row {
    justify-content: flex-start;
    gap: 16px;
    padding: 10px 24px 24px;
  }

  .screens-row img {
    height: 440px;
    border-radius: 22px;
  }

  /* Footer */
  .footer {
    padding: 15px;
  }

  .footer-links {
    gap: 16px;
    margin-bottom: 8px;
  }

  .footer-link {
    font-size: 0.8rem;
  }

  .footer-link i {
    font-size: 0.65rem;
  }

  .footer-copyright {
    font-size: 0.7rem;
  }
}

/* Extra Small Screens (under 480px) */
@media (max-width: 480px) {
  .hero {
    padding-top: 32px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
  }

  .features {
    grid-template-columns: auto;
    gap: 10px;
  }

  .features div {
    font-size: 0.85rem;
  }

  .screens-row img {
    height: 400px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-link {
    font-size: 0.75rem;
  }
}

/* For screens above 2560px */
@media only screen and (min-width: 2560px) {
  .hero-content h1 {
    font-size: 5rem;
  }

  .hero-content p {
    font-size: 2rem;
  }

  .app-icon {
    width: 250px;
    height: 250px;
  }

  .store-badge {
    min-width: 260px;
    padding: 14px 32px 14px 26px;
  }

  .store-badge i {
    font-size: 2.6rem;
  }

  .store-badge strong {
    font-size: 1.8rem;
  }

  .screens-row img {
    height: 700px;
  }
}

/* Prism Dash: store badges are placeholders until the store pages are live */
.store-badge.soon {
  cursor: default;
  opacity: 0.85;
}

.store-badge.soon:hover {
  transform: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
