@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --orange-gradient: linear-gradient(90deg, #f97316, #f59e0b);
  --orange: #f37121;
  --dark: #0f172a;
  --gray: #64748b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: white;
  line-height: 1.5;
  overflow-x: hidden;
}

.saar-gradient, .tagline-gradient {
  background: var(--orange-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: rgba(255,247,237,0.9);
  backdrop-filter: blur(12px);
  padding: 16px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  border-bottom: 1px solid #f1f5f9;
}

.logo-wrap { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 32px; height: 32px; border-radius: 8px; }

.nav-right { display: flex; align-items: center; gap: 30px; }

.nav-links { display: flex; gap: 25px; }
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.2s;
}

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

.btn-download-header {
  background: var(--orange-gradient);
  color: white !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s;
}

.btn-download-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 113, 33, 0.3);
}

/* HERO */
.hero { padding: 160px 20px 80px; text-align: center; }
.hero h1 { font-size: 3.5rem; margin: 10px 0; }
.hero p { color: var(--gray); max-width: 600px; margin: 20px auto; }

/* BADGES */
.badge-container {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

.play-store-link { transition: transform 0.2s ease, opacity 0.2s; display: inline-block; }
.play-store-link:hover { transform: scale(1.05); opacity: 0.9; }

.apple-badge-disabled {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.5;
  filter: grayscale(1);
  cursor: not-allowed;
}

.coming-soon-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* GRID SYSTEM: 3 per row on web */
.features { padding: 80px 10%; background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%); }
.steps { padding: 80px 10%; text-align: center; }

.grid, .step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.card {
  background: #ffffff;
  padding: 28px 26px;
  border-radius: 18px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* subtle brand accent (top gradient line) */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: var(--orange-gradient);
  opacity: 0.9;
}

/* hover interaction */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  border-color: #fde68a;
}
.step-number { font-size: 2.5rem; font-weight: 700; color: var(--orange); margin-bottom: 10px; }

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step p {
  width: 72%;
  margin: 0 auto;
  line-height: 1.6;
}

/* FOOTER */
footer { padding: 60px 10%; background: var(--dark); color: white; text-align: center; }
footer a { color: #94a3b8; text-decoration: none; margin: 0 15px; font-size: 14px; cursor: pointer; }
footer a:hover { color: white; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(20px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 22px; height: 2px; background: var(--dark); transition: 0.3s; }

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active { display: flex; }

.modal-container {
  background: white;
  border-radius: 16px;
  width: 90%;
  max-width: 820px;
  height: 82vh;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { background: var(--orange); }

#modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
  .grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .navbar { padding: 16px 5%; }
  .hero h1 { font-size: 2.5rem; }
  .grid, .step-grid { grid-template-columns: 1fr; }

  .hamburger { display: flex; }

  .nav-right {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 30px 0;
    display: none;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    gap: 20px;
  }

  .nav-right.active { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .step p { width: 85%; }

  .modal-container { height: 90vh; }
}
