/* ============================================
   TrackPay.online - Landing Page Styles
   ============================================ */

/* --- CSS Variables --- */
:root {
  --green: #0F9D58;
  --green-dark: #0B7A43;
  --green-light: #e8f5e9;
  --white: #FFFFFF;
  --gray-light: #F5F7FA;
  --gray: #6c757d;
  --dark: #333333;
  --dark-deep: #1a1a2e;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(15,157,88,0.15);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; width: 100%; max-width: 100vw; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  line-height: 1.7;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
section { padding: 100px 0; position: relative; }
.section-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}
.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--dark);
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 50px;
}

/* --- Navbar --- */
.navbar-custom {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0;
  transition: var(--transition);
  z-index: 1050;
}
.navbar-custom.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 8px 0;
}
.navbar-custom .navbar-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green);
}
.navbar-custom .navbar-brand span { color: var(--dark); }
.navbar-custom .nav-link {
  color: var(--dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 8px;
  position: relative;
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active { color: var(--green); }
.btn-login {
  border: 2px solid var(--green);
  color: var(--green);
  padding: 8px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  transition: var(--transition);
}
.btn-login:hover { background: var(--green); color: var(--white); }
.btn-register {
  background: var(--green);
  color: var(--white);
  padding: 10px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  box-shadow: 0 4px 15px rgba(15,157,88,0.3);
  transition: var(--transition);
}
.btn-register:hover {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 6px 25px rgba(15,157,88,0.4);
  transform: translateY(-2px);
}

/* --- Hero --- */
.hero-section {
  padding: 140px 0 100px;
  background: linear-gradient(135deg, #f0faf4 0%, var(--white) 50%, #e8f5e9 100%);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(15,157,88,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(15,157,88,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--dark-deep);
}
.hero-title .highlight {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--green);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  box-shadow: 0 6px 25px rgba(15,157,88,0.35);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-hero-primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(15,157,88,0.45);
}
.btn-hero-secondary {
  background: var(--white);
  color: var(--green);
  padding: 14px 36px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--green);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.btn-hero-secondary:hover {
  background: var(--green-light);
  transform: translateY(-3px);
}
.hero-mockup-wrapper {
  position: relative;
  perspective: 1200px;
}
.hero-mockup-img {
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
  transform: rotateY(-5deg) rotateX(3deg);
  transition: transform 0.6s cubic-bezier(.4,0,.2,1);
}
.hero-mockup-wrapper:hover .hero-mockup-img {
  transform: rotateY(0) rotateX(0);
}
.hero-float-card {
  position: absolute;
  background: var(--white);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatCard 4s ease-in-out infinite;
  z-index: 2;
}
.hero-float-card.card-1 { bottom: 10%; left: -30px; animation-delay: 0s; }
.hero-float-card.card-2 { top: 10%; right: -20px; animation-delay: 1.5s; }
.hero-float-card .card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.hero-float-card .card-icon.green { background: var(--green-light); color: var(--green); }
.hero-float-card .card-icon.blue { background: #e3f2fd; color: #1976D2; }
.hero-float-card .card-info h6 { font-size: 0.75rem; color: var(--gray); margin-bottom: 2px; font-weight: 500; }
.hero-float-card .card-info p { font-weight: 700; font-size: 1rem; margin: 0; color: var(--dark); }
@keyframes floatCard { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* --- Features --- */
.features-section { background: var(--gray-light); }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
  height: 100%;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15,157,88,0.15);
}
.feature-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--green-light), #c8e6c9);
  color: var(--green);
  transition: var(--transition);
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  transform: scale(1.1);
}
.feature-card h5 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; }
.feature-card p { font-size: 0.9rem; color: var(--gray); margin: 0; }

