:root {
  --primary: #b00000;
  --dark: #000;
  --gray: #c4c4c4;
  --light: #ffffff;
  --border: #e5e7eb;

  --radius: 10px;
  --container: 1200px;
}

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

body {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  line-height: 1.5;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ================= HEADER ================= */

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 41px;
}

/* LEFT GROUP */
.nav-left {
  display: flex;
  align-items: center;
  gap: 66px;
}

/* CENTER NAV */
.nav {
  display: flex;
  gap: 33px;
}

.navlink {
  text-decoration: none;
  padding-bottom: 4px;
  color: var(--dark);
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.navlink::after {
  content: "";
  position: absolute;
  width: 0;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.navlink.active::after {
  width: 100%;
}

/* RIGHT GROUP */
.nav-right {
  display: flex;
  gap: 31px;
  font-weight: 500;
}

.nav-right .account {
  font-size: 15px;
  padding-right: 31px;
  border-right: 2px solid #dad8d8;
}

.nav-right .phone {
  display: flex;
  align-items: center;
  column-gap: 6px;
}

.navlink-5,
.navlink-6 {
  display: none;
}

/* ================= HERO ================= */

.hero {
  padding: 80px 0 120px;
  position: relative;
}

.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero__tags {
  display: inline-flex;
  gap: 20px;
  margin-bottom: 20px;

  position: relative;
  padding-bottom: 10px;
}

.hero__tags::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #d6d4d4;
}

.tag {
  font-size: 14px;
  color: #d6d4d4;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.tag.active {
  color: var(--primary);
}

.tag.active::after {
  content: "";
  position: absolute;
  bottom: -10px; 
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
}

.hero__title {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 34px;
  font-size: 64px;
  max-width: 608px;
  max-height: 233px;
}

.hero__desc {
  max-width: 448px;
  max-height: 56px;
  color: #6c757d;
}

.hero__buttons {
  margin-top: 60px;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 13.5px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 24px;
  box-shadow: 0 0 50px rgba(255, 0, 0, 0.5);
}

.btn-outline {
  background: transparent;
  border: 1px solid #0b132a;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
}

.hero__image img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
}

/* ================= FEATURES ================= */

.features {
  padding: 80px 0;
}

/* TOP ROW */
.features__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 90px;
}

/* LEFT TEXT */
.features__content {
  flex: 1;
}

.features__content h2 {
  font-size: 45px;
  margin-bottom: 22px;
}

.features__content p {
  font-size: 15px;
  line-height: 2;
}

/* LOGOS */
.features__logos {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px 30px;
  align-items: center;
}

/* GRID */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.feature-card {
  padding: 20px;
  text-align: center;
}

.feature-card h3 {
  font-weight: 600;
  margin-top: 13px;
}

.feature-card p {
  font-size: 12px;
}

/* ================= PRICING ================= */

.pricing {
  padding: 60px 0 105px;
  text-align: center;
  max-width: 1097px;
  margin: 0 auto;
}

.pricing .container h2 {
  font-weight: 600;
  font-size: 50px;
  max-width: 650px;
  margin: 0 auto 38px;
}

.pricing .container .desc {
  font-size: 25px;
  margin-bottom: 57px;
}

/* CONTAINER */
.pricing__toggle {
  max-width: 856px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin: 0 auto;
}

/* LABELS */
.toggle-label {
  font-size: 25px;
}

.discount {
  padding: 7px 8px;
  border-radius: var(--radius);
  background-color: #ffe87a;
  font-size: 10px;
}

/* SWITCH */
.switch {
  position: relative;
  width: 93px;
  height: 50px;
}

/* HIDE DEFAULT INPUT */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* TRACK */
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--primary);
  border-radius: 50px;
  transition: 0.3s;
}

