@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("assets/fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #151515;
  --muted: #6f6a66;
  --line: #e7e2dc;
  --paper: #fbfaf8;
  --paper-strong: #ffffff;
  --clay: #c95f40;
  --clay-dark: #9f442d;
  --sage: #5e8064;
  --sky: #dcefff;
  --moss-light: #eaf2ec;
  --peach: #f5e8e1;
  --shadow: 0 28px 70px rgba(37, 30, 25, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 18px;
  left: 50%;
  display: flex;
  width: min(calc(100% - 32px), 1120px);
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 50px rgba(70, 55, 40, 0.1);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(30, 24, 20, 0.14);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

nav a:hover {
  background: var(--paper-strong);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  align-items: center;
  padding: 128px max(24px, calc((100vw - 1120px) / 2)) 84px;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(251, 250, 248, 0.96) 0%, rgba(251, 250, 248, 0.88) 44%, rgba(251, 250, 248, 0.24) 100%),
    url("assets/images/hero-background.png") center / cover no-repeat;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(560px, 100%);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 8ch;
  margin-bottom: 22px;
  font-size: clamp(4.4rem, 12vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 540px;
  margin-bottom: 34px;
  color: #3d3834;
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--clay);
  box-shadow: 0 18px 34px rgba(201, 95, 64, 0.24);
  color: #fff;
}

.button.primary:hover {
  background: var(--clay-dark);
}

.button.secondary {
  border-color: rgba(21, 21, 21, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.button.dark {
  background: var(--ink);
  box-shadow: none;
}

.app-store-badge {
  display: inline-flex;
  width: 182px;
  height: auto;
  align-items: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.app-store-badge:hover {
  filter: drop-shadow(0 18px 28px rgba(21, 21, 21, 0.16));
  transform: translateY(-2px);
}

.app-store-badge img {
  width: 100%;
  height: auto;
}

.device-stage {
  position: absolute;
  right: clamp(18px, calc((100vw - 1280px) / 2), 118px);
  bottom: -5vh;
  z-index: 1;
  width: min(520px, 40vw);
  height: min(760px, 72vh);
}

.phone {
  overflow: hidden;
  margin: 0;
  border: 10px solid #171717;
  border-radius: 44px;
  background: #171717;
  box-shadow: var(--shadow);
}

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
}

.hero-carousel {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.hero-carousel::before,
.hero-carousel::after {
  position: absolute;
  display: block;
  border-radius: 56px;
  content: "";
}

.hero-carousel::before {
  width: min(410px, 82%);
  height: min(640px, 82%);
  background: var(--sky);
  transform: translate(42px, -28px) rotate(7deg);
}

.hero-carousel::after {
  width: min(330px, 70%);
  height: min(560px, 74%);
  background: var(--peach);
  opacity: 0.9;
  transform: translate(-78px, 64px) rotate(-9deg);
}

.carousel-phone {
  position: relative;
  z-index: 2;
  width: min(340px, 76%);
  aspect-ratio: 390 / 844;
  transform: rotate(4deg);
}

.carousel-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 420ms ease;
}

.carousel-screen.is-active {
  opacity: 1;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(21, 21, 21, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(37, 30, 25, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.carousel-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.carousel-prev {
  left: 4px;
}

.carousel-next {
  right: 4px;
}

.carousel-dots {
  position: absolute;
  z-index: 3;
  bottom: 56px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.2);
  cursor: pointer;
  padding: 0;
  transition: background 180ms ease, transform 180ms ease, width 180ms ease;
}

.carousel-dots button.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--clay);
}

.intro-band,
.section,
.download,
footer {
  padding-right: max(24px, calc((100vw - 1120px) / 2));
  padding-left: max(24px, calc((100vw - 1120px) / 2));
}

.intro-band {
  padding-top: 42px;
  padding-bottom: 46px;
  background: var(--ink);
  color: #fff;
}

.intro-grid {
  display: grid;
  align-items: center;
  gap: 28px;
  grid-template-columns: 1.4fr 1fr;
}

.intro-grid p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.metrics span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  font-weight: 700;
}

.section {
  padding-top: clamp(80px, 10vw, 128px);
  padding-bottom: clamp(80px, 10vw, 128px);
}

.section-heading {
  max-width: 790px;
  margin-bottom: 52px;
}

.section-heading.compact {
  margin-bottom: 32px;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow) {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
}

.feature-layout {
  display: grid;
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
}

.feature-phone,
.focus-phone,
.shield-phone {
  width: min(100%, 360px);
  aspect-ratio: 390 / 844;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article,
.cards article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.72);
}

.feature-list h3,
.cards h3 {
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.feature-list p,
.cards p {
  margin: 0;
  color: var(--muted);
}

.focus-band {
  background: linear-gradient(180deg, var(--moss-light), #f9fbf8);
}

.fence-showcase {
  display: grid;
  align-items: end;
  justify-content: center;
  gap: clamp(20px, 5vw, 60px);
  grid-template-columns: minmax(250px, 360px) minmax(230px, 320px);
}

.shield-phone {
  transform: translateY(42px);
}

.cards-section {
  background: #f7f8f9;
}

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.download {
  display: grid;
  align-items: center;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 74px;
  padding-bottom: 74px;
  background: var(--clay);
  color: #fff;
}

.download .eyebrow {
  color: rgba(255, 255, 255, 0.76);
}

.download h2 {
  max-width: 650px;
  margin-bottom: 12px;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
}

.download p {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
}

footer {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .site-header {
    top: 12px;
    width: min(calc(100% - 20px), 720px);
  }

  nav a {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 0;
  }

  .hero-backdrop {
    background:
      linear-gradient(180deg, rgba(251, 250, 248, 0.98) 0%, rgba(251, 250, 248, 0.88) 58%, rgba(251, 250, 248, 0.36) 100%),
      url("assets/images/hero-background.png") center / cover no-repeat;
  }

  h1 {
    max-width: 6ch;
  }

  .device-stage {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100%, 520px);
    height: 560px;
    margin: 40px auto -32px;
  }

  .carousel-phone {
    width: min(300px, 68%);
  }

  .intro-grid,
  .feature-layout,
  .cards,
  .download {
    grid-template-columns: 1fr;
  }

  .metrics {
    justify-content: flex-start;
  }

  .feature-phone {
    justify-self: center;
  }

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

  .focus-phone,
  .shield-phone {
    justify-self: center;
  }

  .shield-phone {
    max-width: 300px;
    transform: none;
  }

  .download .button {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .brand span {
    font-size: 0.95rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .app-store-badge {
    width: 190px;
  }

  .device-stage {
    height: 560px;
  }

  .phone {
    border-width: 8px;
    border-radius: 36px;
  }

  .phone img {
    border-radius: 28px;
  }

  .carousel-phone {
    width: min(286px, 74%);
  }

  .carousel-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.7rem;
  }

  .carousel-prev {
    left: 0;
  }

  .carousel-next {
    right: 0;
  }

  .carousel-dots {
    bottom: 48px;
  }

  .feature-list article,
  .cards article {
    padding: 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