/* --- Benefits --- */
.benefit-row { margin-bottom: 80px; }
.benefit-row:last-child { margin-bottom: 0; }
.benefit-img-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.benefit-img-wrapper img {
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.benefit-img-wrapper:hover img { transform: scale(1.03); }
.benefit-content { display: flex; flex-direction: column; justify-content: center; height: 100%; }
.benefit-content .benefit-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.benefit-content h3 { font-size: 1.6rem; margin-bottom: 16px; }
.benefit-content p { color: var(--gray); font-size: 1rem; line-height: 1.8; margin-bottom: 20px; }
.benefit-check { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: var(--dark); font-weight: 500; }
.benefit-check i { color: var(--green); font-size: 1.1rem; }

/* --- Stats --- */
.stats-section {
  background: linear-gradient(135deg, var(--dark-deep) 0%, #16213e 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.stats-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230F9D58' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-item { text-align: center; position: relative; z-index: 1; }
.stat-number {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 8px;
}
.stat-label { color: rgba(255,255,255,0.7); font-size: 1rem; font-weight: 500; }

/* --- Screenshots Slider --- */
.screenshots-section { background: var(--gray-light); }
.screenshot-slider { position: relative; overflow: hidden; }
.screenshot-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1);
}
.screenshot-slide {
  min-width: calc(33.333% - 16px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}
.screenshot-slide:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.screenshot-slide img { width: 100%; display: block; }
.screenshot-slide .slide-caption {
  background: var(--white);
  padding: 16px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
}
.slider-controls { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.slider-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--green);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { background: var(--green); color: var(--white); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.slider-dot.active { background: var(--green); width: 28px; border-radius: 5px; }

/* --- Plans --- */
.plan-card {
  background: var(--white);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  max-width: 460px;
  margin: 0 auto;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}
.plan-card:hover {
  border-color: var(--green);
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.plan-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.plan-card h3 { font-size: 2rem; margin-bottom: 8px; }
.plan-card .plan-desc { color: var(--gray); margin-bottom: 28px; }
.plan-features { list-style: none; padding: 0; margin: 0 0 32px; text-align: left; }
.plan-features li {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}
.plan-features li i { color: var(--green); font-size: 1.1rem; }
.plan-features li:last-child { border-bottom: none; }
.btn-plan {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  padding: 16px 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  width: 100%;
  transition: var(--transition);
  box-shadow: 0 6px 25px rgba(15,157,88,0.3);
}
.btn-plan:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(15,157,88,0.45);
  color: var(--white);
}

/* --- Testimonials --- */
.testimonials-section { background: var(--gray-light); }
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
}
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15,157,88,0.15);
}
.testimonial-card .stars { color: #FFB400; margin-bottom: 16px; font-size: 1rem; }
.testimonial-card p { color: var(--gray); font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-light), #c8e6c9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--green);
  font-size: 1.1rem;
}
.testimonial-author h6 { font-size: 0.95rem; margin-bottom: 2px; }
.testimonial-author small { color: var(--gray); font-size: 0.8rem; }
.testimonial-quote {
  position: absolute;
  top: 20px; right: 24px;
  font-size: 3rem;
  color: var(--green-light);
  font-family: Georgia, serif;
  line-height: 1;
}

/* --- CTA Final --- */
.cta-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
  border-radius: 50%;
}
.cta-section h2 { color: var(--white); font-size: 2.5rem; margin-bottom: 20px; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.15rem; max-width: 600px; margin: 0 auto 36px; }
.btn-cta {
  background: var(--white);
  color: var(--green);
  padding: 16px 48px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  color: var(--green-dark);
}

/* --- Footer --- */
.footer {
  background: var(--dark-deep);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 30px;
}
.footer h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; }
.footer-brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand span { color: var(--white); }
.footer p { font-size: 0.9rem; line-height: 1.8; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--green); padding-left: 5px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: var(--green); color: var(--white); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  margin-top: 50px;
  text-align: center;
  font-size: 0.85rem;
}

/* --- Scroll Reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(.4,0,.2,1);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-50px); transition: all 0.8s cubic-bezier(.4,0,.2,1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(50px); transition: all 0.8s cubic-bezier(.4,0,.2,1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(15,157,88,0.3);
  z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); transform: translateY(-3px); }

/* --- Responsive --- */
@media (max-width: 991px) {
  .hero-title { font-size: 2.4rem; }
  .section-title { font-size: 2rem; }
  .hero-section { padding: 120px 0 60px; min-height: auto; }
  .hero-mockup-wrapper { margin-top: 50px; }
  .hero-mockup-img { transform: none; }
  .hero-float-card.card-1 { left: 10px; }
  .hero-float-card.card-2 { right: 10px; }
  .screenshot-slide { min-width: calc(50% - 12px); }
  .stat-item { margin-bottom: 30px; }
}
@media (max-width: 767px) {
  section { padding: 70px 0; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons a { text-align: center; }
  .section-title { font-size: 1.7rem; }
  .stat-number { font-size: 2.2rem; }
  .screenshot-slide { min-width: calc(100% - 0px); }
  .plan-card { padding: 36px 24px; }
  .cta-section h2 { font-size: 1.8rem; }
  .hero-float-card { display: none; }
  .navbar-custom .navbar-nav { padding: 16px 0; }
  .navbar-custom .nav-item { margin: 4px 0; }
  .btn-login, .btn-register { display: block; width: 100%; text-align: center; margin: 4px 0; }
}
