/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ===== VARIABLES CSS ===== */
:root {
  --header-height: 3.5rem;

  /* ========== Colors ========== */
  --primary-color: #4CAF50;
  --primary-color-dark: #2E7D32;
  --primary-color-light: #C8E6C9;
  --secondary-color: #81C784;
  --accent-color: #66BB6A;
  
  --white-color: #FFFFFF;
  --light-color: #F5F5F5;
  --gray-color: #9E9E9E;
  --dark-color: #424242;
  --black-color: #212121;
  
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
  
  /* ========== Font and typography ========== */
  --body-font: 'Inter', sans-serif;
  --biggest-font-size: 3rem;
  --h1-font-size: 2.25rem;
  --h2-font-size: 1.75rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;

  /* ========== Font weight ========== */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* ========== Margins Bottom ========== */
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ========== z index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;

  /* ========== Transitions ========== */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* Responsive typography */
@media screen and (max-width: 992px) {
  :root {
    --biggest-font-size: 2.25rem;
    --h1-font-size: 1.75rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--white-color);
  color: var(--dark-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--black-color);
  font-weight: var(--font-semi-bold);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

img {
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.grid {
  display: grid;
}

.section {
  padding: 5rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
  text-align: center;
  color: var(--black-color);
}

.section__description {
  text-align: center;
  margin-bottom: var(--mb-2-5);
  color: var(--gray-color);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section__header {
  margin-bottom: var(--mb-3);
}

/* ===== BUTTONS ===== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: var(--transition);
  text-align: center;
  justify-content: center;
}

.button:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.button--primary {
  background: var(--gradient-primary);
}

.button--secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.button--large {
  padding: 1rem 2rem;
  font-size: var(--normal-font-size);
}

/* ===== HEADER & NAV ===== */
.header {
  width: 100%;
  background-color: var(--white-color);
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: var(--transition);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  font-weight: var(--font-semi-bold);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
}

.nav__menu {
  position: relative;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  color: var(--dark-color);
  font-weight: var(--font-medium);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--primary-color);
}

.nav__link.active-link::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.25rem;
  color: var(--dark-color);
  cursor: pointer;
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero-background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.hero__container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero__data {
  color: var(--white-color);
}

.hero__title {
  font-size: var(--biggest-font-size);
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-1);
  line-height: 1.1;
}

.hero__title-accent {
  color: var(--primary-color-light);
}

.hero__description {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-2);
  opacity: 0.9;
  line-height: 1.5;
}

.hero__buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: var(--mb-2-5);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  margin-top: var(--mb-2);
}

.hero__stat {
  text-align: center;
}

.hero__stat-number {
  display: block;
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--primary-color-light);
}

.hero__stat-text {
  font-size: var(--small-font-size);
  opacity: 0.8;
}

.hero__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__img {
  max-width: 400px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ===== FEATURES ===== */
.features {
  background-color: var(--light-color);
}

.features__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature__card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.2);
}

.feature__icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
  font-size: 2rem;
  color: var(--white-color);
}

.feature__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-75);
  color: var(--black-color);
}

.feature__description {
  color: var(--gray-color);
  line-height: 1.6;
}

/* ===== SECURITY ===== */
.security__container {
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.security__features {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: var(--mb-2);
}

.security__feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.security__feature i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 0.25rem;
}

.security__feature h4 {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
  color: var(--black-color);
}

.security__feature p {
  color: var(--gray-color);
}

.security__image {
  display: flex;
  justify-content: center;
}

.security__img {
  max-width: 400px;
}

/* ===== AUDIENCE ===== */
.audience {
  background-color: var(--light-color);
}

.audience__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.audience__card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.audience__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.15);
}

.audience__icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--mb-1);
  font-size: 2rem;
  color: var(--white-color);
}

.audience__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--black-color);
}

.audience__list {
  text-align: left;
}

.audience__list li {
  color: var(--gray-color);
  margin-bottom: var(--mb-0-5);
  position: relative;
  padding-left: 1.5rem;
}

