*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

.page {
  min-height: 100vh;
  background: #fff;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  padding: 0 16px;
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: auto;
  height: 36px;
  object-fit: contain;
}

/* Hero (mobile first) */
.hero {
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70%;
}

.hero-inner {
  position: relative;
  max-width: 768px;
  margin: 0 auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-title {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.25rem, 10vw, 3rem);
  line-height: 1;
  margin: auto 0 min(90%, 60vh);
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 8px 24px;
  background: #0077d9;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: #393839;
}

.btn-icon {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}

.btn span {
  margin-left: 8px;
}

/* Hero (tablet / desktop) */
@media (min-width: 768px) {
  .header {
    padding: 0 40px;
  }

  .nav {
    height: 80px;
  }

  .logo {
    height: 44px;
  }

  .hero {
    height: 65vh;
    min-height: 420px;
  }

  .hero-bg {
    object-position: center;
  }

  .hero-inner {
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 32px 40px;
  }

  .hero-title {
    font-size: clamp(3rem, 6vw, 3.75rem);
    margin-bottom: 32px;
  }

  .buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .btn {
    width: auto;
  }
}

@media (min-width: 1024px) {
  .buttons {
    gap: 32px;
  }
}

/* Features */
.features {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 16px;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px 16px;
  text-align: center;
}

.feature {
  flex: 0 0 calc((100% - 16px) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
}

.feature p {
  font-size: 0.75rem;
  line-height: 1rem;
}

.stars {
  margin-top: 12px;
  font-size: 1.25rem;
  line-height: 1.75rem;
}

@media (min-width: 640px) {
  .features {
    padding: 56px 24px;
  }

  .grid {
    gap: 32px;
  }

  .feature {
    flex-basis: calc((100% - 64px) / 3);
  }

  .feature p {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .stars {
    font-size: 1.5rem;
    line-height: 2rem;
  }
}

@media (min-width: 1024px) {
  .feature {
    flex: 1 1 0;
    min-width: 0;
  }
}
