:root {
  --ats-red: #c41230;
  --ats-red-dark: #991227;
  --ats-charcoal: #202326;
  --ats-black: #111315;
  --ats-gray: #f4f5f6;
  --ats-gray-2: #e4e6e8;
  --ats-text: #2d3135;
  --ats-muted: #697079;
  --ats-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: "Inter", "Roboto", Arial, sans-serif;
  background: var(--ats-white);
  color: var(--ats-text);
  line-height: 1.6;
}

main {
  max-width: 1240px;
  margin: 96px auto 0;
  padding: 0 24px;
}

h1,
h2,
h3 {
  color: var(--ats-charcoal);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

p {
  color: var(--ats-muted);
}

a {
  color: var(--ats-red);
  text-decoration: none;
}

/* Hero slideshow */
.hero-full {
  width: 100vw;
  height: calc(82vh - 96px);
  margin-left: calc(-50vw + 50%);
  position: relative;
  overflow: hidden;
  background: var(--ats-black);
}

.hero-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17,19,21,0.82), rgba(17,19,21,0.25)),
    linear-gradient(180deg, transparent, rgba(17,19,21,0.35));
  z-index: 1;
}

.hero-slideshow .slides {
  height: 100%;
}

.hero-slideshow .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slideshow .slide.active {
  opacity: 1;
}

/* Facts */
.facts {
  margin-top: 72px;
  padding: 70px 0;
  background: var(--ats-white);
  border-bottom: 1px solid var(--ats-gray-2);
}

.facts-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.facts-header h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 18px;
}

.facts-header p {
  font-size: 1.08rem;
  margin: 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ats-gray-2);
  border-left: 1px solid var(--ats-gray-2);
}

.fact-card {
  padding: 34px;
  border-right: 1px solid var(--ats-gray-2);
  border-bottom: 1px solid var(--ats-gray-2);
  background: #fff;
}

.fact-card h3 {
  color: var(--ats-red);
  font-size: 3rem;
  margin: 0 0 10px;
}

.fact-card span {
  display: block;
  color: var(--ats-charcoal);
  font-weight: 700;
  margin-bottom: 10px;
}

.fact-card p {
  margin: 0;
  font-size: 0.96rem;
}

/* Main intro */
.hero-content {
  max-width: 840px;
  margin: 76px 0 44px;
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  margin: 0 0 20px;
}

.hero-content p {
  max-width: 680px;
  font-size: 1.12rem;
  margin-bottom: 28px;
}

.home-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.home-btn-primary,
.home-btn-secondary,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.2s ease;
}

.home-btn-primary,
.btn-primary {
  background: var(--ats-red);
  color: #fff;
  border: 2px solid var(--ats-red);
}

.home-btn-primary:hover,
.btn-primary:hover {
  background: var(--ats-red-dark);
  border-color: var(--ats-red-dark);
}

.home-btn-secondary {
  color: var(--ats-charcoal);
  border: 2px solid var(--ats-charcoal);
}

.home-btn-secondary:hover {
  background: var(--ats-charcoal);
  color: #fff;
}

/* Product category blocks */
.features-overlay {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 54px;
  border-top: 1px solid var(--ats-gray-2);
  border-left: 1px solid var(--ats-gray-2);
}

.feature-overlay {
  position: relative;
  height: 390px;
  overflow: hidden;
  border-right: 1px solid var(--ats-gray-2);
  border-bottom: 1px solid var(--ats-gray-2);
  background: var(--ats-black);   /* lighter background instead of black */
}

.feature-overlay img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 20px;
  transition: transform .45s ease;
}

.feature-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.72));
}

.overlay-content {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
}

.overlay-content h3 {
  color: #fff;
  font-size: 1.65rem;
  margin: 0 0 10px;
}

.overlay-content span {
  color: rgba(255,255,255,0.82);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.feature-overlay:hover img {
  transform: scale(1.05);
}

/* Why section */
.why-modern {
  margin-top: 90px;
  padding: 76px 0;
  border-top: 1px solid var(--ats-gray-2);
}

.why-header {
  max-width: 760px;
  margin-bottom: 44px;
}

.why-header h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  margin: 0 0 18px;
}

.why-header p {
  font-size: 1.08rem;
}

.why-inline-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ats-gray-2);
  border-left: 1px solid var(--ats-gray-2);
}

.why-inline-item {
  padding: 34px;
  border-right: 1px solid var(--ats-gray-2);
  border-bottom: 1px solid var(--ats-gray-2);
}

.why-inline-item i {
  color: var(--ats-red);
  font-size: 1.9rem;
  margin-bottom: 18px;
}

.why-inline-item h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.why-inline-item p {
  margin: 0;
}

.why-divider {
  display: none;
}

.cta {
  background: var(--ats-charcoal);
  color: #fff;
  padding: 70px 34px;
  margin-top: 80px;
  text-align: center;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: rgba(255,255,255,0.75);
}

.why-brand-logos {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.why-brand-logos img {
  max-width: 150px;
  max-height: 70px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .facts-grid,
  .features-overlay,
  .why-inline-row {
    grid-template-columns: 1fr;
  }

  .hero-full {
    height: 58vh;
  }
}