/* CIRCLE */
.slider::before {
  content: "";
  position: absolute;
  height: 35px;
  width: 35px;
  left: 8px;
  top: 7px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + .slider::before {
  transform: translateX(40px);
}

/* Pricing tabs */
.pricing__tabs {
  margin: 71px auto 85px;
  font-size: 30px;
  font-weight: 600;
  display: flex;
  max-width: 856px;
}

.pricing__tabs .tab {
  flex: 1;
  text-align: center;
  margin-bottom: 6px;
  border-bottom: 4px solid var(--gray);
  cursor: pointer;
}

.pricing__tabs .tab.active {
  border-color: var(--primary);
}

/* Pricing cards */
.pricing__cards {
  display: flex;
  gap: 100px;
  margin-top: 30px;
}

.pricing-card {
  flex: 1;
  border: 2px solid var(--gray);
  padding: 34px 34px 48px;
  border-radius: var(--radius);
  text-align: start;
}

.pricing-card h3 {
  font-size: 25px;
  font-weight: 600;
}

.pricing-card .plan-desc {
  font-size: 12px;
}

.pricing-card .price {
  font-size: 40px;
  margin-bottom: -8px;
  font-weight: 600;
  margin-top: 28px;
}

.pricing-card .plan-duration {
  font-size: 14px;
}

.pricing-card ul {
  list-style: none;
  margin: 15px 0;
}

.pricing-card li {
  margin: 5px 0;
}

.pricing-card button {
  margin: 35px 0;
  padding: 10px;
  border: 2px solid;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  background-color: transparent;
}

.pricing__cards ul li {
  color: rgb(146, 144, 144);
  display: flex;
  gap: 25px;
  font-weight: 500;
  font-size: 14px;
}

/* ================= TESTIMONIAL ================= */

.testimonials {
  padding: 100px 0;
  max-width: 1195px;
  margin: 0 auto;
}

/* WRAPPER */
.testimonials__wrapper {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  max-width: 1015px;
  margin: 0 auto;
}

/* LEFT */
.testimonials__left {
  max-width: 400px;
  margin-top: -40px;
}

.text-block {
  margin-left: -60px;
  position: relative;
  margin-bottom: 24px;
}

.text-block h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
}

.quote {
  position: absolute;
  left: -100px;
  top: -70px;
  z-index: -1;
}

.subtitle {
  margin-top: 10px;
}

/* RIGHT */
.testimonials__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-right: -80px;
}

/* CARD */
.card {
  background: #fff;
  padding: 25px 25px 25px 60px;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.09);
  position: relative;
}

.card--cli {
  padding-top: 0;
  padding-bottom: 96px;
  max-width: 350px;
}

.card--jpnl {
  max-width: 445px;
  padding-top: 39px;
}

.card--small {
  max-width: 350px;
  padding-top: 0;
}

.card--cli .logo img {
  max-width: 120px;
}

.card--jpnl .logo img {
  width: 80px;
}

.card--small .logo img {
  margin-bottom: -25px;
}

.card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.card__text p {
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 15px;
}

.quote-icon {
  position: absolute;
  left: 25px; 
}

.quote-icon img {
  width: 18px;
  display: block;
}

.card__text h4 {
  font-weight: 700;
}

.card__text span {
  font-size: 13px;
  color: gray;
}

.card--jpnl {
  max-width: 500px;
}

.card--small {
  max-width: 350px;
}

/* ================= BOTTOM ================= */

