/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  /* Colors */
  --color-primary: #3d8b7a;
  --color-primary-dark: #2d6b5e;
  --color-primary-light: #4fa08e;

  --color-gradient-start: #b8d4ce;
  --color-gradient-end: #f5e6d3;

  --color-dark: #2d2d2d;
  --color-text: #1a1a1a;
  --color-text-light: #757575;
  --color-text-muted: #888888;

  --color-white: #ffffff;
  --color-gray-light: #f5f5f5;
  --color-border: #e5e5e5;

  /* Typography */
  --font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Container */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* Header */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

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

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

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  padding: 0.875rem 1.75rem;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn--primary {
  background: linear-gradient(90deg, #489686 0%, #50a290 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  height: 40px;
  box-shadow: 0 4px 15px rgba(72, 150, 134, 0.4),
    0 0 20px rgba(80, 162, 144, 0.3);
}

.btn--primary:hover {
  background: linear-gradient(90deg, #3d8177 0%, #459485 100%);
  box-shadow: 0 6px 20px rgba(72, 150, 134, 0.5),
    0 0 30px rgba(80, 162, 144, 0.4);
}

.btn--outline {
  background-color: #ffffff;
  color: var(--color-text);
  border: 2px solid #ffffff;
  border-radius: 10px;
  height: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn--outline:hover {
  background-color: #f5f5f5;
  border-color: #f5f5f5;
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-white);
}

.btn--white:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.header--hidden {
  transform: translateY(-100%);
}

.nav {
  display: flex;
  align-items: center;
  height: 100%;
  gap: var(--spacing-xl);
}

.nav__logo {
  display: flex;
  align-items: center;
  margin-right: auto;
}

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

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

.nav__link {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

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

.nav__cta {
  padding: 0.625rem 1.25rem;
  border-radius: 10px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}

.nav__toggle-bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* ===== HERO SECTION ===== */
.hero {
  padding-top: calc(var(--header-height) + var(--spacing-3xl));
  padding-bottom: var(--spacing-4xl);
  background: radial-gradient(
      circle at 0% 50%,
      rgba(0, 150, 136, 0.1) 0%,
      rgba(0, 150, 136, 0) 50%
    ),
    radial-gradient(
      circle at 100% 50%,
      rgba(255, 152, 0, 0.1) 0%,
      rgba(255, 152, 0, 0) 50%
    ),
    #ffffff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow-x: clip;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero__text {
  max-width: 560px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.5rem 1rem;
  background: linear-gradient(90deg, #489686 0%, #50a290 100%);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 4px 15px rgba(72, 150, 134, 0.4),
    0 0 20px rgba(80, 162, 144, 0.3);
}

.hero__badge-icon {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: 80px;
  font-weight: var(--font-weight-regular);
  line-height: 96px;
  color: var(--color-text);
  margin-bottom: var(--spacing-lg);
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-xl);
}

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

.hero__phones {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: -45px;
}

.hero__phone-img {
  width: 95%;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ===== SHOWCASE SECTION ===== */
.showcase {
  background: linear-gradient(90deg, #285249 0%, #3a786b 100%);
  padding: 0;
  overflow: hidden;
  line-height: 0;
}

.showcase__container {
  width: 100%;
  max-width: 100%;
}

.showcase__img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== FEATURES SECTION ===== */
.features {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-white);
}

.features__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-3xl);
}

.features__title {
  font-size: 31.9px;
  font-weight: var(--font-weight-regular);
  line-height: 41.6px;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.features__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

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

.feature-card {
  padding: var(--spacing-xl);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all var(--transition-normal);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-card__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-card__title {
  font-size: 24px;
  font-weight: var(--font-weight-regular);
  line-height: 33.6px;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.feature-card__description {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works {
  padding: var(--spacing-4xl) 0;
  background-color: var(--color-gray-light);
}

.how-it-works__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-3xl);
}

.how-it-works__title {
  font-size: 31.9px;
  font-weight: var(--font-weight-regular);
  line-height: 41.6px;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.how-it-works__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

.how-it-works__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);
}

.step {
  text-align: center;
}

.step__image {
  width: 100%;
  max-width: 220px;
  margin: 0 auto var(--spacing-lg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.step__image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  border-radius: 50%;
  margin-bottom: var(--spacing-md);
}

.step__title {
  font-size: 24px;
  font-weight: var(--font-weight-regular);
  line-height: 33.6px;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.step__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
}

/* ===== CTA SECTION ===== */
.cta {
  padding: var(--spacing-4xl) 0;
  background-color: #489686;
  text-align: center;
}

.cta__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-regular);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.cta__subtitle {
  font-size: var(--font-size-lg);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-xl);
}

.btn--cta {
  background-color: #489686;
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn--cta:hover {
  background-color: #3d8177;
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
  background-color: #212121;
  color: #ffffff;
}

.footer__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-3xl);
  padding-bottom: var(--spacing-2xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: inline-block;
  margin-bottom: var(--spacing-md);
}

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

.footer__tagline {
  font-size: var(--font-size-base);
  color: #ffffff;
  margin-bottom: var(--spacing-lg);
}

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

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

.footer__social-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

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

.footer__links {
  display: flex;
  gap: var(--spacing-4xl);
  justify-content: flex-end;
}

.footer__column {
  min-width: 150px;
}

.footer__column-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: #ffffff;
  margin-bottom: var(--spacing-lg);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.footer__link {
  font-size: var(--font-size-sm);
  color: #ffffff;
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-xl);
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: #ffffff;
}

.footer__legal {
  display: flex;
  gap: var(--spacing-xl);
}

.footer__legal-link {
  font-size: var(--font-size-sm);
  color: #ffffff;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE - TABLET ===== */
@media (max-width: 1024px) {
  :root {
    --font-size-5xl: 2.5rem;
    --font-size-4xl: 2rem;
    --font-size-3xl: 1.75rem;
  }

  .hero__title {
    font-size: 56px;
    line-height: 64px;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
  }

  .hero__text {
    text-align: center;
    max-width: 100%;
  }

  .hero__buttons {
    justify-content: center;
  }

  .hero__phones {
    margin-right: -40px;
  }

  .hero__phone-img {
    width: 110%;
  }

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

  .how-it-works__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-2xl);
  }

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

  .footer__links {
    justify-content: flex-start;
  }
}

