html {
  scroll-behavior: smooth;
}

:root {
  --primary: #FFA41A;
  --text: #222;
  --muted: #666;
  --bg: #F8F8F8;
  --card: #ffffff;
}

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

body {
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
}

.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}

.narrow {
  max-width: 650px;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: white;
  padding: 100px 20px;
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slideshow .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Darker center tint for text readability, slightly lighter at edges */
  background: radial-gradient(circle, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 2;
}

.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 5%;
  z-index: 10;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.hero-logo {
  max-width: 140px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  line-height: 1.1;
  font-weight: 800;
  max-width: 800px;
  margin: 0 auto 24px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.hero p {
  margin: 0 auto 54px;
  max-width: 750px;
  color: #ffffff;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 18px 36px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #e59312;
}

.features {
  padding: 100px 0;
}

.features h2,
.waitlist h2,
.stores h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
}

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

.card {
  background: white;
  padding: 32px;
  border-radius: 24px;
}

.card h3 {
  margin-bottom: 12px;
}

.card p {
  color: var(--muted);
}

.waitlist {
  padding: 80px 0 20px;
  text-align: center;
}

.waitlist p {
  margin-bottom: 24px;
  color: var(--text);
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
}

.waitlist-form {
  display: flex;
  gap: 12px;
}

.waitlist-form input {
  flex: 1;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #ddd;
}

.waitlist-form button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 16px;
  padding: 18px 28px;
  font-weight: 700;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 160px;
  transition: opacity 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.waitlist-form button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  animation: btn-spin 0.75s linear infinite;
}

.waitlist-message {
  margin-top: 16px;
  font-weight: 600;
  font-size: 1.05rem;
  min-height: 24px;
}

.waitlist-message.success {
  color: #2e7d32;
}

.waitlist-message.error {
  color: #c62828;
}

.stores {
  padding: 10px 0 80px;
  text-align: center;
}

.badges {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.store-link {
  display: inline-block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-img {
  height: 40px;
  width: auto;
  display: block;
}

footer {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 768px) {

  .grid {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    flex-direction: column;
  }

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

.app-mockup-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.app-mockup {
  max-width: 100%;
  width: 480px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-mockup:hover {
  transform: translateY(-6px) scale(1.01);
}

/* --- Spinner keyframe --- */
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* --- Success Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 24px;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #ffffff;
  border-radius: 28px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-check-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.modal-check {
  width: 72px;
  height: 72px;
}

.modal-check-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: none;
}

.modal-backdrop.open .modal-check-circle {
  animation: draw-circle 0.5s ease forwards 0.1s;
}

.modal-check-tick {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: none;
}

.modal-backdrop.open .modal-check-tick {
  animation: draw-tick 0.35s ease forwards 0.55s;
}

@keyframes draw-circle {
  to { stroke-dashoffset: 0; }
}

@keyframes draw-tick {
  to { stroke-dashoffset: 0; }
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

.modal-close-btn {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.modal-close-btn:hover {
  transform: translateY(-2px);
  background-color: #e59312;
}