/* General Styles & Variables */
:root {
    color-scheme: light dark;
    --bg-start-light: #f0f4ff;
    --bg-end-light: #e0ecff;
    --text-color-light: #333;
    --button-bg-light: #ffffff;
    --button-border-light: #e0e0e0;
    --button-text-light: #333333;
    --button-text-small-light: #666666;
    --button-text-large-light: #000000;
    --button-shadow-light: rgba(0, 0, 0, 0.05);
    --button-hover-shadow-light: rgba(0, 0, 0, 0.1);
    --image-shadow-light: rgba(0,0,0,0.2);

    --bg-start-dark: #1a1a1a;
    --bg-end-dark: #2a2a2a;
    --text-color-dark: #eaeaea;
    --button-bg-dark: #222222;
    --button-border-dark: #333333;
    --button-text-dark: #ffffff;
    --button-text-small-dark: #bbbbbb;
    --button-text-large-dark: #ffffff;
    --button-shadow-dark: rgba(255, 255, 255, 0.05);
    --button-hover-shadow-dark: rgba(255, 255, 255, 0.1);
    --image-shadow-dark: rgba(255,255,255,0.2);
}

/* Apply light theme by default */
body {
    --bg-start: var(--bg-start-light);
    --bg-end: var(--bg-end-light);
    --text-color: var(--text-color-light);
    --button-bg: var(--button-bg-light);
    --button-border: var(--button-border-light);
    --button-text: var(--button-text-light);
    --button-text-small: var(--button-text-small-light);
    --button-text-large: var(--button-text-large-light);
    --button-shadow: var(--button-shadow-light);
    --button-hover-shadow: var(--button-hover-shadow-light);
    --image-shadow: var(--image-shadow-light);

    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: linear-gradient(to bottom right, var(--bg-start), var(--bg-end));
    color: var(--text-color);
    line-height: 1.6;
    width: 100%;
    overflow-x: hidden;
}

/* Apply dark theme based on user preference */
@media (prefers-color-scheme: dark) {
    body {
        --bg-start: var(--bg-start-dark);
        --bg-end: var(--bg-end-dark);
        --text-color: var(--text-color-dark);
        --button-bg: var(--button-bg-dark);
        --button-border: var(--button-border-dark);
        --button-text: var(--button-text-dark);
        --button-text-small: var(--button-text-small-dark);
        --button-text-large: var(--button-text-large-dark);
        --button-shadow: var(--button-shadow-dark);
        --button-hover-shadow: var(--button-hover-shadow-dark);
        --image-shadow: var(--image-shadow-dark);
    }
}

/* Import Google Font - Keep this if used, otherwise remove */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400..700&display=swap');
/* Ensure font-family is applied if Instrument Sans is desired */
/* body { font-family: 'Instrument Sans', sans-serif; } */

/* Layout Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
}

/* Central Image Styles */
.central-image {
    display: block; /* Prevent potential inline spacing issues */
    margin-bottom: 1.5rem; /* Space below image */
    width: 500px;      /* Default width */
    max-width: 100%;   /* Prevent overflow on smaller screens */
    height: auto;      /* Maintain aspect ratio */
    border-radius: 12px;
    box-shadow: 0 0 10px var(--image-shadow);
}

/* Description Text */
.description {
    margin-top: 1.5rem; /* Keep consistent spacing */
    max-width: 600px;
    font-size: 1rem;
}

.description h2 {
    font-size: 1.8rem; /* Slightly larger heading */
    margin-bottom: 0.5rem;
}

/* Links (Button Container) Styles */
.links {
  display: flex;
  flex-direction: column; /* Stack buttons vertically by default */
  gap: 1rem; /* Space between buttons */
  align-items: center; /* Center buttons horizontally */
  width: 100%; /* Take full width for alignment */
  margin-top: 2rem; /* Space above buttons */
  padding: 0 1rem; /* Padding on smaller screens */
  box-sizing: border-box;
}

/* Button Styles */
.button {
  display: flex;
  align-items: center;
  gap: 12px; /* Space between icon and text */
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--button-border);
  box-shadow: 0 2px 4px var(--button-shadow);
  background: var(--button-bg);
  color: var(--button-text);
  width: 100%; /* Make buttons take available width within .links */
  max-width: 250px; /* Max width per button */
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.button:hover {
  box-shadow: 0 4px 8px var(--button-hover-shadow);
  transform: translateY(-2px);
  opacity: 0.9; /* Slight opacity change on hover */
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px var(--button-shadow);
}