/* ===== RESPONSIVE - MOBILE ===== */
@media (max-width: 768px) {
  :root {
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
    --font-size-3xl: 1.5rem;
    --header-height: 70px;
  }

  .hero__title {
    font-size: 38px;
    line-height: 46px;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav__menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-height) + var(--spacing-lg));
    padding-bottom: var(--spacing-xl);
    min-height: auto;
  }

  .hero__badge {
    font-size: var(--font-size-xs);
    padding: 0.4rem 0.75rem;
    margin-bottom: var(--spacing-md);
  }

  .hero__description {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-lg);
  }

  .hero__buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-sm);
  }

  .hero__buttons .btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-size: var(--font-size-sm);
  }

  .hero__phones {
    margin-right: 0;
    justify-content: center;
    margin-top: var(--spacing-lg);
  }

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

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

  .features__header {
    margin-bottom: var(--spacing-xl);
  }

  .features__title {
    font-size: 24px;
    line-height: 32px;
  }

  .features__subtitle {
    font-size: var(--font-size-base);
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .feature-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: var(--spacing-xs) var(--spacing-md);
    text-align: left;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    background: var(--color-white);
  }

  .feature-card__icon {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    margin: 0;
    align-self: start;
  }

  .feature-card__title {
    font-size: 17px;
    line-height: 22px;
    margin-bottom: 0;
    align-self: end;
  }

  .feature-card__description {
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-light);
    align-self: start;
  }

  /* Mobile animations for feature cards */
  .feature-card {
    opacity: 0;
    transform: translateX(-20px);
  }

  .feature-card.animate-fadeInUp {
    animation: slideInLeft 0.4s ease forwards;
  }

  .feature-card:nth-child(even) {
    transform: translateX(20px);
  }

  .feature-card:nth-child(even).animate-fadeInUp {
    animation: slideInRight 0.4s ease forwards;
  }

  /* Hide showcase section on mobile */
  .showcase {
    display: none;
  }

  .how-it-works {
    padding: var(--spacing-2xl) 0;
  }

  .how-it-works__header {
    margin-bottom: var(--spacing-xl);
  }

  .how-it-works__title {
    font-size: 24px;
    line-height: 32px;
  }

  .how-it-works__subtitle {
    font-size: var(--font-size-base);
  }

  .how-it-works__steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .step__image {
    max-width: 250px;
  }

  .step__number {
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }

  .step__title {
    font-size: 18px;
    line-height: 24px;
  }

  .step__description {
    font-size: var(--font-size-sm);
  }

  /* CTA section mobile */
  .cta {
    padding: var(--spacing-2xl) 0;
  }

  .cta__title {
    font-size: var(--font-size-xl);
    line-height: 1.3;
  }

  .cta__subtitle {
    font-size: var(--font-size-base);
  }

  .btn--cta {
    width: 100%;
    max-width: 280px;
  }

  /* Mobile animations for steps */
  .step {
    opacity: 0;
    transform: translateY(30px);
  }

  .step.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
  }

  /* Staggered animation delays for steps */
  .step:nth-child(1).animate-fadeInUp { animation-delay: 0s; }
  .step:nth-child(2).animate-fadeInUp { animation-delay: 0.1s; }
  .step:nth-child(3).animate-fadeInUp { animation-delay: 0.2s; }
  .step:nth-child(4).animate-fadeInUp { animation-delay: 0.3s; }

  /* Step number pulse on scroll */
  .step.animate-fadeInUp .step__number {
    animation: numberPop 0.4s ease 0.3s forwards;
  }

  /* CTA section animation */
  .cta.animate-fadeInUp {
    animation: scaleIn 0.5s ease forwards;
  }

  .footer__content {
    gap: var(--spacing-xl);
  }

  .footer__links {
    flex-direction: column;
    gap: var(--spacing-xl);
  }

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

