/* Home page layout — header/footer/buttons live in site.css */

.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(560px, 60vh, 720px);
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.9) 30%, rgba(255, 253, 247, 0.08) 54%, transparent 82%);
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  height: 100%;
  min-width: 80%;
  aspect-ratio: 1672 / 941;
  pointer-events: none;
  background-image: url("../../generated/home-hero-materials.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0) 6%, #000 28%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0) 6%, #000 28%, #000 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(var(--container-hero-content), calc(100% - var(--container-hero-gutter)));
  margin: 0 auto;
  padding: var(--space-24) 0 160px;
  display: grid;
  grid-template-columns: minmax(560px, 780px) 1fr;
}

.hero-title {
  margin: 0 0 10px;
  color: var(--green-950);
  font-family: var(--font-display);
  font-size: 76px;
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.hero-title-wordmark {
  width: min(420px, 100%);
}

.hero-title sup {
  font-family: var(--font-ui), var(--font-cjk);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0;
}

.hero-subtitle {
  margin: 0 0 var(--space-2);
  color: var(--green-900);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.hero-line {
  margin: 0 0 20px;
  color: var(--gold);
  font-family: var(--font-display);
  max-width: 780px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 660px;
  margin: 0 0 var(--space-4);
  color: #3d4850;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 42px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.proof {
  position: relative;
  z-index: 3;
  width: min(var(--container-content), calc(100% - var(--container-gutter)));
  margin: -72px auto 0;
}

.proof-card {
  display: block;
  padding: 26px 34px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.proof-slot {
  position: relative;
  aspect-ratio: 3 / 2;
  margin: 0;
  border: 1px solid rgba(10, 70, 42, 0.08);
  border-radius: 7px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 14px;
  overflow: hidden;
}

.proof-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.features {
  width: min(var(--container-content), calc(100% - var(--container-gutter)));
  margin: var(--space-8) auto 48px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8);
}

.feature-card,
.app-card {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-soft);
}

.feature-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.proof-card:hover,
.proof-card:focus-visible,
.feature-card:hover,
.feature-card:focus-visible {
  border-color: var(--border-default);
  box-shadow: var(--shadow-nav);
  transform: translateY(-2px);
}

.proof-card:active,
.feature-card:active {
  box-shadow: var(--shadow-soft);
  transform: translateY(0);
}

.feature-card h3,
.app-card h3 {
  margin: 0 0 var(--space-2);
  color: var(--text-brand);
  font-family: var(--font-ui), var(--font-cjk);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.feature-card p,
.app-card p {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.home-section {
  width: min(var(--container-content), calc(100% - var(--container-gutter)));
  margin: 0 auto;
  padding: 62px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
}

.section-heading::before,
.section-heading::after {
  content: "";
  width: 78px;
  height: 1px;
  background: var(--leaf);
}

.applications {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
}

.app-layout {
  width: min(var(--container-content), calc(100% - var(--container-gutter)));
  margin: 0 auto;
  padding: 62px 0;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 44px;
  align-items: center;
}

.app-title {
  margin: 0 0 18px;
  color: var(--text-brand);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  overflow: hidden;
}

.app-photo {
  height: 150px;
  background-color: var(--surface-muted);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.app-photo--fashion {
  background-image: url("../home/applications/fashion.webp");
  background-position: 76% 50%;
}

.app-photo--automotive {
  background-image: url("../home/applications/automotive-interiors.webp");
  background-position: 74% 50%;
}

.app-photo--footwear {
  background-image: url("../home/applications/footwear.webp");
  background-position: 76% 54%;
}

.app-photo--pet {
  background-image: url("../home/applications/pet-lifestyle.webp");
  background-position: 74% 50%;
}

.app-body {
  padding: 18px 20px 22px;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.principle {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: var(--space-6);
  padding: 34px 38px;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
}

.principle h3 {
  margin: 0 0 var(--space-2);
  color: var(--text-brand);
  font-family: var(--font-ui), var(--font-cjk);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.principle p {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.statement {
  position: relative;
  padding: 96px 24px 112px;
  overflow: hidden;
  text-align: center;
  background-color: var(--surface-page);
  background-image:
    linear-gradient(
      180deg,
      rgba(251, 250, 244, 0.52) 0%,
      rgba(251, 250, 244, 0.38) 42%,
      rgba(251, 250, 244, 0.58) 100%
    ),
    url("../home/statement-forest-bg.png");
  background-position: center;
  background-size: cover;
}

.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 42%, rgba(251, 250, 244, 0.62) 0%, rgba(251, 250, 244, 0.32) 34%, rgba(251, 250, 244, 0.08) 62%, transparent 78%),
    linear-gradient(180deg, rgba(251, 250, 244, 0.1) 0%, transparent 38%, rgba(6, 45, 26, 0.12) 100%);
}

.statement h2 {
  position: relative;
  z-index: 1;
  max-width: 950px;
  margin: 0 auto;
  color: var(--text-brand);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.statement p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: var(--space-4) auto 0;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.statement-cta {
  position: relative;
  z-index: 1;
  margin-top: var(--space-8);
}

@media (max-width: 1699px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 0 120px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(255, 253, 247, 0.98) 0%, rgba(255, 253, 247, 0.9) 48%, rgba(255, 253, 247, 0.18) 100%);
  }

  .hero-title {
    font-size: 60px;
  }

  .hero-title-wordmark {
    width: min(360px, 100%);
  }

  .hero-subtitle {
    font-size: 34px;
  }

  .hero-line {
    font-size: 26px;
  }

  .section-heading,
  .app-title,
  .statement h2 {
    font-size: 34px;
  }

  .app-layout,
  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: clamp(660px, 178vw, 760px);
  }

  .hero-inner {
    padding: clamp(36px, 10vw, 48px) 0 clamp(260px, 76vw, 330px);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(255, 253, 247, 0.86) 0%, rgba(255, 253, 247, 0.66) 42%, rgba(255, 253, 247, 0.12) 58%, transparent 74%);
  }

  .hero::after {
    inset: 0;
    width: 100%;
    height: 100%;
    min-width: 0;
    aspect-ratio: auto;
    background-image: url("../../generated/home-hero-mobile.png");
    background-position: top center;
    background-size: cover;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .proof {
    margin-top: -56px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-title-wordmark {
    width: min(270px, 78vw);
  }

  .hero-subtitle {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-line {
    margin-bottom: 16px;
    font-size: 20px;
  }

  .hero-copy--desktop {
    display: block;
    max-width: 330px;
    font-size: 15px;
    line-height: 1.55;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 330px;
    margin-top: 16px;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn {
    width: 100%;
    min-height: 48px;
    padding-inline: 12px;
    gap: var(--space-2);
    white-space: nowrap;
  }

  .proof-card {
    padding: 14px;
  }

  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }

  .feature-card {
    padding: 22px;
  }

  .section-heading,
  .app-title,
  .statement h2 {
    font-size: 30px;
  }

  .statement {
    padding: 72px var(--space-4) 88px;
    background-position: center;
  }

  .app-grid {
    grid-template-columns: 1fr;
  }
}
