:root {
  color-scheme: light;
  --forest: #173b34;
  --sunlight: #e7bd62;
  --canvas: #f1ebd9;
  --paper: #faf6eb;
  --lake: #3c7777;
  --line: #cfc8b4;
  font-family: "Circular Std", "Avenir Next", Avenir, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--forest);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
a:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 5px;
}

.wrap {
  width: min(1320px, calc(100% - 2 * clamp(16px, 4.5vw, 76px)));
  margin-inline: auto;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: 4px;
}

.home-link img {
  width: clamp(118px, 16vw, 168px);
  height: auto;
  filter: brightness(0) saturate(100%) invert(18%) sepia(19%) saturate(1193%) hue-rotate(116deg) brightness(95%) contrast(90%);
}

nav { display: flex; gap: clamp(18px, 3vw, 36px); }
nav a {
  display: grid;
  align-items: center;
  min-height: 44px;
  font-size: 0.98rem;
  font-weight: 650;
  text-decoration: none;
}
nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 43vw, 620px);
  overflow: hidden;
  border-radius: 26px;
  background: var(--forest);
  color: var(--paper);
}

.hero-illustration {
  position: absolute;
  inset: 0 0 0 24%;
  z-index: -1;
}

.hero-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 85% 22%;
}

.hero-illustration::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, var(--forest), rgba(23, 59, 52, 0.76) 14%, rgba(23, 59, 52, 0.24) 33%, transparent 55%);
}

.hero-copy {
  padding: 64px clamp(28px, 5vw, 78px);
}

.hero h1 {
  font-size: clamp(3.3rem, 6.8vw, 6.65rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.066em;
}

.hero h1 em {
  display: block;
  color: var(--sunlight);
  font-family: "Baskervville", Baskerville, Georgia, serif;
  font-weight: 400;
  font-size: 1.14em;
  letter-spacing: -0.045em;
}

.hero p {
  margin-top: 26px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 50px;
  width: fit-content;
  margin-top: 26px;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.button span { font-size: 1.15em; }
.button-sunlight { background: var(--sunlight); color: var(--forest); }
.button-sunlight:hover { background: var(--paper); }
.button-sunlight:focus-visible { outline-color: var(--paper); }
.button-forest { background: var(--forest); color: var(--paper); }
.button-forest:hover { background: var(--lake); }

.apps {
  margin-block: clamp(54px, 7vw, 104px);
  scroll-margin-top: 28px;
}

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.apps .section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.apps .section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.app-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
}

.app-visual {
  display: grid;
  place-items: center;
  min-height: clamp(300px, 31vw, 430px);
  padding: 38px;
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 48px, rgba(162, 178, 254, 0.13) 49px 50px),
    radial-gradient(ellipse at center, #424d88, #1d294b 57%, #152035);
}

.app-visual img {
  width: clamp(150px, 19vw, 240px);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 24px 64px #070c25a6, 0 0 0 1px #bcc7ff55;
  transform: rotate(-7deg);
}

.app-copy {
  align-self: center;
  padding: clamp(26px, 5vw, 76px);
}

.app-copy h3 {
  font-size: clamp(2.65rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.app-copy p {
  max-width: 32ch;
  margin-top: 16px;
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  line-height: 1.6;
}

.site-footer {
  background: var(--forest);
  color: var(--paper);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: clamp(34px, 5vw, 64px);
}
.footer-inner .section-label { color: var(--sunlight); }
.footer-inner p {
  margin-top: 8px;
  font-family: "Baskervville", Baskerville, Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3.25rem);
  line-height: 1.1;
}
.footer-inner img { width: clamp(64px, 9vw, 105px); height: auto; }

@media (max-width: 700px) {
  .site-header { min-height: 70px; }

  .hero {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    min-height: 0;
    border-radius: 20px;
  }

  .hero-copy { padding: 40px clamp(20px, 6vw, 38px) 16px; }
  .hero h1 { font-size: clamp(2.4rem, 10.8vw, 4.65rem); }
  .hero p { margin-top: 17px; }
  .hero .button { margin-top: 20px; }

  .hero-illustration {
    position: relative;
    inset: auto;
    height: clamp(195px, 58vw, 325px);
  }
  .hero-illustration img { object-position: 76% 18%; }
  .hero-illustration::after {
    background: linear-gradient(var(--forest), transparent 24%);
  }

  .app-feature { grid-template-columns: 1fr; border-radius: 20px; }
  .app-visual { min-height: clamp(210px, 58vw, 310px); }
  .app-copy { padding-block: 28px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
}
