:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --secondary: #64748b;
  --dark: #1e293b;
  --darker: #0f172a;
  --light: #f8fafc;
  --accent: #06d6a0;
  --accent-dark: #05b384;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 5px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
  position: relative;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: color 0.3s;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

nav ul li a:hover {
  color: var(--primary);
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.3;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--primary-light);
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--darker);
  font-weight: 800;
}

.hero-text .highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-text .highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 10px;
  background: rgba(37, 99, 235, 0.2);
  z-index: -1;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2.5rem;
  max-width: 90%;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: white;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  position: relative;
  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;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-accent {
  background: var(--accent);
}

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  background: white;
  border-radius: 15px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}

.hero-image:hover {
  transform: translateY(-10px);
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.1;
}

.hero-image i {
  font-size: 5rem;
  z-index: 1;
}

/* Features */
.features {
  padding: 100px 0;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: var(--darker);
  font-weight: 800;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title p {
  color: var(--secondary);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  background: var(--primary-light);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--primary);
  font-size: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--darker);
}

.feature-card p {
  color: var(--secondary);
}

/* How It Works */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  position: relative;
}

.steps {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 80px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--primary-light);
  z-index: 1;
}

.step {
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 0 1rem;
}

.step-number {
  width: 100px;
  height: 100px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.step:hover .step-number {
  transform: scale(1.1);
  background: var(--accent);
}

.step h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: var(--darker);
}

.step p {
  color: var(--secondary);
}

/* CTA */
.cta {
  padding: 100px 0;
  background: var(--gradient);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" preserveAspectRatio="none"><path d="M500,97C126.7,96.3,0.8,19.8,0,0v100l1000,0V0C999.2,19.8,873.3,96.3,500,97z" fill="rgba(255,255,255,0.1)"></path></svg>');
  background-size: 100% 100px;
  background-repeat: no-repeat;
  background-position: bottom;
}

.cta h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.cta p {
  max-width: 700px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.btn-light {
  background: white;
  color: var(--primary);
}

.btn-light:hover {
  background: #f0f0f0;
  color: var(--primary-dark);
}

/* Contact Form */
.contact-form {
  background: white;
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--darker);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--darker);
  color: white;
  padding: 80px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-about p {
  margin-bottom: 1.5rem;
  color: #cbd5e1;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links h3,
.footer-contact h3 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  position: relative;
  display: inline-block;
}

.footer-links h3::after,
.footer-contact h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links ul li a i {
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-links ul li a:hover {
  color: white;
  gap: 12px;
}

.footer-contact p {
  margin-bottom: 1rem;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content,
  .features-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .steps {
    flex-direction: column;
    gap: 3rem;
  }

  .steps::before {
    display: none;
  }

  .step {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: var(--shadow);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0;
    padding: 0.8rem 2rem;
  }

  .mobile-menu {
    display: block;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-text p {
    max-width: 100%;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}