/* ===== ANIMATIONS ===== */

/* Modern easing curves */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fadeInUp {
  animation: fadeInUp 0.6s var(--ease-out-expo) forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Hero animations - Desktop Enhanced */
@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateX(-60px) scale(0.95);
    filter: blur(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    filter: blur(0);
  }
}

@keyframes heroPhoneReveal {
  0% {
    opacity: 0;
    transform: translateX(100px) rotate(5deg) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateX(0) rotate(0) scale(1);
  }
}

@keyframes floatDesktop {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-12px) rotate(0.5deg);
  }
  75% {
    transform: translateY(-8px) rotate(-0.5deg);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes numberPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes shimmerGradient {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(72, 150, 134, 0.4),
                0 0 20px rgba(80, 162, 144, 0.2);
  }
  50% {
    box-shadow: 0 8px 30px rgba(72, 150, 134, 0.6),
                0 0 40px rgba(80, 162, 144, 0.4);
  }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(72, 150, 134, 0.2);
  }
  50% {
    border-color: rgba(72, 150, 134, 0.5);
  }
}

/* Hero section animations */
.hero__badge {
  animation: heroSlideIn 0.7s var(--ease-out-expo) forwards,
             glowPulse 3s ease-in-out infinite 1.5s;
  opacity: 0;
}

.hero__title {
  animation: heroSlideIn 0.8s var(--ease-out-expo) 0.15s forwards;
  opacity: 0;
}

.hero__description {
  animation: heroSlideIn 0.8s var(--ease-out-expo) 0.25s forwards;
  opacity: 0;
}

.hero__buttons {
  animation: heroSlideIn 0.8s var(--ease-out-expo) 0.35s forwards;
  opacity: 0;
}

.hero__phones {
  animation: heroPhoneReveal 1s var(--ease-out-expo) 0.3s forwards;
  opacity: 0;
}

.hero__phone-img {
  animation: floatDesktop 6s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Pulse animation for badge */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(72, 150, 134, 0.4),
      0 0 20px rgba(80, 162, 144, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(72, 150, 134, 0.6),
      0 0 30px rgba(80, 162, 144, 0.5);
  }
}

/* Button hover effects - Enhanced */
.btn {
  position: relative;
  transition: all 0.4s var(--ease-out-expo);
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary:hover {
  box-shadow: 0 10px 30px rgba(72, 150, 134, 0.5),
              0 0 40px rgba(80, 162, 144, 0.3);
}

.btn--outline:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn:active {
  transform: translateY(-1px);
  transition-duration: 0.1s;
}

/* Feature card hover effects - Enhanced */
.feature-card {
  transition: all 0.5s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(72, 150, 134, 0.03) 0%,
    rgba(72, 150, 134, 0) 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1),
              0 0 0 1px rgba(72, 150, 134, 0.1);
}

.feature-card:hover .feature-card__icon-img {
  transform: scale(1.15) rotate(5deg);
}

.feature-card__icon {
  transition: transform 0.5s var(--ease-spring);
}

.feature-card:hover .feature-card__icon {
  transform: translateY(-5px);
}

.feature-card__icon-img {
  transition: transform 0.5s var(--ease-spring);
}

.feature-card__title {
  transition: color 0.3s ease;
}

.feature-card:hover .feature-card__title {
  color: var(--color-primary);
}

