@font-face {
  font-family: "PP Editorial New";
  src: url("../editorial-new-font-family/PPEditorialNew-Regular-BF644b214ff145f.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "PP Editorial New";
  src: url("../editorial-new-font-family/PPEditorialNew-Italic-BF644b214fb0c0a.otf") format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "PP Editorial New";
  src: url("../editorial-new-font-family/PPEditorialNew-Ultrabold-BF644b21500840c.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "PP Editorial New";
  src: url("../editorial-new-font-family/PPEditorialNew-UltraboldItalic-BF644b214faef01.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: "PP Editorial New";
  src: url("../editorial-new-font-family/PPEditorialNew-Ultralight-BF644b21500d0c0.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "PP Editorial New";
  src: url("../editorial-new-font-family/PPEditorialNew-UltralightItalic-BF644b214ff1e9b.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
}

:root {
  --bg: #000114;
  --bg-soft: #070818;
  --white: #f5f4ef;
  --muted: #9aa0ad;
  --olive: #a7ac2c;
  --olive-dark: #8b9024;
  --modal-bg: #0b2318;
  --modal-input: rgba(93, 155, 108, 0.55);
  --serif: "PP Editorial New", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--sans);
  overflow-x: hidden;
}

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

.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
}

.btn--pill {
  background: var(--olive);
  color: #1c1f08;
  padding: 0.9rem 2.2rem;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn--pill:hover {
  background: var(--olive-dark);
  transform: translateY(-1px);
}

/* NAV */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem;
  position: relative;
  z-index: 5;
}

.nav__logo {
  height: 18px;
  width: auto;
}

.nav__link {
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0.9;
}

.nav__link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* HERO */

.hero {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem 7rem;
  overflow: hidden;
}

.hero__decor {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.hero__decor--left {
  top: 0;
  left: -6rem;
  width: 320px;
}

.hero__decor--right {
  top: 8%;
  right: -8rem;
  width: 380px;
}

.hero__decor--midleft {
  top: 4rem;
  left: -7rem;
  width: 340px;
}

.eyebrow {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
  position: relative;
  z-index: 1;
}

.hero__stage {
  position: relative;
  margin-top: 1rem;
}

.hero__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.75rem, 17vw, 14rem);
  margin: 0;
  position: absolute;
  top: 46%;
  left: 50%;
  width: 100vw;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  z-index: 0;
  pointer-events: none;
}

.hero__terrarium {
  position: relative;
  z-index: 1;
  width: min(90vw, 600px);
  aspect-ratio: 956 / 1143;
  margin: 0 auto;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 3%, black 95%, transparent 100%);
}

.hero__terrarium living-terrarium {
  display: block;
  width: 100%;
  transform: translateY(-27%);
}

.hero__title--ghost {
  z-index: 2;
  color: #fff;
  mix-blend-mode: screen;
  opacity: 0.3;
  filter: blur(3px);
}

.hero__caption {
  position: relative;
  z-index: 1;
  margin: 1.5rem 0 0;
  font-size: 1rem;
}

.hero__caption--muted {
  color: var(--muted);
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.hero__intro {
  position: relative;
  z-index: 1;
  max-width: 768px;
  margin: 6rem auto 100px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.62rem;
  line-height: 1.5;
  color: var(--olive);
}

.hero__divider {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 1px;
  margin: 0 auto 100px;
  border: none;
  background: rgba(167, 172, 44, 0.4);
}

.features {
  position: relative;
  z-index: 1;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 4.8rem;
  max-width: 912px;
  margin: 0 auto;
  padding: 0;
}

.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.08rem;
  max-width: 216px;
}

.features__item img {
  height: 33.6px;
  width: auto;
}

.features__item p {
  margin: 0;
  font-size: 1.08rem;
  color: var(--white);
  line-height: 1.4;
}

/* PRICING */

.pricing {
  position: relative;
  padding: 8rem 6vw 9rem;
  display: flex;
  flex-direction: column;
  gap: 9rem;
  border-top: 1px solid rgba(245, 244, 239, 0.08);
}

.product {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.product--right,
.product--left {
  flex-direction: row;
}

.product__text {
  flex: 1 1 320px;
  max-width: 380px;
}

.product__image {
  flex: 1 1 280px;
  max-width: 340px;
}

.product__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3rem;
  margin: 0 0 1.25rem;
}

.product__desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.product__plants {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

/* COMMUNITY / COLLAGE */

.community {
  position: relative;
  z-index: 1;
  padding: 8rem 6vw 9rem;
  text-align: center;
  border-top: 1px solid rgba(245, 244, 239, 0.08);
}

.community__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.25rem 0 0;
}

.community__grid {
  max-width: 1100px;
  margin: 4rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 1rem;
}

.community__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.community__grid img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.community__grid img.is-featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* CTA / FOOTER */

.cta {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 9rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(245, 244, 239, 0.08);
}

.cta__overlay {
  position: relative;
  z-index: 1;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.cta__title {
  font-family: var(--serif);
  font-style: italic;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.65), 0 1px 4px rgba(0, 0, 0, 0.5);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0;
}

/* MODAL */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 3, 0.65);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 50;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal {
  position: relative;
  background: var(--modal-bg);
  color: var(--white);
  width: min(100%, 480px);
  padding: 3rem;
  border-radius: 20px;
}

.modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.85;
}

.modal__close:hover {
  opacity: 1;
}

.modal__title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0 0 1.5rem;
}

.modal__desc {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 1.75rem;
}

.modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.modal__row {
  display: flex;
  gap: 1rem;
}

.modal__input {
  appearance: none;
  background: var(--modal-input);
  border: none;
  border-radius: 10px;
  color: var(--white);
  padding: 1rem 1.2rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  width: 100%;
}

.modal__input::placeholder {
  color: rgba(245, 244, 239, 0.85);
}

.modal__textarea {
  resize: vertical;
  min-height: 100px;
  font-weight: 400;
}

.modal__note {
  font-size: 0.85rem;
  color: rgba(245, 244, 239, 0.75);
  margin: 0;
}

.modal__form .btn--pill {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.modal__form .btn--pill:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal__status {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive);
  margin: -0.4rem 0 0;
}

.modal__model {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--olive);
  margin: -1rem 0 1.75rem;
}

/* RESPONSIVE */

@media (max-width: 720px) {
  .nav {
    padding: 1.5rem;
  }

  .product,
  .product--left {
    flex-direction: column;
  }

  /* Always show image before details on mobile, regardless of the
     alternating left/right layout used on desktop, so Small, Medium
     and Large all follow the same order. */
  .product__image {
    order: -1;
  }

  /* Shrink the centered terrarium unit in the hero section by 20% on mobile,
     and let it fade/rise in a couple of seconds after the title/text show,
     rather than appearing instantly. */
  .hero__terrarium {
    width: min(72vw, 480px);
    opacity: 0;
    transform: scale(0.9) translateY(14px);
    animation: hero-terrarium-reveal 0.8s ease forwards;
    animation-delay: 2s;
  }

  @keyframes hero-terrarium-reveal {
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }

  .features {
    gap: 2rem;
  }

  .modal {
    padding: 2rem;
  }

  .modal__row {
    flex-direction: column;
  }

  .hero__decor {
    display: none;
  }

  .community {
    padding: 5rem 1.5rem 5rem;
  }

  .community__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 130px;
    gap: 0.75rem;
    margin-top: 2.5rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero__terrarium {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
