:root {
  --primary-color: #596c68;
  --secondary-color: #e3d9ca;
  --title-text-color: #ffffff;
  --subtitle-text-color: #E8E8E8;
  --footer-color: #2d3748;
  --white: #ffffff;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-dark);
  line-height: 1.6;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Mobile: allow scrolling */
@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow: visible;
    position: static;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

/* Mobile: allow scrolling with padding */
@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    height: auto;
    padding: 40px 0;
    overflow: visible;
  }
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
}

.hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Desktop specific alignment */
@media (min-width: 769px) {
  .hero-text {
    text-align: left;
    align-items: flex-start;
  }
}

/* Button visibility control */
.mobile-buttons {
  display: none;
}

.desktop-buttons {
  display: flex;
}

/* Ensure mobile buttons are hidden on desktop */
@media (min-width: 481px) {
  .mobile-buttons {
    display: none !important;
  }
}

.app-icon {
  margin-bottom: 30px;
}

.app-icon img {
  width: 120px;
  height: 120px;
  border-radius: 22px;
  box-shadow: 0 10px 30px var(--shadow-light);
}

h1 {
  font-size: 5rem;
  font-weight: 700;
  color: var(--title-text-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.3rem;
  color: var(--subtitle-text-color);
  margin-bottom: 40px;
  font-weight: 400;
}

.download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s ease;
  min-width: 180px;
}

.btn-primary {
  background: var(--white);
  color: #333333;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #e0e0e0;
}

.btn-primary:hover {
  background: #f8f8f8;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 2px solid #d0d0d0;
}

.btn-secondary {
  background: var(--white);
  color: #333333;
  border: 2px solid #e0e0e0;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #f8f8f8;
  color: #000000;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.15);
  border: 2px solid #d0d0d0;
}

/* Hero Images */
.hero-images {
  display: flex;
  gap: 30px;
  justify-content: center;
  background: transparent;
}

.phone-mockup {
  position: relative;
  background: transparent !important;
  border: none;
  padding: 0;
  margin: 0;
}

.screenshot {
  width: 250px;
  height: auto;
  border-radius: 25px;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none;
  display: block;
  border: none;
  outline: none;
  -webkit-background-clip: padding-box;
  background-clip: padding-box;
}

.phone-mockup:nth-child(2) {
  margin-top: 40px;
}

/* Footer */
.footer {
  background: var(--white);
  color: #333333;
  padding: 20px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile: footer flows normally */
@media (max-width: 768px) {
  .footer {
    position: static;
    padding: 30px 0;
  }
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: rgba(0, 0, 0, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #000000;
}

.footer-credit {
  color: rgba(0, 0, 0, 0.7);
}

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

.footer-credit a:hover {
  text-decoration: underline;
}

/* Responsive Design */

/* Mobile First - Small phones (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    min-height: 90vh;
    padding: 40px 0;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    order: 1;
  }

  .app-icon {
    margin-bottom: 25px;
  }

  .app-icon img {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 3.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
    line-height: 1.4;
    opacity: 0.95;
  }

  /* Show mobile buttons, hide desktop buttons */
  .mobile-buttons {
    display: flex;
    order: 4;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    margin-top: 35px;
  }
  
  .desktop-buttons {
    display: none;
  }

  .hero-images {
    order: 3;
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }

  /* Hide second screenshot on mobile */
  .phone-mockup:nth-child(2) {
    display: none;
  }

  .phone-mockup:nth-child(1) {
    margin: 0;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    padding: 16px 28px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 14px;
  }

  .screenshot {
    width: 85vw;
    max-width: 320px;
    border-radius: 20px;
  }

  .footer {
    padding: 30px 0;
  }

  .footer-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 15px;
  }
}

/* Tablets and larger phones (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero {
    min-height: 95vh;
    padding: 60px 0;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    text-align: center;
    order: 1;
  }

  .hero-text .download-buttons {
    display: none;
  }

  .hero-images {
    order: 2;
    gap: 25px;
    justify-content: center;
  }

  .mobile-buttons {
    order: 3;
    display: flex !important;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-direction: row;
  }

  .app-icon img {
    width: 100px;
    height: 100px;
  }

  h1 {
    font-size: 3rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1.2rem;
    margin-bottom: 35px;
  }

  .btn {
    min-width: 200px;
    padding: 15px 30px;
  }

  .screenshot {
    width: 200px;
  }

  .phone-mockup:nth-child(2) {
    margin-top: 15px;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* Small desktops (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content {
    gap: 50px;
  }

  h1 {
    font-size: 4rem;
  }

  .screenshot {
    width: 220px;
  }

  .download-buttons {
    gap: 18px;
  }
}

/* Large screens optimization */
@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }

  h1 {
    font-size: 5rem;
  }

  .subtitle {
    font-size: 1.4rem;
  }

  .screenshot {
    width: 280px;
  }
}