/* Scroll-triggered animation for feature cards */
.feature-card {
  opacity: 0;
  transform: translateY(40px);
}

.feature-card.animate-fadeInUp {
  animation: cardReveal 0.6s var(--ease-out-expo) forwards;
}

.feature-card:nth-child(1).animate-fadeInUp { animation-delay: 0s; }
.feature-card:nth-child(2).animate-fadeInUp { animation-delay: 0.1s; }
.feature-card:nth-child(3).animate-fadeInUp { animation-delay: 0.2s; }
.feature-card:nth-child(4).animate-fadeInUp { animation-delay: 0.15s; }
.feature-card:nth-child(5).animate-fadeInUp { animation-delay: 0.25s; }
.feature-card:nth-child(6).animate-fadeInUp { animation-delay: 0.35s; }

/* Step animations - Enhanced */
.step {
  opacity: 0;
  transform: translateY(50px);
}

.step.animate-fadeInUp {
  animation: revealUp 0.7s var(--ease-out-expo) forwards;
}

.step:nth-child(1).animate-fadeInUp { animation-delay: 0s; }
.step:nth-child(2).animate-fadeInUp { animation-delay: 0.15s; }
.step:nth-child(3).animate-fadeInUp { animation-delay: 0.3s; }
.step:nth-child(4).animate-fadeInUp { animation-delay: 0.45s; }

.step__image {
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.step:hover .step__image {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step__image-img {
  transition: transform 0.6s var(--ease-out-expo);
}

.step:hover .step__image-img {
  transform: scale(1.08);
}

.step__number {
  transition: all 0.4s var(--ease-spring);
}

.step:hover .step__number {
  transform: scale(1.1);
  box-shadow: 0 5px 20px rgba(72, 150, 134, 0.4);
}

.step.animate-fadeInUp .step__number {
  animation: numberPop 0.5s var(--ease-spring) 0.3s forwards;
  opacity: 0;
}

.step__title {
  transition: color 0.3s ease;
}

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

/* Section headers animation */
.features__header,
.how-it-works__header {
  opacity: 0;
  transform: translateY(40px);
}

.features__header.animate-fadeInUp,
.how-it-works__header.animate-fadeInUp {
  animation: revealUp 0.8s var(--ease-out-expo) forwards;
}

/* CTA section animation */
.cta {
  opacity: 0;
  transform: scale(0.95);
}

.cta.animate-fadeInUp {
  animation: scaleIn 0.8s var(--ease-out-expo) forwards;
}

.cta .btn--cta {
  animation: glowPulse 2.5s ease-in-out infinite;
}

/* Showcase image animation */
.showcase__img {
  animation: scaleIn 1s var(--ease-out-expo) forwards;
}

/* Footer social link hover - Enhanced */
.footer__social-link {
  transition: all 0.4s var(--ease-out-expo);
}

.footer__social-link:hover {
  transform: translateY(-5px) scale(1.1);
  background-color: var(--color-primary);
}

.footer__social-link:hover svg {
  transform: rotate(10deg);
}

.footer__social-link svg {
  transition: transform 0.3s var(--ease-spring);
}

/* Nav link underline animation - Enhanced */
.nav__link {
  position: relative;
  transition: color 0.3s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  transition: all 0.4s var(--ease-out-expo);
  transform: translateX(-50%);
  border-radius: 2px;
}

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

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

/* Header scroll shadow animation */
.header {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* Footer link hover effects */
.footer__link {
  position: relative;
  transition: all 0.3s ease;
}

.footer__link::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--color-primary);
  opacity: 0;
  transition: all 0.3s ease;
}

.footer__link:hover {
  padding-left: 8px;
  color: var(--color-primary-light);
}

.footer__link:hover::before {
  opacity: 1;
  left: -4px;
}

/* ===== LEGAL PAGES ===== */
.legal-page {
  padding-top: calc(var(--header-height) + var(--spacing-3xl));
  padding-bottom: var(--spacing-4xl);
  min-height: 100vh;
}

.legal-page__title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

.legal-page__updated {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--spacing-3xl);
}

.legal-section {
  margin-bottom: var(--spacing-2xl);
}

.legal-section h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.legal-section h3 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
}

.legal-section p {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-md);
}

.legal-section ul {
  margin-left: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
}

.legal-section li {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--spacing-sm);
  list-style-type: disc;
}

/* ===== ENHANCED MOBILE ANIMATIONS ===== */