/* Button Icon */
.icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--button-text-large); /* Match large text color */
}

/* Button Text Styles */
.button-text {
  flex-grow: 1;
}

.button-text-small {
  display: block;
  font-size: 11px;
  color: var(--button-text-small);
  letter-spacing: 0.5px;
  margin-bottom: 2px; /* Smaller gap */
  text-transform: uppercase; /* Apply uppercase consistently */
}

.button-text-large {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--button-text-large);
}

/* Privacy Policy Link */
.privacy {
    display: inline-block;
    margin-top: 2rem; /* Consistent spacing */
    font-size: 0.9rem;
    text-decoration: underline;
    color: var(--text-color); /* Use theme text color */
}

.privacy:hover {
    opacity: 0.8;
}

a { /* General link style */
    color: #ed782f; /* Consider making this a variable */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
  background: var(--bg-start);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr; /* Single column by default for mobile */
  gap: 2rem;
  text-align: center;
}

/* Medium screens (tablets, larger phones) */
@media (min-width: 600px) {
  .links {
    flex-direction: row; /* Buttons side-by-side */
    justify-content: center; /* Center buttons horizontally */
    padding: 0; /* Remove horizontal padding */
    gap: 1.5rem; /* Increase gap between buttons */
  }

  .features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid for larger screens */
  }

  .button {
     width: auto; /* Allow buttons to size based on content */
     min-width: 220px; /* Ensure a minimum width */
  }

  .description h2 {
    font-size: 2rem; /* Larger heading on larger screens */
  }

   .description p {
        font-size: 1.1rem; /* Slightly larger text */
    }
}

/* Small screens (mobile) - Specific overrides */
@media (max-width: 699px) {
  .links {
    flex-direction: column;
    display: inline-block;
    margin-top: 1.5rem;
    max-width: 300px; /* Further constrain button container width */
    padding: 0 1rem; /* Add some padding on the sides */
  }

  .button {
    max-width: 100%; /* Ensure button doesn't exceed container */
    padding: 8px 12px; /* Slightly smaller padding */
    margin-top: 0.5em;
  }

  .features {
    padding: 2rem 1rem; /* Reduce padding on mobile */
    gap: 1.5rem; /* Reduce gap between features on mobile */
  }

  .feature {
    padding: 1.5rem; /* Reduce padding inside features on mobile */
  }

  .description h2 {
    font-size: 1.6rem;
  }
  .description p {
    font-size: 1rem;
  }

  .button-text-large {
    font-size: 16px; /* Slightly smaller large text */
  }

  .icon {
    width: 28px; /* Slightly smaller icon */
    height: 28px;
  }
}

header {
  background-color: #EC6337FF;
  padding: 0.5rem;
  text-align: center;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
header h1 {
  margin: 0;
  font-size: 2.5rem;
  color: #FFF;
}
.hero {
  padding: 2rem 2rem 4rem 2rem;
  text-align: center;
}
.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}
.cta-button {
  margin-top: 2rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  background-color: #FFA725CC;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.cta-button:hover {
  background-color: #FFA725FF;
}
.screenshots {
  background-color: #f5f5f5;
  padding: 3rem 2rem;
  text-align: center;
}
.screenshots img {
  max-width: 300px;
  margin: 1rem;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.footer {
  background-color: #222;
  color: #eee;
  padding: 2rem;
  text-align: center;
}
.footer a {
  color: #ffd600;
  text-decoration: none;
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  width: 100%;
  max-width: 80vw;
  margin: 0 auto;
  padding: 0 40px;
}

.carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 20px;
}

.carousel-track img {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background-color 0.3s;
}

.carousel-button:hover {
  background: rgba(255, 255, 255, 0.95);
}

.carousel-button.prev {
  left: 0;
}

.carousel-button.next {
  right: 0;
}

/* Desktop styles */
@media (min-width: 768px) {
  .carousel-track {
    animation: scroll 20s linear infinite;
  }

  .carousel-track:hover {
    animation-play-state: paused;
  }

  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-300px * 4)); /* Adjust based on number of images shown */
    }
  }
}

.carousel-buttons-container {
  display: none;
}

/* Mobile styles */
@media (max-width: 767px) {
  .carousel-container {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .carousel {
    width: 100%;
  }

  .carousel-track {
    animation: none;
  }

  .carousel-track img {
    width: 100%;
    max-width: 300px;
  }

  .carousel-button {
    position: static;
    transform: none;
    width: 40px;
    height: 40px;
    font-size: 16px;
    margin: 0 10px;
  }

  .carousel-buttons-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }
}