.audience__list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: var(--font-bold);
}

/* ===== TESTIMONIALS ===== */
.testimonials__container {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial__card {
  background-color: var(--white-color);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.testimonial__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.15);
}

.testimonial__content {
  margin-bottom: var(--mb-1-5);
}

.testimonial__text {
  color: var(--gray-color);
  font-style: italic;
  line-height: 1.6;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial__avatar {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-weight: var(--font-bold);
}

.testimonial__name {
  font-size: var(--normal-font-size);
  margin-bottom: var(--mb-0-25);
  color: var(--black-color);
}

.testimonial__role {
  font-size: var(--small-font-size);
  color: var(--gray-color);
}

/* ===== DOWNLOAD ===== */
.download {
  background: var(--gradient-hero);
  color: var(--white-color);
}

.download__container {
  text-align: center;
}

.download .section__title,
.download .section__description {
  color: var(--white-color);
}

.download__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: var(--mb-2);
  flex-wrap: wrap;
}

.download__button img {
  height: 60px;
  transition: var(--transition);
}

.download__button:hover img {
  transform: scale(1.05);
}

.download__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.qr__code {
  width: 120px;
  height: 120px;
  background-color: var(--white-color);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.qr__placeholder i {
  font-size: 2rem;
  color: var(--primary-color);
}

.qr__placeholder span {
  font-size: var(--small-font-size);
  color: var(--gray-color);
}

.qr__text {
  color: var(--white-color);
  opacity: 0.8;
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--black-color);
  color: var(--white-color);
  padding: 3rem 0 1rem;
}

.footer__container {
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: var(--mb-2);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--mb-1);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
}

.footer__logo-text {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--primary-color);
}

.footer__description {
  margin-bottom: var(--mb-1-5);
  color: var(--gray-color);
  line-height: 1.6;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  transition: var(--transition);
}

.footer__social-link:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  color: var(--white-color);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__link {
  color: var(--gray-color);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--primary-color);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-color);
}

.footer__contact-item i {
  color: var(--primary-color);
}

.footer__bottom {
  border-top: 1px solid var(--dark-color);
  padding-top: var(--mb-1);
}

.footer__bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__copy {
  color: var(--gray-color);
  font-size: var(--small-font-size);
}

.footer__legal {
  display: flex;
  gap: 1rem;
}

.footer__legal-link {
  color: var(--gray-color);
  font-size: var(--small-font-size);
  transition: var(--transition);
}

.footer__legal-link:hover {
  color: var(--primary-color);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background-color: var(--primary-color);
  opacity: 0.8;
  padding: 0.3rem;
  border-radius: 0.4rem;
  z-index: var(--z-tooltip);
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
}

.scrollup:hover {
  background-color: var(--primary-color-dark);
  opacity: 1;
}

.show-scroll {
  bottom: 5rem;
}

/* ===== BREAKPOINTS ===== */
/* For large devices */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }

  .hero__container,
  .security__container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero__image {
    order: -1;
  }

  .hero__img {
    max-width: 300px;
  }

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

/* For medium devices */
@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    background-color: var(--white-color);
    width: 80%;
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: -2px 0 4px rgba(0, 0, 0, 0.1);
    padding: 4rem 0 0 3rem;
    transition: var(--transition);
  }

  .nav__list {
    flex-direction: column;
    gap: 1.5rem;
  }

  .nav__toggle,
  .nav__close {
    display: block;
  }

  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
  }

  .show-menu {
    right: 0;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .features__container,
  .audience__container,
  .testimonials__container {
    grid-template-columns: 1fr;
  }

  .download__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__bottom-container {
    flex-direction: column;
    text-align: center;
  }
}

/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }

  .hero__title {
    font-size: var(--h1-font-size);
  }

  .hero__buttons .button {
    width: 100%;
  }

  .feature__card,
  .audience__card,
  .testimonial__card {
    padding: 1.5rem;
  }
}

