:root {
  --ink: #0f1c18;
  --muted: #5c6b64;
  --line: #d5ddd8;
  --paper: #eef2ef;
  --white: #f7f9f7;
  --green: #0f6b52;
  --green-deep: #0b1f1a;
  --lime: #8fb33f;
  --shell: min(92vw, 1180px);
  --display: "Clash Display", "Avenir Next", sans-serif;
  --body: "Satoshi", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--body);
  background: var(--paper);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  outline: none;
}

a:focus,
a:focus-visible,
a:active {
  outline: none;
  box-shadow: none;
}

button,
.btn,
[class*="btn"],
input[type="submit"],
input[type="button"] {
  outline: none;
}

button:focus,
button:focus-visible,
button:active,
.btn:focus,
.btn:focus-visible,
.btn:active,
[class*="btn"]:focus,
[class*="btn"]:focus-visible,
[class*="btn"]:active {
  outline: none;
  box-shadow: none;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

/* Nav */
.nav {
  position: fixed;
  inset: 0.85rem auto auto 50%;
  transform: translateX(-50%);
  z-index: 40;
  width: min(94vw, 980px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(247, 249, 247, 0.88);
  border: 1px solid rgba(15, 28, 24, 0.08);
  box-shadow: 0 12px 40px rgba(11, 31, 26, 0.1);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 0.98rem;
}

.nav__brand img {
  width: 1.55rem;
  height: auto;
}

.nav__links {
  display: none;
  justify-content: center;
  gap: 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.nav__links a {
  text-decoration: none;
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--green-deep);
  color: #f4f7f5;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav__cta:hover {
  background: var(--green);
}

.nav__cta:active {
  transform: scale(0.98);
}

@media (min-width: 820px) {
  .nav__links {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--fill {
  background: var(--green-deep);
  color: #f4f7f5;
}

.btn--fill:hover {
  background: var(--green);
}

.btn--line {
  border-color: rgba(244, 247, 245, 0.45);
  color: #f4f7f5;
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.text-cta {
  font-weight: 750;
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--green) 40%, transparent);
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  place-items: end start;
  color: #f4f7f5;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.04);
}

@supports (animation-timeline: view()) {
  .hero__bg img {
    animation: heroDrift linear both;
    animation-timeline: view();
    animation-range: contain 0% contain 100%;
  }

  @keyframes heroDrift {
    from {
      transform: scale(1.08) translateY(-2%);
    }
    to {
      transform: scale(1.02) translateY(4%);
    }
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(11, 31, 26, 0.92) 0%, rgba(11, 31, 26, 0.55) 46%, rgba(11, 31, 26, 0.25) 100%),
    linear-gradient(to top, rgba(11, 31, 26, 0.85) 0%, transparent 48%);
}

.hero__frame {
  width: var(--shell);
  margin: 0 auto;
  padding: 7.5rem 0 3.5rem;
}

.hero__brand {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
}

.hero__line {
  margin: 1rem 0 0;
  max-width: 28ch;
  font-size: 1.05rem;
  color: rgba(244, 247, 245, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

/* Shopify merchant focus strip */
.audience {
  width: var(--shell);
  margin: 0 auto;
  padding: 2.75rem 0 0.5rem;
}

.audience__inner {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 0 1.75rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px) {
  .audience__inner {
    grid-template-columns: 1.4fr 0.9fr;
    align-items: end;
    gap: 2rem;
  }
}

.audience__inner > p {
  margin: 0;
  max-width: 42ch;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.55;
}

.audience__inner strong {
  color: var(--ink);
  font-weight: 750;
}

.audience__inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.audience__inner li {
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  padding-left: 0.9rem;
  position: relative;
}

.audience__inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lime);
}

/* Chapters share one rhythm */
.chapter {
  padding: 4.5rem 0 4rem;
  width: var(--shell);
  margin: 0 auto;
}

.chapter__intro {
  max-width: 28rem;
  margin-bottom: 1.75rem;
}

.chapter__intro h2,
.split__copy h2,
.film__content h2,
.closer h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
}

.chapter__intro p,
.split__copy > p,
.film__content > p,
.closer > p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36ch;
}

.chapter__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Packs grid (no horizontal scroll) */
.runway {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .runway {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.runway__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.25rem;
  text-decoration: none;
  color: #f4f7f5;
  background: #1a2e28;
}

.runway__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.runway__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 31, 26, 0.92) 0%, rgba(11, 31, 26, 0.15) 55%, transparent 100%);
}

