:root {
  --ink: #173817;
  --muted: rgba(32, 49, 33, 0.66);
  --soft-line: rgba(32, 47, 29, 0.08);
  --pill-bg: rgba(255, 255, 255, 0.72);
  --button-bg: #1d2319;
  --button-text: #d9ff8a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fbfaf6;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 22%, rgba(190, 220, 255, 0.28), transparent 24%),
    linear-gradient(180deg, #fafaf7 0%, #f2f6ff 36%, #f7f6f0 100%);
}

.hero-scene,
.hero-sky,
.hero-bottom-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-scene {
  background: url("./assets/orchard-hero.png") center bottom / cover no-repeat;
  opacity: 0.98;
  mask-image: linear-gradient(180deg, transparent 17%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 1) 68%);
  -webkit-mask-image: linear-gradient(180deg, transparent 17%, rgba(0, 0, 0, 0.82) 42%, rgba(0, 0, 0, 1) 68%);
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-sky {
  background:
    linear-gradient(180deg, rgba(252, 252, 248, 0.88) 0%, rgba(252, 252, 248, 0.58) 12%, rgba(250, 252, 255, 0.12) 42%, rgba(244, 248, 255, 0.02) 58%),
    radial-gradient(circle at 50% 52%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 50% 26%, rgba(201, 224, 255, 0.22), transparent 26%);
}

.hero-bottom-fade {
  background: linear-gradient(180deg, rgba(251, 250, 246, 0) 76%, rgba(251, 250, 246, 0.72) 96%);
}

.hero-header {
  position: relative;
  z-index: 2;
  width: min(1380px, calc(100vw - 96px));
  margin: 0 auto;
  padding-top: 34px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
}

.brand-icon-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  box-shadow:
    0 18px 36px rgba(27, 35, 25, 0.14),
    0 4px 12px rgba(27, 35, 25, 0.08);
}

.hero-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 0.96rem;
  font-weight: 600;
  color: rgba(42, 53, 40, 0.9);
}

.hero-nav a:hover,
.hero-nav a:focus-visible {
  color: var(--ink);
}

.hero-header-cta,
.hero-main-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.hero-header-cta {
  min-height: 58px;
  padding: 0 22px;
  gap: 10px;
  border: 1px solid rgba(31, 42, 28, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(31, 42, 28, 0.14);
  font-size: 1rem;
  font-weight: 700;
}

.hero-header-cta img {
  width: 18px;
  height: 18px;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100vw - 48px));
  margin: 94px auto 0;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--soft-line);
  background: var(--pill-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 24px rgba(56, 75, 59, 0.07);
  color: rgba(39, 52, 39, 0.86);
  font-size: 0.88rem;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 30px auto 0;
  max-width: 10ch;
  font-family: "Sora", sans-serif;
  font-size: clamp(3.3rem, 6.5vw, 5.9rem);
  line-height: 0.94;
  letter-spacing: -0.075em;
  text-wrap: balance;
}

.hero-body {
  max-width: 28rem;
  margin: 18px auto 0;
  color: rgba(31, 44, 30, 0.78);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.45);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.55;
  text-wrap: balance;
}

.hero-main-cta {
  margin-top: 54px;
  min-height: 60px;
  padding: 0 28px;
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(25, 33, 22, 0.2);
  font-size: 0.98rem;
  font-weight: 800;
}

.hero-header-cta:hover,
.hero-main-cta:hover,
.hero-header-cta:focus-visible,
.hero-main-cta:focus-visible {
  transform: translateY(-2px);
}

@keyframes heroDrift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.06) translate3d(-1%, 0.6%, 0);
  }
}

@media (max-width: 980px) {
  .hero-header {
    width: min(100%, calc(100vw - 40px));
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 16px;
    padding-top: 24px;
  }

  .hero-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .hero-copy {
    width: min(100%, calc(100vw - 40px));
    margin-top: 68px;
  }

  .hero-copy h1 {
    font-size: clamp(2.9rem, 11vw, 4.7rem);
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .hero-header-cta {
    min-height: 52px;
    padding: 0 18px;
    font-size: 0.94rem;
  }

  .hero-pill {
    padding: 11px 16px;
    font-size: 0.8rem;
  }

  .hero-copy {
    margin-top: 52px;
  }

  .hero-copy h1 {
    max-width: 9ch;
    font-size: clamp(2.45rem, 13vw, 3.9rem);
  }

  .hero-body {
    font-size: 0.94rem;
  }

  .hero-main-cta {
    min-height: 54px;
    padding: 0 24px;
  }
}
