/* Homepage: one responsive grid, with unchanged product descriptions. */
#page-content.home-page { width: 100%; overflow: hidden; }
.home-shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.home-hero {
  padding: 76px 0 64px;
  background: #000 url('/assets/images/laptop_tlo.jpg') center / cover no-repeat;
}
#page-content #home-title {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .4);
  font-size: clamp(28px, 3.5vw, 48px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.025em;
  color: white;
}
.systems-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.system-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.system-card > img { width: 200px; max-width: 100%; height: 160px; object-fit: contain; align-self: center; }
.system-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 24px;
  /* Original transparent-to-dark panels keep the photograph visible. */
  background: linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .75) 3%, rgba(0, 0, 0, 0) 100%);
  border-radius: 4px;
}
#page-content .system-card h2 { margin: 0 0 16px; min-height: 48px; color: white; font-size: 17px; line-height: 1.4; font-weight: 700; }
#page-content .system-card p { color: white; font-size: 15px; line-height: 1.7; margin: 0 0 20px; padding: 0; text-shadow: 0 1px 3px rgba(0, 0, 0, .5); }
#page-content .system-card p br { display: none; }
#page-content .system-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding: 10px 16px;
  min-height: 44px;
  color: white !important; /* Override the legacy global link color. */
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 24px;
  font-size: 13px;
}
#page-content .system-card-link:hover { color: #b6f7d6 !important; border-color: var(--color-secondary); }
.home-section { padding: 64px 0; }
#page-content .home-section h2 {
  margin: 0 0 36px;
  color: #171538;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.02em;
}
.home-benefits { background: #f5f6fb; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.benefit > span { display: block; color: var(--color-primary); font-size: 36px; margin-bottom: 20px; }
#page-content .benefit h3 { font-size: 18px; line-height: 1.45; font-weight: 700; margin-bottom: 10px; }
#page-content .benefit p { color: #55576c; font-size: 15px; line-height: 1.65; padding: 0; }
.testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
#page-content .testimonials-grid blockquote { margin: 0; padding: 28px 28px 24px; border: 1px solid #e2e4ee; border-top: 3px solid var(--color-primary); border-radius: 8px; background: white; }
.testimonials-grid blockquote::before { content: none; }
#page-content .testimonials-grid p { font-size: 15px; line-height: 1.75; color: #43465a; }
#page-content .testimonials-grid .text-right { margin-top: 18px; color: #24213d; font-size: 14px; }
.home-clients { padding-top: 12px; }
#page-content .home-clients h2 { margin-bottom: 16px; }
.home-clients .logo-carousel { max-width: 100%; margin-bottom: 0; }
@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .systems-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 600px) {
  .home-shell { width: calc(100% - 40px); }
  .home-hero { padding: 40px 0; }
  #page-content #home-title { margin-bottom: 28px; }
  .systems-grid, .testimonials-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .systems-grid { gap: 36px; }
  .system-card { gap: 16px; }
  .system-card > img { width: 120px; height: 96px; }
  #page-content .system-card h2 { min-height: 0; }
  .home-section { padding: 40px 0; }
  .benefits-grid { gap: 24px 20px; }
  #page-content .benefit h3 { font-size: 16px; }
  #page-content .benefit p { font-size: 14px; }
  #page-content .home-section h2 { margin-bottom: 26px; }
  #page-content .testimonials-grid blockquote { padding: 22px; }
}
