:root {
  --primary: #2dd4bf;
  --primary-dark: #14b8a6;
  --secondary: #3b82f6;
  --accent: #f472b6;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: "Fredoka", sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
  font-size: 28px;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  font-size: 18px;
  transition: all 0.2s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: 56px;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(
    135deg,
    var(--text-main) 0%,
    var(--primary-dark) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(45, 212, 191, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-lg);
}

.btn.disabled {
  opacity: 0.5;
  filter: grayscale(0.8);
  cursor: not-allowed;
  pointer-events: none;
  border: 1px dashed var(--text-muted);
  box-shadow: none;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.floating-phone {
  max-width: 320px;
  border-radius: 32px;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* Very subtle shadow */
  transform: rotate(-3deg);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(-3deg);
  }
  50% {
    transform: translateY(-20px) rotate(-3deg);
  }
  100% {
    transform: translateY(0px) rotate(-3deg);
  }
}

/* Features */
.features {
  padding: 120px 0;
  background: linear-gradient(to bottom, #ffffff 0%, var(--background) 100%);
}

.features h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex: 1 1 300px;
  max-width: 360px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-card .icon {
  font-size: 48px;
  margin-bottom: 24px;
  background: var(--background);
  width: 96px;
  height: 96px;
  line-height: 96px;
  border-radius: 24px;
  margin-inline: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.feature-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 16px;
}

/* Gallery */
.gallery {
  padding: 120px 0;
  background-color: #fafafa;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-main);
}

.section-header h2 span {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 20px 0;
}

.screenshot-item {
  flex: 0 1 280px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.screenshot-item:hover {
  transform: translateY(-8px);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: white;
  display: block;
}

/* Footer */
footer {
  background-color: white;
  padding: 80px 0 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
}

.footer-logo img {
  border-radius: 8px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 24px;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for feature cards */
.feature-card:nth-child(2) {
  transition-delay: 0.1s;
}
.feature-card:nth-child(3) {
  transition-delay: 0.2s;
}
.feature-card:nth-child(4) {
  transition-delay: 0.3s;
}

/* Responsive Improvements */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .floating-phone {
    max-width: 280px;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 36px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .screenshot-item {
    flex: 0 1 calc(50% - 16px);
    min-width: 140px;
  }

  .screenshot-item img {
    height: auto;
    border-radius: 20px;
  }

  .screenshot-grid {
    gap: 16px;
    padding: 0 10px;
  }

  .navbar {
    height: 70px;
  }

  .logo {
    font-size: 24px;
  }

  .logo img {
    width: 40px;
    height: 40px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links a {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .screenshot-item {
    flex: 0 1 100%; /* Single column on very small phones */
    max-width: 320px;
  }

  .feature-card {
    flex: 1 1 100%;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
