/* Base Styles and Reset */
:root {
  --primary-color: #6366f1;
  --secondary-color: #f43f5e;
  --dark-color: #0f172a;
  --light-color: #f1f5f9;
  --gray-color: #64748b;
  --gradient: linear-gradient(135deg, #6366f1, #f43f5e);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: #4f46e5;
  color: white;
}

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

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

.btn.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* Header */
header {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.brand {
  display: flex;
  align-items: center;
}

.brand h1 {
  font-size: 1.2rem;
  margin-bottom: 0;
  margin-left: 10px;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--dark-color);
  margin-bottom: 5px;
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

nav .menu {
  display: flex;
  gap: 1.5rem;
}

nav .menu li a {
  color: var(--dark-color);
  font-weight: 500;
  position: relative;
}

nav .menu li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

nav .menu li a:hover {
  color: var(--primary-color);
}

nav .menu li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: var(--gradient);
  color: white;
  padding: 100px 0;
  text-align: center;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

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

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

/* Features Section */
.features {
  padding: 80px 0;
  background-color: white;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.card {
  background: white;
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

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

.card .icon {
  margin-bottom: 20px;
}

.card h3 {
  margin-bottom: 15px;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--light-color);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about h2 {
  margin-bottom: 1.5rem;
}

.about p {
  margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials {
  padding: 80px 0;
  background: white;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 3rem;
}

.testimonial {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: var(--border-radius);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-size: 5rem;
  color: var(--primary-color);
  opacity: 0.1;
  position: absolute;
  top: 10px;
  left: 10px;
}

.testimonial p {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.testimonial .user {
  color: var(--gray-color);
  font-style: italic;
  display: block;
}

/* FAQ Section */
.faq {
  padding: 80px 0;
  background-color: var(--light-color);
}

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

.faq-item {
  background: white;
  border-radius: var(--border-radius);
  margin-bottom: 15px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.question {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

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

.faq-item.active .answer {
  max-height: 200px;
  padding-bottom: 20px;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: var(--gradient);
  color: white;
  text-align: center;
}

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

.cta p {
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

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

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 20px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo span {
  margin-left: 10px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.link-group h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.link-group ul li {
  margin-bottom: 10px;
}

.link-group ul li a {
  color: #cbd5e1;
}

.link-group ul li a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  nav .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: white;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  }

  nav .menu.active {
    right: 0;
  }

  .hero {
    padding: 70px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .cards, .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links {
    gap: 30px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.6rem;
  }

  .hero h2 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.7rem 1.5rem;
  }
  
  .btn.large {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}
