/* Base Styles & Variables */
:root {
  --primary: #4f46e5;
  --primary-dark: #6366f1;
  --primary-light: #e0e7ff;
  --text: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --background-alt: #f8f9ff;
  --border: #e6e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(126, 66, 252, 0.12);
  --transition: all 0.3s ease;
  --max-width: 1200px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--background);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

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

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3.5rem;
}

.highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: var(--primary-light);
  z-index: -1;
  border-radius: 4px;
}

/* Animation for hero section floating badges */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

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

/* Add some rotation animation */
@keyframes gentle-rotate {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-float-slow {
  animation: float-slow 5s ease-in-out infinite;
}

.animate-rotate {
  animation: gentle-rotate 8s ease-in-out infinite;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--primary-light);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
  color: white;
  transform: translateY(-2px);
}

.btn-text {
  background-color: transparent;
  color: var(--text);
  padding: 0.75rem 1rem;
}

.btn-text:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--primary);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
}

.logo img {
  height: 36px;
  margin-right: 0.75rem;
}

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

/* Hero Section */
.hero {
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #ffffff, #f8f9ff);
}

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

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.hero-content {
  max-width: 600px;
}

.hero-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.user-tabs {
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.tab-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.tab-btn {
  padding: 1rem;
  text-align: center;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  color: var(--text-light);
}

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

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
}

.feature-list {
  margin-bottom: 2rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 500;
}

.feature-list .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-light);
  color: var(--primary);
  margin-right: 1rem;
  font-size: 0.85rem;
}

.signup-form {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.signup-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.signup-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-preview {
  position: relative;
  max-width: 450px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background-color: white;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.dashboard-preview:hover {
  transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

/* Enhanced floating elements */
.floating-badge,
.floating-element {
  position: absolute;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  gap: 0.75rem;
}

.badge-payments {
  top: 6%;
  left: -10%;
}

.badge-rating {
  bottom: 10%;
  right: -10%;
}

.chart-element {
  top: 30%;
  left: -15%;
  padding: 1rem;
}

.check-element {
  bottom: 25%;
  right: -15%;
}

.badge-icon {
  font-size: 1.25rem;
}

.badge-content {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.75rem;
  color: var(--text-light);
}

.badge-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
}

.shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.shape-divider svg {
  position: relative;
  display: block;
  width: calc(130% + 1.3px);
  height: 112px;
}

.shape-divider .shape-fill {
  fill: var(--background-alt);
}

/* Trust Badges Section */
.trust-badges {
  background-color: var(--background-alt);
  padding: 3rem 0;
  text-align: center;
}

.badge-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 3rem;
  margin-top: 2rem;
}

.badge-container img {
  height: 28px;
  opacity: 0.7;
  transition: var(--transition);
}

.badge-container img:hover {
  opacity: 1;
}

/* Features Section - Enhanced Icons and Design */
.features {
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  height: 100%;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.feature-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 5px 15px var(--primary-light);
}

.feature-icon svg {
  width: 32px;
  height: 32px;
}

/* How It Works Section - Enhanced Design */
.how-it-works {
  background-color: var(--background-alt);
  padding: 6rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* Enhanced step indicators */
.step-icon-container {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.step-number {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px var(--primary-light);
  z-index: 2;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 10px var(--primary-light);
}

.step-icon svg {
  width: 40px;
  height: 40px;
  color: var(--primary);
}

/* Testimonials Section */
.testimonials {
  padding: 6rem 0;
}

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

.testimonial-card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}

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

.quote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary);
}

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

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

.author-info h4 {
  margin-bottom: 0.25rem;
  font-size: 1.125rem;
}

.author-info p {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* FAQ Section */
.faq {
  background-color: var(--background-alt);
  padding: 6rem 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  background-color: white;
  overflow: hidden;
  border: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
}

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

.faq-question .icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-question.active .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  margin: 0;
}

/* CTA Section */
.cta {
  padding: 6rem 0;
  background-color: white;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  background: var(--primary);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  color: white;
  box-shadow: var(--shadow-lg);
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.cta .btn-primary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary-dark);
}

.cta .btn-outline {
  border-color: white;
  color: white;
}

.cta .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Updated Modern Footer */
.modern-footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 5rem 0 2rem;
}

.modern-footer .container {
  max-width: 1300px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-logo img {
  height: 32px;
  margin-right: 0.75rem;
}

.footer-col h4 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-col ul li {
  margin-bottom: 1rem;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  position: relative;
  padding-left: 0;
  display: inline-block;
}

.footer-col ul li a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

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

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-location {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero .container {
    gap: 2rem;
  }

  .footer-top {
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }

  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-image {
    margin-top: 2rem;
    order: 2;
  }

  .dashboard-preview {
    margin: 0 auto;
    max-width: 90%;
    transform: none;
  }

  .signup-form {
    flex-direction: column;
  }

  .floating-badge,
  .floating-element {
    transform: scale(0.9);
  }

  .badge-payments {
    top: 5%;
    left: 0;
  }

  .badge-rating {
    bottom: 5%;
    right: 0;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  header {
    padding: 0.5rem 0;
  }

  .logo {
    font-size: 0;
  }

  .logo img {
    height: 30px;
    margin-right: 0;
  }

  .auth-buttons {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }

  .auth-buttons a {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }

  h1 {
    font-size: 2rem;
    color: var(--text);
  }

  .highlight {
    color: var(--primary);
  }

  .hero {
    padding: 3rem 0 5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .signup-form {
    width: 100%;
  }

  .signup-form input,
  .signup-form button {
    width: 100%;
  }

  .tab-btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .tab-content {
    padding: 1.5rem;
  }

  .feature-list li {
    font-size: 0.9rem;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    gap: 0.75rem;
  }

  .feature-card,
  .testimonial-card {
    padding: 1.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon svg {
    width: 28px;
    height: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 375px) {
  .logo {
    font-size: 0;
  }

  .logo img {
    height: 24px;
  }

  .auth-buttons {
    gap: 0.35rem;
  }

  .auth-buttons a {
    font-size: 0.7rem;
    padding: 0.4rem 0.5rem;
  }

  .hero-badge {
    width: 100%;
    text-align: center;
  }

  h1 {
    font-size: 1.75rem;
    text-align: center;
  }

  .hero-content p {
    text-align: center;
  }

  .tab-content {
    padding: 1rem;
  }
}
