.home-page {
  background: #f4f7f5;
}

.home-hero {
  display: flex;
  align-items: center;
  min-height: min(800px, calc(100vh - 76px));
  padding: clamp(60px, 9vw, 130px) clamp(20px, 7vw, 112px);
  background:
    linear-gradient(90deg, rgba(7, 15, 10, 0.96) 0%, rgba(7, 15, 10, 0.82) 38%, rgba(7, 15, 10, 0.16) 72%),
    url("assets/home-hero.webp") center / cover no-repeat;
  color: #fff;
}

.home-hero-copy {
  width: min(750px, 100%);
}

.home-hero .eyebrow,
.home-confidence .eyebrow {
  color: #87eeaa;
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 7rem);
  line-height: 0.91;
}

.home-hero p {
  max-width: 650px;
  color: #d7e4da;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

.home-demo-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
}

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

.home-principles > div {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 30px clamp(20px, 4vw, 64px);
  border-right: 1px solid var(--line);
}

.home-principles > div:last-child {
  border-right: 0;
}

.home-principles span {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-principles strong {
  font-size: 1.08rem;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: clamp(38px, 7vw, 104px);
  padding: clamp(80px, 11vw, 160px) clamp(20px, 7vw, 112px);
}

.home-intro h2 {
  max-width: 830px;
  font-size: clamp(2.6rem, 5.5vw, 5.4rem);
}

.home-intro-copy p {
  max-width: 760px;
  margin-top: 24px;
  font-size: 1.12rem;
}

.crm-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(16px, 2vw, 24px);
  min-height: 460px;
}

.crm-column {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 30px);
  background: #fff;
  box-shadow: 0 18px 50px rgba(18, 32, 24, 0.08);
}

.crm-column span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.generic-crm span {
  background: #edf1ee;
  color: #5f6e64;
}

.generic-crm {
  min-height: 470px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(237, 241, 238, 0.78), rgba(255, 255, 255, 0.92)),
    repeating-linear-gradient(0deg, rgba(122, 145, 132, 0.06) 0, rgba(122, 145, 132, 0.06) 1px, transparent 1px, transparent 22px);
  box-shadow: 0 10px 30px rgba(18, 32, 24, 0.05);
  color: #6a766e;
  opacity: 0.88;
}

