@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #333333;
  background: #ffffff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid #ffe0b2;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 8px 16px;
  background: #ffffff;
  color: #3e2723;
  z-index: 10;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

.desktop-only {
  display: inline;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  padding: 64px 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #3e2723 0%, #5d4037 35%, #4e342e 65%, #37474f 100%);
  overflow: hidden;
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: auto;
}

.fade-in {
  animation: fade-slide-in 1.2s ease-out both;
}

@keyframes fade-slide-in {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__icon {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero__title {
  margin: 28px 0 16px;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero__tagline {
  margin: 0 0 12px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: rgba(255, 224, 178, 0.95);
}

.hero__description {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Feature pills ---------- */

.pills {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 50px;
  border: 1.5px solid var(--accent);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* ---------- Icons (inline SVG sprite) ---------- */

.icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pill__icon {
  width: 20px;
  height: 20px;
}

.pill--orange { --accent: rgba(255, 138, 101, 0.5); }
.pill--amber  { --accent: rgba(255, 204, 128, 0.5); }
.pill--green  { --accent: rgba(129, 199, 132, 0.5); }
.pill--blue   { --accent: rgba(100, 181, 246, 0.5); }
.pill--mint   { --accent: rgba(165, 214, 167, 0.5); }

/* ---------- Download buttons ---------- */

.download {
  margin-top: 56px;
}

.download__heading {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 600;
}

.download__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  max-width: 250px;
  padding: 15px 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.store-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.store-button__icon {
  width: 22px;
  height: 22px;
}

/* ---------- Features ---------- */

.features {
  padding: 64px 64px;
  background: #f8f9fa;
}

.features__heading {
  margin: 0 auto 64px;
  max-width: 900px;
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  color: #333333;
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  min-height: 300px;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #607d8b, #ff5722);
  color: #ffffff;
}

.card__icon .icon {
  width: 36px;
  height: 36px;
}

.card__title {
  margin: 24px 0 16px;
  font-size: 20px;
  font-weight: 600;
  color: #333333;
}

.card__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
  color: #757575;
}

/* ---------- Footer ---------- */

.footer {
  padding: 64px;
  background: #455a64;
  color: #ffffff;
  text-align: center;
}

.footer__title {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 600;
}

.footer__text {
  margin: 0 auto 32px;
  max-width: 800px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.footer .download__buttons .store-button {
  min-width: 220px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  margin: 48px 0 32px;
}

.footer__links a {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
}

.footer__links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer__divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 0 0 24px;
}

.footer__copyright {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Responsive ---------- */

@media (min-width: 769px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1201px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .hero {
    padding: 48px 24px;
  }

  .hero__icon {
    width: 80px;
    height: 80px;
  }

  .hero__title {
    font-size: 34px;
  }

  .hero__tagline {
    font-size: 16px;
  }

  .hero__description {
    font-size: 14px;
  }

  .pills {
    gap: 12px;
  }

  .pill {
    font-size: 14px;
  }

  .download__buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .store-button {
    max-width: none;
  }

  .download__heading {
    font-size: 24px;
  }

  .features {
    padding: 48px 32px;
  }

  .features__heading {
    font-size: 28px;
    margin-bottom: 48px;
  }

  .features__grid {
    gap: 24px;
  }

  .card {
    padding: 20px;
    min-height: 0;
  }

  .card__icon {
    width: 60px;
    height: 60px;
  }

  .card__icon .icon {
    width: 28px;
    height: 28px;
  }

  .card__title {
    font-size: 16px;
  }

  .card__text {
    font-size: 13px;
  }

  .footer {
    padding: 32px;
  }

  .footer__title {
    font-size: 26px;
  }

  .footer .download__buttons .store-button {
    min-width: 0;
    width: 100%;
  }

  .footer__links {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fade-in,
  .store-button {
    animation: none;
    transition: none;
  }
}
