/* =============== VARIABLES =============== */
:root {
  /* Colors - MuliSafe Brand */
  --primary-color: #0D1B2A;
  --accent-color: #FFD100;
  --accent-green: #48BB78;
  --secondary-color: #4299E1;
  --background-color: #FFFFFF;
  --alert-color: #E53E3E;
  --text-color: #2D3748;
  --text-light: #64748B;
  --text-lighter: #A0AEC0;
  --border-color: #E2E8F0;
  --card-bg: #F8FAFC;
  
  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-button: 'Nunito Sans', sans-serif;
  
  /* Spacing */
  --spacing-unit: 8px;
  --spacing-xs: calc(var(--spacing-unit) * 1); /* 8px */
  --spacing-sm: calc(var(--spacing-unit) * 2); /* 16px */
  --spacing-md: calc(var(--spacing-unit) * 3); /* 24px */
  --spacing-lg: calc(var(--spacing-unit) * 4); /* 32px */
  --spacing-xl: calc(var(--spacing-unit) * 6); /* 48px */
  --spacing-2xl: calc(var(--spacing-unit) * 8); /* 64px */
  
  /* Other */
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 27, 42, 0.12);
  --shadow-lg: 0 8px 32px rgba(13, 27, 42, 0.16);
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* =============== UTILITIES =============== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.section__subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.text-accent {
  color: var(--accent-color);
}

/* =============== BUTTONS =============== */
.btn {
  font-family: var(--font-button);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  justify-content: center;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn--primary {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  font-weight: 700;
}

.btn--primary:hover {
  background-color: #FFC700;
  border-color: #FFC700;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

.btn--secondary:hover {
  background-color: var(--card-bg);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--border-color);
}

.btn--outline:hover {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn--large {
  padding: 16px 32px;
  font-size: 1.125rem;
}

.btn--block {
  width: 100%;
}

/* =============== HEADER / NAVIGATION =============== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: white;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav__logo-img {
  width: 40px;
  height: 40px;
}

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

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

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.nav__toggle,
.nav__close {
  display: none;
  cursor: pointer;
}

/* =============== HERO SECTION =============== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 80px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(13, 27, 42, 0.85) 0%, rgba(13, 27, 42, 0.6) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 32px;
  height: 32px;
  color: white;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* =============== FEATURES SECTION =============== */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature__card {
  background-color: white;
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-color);
}

.feature__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.feature__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-green), #38A169);
  border-radius: var(--border-radius);
}

.feature__icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.feature__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.feature__description {
  color: var(--text-light);
  line-height: 1.7;
}

/* =============== HOW IT WORKS SECTION =============== */
.how-it-works {
  background-color: var(--card-bg);
}

.steps__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.step {
  position: relative;
  text-align: center;
  padding: var(--spacing-lg);
}

.step__number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background: var(--accent-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step__icon {
  width: 80px;
  height: 80px;
  margin: 60px auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.step__icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent-green);
}

.step__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.step__description {
  color: var(--text-light);
  line-height: 1.7;
}

/* =============== PACKAGES SECTION =============== */
.packages__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.package__card {
  position: relative;
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid var(--border-color);
}

.package__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.package__card--premium {
  border-color: var(--accent-color);
  box-shadow: 0 8px 32px rgba(255, 209, 0, 0.3);
}

.package__card--premium:hover {
  box-shadow: 0 12px 48px rgba(255, 209, 0, 0.4);
}

.package__badge {
  position: absolute;
  top: -12px;
  right: var(--spacing-md);
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.package__header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.package__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-color), #7DB8E6);
  border-radius: var(--border-radius);
}

.package__card--premium .package__icon {
  background: linear-gradient(135deg, var(--accent-green), #38A169);
}

.package__icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.package__name {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--primary-color);
}

.package__price {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.price__currency {
  font-size: 1.5rem;
  color: var(--text-light);
  vertical-align: super;
}

.price__amount {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price__period {
  font-size: 1rem;
  color: var(--text-light);
}

.package__features {
  margin-bottom: var(--spacing-lg);
}

.package__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.package__feature:last-child {
  border-bottom: none;
}

.package__feature svg {
  width: 20px;
  height: 20px;
  color: var(--accent-green);
  flex-shrink: 0;
  margin-top: 2px;
}

.package__feature span {
  color: var(--text-color);
  line-height: 1.6;
}

/* =============== ABOUT SECTION =============== */
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.about__description {
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  font-size: 1.125rem;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.stat__item {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
}

.stat__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-green);
  margin-bottom: var(--spacing-xs);
}

.stat__label {
  color: var(--text-light);
  font-size: 0.875rem;
}

.about__image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =============== CONTACT SECTION =============== */
.contact {
  background-color: var(--card-bg);
}

.contact__content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--spacing-2xl);
  max-width: 1000px;
  margin: 0 auto;
}

.contact__form {
  background-color: white;
  padding: var(--spacing-xl);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

.form__group {
  margin-bottom: var(--spacing-md);
}

.form__label {
  display: block;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  transition: var(--transition);
}

.form__input:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(72, 187, 120, 0.1);
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__message {
  margin-top: var(--spacing-md);
  padding: 12px;
  border-radius: var(--border-radius);
  text-align: center;
  font-weight: 500;
  display: none;
}

.form__message.success {
  display: block;
  background-color: #D1FAE5;
  color: #065F46;
}

.form__message.error {
  display: block;
  background-color: #FEE2E2;
  color: #991B1B;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact__info-item {
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  display: flex;
  gap: var(--spacing-sm);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.contact__info-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-green), #38A169);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__info-icon svg {
  width: 24px;
  height: 24px;
  color: white;
}

.contact__info-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.contact__info-text {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* =============== FOOTER =============== */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--spacing-sm);
}

.footer__logo-img {
  width: 40px;
  height: 40px;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer__description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

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

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

.footer__social-link svg {
  width: 20px;
  height: 20px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer__link:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer__download-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-sm);
}

.footer__download-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__download-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 16px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: var(--transition);
}

.footer__download-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.footer__download-btn svg {
  width: 24px;
  height: 24px;
}

.download-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.download-platform {
  font-weight: 600;
  font-size: 1rem;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer__bottom-link {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer__bottom-link:hover {
  color: white;
}

.footer__separator {
  color: rgba(255, 255, 255, 0.3);
}

/* =============== ANIMATIONS =============== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
}

.fade-in:nth-child(1) {
  animation-delay: 0.2s;
}

.fade-in:nth-child(2) {
  animation-delay: 0.4s;
}

.fade-in:nth-child(3) {
  animation-delay: 0.6s;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============== RESPONSIVE DESIGN =============== */

/* Tablet */
@media screen and (max-width: 968px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    box-shadow: -4px 0 16px rgba(13, 27, 42, 0.1);
    transition: right 0.4s;
    z-index: 100;
  }

  .nav__menu.show {
    right: 0;
  }

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

  .nav__toggle,
  .nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }

  .nav__close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1.25rem;
  }

  .section__title {
    font-size: 2rem;
  }

  .about__content,
  .contact__content {
    grid-template-columns: 1fr;
  }

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

/* Mobile */
@media screen and (max-width: 576px) {
  .nav__actions .btn {
    padding: 10px 16px;
    font-size: 0.875rem;
  }

  .hero {
    min-height: 500px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero__buttons .btn {
    width: 100%;
  }

  .section__title {
    font-size: 1.75rem;
  }

  .section__subtitle {
    font-size: 1rem;
  }

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

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

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

  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}