/* ========================================
   NanoFixers — Homepage
   ======================================== */

.home-container {
  padding-block: var(--space-8) var(--space-12);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 360px;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr);
  gap: var(--space-8);
  overflow: hidden;
  margin-bottom: var(--space-12);
  padding: clamp(var(--space-8), 8vw, var(--space-16));
  border: 1px solid #B8DCD8;
  border-radius: var(--radius-xl);
  background: var(--color-primary-very-soft);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.home-brand img {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  object-fit: contain;
}

.home-eyebrow {
  margin: 0;
  color: var(--color-primary-deep);
  font-size: var(--font-size-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 620px;
  margin: 0 0 var(--space-4);
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: var(--line-height-tight);
  letter-spacing: -0.04em;
}

.home-hero h1 span {
  color: var(--color-primary);
}

.home-hero__description {
  max-width: 520px;
  margin: 0 0 var(--space-6);
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
}

.home-hero__shape {
  position: relative;
  width: min(100%, 270px);
  aspect-ratio: 1;
  justify-self: center;
  border: 1px solid rgb(8 127 123 / 0.18);
  border-radius: 38% 62% 58% 42% / 42% 38% 62% 58%;
  background: rgb(8 127 123 / 0.08);
  transform: rotate(-12deg);
}

.home-hero__shape span {
  position: absolute;
  display: block;
  border-radius: var(--radius-full);
  background: var(--color-primary);
}

.home-hero__shape span:first-child {
  top: 27%;
  left: 28%;
  width: 26%;
  height: 26%;
}

.home-hero__shape span:last-child {
  right: 19%;
  bottom: 23%;
  width: 38%;
  height: 12%;
  background: var(--color-secondary-teal);
  transform: rotate(-42deg);
}

.featured-tools {
  margin-bottom: var(--space-12);
}

.home-section-heading {
  margin-bottom: var(--space-4);
}

.home-section-heading h2,
.future-tools h2 {
  margin: 0;
  font-size: var(--font-size-2xl);
  line-height: var(--line-height-tight);
}

.featured-tool {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
}

.featured-tool__icon {
  display: inline-flex;
  flex: 0 0 3rem;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.featured-tool__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.featured-tool__content {
  min-width: 0;
}

.featured-tool h3 {
  margin: 0 0 var(--space-2);
  font-size: var(--font-size-xl);
}

.featured-tool p {
  max-width: 700px;
  margin: 0 0 var(--space-5);
  color: var(--color-text-muted);
}

.future-tools {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 1px solid #B8DCD8;
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  background: var(--color-primary-very-soft);
  text-align: center;
}

.future-tools p {
  margin: 0;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .home-hero__shape {
    width: 150px;
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .home-container {
    padding-block: var(--space-5) var(--space-8);
  }

  .home-hero {
    min-height: 0;
    padding: var(--space-6);
  }

  .home-hero__description {
    font-size: var(--font-size-base);
  }

  .featured-tool {
    flex-direction: column;
    padding: var(--space-5);
  }

  .featured-tool .button {
    width: 100%;
  }
}
