/* Secondary market-analysis toolkit. The section stays visually lighter than
   How It Works: five compact cards, no workflow language, and no conversion CTA. */

body.landing-3d #features {
  min-height: auto;
  padding-block: clamp(58px, 7svh, 88px);
}

body.landing-3d .feature-showcase-inner {
  width: min(calc(100% - clamp(48px, 10vw, 160px)), 1180px);
}

body.landing-3d .feature-showcase-head {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

body.landing-3d .feature-showcase-head .depth-tag {
  justify-content: center;
}

body.landing-3d .feature-showcase-head .depth-heading {
  max-width: 700px;
  margin-inline: auto;
  color: var(--depth-fg);
  font-size: clamp(2.1rem, 3.2vw, 3.35rem);
  line-height: 1.08;
}

body.landing-3d .feature-showcase-head .depth-copy {
  max-width: 650px;
  margin-inline: auto;
}

/* Five equal cards fit in one row on wide desktop. */
body.landing-3d .feature-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(22px, 2.6vw, 34px);
}

body.landing-3d .feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: clamp(16px, 1.4vw, 21px);
  overflow: hidden;
  border: 1px solid rgba(207, 224, 255, 0.12);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16, 34, 48, 0.74), rgba(9, 24, 33, 0.84));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body.landing-3d .feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 209, 139, 0.4), transparent);
}

body.landing-3d .feature-card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  aspect-ratio: 1;
  border: 1px solid rgba(35, 209, 139, 0.28);
  border-radius: 10px;
  background: rgba(35, 209, 139, 0.07);
  color: var(--depth-green);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

body.landing-3d .feature-card-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.landing-3d .feature-card-title {
  margin: clamp(12px, 1vw, 15px) 0 0;
  color: var(--depth-fg);
  font-size: clamp(1rem, 1.08vw, 1.14rem);
  line-height: 1.25;
}

body.landing-3d .feature-card-desc {
  margin: 6px 0 0;
  color: rgba(238, 244, 255, 0.62);
  font-size: clamp(0.83rem, 0.86vw, 0.92rem);
  line-height: 1.46;
}

@media (hover: hover) and (pointer: fine) {
  body.landing-3d .feature-card:hover {
    border-color: rgba(35, 209, 139, 0.38);
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.24),
      0 0 26px rgba(35, 209, 139, 0.06),
      inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(-4px);
  }

  body.landing-3d .feature-card:hover .feature-card-icon {
    border-color: rgba(35, 209, 139, 0.62);
    background: rgba(35, 209, 139, 0.12);
    box-shadow: 0 0 22px rgba(35, 209, 139, 0.18);
  }
}

/* Six tracks produce a centered 3+2 layout without making the final row wider. */
@media (max-width: 1180px) and (min-width: 701px) {
  body.landing-3d .feature-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 1fr;
  }

  body.landing-3d .feature-card {
    grid-column: span 2;
  }

  body.landing-3d .feature-card:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

/* Phones keep the first four tools in two columns and emphasize the final
   multi-timeframe tool with a compact full-width row. */
@media (max-width: 700px) {
  body.landing-3d #features {
    padding-block: clamp(42px, 5.5svh, 58px);
  }

  body.landing-3d .feature-showcase-inner {
    width: calc(100vw - (var(--mobile-page-gutter) * 2));
    max-width: 560px;
  }

  body.landing-3d .feature-showcase-head .depth-heading {
    font-size: clamp(1.82rem, 7.9vw, 2.3rem);
    line-height: 1.08;
  }

  body.landing-3d .feature-showcase-head .depth-copy {
    font-size: clamp(0.9rem, 3.6vw, 0.98rem);
    line-height: 1.5;
  }

  body.landing-3d .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr)) auto;
    gap: 10px;
    margin-top: 0;
  }

  body.landing-3d .feature-card {
    min-height: 0;
    padding: 14px;
    border-radius: 9px;
  }

  body.landing-3d .feature-card-wide {
    grid-column: 1 / -1;
  }

  body.landing-3d .feature-card-icon {
    width: 34px;
    border-radius: 8px;
  }

  body.landing-3d .feature-card-icon svg {
    width: 17px;
    height: 17px;
  }

  body.landing-3d .feature-card-title {
    margin-top: 10px;
    font-size: clamp(0.88rem, 3.65vw, 0.98rem);
  }

  body.landing-3d .feature-card-desc {
    margin-top: 5px;
    font-size: clamp(0.76rem, 3.08vw, 0.84rem);
    line-height: 1.4;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.landing-3d .feature-card,
  body.landing-3d .feature-card-icon {
    transition: none;
  }
}