.testimonials__bottom {
  margin-top: 120px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.stats h3 {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

.stats p {
  font-size: 18px;
}

/* LOGOS */
.logos {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 20px 40px;
}

.logos img {
  opacity: 0.6;
  filter: grayscale(100%);
  transition: 0.3s;
}

/* ================= CTA ================= */

.cta {
  padding: 60px 0;
  text-align: center;
}

.cta .container {
  position: relative;
  display: flex;
  max-width: 1272px;
}

.cta .container img {
  width: 100%;
}

.cta .cta--details {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.cta h2 {
  font-size: 64px;
  font-weight: 600;
}

.cta button {
  margin-top: 20px;
  padding: 12px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 3px;
  cursor: pointer;
}

/* ================= FOOTER ================= */

.footer {
  background: #b00000;
  color: #fff;
  padding: 80px 0 40px;
}

/* MAIN LAYOUT */
.footer__wrapper {
  display: flex;
  justify-content: space-between;
  gap: 80px;
}

/* LEFT */
.footer__brand {
  max-width: 300px;
}

.footer__brand img {
  width: 120px;
  margin-bottom: 20px;
}

.footer__brand p {
  line-height: 1.8;
  font-size: 14px;
  color: #f3f3f3;
}

/* RIGHT */
.footer__links {
  display: flex;
  gap: 80px;
}

/* COLUMN */
.footer__col h4 {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 600;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 24px;
  font-size: 14px;
  color: #f3f3f3;
  cursor: pointer;
  transition: 0.2s;
}

/* BOTTOM */
.footer__bottom {
  margin-top: 60px;
}

.footer__bottom p {
  font-size: 14px;
  color: #f3f3f3;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--dark);
  padding: 5px;
}

/* ====================== TABLET & MOBILE ====================== */
@media (max-width: 1160px) {
  .text-block {
    margin-left: -5px;
  }
}
@media (max-width: 1024px) {
  .nav-content {
    margin-top: 20px;
    position: relative;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav.active {
    display: flex;
  }

  .navlink.active::after {
    width: 0;
  }
  
  .navlink.active {
    color: var(--primary);
  }

  .nav a {
    padding: 0 30px;
    font-size: 17px;
  }

  .hamburger {
    display: block;
  }

  .nav-right .account {
    padding-right: 15px;
    border-right: 2px solid #dad8d8;
  }

  /* Hero Section */
  .hero {
    padding: 60px 0 90px;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 50px;
  }

  .hero__title {
    font-size: 48px;
    max-width: 100%;
  }

  .hero__desc {
    max-width: 100%;
  }

  .hero__buttons {
    margin-top: 40px;
  }

  /* Features */
  .features__top {
    flex-direction: column;
    gap: 50px;
    text-align: center;
  }

  .features__logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 30px;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Pricing */
  .pricing h2 {
    font-size: 42px;
  }

  .pricing__cards {
    flex-direction: column;
    gap: 35px;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 450px;
  }

  .pricing__tabs {
    font-size: 26px;
    margin: 50px auto 60px;
  }

  /* Testimonials */
  .testimonials__wrapper {
    flex-direction: column;
    align-items: center;
    gap: 50px;
  }

  .testimonials__left {
    margin-top: 0;
    margin-left: 0;
    max-width: 520px;
    text-align: center;
  }

  .text-block {
    margin-left: 0;
  }

  .quote {
    left: 0;
  }

  .testimonials__right {
    margin-right: 0;
    width: 100%;
    max-width: 520px;
  }

  .card {
    max-width: 100% !important;
    padding: 28px 28px 28px 62px;
  }

  .card--cli {
    max-width: 100%;
    margin-top: 20px;
    margin-bottom: -10px;
  }

  .testimonials__bottom {
    margin-top: 90px;
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .stats h3 {
    font-size: 38px;
  }

  /* CTA */
  .cta {
    padding: 70px 0;
  }

  .cta h2 {
    font-size: 30px;
  }

  .cta button {
    font-size: 12px;
  }

  /* Footer */
  .footer__wrapper {
    flex-direction: column;
    gap: 60px;
    justify-content: center;
    align-items: center;
  }

  .footer__brand {
    max-width: 80% !important;
  }

  .footer__links {
    gap: 60px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navlink-1 {
    display: none;
  }

  .nav-right {
    display: none;
  }

  .navlink-5,
  .navlink-6 {
    display: block;
  }

  .cta h2 {
    font-size: 18px;
  }

  .cta .container button img {
    width: 20px;
  }

  .footer__links {
    flex-wrap: wrap;
  }
}

/* ====================== SMALL MOBILE ====================== */
@media (max-width: 576px) {
  .hero__title {
    font-size: 38px;
  }

  .hero__tags {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

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

  .features__logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .features__logos img {
    width: 100%;
  }

  .pricing__toggle {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }

  .pricing-card {
    padding: 25px 20px;
  }

  .testimonials {
    padding: 60px 0;
  }

  .text-block h2 {
    font-size: 32px;
  }

  .card {
    padding: 25px 25px 25px 55px;
  }

  .cta h2 {
    font-size: 14px;
  }

  .cta button {
    margin-top: 5px;
    padding: 5px 15px;
  }

  .logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }


  .nav a {
    font-size: 16px;
  }

  .text-block {
    width: 75%;
    margin: 0 auto;
  }

  .quote {
    width: 80px;
    top: -30px;
    left: -5px;
  }

  .quote img {
    width: 100%;
  }
}

@media (max-width: 439px) {
  .discount {
    display: none;
  }
}

@media (min-width: 1024px) {
  /* NAV LINKS */
  .navlink:hover::after {
    width: 100%;
  }

  /* TAGS */
  .tag:not(.active):hover {
    color: #ff9191;
  }

  .btn-primary:hover,
  .btn-outline:hover,
  .cta button:hover,
  .pricing-card button:hover {
    transform: scale(1.1);
    transition:
      transform 0.15s ease,
      opacity 0.15s ease;
  }

  /* LOGOS */
  .logos img:hover {
    opacity: 1;
    filter: grayscale(0%);
  }

  /* FOOTER LINKS */
  .footer__col li:hover {
    color: #0eb0fb;
  }

  .tab:hover {
    border-color: rgba(197, 6, 6, 0.5);
  }

  .btn-primary:active,
  .btn-outline:active,
  .cta button:active,
  .pricing-card button:active,
  .footer__col li:active,
  .tag:active,
  .navlink:active::after {
    opacity: 0.5;
  }
}
