/* ===== CSS Variables ===== */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(220, 20%, 10%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(220, 20%, 10%);
  --primary: hsl(220, 20%, 10%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(220, 14%, 96%);
  --secondary-foreground: hsl(220, 20%, 10%);
  --muted: hsl(220, 14%, 96%);
  --muted-foreground: hsl(220, 10%, 46%);
  --accent: hsl(153, 60%, 45%);
  --accent-foreground: hsl(0, 0%, 100%);
  --border: hsl(220, 14%, 90%);
  --radius: 0.75rem;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== MODAL STYLES ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: var(--background);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease-out;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.modal-close:hover {
  color: var(--foreground);
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.modal-subtitle {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.download-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  background-color: var(--card);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.download-option:hover {
  border-color: var(--accent);
  background-color: var(--secondary);
  transform: translateY(-2px);
}

.download-option i {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.option-label {
  display: block;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.25rem;
}

.option-status {
  display: block;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.modal-alert {
  max-width: 400px;
  text-align: center;
}

.alert-icon {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.alert-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.alert-message {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ===== NAVBAR LINK HOVER ANIMATION ===== */
.nav-link {
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-link:hover {
  color: var(--accent);
}

/* ===== LOADER STYLES ===== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-container {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: waveAnimation 2s infinite;
}

.wave-1 {
  animation-delay: 0s;
}

.wave-2 {
  animation-delay: 0.4s;
}

.wave-3 {
  animation-delay: 0.8s;
}

.wave-4 {
  animation-delay: 1.2s;
}

@keyframes waveAnimation {
  0% {
    transform: scale(0.3);
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.8);
  }
  50% {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.6);
  }
  100% {
    transform: scale(1);
    opacity: 0;
    border-color: rgba(255, 255, 255, 0);
  }
}

.loader-text {
  position: absolute;
  bottom: -40px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 2px;
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== Utility Classes ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-text {
  background: linear-gradient(to right, var(--accent), hsl(160, 60%, 50%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-bg {
  background: linear-gradient(to right, var(--accent), hsl(160, 60%, 50%));
}

.bg-secondary {
  background-color: var(--secondary);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn svg {
  width: 1rem;
  height: 1rem;
}
.btn-accent {
  position: relative;
  overflow: hidden;
}

.btn-accent::after {
  content: "";
  position: absolute;
  width: 120%;
  height: 0;
  left: -10%;
  bottom: 0;
  background: rgba(255, 255, 255, 0.25);
  transition: height 0.4s ease;
}

.btn-accent:hover::after {
  height: 100%;
}
 
.btn-accent {
  background: linear-gradient(to right, var(--accent), hsl(160, 60%, 50%));
  color: var(--accent-foreground);
}

.btn-accent:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px -8px hsla(153, 60%, 45%, 0.3);
}

.btn-xl {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-xl svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn-full {
  width: 100%;
}

/* ===== Navigation ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  display: inline-block;
  width: 2.25rem;
  height: auto;
  object-fit: contain;
}

.logo-img-sm {
  width: 2rem;
}

.logo-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, var(--accent), hsl(160, 60%, 50%));
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--accent-foreground);
}

.logo-icon-sm {
  width: 2rem;
  height: 2rem;
}

.logo-icon-sm svg {
  width: 1rem;
  height: 1rem;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav-links {
  display: none;
  gap: 2rem;
}

.nav-link {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu {
  display: none;
  background-color: var(--background);
  border-bottom: 1px solid var(--border);
  animation: fadeIn 0.3s ease;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu .container {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-link {
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--foreground);
}

/* ===== Hero Section ===== */
.hero {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.hero-content {
  text-align: center;
}

.hero-tagline {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--foreground);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.badge svg {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 18rem;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.15));
  animation: float 5s ease-in-out infinite;
}

/* Larger hero image + side-by-side layout on wider screens */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 420px;
    gap: 2rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-image {
    justify-content: flex-end;
  }

  .phone-mockup {
    width: 22rem;
  }
}

@media (min-width: 1200px) {
  .hero-grid {
    grid-template-columns: 1fr 480px;
  }

  .phone-mockup {
    width: 26rem;
  }
}

/* Subtle wave-like hover animation for accent buttons */
.btn-accent {
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: "";
  position: absolute;
  left: -20%;
  top: -10%;
  width: 140%;
  height: 120%;
  background: radial-gradient(circle at 10% 50%, rgba(255,255,255,0.18), rgba(255,255,255,0.05) 25%, transparent 45%);
  transform: translateX(-30%) rotate(-6deg);
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1), opacity 0.4s;
  opacity: 0;
  pointer-events: none;
}

.btn-accent:hover::before {
  transform: translateX(0) rotate(-6deg);
  opacity: 1;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--muted-foreground);
}

/* ===== About Section ===== */
.about-content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.about-text {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.8;
}

/* ===== Features Section ===== */
.features-grid {
  display: grid;
  gap: 1.5rem;
}

.feature-card {
  padding: 1.5rem;
  background-color: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: linear-gradient(to right, var(--accent), hsl(160, 60%, 50%));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent-foreground);
}

.feature-title {
  font-size: 1.125rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Screenshots Section ===== */
.screenshots-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.screenshot {
  width: 14rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
}

.screenshot-center {
  display: none;
}

/* ===== Reasons Section ===== */
.reasons-grid {
  display: grid;
  gap: 2rem;
}

.reason-card {
  text-align: center;
  padding: 1.5rem;
}

.reason-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  background-color: hsla(153, 60%, 45%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.reason-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.reason-title {
  font-size: 1rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.reason-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== CTA Section ===== */
.cta-section {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.cta-content {
  text-align: center;
}

.cta-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-description {
  opacity: 0.8;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FAQ Section ===== */
.faq-container {
  max-width: 40rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: var(--secondary);
}

.faq-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--muted-foreground);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding: 0 1.5rem 1rem;
  color: var(--muted-foreground);
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 0;
  background-color: var(--secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-email {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: var(--foreground);
}

.footer-email svg {
  width: 1rem;
  height: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.social-link:hover {
  color: var(--foreground);
  background-color: var(--secondary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ===== Responsive Styles ===== */
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reasons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshot-center {
    display: block;
  }
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .hero {
    padding-top: 10rem;
    padding-bottom: 7rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .section {
    padding: 7rem 0;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .screenshot {
    width: 16rem;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-description {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-buttons {
    justify-content: flex-start;
  }

  .hero-badges {
    justify-content: flex-start;
  }

  .hero-image {
    justify-content: flex-end;
  }

  .hero-title {
    font-size: 3.75rem;
  }

  .phone-mockup {
    width: 20rem;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reasons-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .screenshots-grid {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-image {
    margin-top: 1.5rem;
  }

  .phone-mockup {
    width: 18rem;
  }
}

@media (max-width: 480px) {
  .phone-mockup {
    width: 16rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }
}
/* End of Style.css */