/* Root variables for colours and spacing */
:root {
  --color-primary: #e63939; /* vibrant red accent */
  --color-secondary: #457b9d; /* muted blue for subtle highlights */
  --color-dark: #0b0b0e; /* rich near‑black for dark sections */
  --color-light: #f9fafb; /* very light grey background */
  --color-grey: #e5e7eb; /* neutral grey for borders and separators */
  --color-text: #1f2937; /* dark grey for primary text */
  --color-muted: #6b7280; /* mid grey for secondary text */
  --max-width: 1200px; /* maximal width of content */
  --spacing-lg: 3rem;
  --spacing-md: 2rem;
  --spacing-sm: 1rem;
  --transition-fast: 0.3s ease;
}

/* Base reset and typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
}

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

ul {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.2;
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-muted);
}

/* Utility classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section-title {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-dark);
}

.section-title--light {
  color: var(--color-light);
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
  color: var(--color-muted);
}

.section-subtitle--light {
  color: #d1d5db;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  border: none;
}

.btn--primary {
  background-color: var(--color-primary);
  color: #fff;
}
.btn--primary:hover,
.btn--primary:focus {
  background-color: #b92b3a;
}

.btn--ghost {
  background-color: transparent;
  color: var(--color-dark);
  padding: 0.5rem;
}
.btn--ghost:hover,
.btn--ghost:focus {
  color: var(--color-primary);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.link {
  font-weight: 500;
  transition: color var(--transition-fast);
}

.link--light {
  color: var(--color-light);
}
.link--light:hover,
.link--light:focus {
  color: #f1f5f9;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0);
  backdrop-filter: blur(8px);
  border: none;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -1px;
}
.logo .accent {
  color: var(--color-primary);
}

/* Navigation */
.nav {
  display: flex;
}

.nav__list {
  display: flex;
  gap: var(--spacing-md);
}

.nav__item a {
  display: block;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--color-dark);
  transition: color var(--transition-fast);
}
.nav__item a:hover,
.nav__item a:focus {
  color: var(--color-primary);
}

/* Navigation toggle for mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: var(--spacing-sm);
}
.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  transition: transform var(--transition-fast);
}
.nav-toggle.is-active .bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.nav-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Search bar */
.search-bar {
  max-height: 0;
  overflow: hidden;
  background-color: #f3f4f6;
  transition: max-height var(--transition-fast);
  border-bottom: 1px solid var(--color-grey);
}
.search-bar--open {
  max-height: 5rem;
}
.search-bar__inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) 0;
}
.search-bar input {
  flex-grow: 1;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-grey);
  border-radius: 0.375rem;
  font-size: 1rem;
}
.search-bar input:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
  z-index: -1;
}
.hero__content {
  max-width: 700px;
  padding: var(--spacing-lg) var(--spacing-sm);
}
.hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--spacing-sm);
}
.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-md);
  color: #e2e8f0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  margin-top: var(--spacing-sm);
}

/* About section */
.about {
  padding: var(--spacing-lg) 0;
  background-color: var(--color-light);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}
.about__text {
  max-width: 500px;
}
.about__media {
  position: relative;
}
.about__figure {
  position: relative;
}
.about__image {
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.about__callout {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 1rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}
.callout__icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}
.callout__text h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
  color: var(--color-dark);
}
.callout__text p {
  font-size: 0.875rem;
  margin-bottom: 0;
  color: var(--color-muted);
}
.about__brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}
.about__brands li {
  font-weight: 500;
  color: var(--color-muted);
  border: 1px solid var(--color-grey);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background-color: #fff;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.about__brands li:hover {
  background-color: var(--color-primary);
  color: #fff;
}

/* How it works */
.how-it-works {
  background-color: var(--color-dark);
  padding: var(--spacing-lg) 0;
  color: var(--color-light);
}
.how__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}
.how__content {
  max-width: 550px;
}
.how__steps {
  margin-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  border-left: 2px solid var(--color-grey);
  padding-left: var(--spacing-sm);
}
.how__step {
  display: flex;
  gap: var(--spacing-sm);
}
.step-number {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-left: -1.1rem; /* overlap the border */
}
.how__step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}
.how__step p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  color: var(--color-muted);
}
.how__image-wrapper {
  position: relative;
}
.how__image {
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Report section */
.report {
  background-color: var(--color-dark);
  padding: var(--spacing-lg) 0;
  color: var(--color-light);
}
.report__cards {
  margin-top: var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}
.report__card {
  background-color: #131318;
  padding: var(--spacing-md);
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast);
}
.report__card:hover {
  transform: translateY(-4px);
}
.card__title {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: #f3f4f6;
}
.card__num {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.25rem;
}
.report__card p {
  font-size: 0.875rem;
  color: #cbd5e1;
}
.report__footer {
  margin-top: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.report__promo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}
.report__note {
  font-size: 0.875rem;
  color: #94a3b8;
}

/* Testimonials */
.testimonials {
  padding: var(--spacing-lg) 0;
  background-color: #f3f4f6;
}
.testimonials__inner {
  max-width: 900px;
  margin: 0 auto;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  align-items: center;
  margin-top: var(--spacing-md);
}
.testimonial {
  background-color: #fff;
  padding: var(--spacing-md);
  border-radius: 0.75rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.testimonial__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}
.testimonial__logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}
.testimonial__rating {
  color: #fbbf24; /* golden stars */
}
.testimonial__text {
  font-size: 0.9375rem;
  color: var(--color-muted);
  margin-bottom: var(--spacing-sm);
}
.testimonial__author {
  font-size: 0.875rem;
  font-style: normal;
  color: var(--color-dark);
}
.testimonial__author-wrapper {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-sm);
}
.testimonial__image-wrapper {
  border-radius: 10rem;
  overflow: hidden;
}
.testimonial__image {
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: inherit;
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}
.footer__cta {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}
.footer__title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: var(--spacing-sm);
}
.footer__subtitle {
  color: #94a3b8;
  margin-bottom: var(--spacing-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.footer__column h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}
.footer__column ul li {
  margin-bottom: 0.5rem;
}
.footer__column a {
  color: #d1d5db;
  transition: color var(--transition-fast);
}
.footer__column a:hover,
.footer__column a:focus {
  color: var(--color-primary);
}
.contact-list i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}
.footer address {
  font-style: normal;
  color: #d1d5db;
  line-height: 1.5;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  border-top: 1px solid #1f2937;
  padding-top: var(--spacing-md);
}
.footer__legal {
  display: flex;
  gap: var(--spacing-sm);
}
.footer__legal li a {
  color: #94a3b8;
}
.footer__legal li a:hover {
  color: var(--color-primary);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .nav__list {
    gap: var(--spacing-sm);
  }
  .hero__title {
    font-size: 2rem;
  }
  .hero__subtitle {
    font-size: 1rem;
  }
  .about__inner,
  .how__inner {
    grid-template-columns: 1fr;
  }
  .about__callout {
    position: static;
    margin-top: var(--spacing-sm);
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .nav--open {
    max-height: 16rem;
  }
  .nav__list {
    flex-direction: column;
    gap: 0;
  }
  .nav__item a {
    padding: 0.75rem var(--spacing-sm);
    border-bottom: 1px solid var(--color-grey);
  }
  .nav-toggle {
    display: flex;
  }
  .header__actions {
    display: flex;
    align-items: center;
  }
  .about__brands {
    justify-content: flex-start;
  }
  .report__footer {
    text-align: center;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.75rem;
  }
  .hero__subtitle {
    font-size: 0.875rem;
  }
  .step-number {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.875rem;
  }
  .report__promo {
    font-size: 1.5rem;
  }
}