.generic-crm::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 1px dashed rgba(122, 145, 132, 0.42);
  border-radius: 999px;
  padding: 6px 10px;
  color: #7a8a80;
  content: "Disconnected";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.junkflo-crm {
  min-height: 470px;
  overflow: hidden;
  border-color: rgba(38, 185, 95, 0.5);
  background:
    radial-gradient(circle at 82% 16%, rgba(38, 185, 95, 0.28), transparent 28%),
    linear-gradient(145deg, #142119 0%, #101713 54%, #1b3020 100%);
  color: #f4fff7;
  box-shadow: 0 28px 80px rgba(18, 32, 24, 0.26);
}

.junkflo-crm::before {
  position: absolute;
  top: 72px;
  right: -28px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(139, 231, 168, 0.16);
  border-radius: 999px;
  content: "";
}

.junkflo-crm::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 1px solid rgba(139, 231, 168, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(38, 185, 95, 0.12);
  color: #bdf8cf;
  content: "Connected";
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.junkflo-crm span {
  background: rgba(38, 185, 95, 0.18);
  color: #8be7a8;
}

.crm-column strong {
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  line-height: 1.05;
}

.junkflo-crm strong {
  max-width: 10ch;
  font-size: clamp(1.75rem, 2.8vw, 2.7rem);
}

.crm-column ul {
  display: grid;
  gap: 10px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.crm-column li {
  position: relative;
  border: 1px solid rgba(122, 145, 132, 0.2);
  border-radius: 8px;
  padding: 11px 12px 11px 34px;
  color: #536258;
  font-weight: 800;
}

.crm-column li::before {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #9aa8a0;
  content: "";
  transform: translateY(-50%);
}

.generic-crm li {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.junkflo-crm li {
  border-color: rgba(139, 231, 168, 0.22);
  color: #d9eadf;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.junkflo-crm ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.junkflo-crm li::before {
  top: 48%;
  width: 7px;
  height: 12px;
  border: solid var(--green);
  border-width: 0 2px 2px 0;
  border-radius: 0;
  background: transparent;
  transform: translateY(-55%) rotate(45deg);
}

.home-software {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  align-items: center;
  gap: clamp(42px, 7vw, 100px);
  padding: clamp(70px, 9vw, 120px) clamp(20px, 7vw, 112px);
  background: #111713;
  color: #fff;
}

.home-software .eyebrow {
  color: #83eca8;
}

.home-software-copy p {
  color: #aebdb3;
}

.text-link {
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid var(--green);
  padding: 8px 0;
  color: #9cf0b8;
  font-weight: 800;
}

.text-link::after {
  margin-left: 10px;
  content: "\2192";
}

.home-app-preview {
  height: 590px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  background: #0d130f;
}

.home-app-preview iframe {
  width: 200%;
  height: 1180px;
  border: 0;
  transform: scale(0.5);
  transform-origin: top left;
  pointer-events: none;
}

.home-paths {
  padding: clamp(80px, 11vw, 150px) clamp(20px, 7vw, 112px);
  background: #fff;
}

.home-paths-heading {
  max-width: 820px;
  margin-bottom: 54px;
}

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

.home-path-grid a {
  display: grid;
  align-content: start;
  min-height: 330px;
  padding: clamp(28px, 4vw, 52px);
  border-right: 1px solid var(--line);
  transition: background 160ms ease;
}

.home-path-grid a:last-child {
  border-right: 0;
}

.home-path-grid a:hover {
  background: #eff7f1;
}

.home-path-grid span {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-path-grid h3 {
  margin-top: 46px;
  font-size: clamp(1.6rem, 2.4vw, 2.45rem);
}

.home-path-grid strong {
  align-self: end;
  color: var(--green-dark);
}

.home-confidence {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(50px, 8vw, 120px);
  padding: clamp(80px, 10vw, 140px) clamp(20px, 7vw, 112px);
  background: #1b2720;
  color: #fff;
}

.home-confidence-copy p,
.home-confidence-points p {
  color: #aebdb3;
}

.home-confidence-points {
  display: grid;
  gap: 28px;
}

.home-confidence-points > div {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.home-confidence-points span {
  color: #72e99c;
  font-size: 0.75rem;
  font-weight: 900;
}

.home-confidence-points strong {
  display: block;
  margin: 8px 0;
  font-size: 1.12rem;
}

.home-confidence-points p {
  margin: 0;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: clamp(70px, 9vw, 120px) clamp(20px, 7vw, 112px);
  background: #eef4f0;
}

.home-cta > div:first-child {
  max-width: 760px;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 980px) {
  .home-intro,
  .home-software,
  .home-confidence {
    grid-template-columns: 1fr;
  }

  .home-path-grid {
    grid-template-columns: 1fr;
  }

  .home-path-grid a {
    min-height: 250px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-path-grid a:last-child {
    border-bottom: 0;
  }

  .home-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .home-hero {
    align-items: flex-end;
    min-height: 680px;
    padding-bottom: 54px;
    background-position: 64% center;
  }

  .home-hero h1 {
    font-size: clamp(3rem, 15vw, 4.8rem);
  }

  .home-principles {
    grid-template-columns: 1fr;
  }

  .crm-compare {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .generic-crm,
  .junkflo-crm {
    min-height: 0;
    transform: none;
  }

  .junkflo-crm ul {
    grid-template-columns: 1fr;
  }

  .home-principles > div {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-principles > div:last-child {
    border-bottom: 0;
  }

  .home-app-preview {
    height: 440px;
  }

  .home-app-preview iframe {
    width: 263.157%;
    height: 1158px;
    transform: scale(0.38);
  }
}