/* Floating phone animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes floatShadow {
  0%, 100% {
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
  }
  50% {
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.1));
  }
}

/* Gradient shimmer for buttons */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Bounce in animation */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Slide up with bounce */
@keyframes slideUpBounce {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  60% {
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Fade in with blur */
@keyframes fadeInBlur {
  0% {
    opacity: 0;
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

/* Stagger reveal */
@keyframes staggerReveal {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Icon bounce */
@keyframes iconBounce {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Pulse ring for CTA */
@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(72, 150, 134, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(72, 150, 134, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(72, 150, 134, 0);
  }
}

/* Mobile-specific enhanced animations */
@media (max-width: 768px) {
  /* Floating phone */
  .hero__phone-img {
    animation: slideInRight 0.6s ease 0.2s forwards,
               float 4s ease-in-out 1s infinite,
               floatShadow 4s ease-in-out 1s infinite;
  }

  /* Enhanced hero text animations */
  .hero__badge {
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               pulse 3s ease-in-out infinite 1s;
  }

  .hero__title {
    animation: fadeInBlur 0.6s ease 0.1s forwards;
    opacity: 0;
  }

  .hero__description {
    animation: slideUpBounce 0.5s ease 0.2s forwards;
    opacity: 0;
  }

  .hero__buttons {
    animation: slideUpBounce 0.5s ease 0.3s forwards;
    opacity: 0;
  }

  /* Button tap feedback */
  .btn {
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -webkit-tap-highlight-color: transparent;
  }

  .btn:active {
    transform: scale(0.96);
  }

  .btn--primary:active {
    box-shadow: 0 2px 8px rgba(72, 150, 134, 0.3);
  }

  /* CTA button pulse on mobile */
  .btn--cta {
    animation: pulseRing 2s infinite;
  }

  /* Feature cards enhanced animation */
  .feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .feature-card.animate-fadeInUp {
    animation: staggerReveal 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .feature-card:nth-child(1).animate-fadeInUp { animation-delay: 0s; }
  .feature-card:nth-child(2).animate-fadeInUp { animation-delay: 0.08s; }
  .feature-card:nth-child(3).animate-fadeInUp { animation-delay: 0.16s; }
  .feature-card:nth-child(4).animate-fadeInUp { animation-delay: 0.24s; }
  .feature-card:nth-child(5).animate-fadeInUp { animation-delay: 0.32s; }
  .feature-card:nth-child(6).animate-fadeInUp { animation-delay: 0.4s; }

  /* Feature card tap feedback */
  .feature-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }

  /* Icon animation on card appear */
  .feature-card.animate-fadeInUp .feature-card__icon-img {
    animation: iconBounce 0.4s ease 0.3s;
  }

  /* Steps enhanced animation */
  .step {
    opacity: 0;
    transform: translateY(40px);
  }

  .step.animate-fadeInUp {
    animation: slideUpBounce 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  }

  .step:nth-child(1).animate-fadeInUp { animation-delay: 0s; }
  .step:nth-child(2).animate-fadeInUp { animation-delay: 0.12s; }
  .step:nth-child(3).animate-fadeInUp { animation-delay: 0.24s; }
  .step:nth-child(4).animate-fadeInUp { animation-delay: 0.36s; }

  /* Step number enhanced animation */
  .step.animate-fadeInUp .step__number {
    animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
    opacity: 0;
  }

  /* Step image subtle hover on tap */
  .step__image {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .step:active .step__image {
    transform: scale(0.98);
  }

  /* Section headers animation */
  .features__header,
  .how-it-works__header {
    opacity: 0;
  }

  .features__header.animate-fadeInUp,
  .how-it-works__header.animate-fadeInUp {
    animation: fadeInBlur 0.6s ease forwards;
  }

  /* CTA section enhanced */
  .cta.animate-fadeInUp {
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  }

  /* Footer staggered animation */
  .footer__brand,
  .footer__column {
    opacity: 0;
    animation: staggerReveal 0.5s ease forwards;
  }

  .footer__brand { animation-delay: 0s; }
  .footer__column:nth-child(1) { animation-delay: 0.1s; }
  .footer__column:nth-child(2) { animation-delay: 0.2s; }

  /* Social link tap effect */
  .footer__social-link:active {
    transform: scale(0.9);
  }

  /* Smooth scrolling indicator (optional) */
  @keyframes scrollHint {
    0%, 100% {
      opacity: 0.5;
      transform: translateY(0);
    }
    50% {
      opacity: 1;
      transform: translateY(5px);
    }
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