.runway__item:hover img {
  transform: scale(1.04);
}

.runway__meta {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1;
  display: grid;
  gap: 0.25rem;
}

.runway__meta span {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.runway__meta strong {
  font-size: 1rem;
  font-weight: 700;
}

.runway__meta em {
  font-style: normal;
  opacity: 0.55;
  text-decoration: line-through;
  margin-left: 0.35rem;
  font-weight: 500;
}

/* Single theme split */
.chapter--split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding-block: 5rem;
}

@media (min-width: 920px) {
  .chapter--split {
    grid-template-columns: 1.25fr 0.9fr;
    gap: 2.5rem;
  }
}

.split__visual {
  overflow: hidden;
  border-radius: 1.35rem;
  aspect-ratio: 5 / 6;
  background: #c5d2cb;
}

@media (min-width: 920px) {
  .split__visual {
    aspect-ratio: 4 / 5;
    max-height: 78vh;
  }
}

.split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__copy ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.split__copy li {
  padding-left: 1rem;
  position: relative;
  font-weight: 650;
}

.split__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--lime);
}

.split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

/* Apps list */
.apps {
  display: grid;
  border-top: 1px solid var(--line);
}

.apps__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding 0.25s var(--ease);
}

@media (min-width: 720px) {
  .apps__row {
    grid-template-columns: 0.9fr 1.2fr auto;
    align-items: baseline;
    gap: 1rem;
  }
}

.apps__row:hover {
  padding-left: 0.35rem;
}

.apps__name {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.apps__desc {
  color: var(--muted);
}

.apps__go {
  color: var(--green);
  font-size: 1.25rem;
}

/* Sections film */
.chapter--film {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  min-height: min(88dvh, 780px);
  display: grid;
  align-items: end;
  color: #f4f7f5;
  overflow: hidden;
}

.film__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.film__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(11, 31, 26, 0.9) 0%, rgba(11, 31, 26, 0.55) 50%, rgba(11, 31, 26, 0.28) 100%),
    linear-gradient(to top, rgba(11, 31, 26, 0.75), transparent 50%);
}

.film__content {
  width: var(--shell);
  margin: 0 auto;
  padding: 5rem 0 3.25rem;
}

.film__content > p {
  color: rgba(244, 247, 245, 0.78);
}

.film__list {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
}

.film__list li {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(244, 247, 245, 0.16);
}

.film__list strong {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.film__list li {
  color: rgba(244, 247, 245, 0.8);
  font-size: 0.95rem;
}

.film__list strong {
  color: #fff;
}

/* Closer */
.closer {
  width: var(--shell);
  margin: 0 auto;
  padding: 5.5rem 0 4rem;
  text-align: left;
}

.mail-form {
  display: grid;
  gap: 0.85rem;
  max-width: 34rem;
  padding: 1.35rem 1.3rem 1.45rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: var(--white);
}

.mail-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.9rem;
}

.mail-form input,
.mail-form select,
.mail-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
}

.mail-form input:focus,
.mail-form select:focus,
.mail-form textarea:focus {
  outline: none;
  border-color: color-mix(in srgb, var(--green) 55%, var(--line));
}

.mail-form__status {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.mail-form__status.is-ok {
  color: var(--green);
  font-weight: 700;
}

.mail-form__status.is-err {
  color: #9b1c1c;
  font-weight: 700;
}

.closer__brand {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--green);
}

.closer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.foot {
  width: var(--shell);
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.foot a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .runway__item img,
  .btn,
  .apps__row {
    transition: none;
  }
}
