@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700;800&display=swap");

:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --deep: #0f1630;
  --deep-2: #171d3d;
  --text: #101423;
  --muted: #5d667a;
  --border: rgba(16, 20, 35, 0.08);
  --accent: #3bbdf6;
  --accent-2: #0078ff;
  --accent-3: #16c7b8;
  --success: #28b86f;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.06);
  --radius: 24px;
  --radius-lg: 32px;
  --section-pad: clamp(3.5rem, 7vw, 6.5rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

p {
  line-height: 1.8;
}

a:focus-visible {
  outline: 3px solid rgba(59, 189, 246, 0.5);
  outline-offset: 4px;
  border-radius: 10px;
}

.products-page h1,
.products-page h2,
.products-page h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 34px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  flex: 0 0 auto;
}

.section-kicker--light {
  color: #bfe7ff;
}

.section-kicker--light::before {
  background: linear-gradient(90deg, #7ae0ff, var(--accent-3));
}

.products-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding: 6rem clamp(1rem, 4vw, 3rem) 5rem;
  overflow: hidden;
  background: var(--deep);
  isolation: isolate;
}

.products-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
  z-index: -2;
}

.products-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 11, 25, 0.9) 0%, rgba(7, 11, 25, 0.7) 44%, rgba(7, 11, 25, 0.28) 100%),
    linear-gradient(180deg, rgba(7, 11, 25, 0.1) 0%, rgba(7, 11, 25, 0.46) 100%);
  z-index: -1;
}

.products-hero__content {
  width: min(1200px, 100%);
  margin: 0 auto;
  color: #ffffff;
}

.products-hero h1 {
  max-width: 10ch;
  font-size: 5rem;
  line-height: 0.98;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.products-hero__lead {
  max-width: 620px;
  margin-top: 1.15rem;
  color: rgba(242, 247, 255, 0.86);
  font-size: 1.18rem;
}

.products-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.6rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.primary-action {
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  box-shadow: 0 16px 34px rgba(0, 120, 255, 0.22);
}

.secondary-action {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(10px);
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-3px);
}

.secondary-action:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.5);
}

.products-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

.products-intro__content,
.products-intro__media {
  width: 100%;
}

.products-intro__content {
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.products-intro h2,
.section-heading h2,
.procurement-value h2,
.products-cta h2 {
  color: var(--text);
  font-size: 3.35rem;
  line-height: 1.08;
  font-weight: 800;
}

.products-intro__content > p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.intro-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.intro-metrics div {
  min-height: 116px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
}

.intro-metrics strong {
  color: var(--accent-2);
  font-size: 2rem;
  line-height: 1;
}

.intro-metrics span {
  margin-top: 0.4rem;
  color: var(--muted);
  font-weight: 700;
}

.products-intro__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.products-intro__media img {
  width: 100%;
  min-height: 420px;
  height: 100%;
  object-fit: cover;
}

.product-categories {
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
}

.section-heading {
  width: min(1200px, 100%);
  margin: 0 auto 2rem;
}

.section-heading--center {
  text-align: center;
}

.section-heading--center .section-kicker {
  justify-content: center;
}

.section-heading h2 {
  max-width: 760px;
}

.section-heading--center h2 {
  margin-inline: auto;
}

.section-heading > p:not(.section-kicker) {
  max-width: 680px;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.section-heading--center > p:not(.section-kicker) {
  margin-inline: auto;
}

.product-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0 auto;
}

.product-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 189, 246, 0.28);
  box-shadow: var(--shadow);
}

.product-card__media {
  position: relative;
  height: 220px;
  background: #dfe8f7;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__icon {
  position: absolute;
  left: 1.15rem;
  bottom: 1.15rem;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  box-shadow: 0 14px 30px rgba(0, 120, 255, 0.24);
}

.product-card__icon i {
  font-size: 1.45rem;
}

.product-card__body {
  padding: 1.35rem;
}

.product-card h3 {
  color: var(--text);
  font-size: 1.32rem;
  line-height: 1.25;
  font-weight: 800;
}

.product-card__body > p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.product-card dl {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.05rem;
}

.product-card dl div {
  padding-top: 0.75rem;
  border-top: 1px solid rgba(16, 20, 35, 0.08);
}

