:root {
  --primary-color: #9b5de5; /* Purple */
  --accent-color: #f15bb5; /* Pink */
  --text-color: #333333;
  --bg-gradient-start: #e0c3fc; /* Light Lavender */
  --bg-gradient-end: #8ec5fc; /* Light Blue */
  --white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  background: linear-gradient(
    180deg,
    var(--bg-gradient-start) 0%,
    var(--bg-gradient-end) 100%
  );
  color: var(--text-color);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  /* Add checkerboard pattern overlay if possible, using a pseudo-element on body or a fixed div */
}

/* Checkerboard pattern overlay */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;
  pointer-events: none;
  z-index: -1;
}

.container {
  width: 100%;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Header Section */
.header {
  margin-bottom: 30px;
  margin-top: 20px;
}

.app-icon {
  width: 80px;
  height: 80px;
  /* background: linear-gradient(135deg, #f15bb5 0%, #9b5de5 100%); */
  background-color: #fff;
  border-radius: 22px;
  margin-bottom: 15px;
  box-shadow: 0 10px 20px rgba(155, 93, 229, 0.3);
  /* display: flex; align-items: center; justify-content: center; */
  /* color: white; font-size: 36px; font-weight: 800; */
  margin-left: auto;
  margin-right: auto;
  border: 3px solid rgba(255, 255, 255, 0.5);
  object-fit: cover;
}

.title {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: 1px;
  color: var(--white);
  text-shadow: 0 4px 0 rgba(155, 93, 229, 0.4);
  font-style: italic; /* Mimic the dynamic feel of Image 2 */
}

.slogan {
  font-size: 16px;
  font-weight: 900;
  color: #702459; /* Darker purple/pink text for contrast against light background */
  text-shadow: none;
  /* Lighter Pastel Gradient: Lavender to Light Pink */
  background: linear-gradient(90deg, #e0c3fc 0%, #ffcbf2 100%);
  padding: 12px 30px;
  border-radius: 50px;
  display: inline-block;

  /* Double border effect: White inner + Light Purple outer */
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px #e0c3fc,
    /* Outer light ring */ 0 10px 20px rgba(155, 93, 229, 0.15); /* Very soft shadow */

  letter-spacing: 1px;
  position: relative;
}

/* Phone Frame Section */
.phone-mockup {
  position: relative;
  width: 300px;
  /* Frame style: White ceramic/silver bezel to match theme */
  border: 4px solid #fff; /* Inner frame */
  border-radius: 46px;
  background-color: #f8f8f8;
  box-shadow:
    0 0 0 2px #d1d1d1,
    /* Silver metallic edge */ 0 0 0 6px #fff,
    /* Outer bezel */ 0 30px 60px rgba(155, 93, 229, 0.4),
    /* Deep purple shadow */ inset 0 0 20px rgba(255, 255, 255, 0.8); /* High gloss */
  margin-bottom: 40px;
  z-index: 10;
  padding: 10px; /* Bezel thickness */
}

/* Side Buttons */
.phone-mockup::before {
  content: "";
  position: absolute;
  top: 100px;
  left: -10px; /* Outside left */
  width: 4px;
  height: 30px;
  background: #fff;
  border-radius: 4px 0 0 4px;
  box-shadow:
    inset -1px 0 1px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

.phone-mockup::after {
  content: "";
  position: absolute;
  top: 80px;
  right: -10px; /* Outside right - Power button */
  width: 4px;
  height: 50px;
  background: #fff;
  border-radius: 0 4px 4px 0;
  box-shadow:
    inset 1px 0 1px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Screen container to clip content */
.phone-screen {
  position: relative;
  width: 100%;
  height: auto;
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  /* Screen reflection/gloss */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.screen-content {
  width: 100%;
  display: block;
  height: auto;
}

/* Background Decorations */
.bg-decoration {
  position: fixed;
  z-index: -2; /* Behind the checkerboard overlay */
  border-radius: 50%;
  filter: blur(40px);
}

.blob-1 {
  width: 300px;
  height: 300px;
  background-color: rgba(241, 91, 181, 0.3); /* Pink blob */
  top: 5%;
  left: -50px;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background-color: rgba(155, 93, 229, 0.3); /* Purple blob */
  bottom: 15%;
  right: -50px;
}

/* Sparkles (Replacing dots) */
.sparkle {
  position: fixed;
  color: var(--white);
  font-size: 24px;
  opacity: 0.8;
  z-index: -1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Buttons Section */
.download-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px; /* Increased gap between groups */
  margin-bottom: 30px;
}

.download-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
  /* Add subtle background for grouping */
  padding: 10px;
  border-radius: 20px;
}

/* Primary Group Styling */
.download-group:first-child {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 15px rgba(155, 93, 229, 0.1);
}

.btn-row {
  display: flex;
  justify-content: center;
  gap: 20px; /* Increased gap between buttons to prevent overlap */
  width: 100%;
  flex-wrap: wrap; /* Allow wrapping on very small screens */
}

.version-label {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  /* Gradient Badge */
  background: linear-gradient(135deg, #9b5de5 0%, #f15bb5 100%);
  padding: 6px 16px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(155, 93, 229, 0.3);
  letter-spacing: 1px;
  border: 2px solid #fff;
  transform: translateY(-20px); /* Floating badge effect */
  margin-bottom: -10px; /* Compensate for transform */
}

.version-label.secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #555;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 13px;
  transform: none;
  margin-bottom: 0;
  backdrop-filter: blur(5px);
}

.btn {
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 50px;
  border: 2px solid transparent; /* Prepare for gradient border */
  font-size: 15px;
  font-weight: 700;
  transition: all 0.3s ease;
  min-width: 140px; /* Slightly wider */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap; /* Prevent text wrapping inside button */
}

/* Primary Buttons (New App) */
.btn-primary {
  color: #9b5de5;
  background: #fff;
  border-color: #fff;
  box-shadow: 0 8px 20px rgba(155, 93, 229, 0.2);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #9b5de5 0%, #f15bb5 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 12px 25px rgba(155, 93, 229, 0.4);
}

/* Secondary Buttons (Old App) */
.btn-secondary {
  color: #555;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  min-width: 130px;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  border-color: #fff;
  transform: translateY(-1px);
}

.footer-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  margin-top: 10px;
  font-weight: 500;
}

.footer-link:hover {
  text-decoration: underline;
  color: var(--white);
}

@media (max-width: 360px) {
  .phone-mockup {
    width: 240px;
  }
  .download-area {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}