.product-card dt {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.product-card dd {
  margin-top: 0.25rem;
  color: #344055;
  line-height: 1.7;
}

.procurement-value {
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  color: #ffffff;
  background: linear-gradient(180deg, #111638 0%, #0c1028 100%);
}

.procurement-value__inner {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.procurement-value__heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.procurement-value h2 {
  color: #ffffff;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.value-grid article {
  min-height: 250px;
  padding: 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 50px rgba(5, 8, 20, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.value-grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 189, 246, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

.value-grid i {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--accent-2), var(--accent-3));
  font-size: 1.45rem;
}

.value-grid h3 {
  margin-top: 1rem;
  color: #ffffff;
  font-size: 1.2rem;
}

.value-grid p {
  margin-top: 0.55rem;
  color: rgba(228, 236, 255, 0.78);
  font-size: 0.98rem;
}

.partner-section {
  padding: var(--section-pad) clamp(1rem, 4vw, 3rem);
  background: linear-gradient(180deg, #ffffff 0%, #eef3ff 100%);
}

.partner-grid {
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
}

.partner-card {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  padding: 1.2rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 189, 246, 0.28);
  box-shadow: var(--shadow);
}

.partner-card img {
  width: min(150px, 82%);
  height: 58px;
  object-fit: contain;
}

.partner-card h3 {
  color: var(--muted);
  font-family: "Outfit", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
}

.products-cta {
  padding: 0 clamp(1rem, 4vw, 3rem) var(--section-pad);
  background: linear-gradient(180deg, #eef3ff 0%, #f4f7fb 100%);
}

.products-cta__content {
  width: min(1200px, 100%);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(7, 11, 25, 0.9) 0%, rgba(7, 11, 25, 0.72) 48%, rgba(7, 11, 25, 0.38) 100%),
    url("../images/products/rack-infrastructure.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.products-cta h2 {
  max-width: 780px;
  color: #ffffff;
}

.products-cta p:not(.section-kicker) {
  max-width: 620px;
  margin-top: 0.9rem;
  color: rgba(242, 247, 255, 0.84);
  font-size: 1.04rem;
}

.products-cta .primary-action {
  margin-top: 1.35rem;
}

@media (max-width: 1120px) {
  .products-hero h1 {
    font-size: 4.25rem;
  }

  .products-intro h2,
  .section-heading h2,
  .procurement-value h2,
  .products-cta h2 {
    font-size: 3rem;
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .products-intro {
    grid-template-columns: 1fr;
  }

  .products-intro__media img {
    min-height: 340px;
  }

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

  .partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: 3.5rem;
  }

  .products-hero {
    min-height: 520px;
    padding: 5rem 1rem 4rem;
  }

  .products-hero h1 {
    max-width: 9ch;
    font-size: 3.15rem;
  }

  .products-hero__lead {
    font-size: 1rem;
  }

  .products-hero__actions {
    align-items: stretch;
    flex-direction: column;
    width: min(100%, 340px);
  }

  .products-intro,
  .product-categories,
  .procurement-value,
  .partner-section {
    padding-inline: 1rem;
  }

  .products-intro__content,
  .product-card__body,
  .products-cta__content {
    padding: 1.2rem;
  }

  .products-intro h2,
  .section-heading h2,
  .procurement-value h2,
  .products-cta h2 {
    font-size: 2.35rem;
  }

  .intro-metrics {
    grid-template-columns: 1fr;
  }

  .product-card__media {
    height: 200px;
  }

  .value-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .value-grid article {
    min-height: auto;
  }

  .products-cta {
    padding-inline: 1rem;
  }
}

@media (max-width: 430px) {
  .products-hero h1 {
    font-size: 2.55rem;
  }

  .products-intro h2,
  .section-heading h2,
  .procurement-value h2,
  .products-cta h2 {
    font-size: 2rem;
  }

  .section-kicker {
    font-size: 0.78rem;
  }

  .section-kicker::before {
    width: 26px;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
    min-height: 46px;
    padding-inline: 1rem;
    font-size: 0.8rem;
    text-align: center;
  }

  .partner-card {
    min-height: 132px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
