/* Base Variables and Settings */
:root {
  --primary: #00bfa5;
  --secondary: #1e88e5;
  --accent: #5e35b1;
  --dark: #263238;
  --light: #ffffff;
  --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8ef 100%);
  --text-color: #37474f;
  --card-bg: rgba(255, 255, 255, 0.95);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --box-shadow: 0 15px 30px rgba(0, 191, 165, 0.1), 0 5px 15px rgba(30, 136, 229, 0.07);
  --border-radius: 12px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --section-spacing: 120px;
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  background: var(--bg-gradient);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

a:hover {
  color: var(--secondary);
}

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

ul {
  list-style: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--dark);
}

h1 {
  font-size: 3.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
}

.text-accent {
  color: var(--accent);
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section {
  padding: calc(var(--section-spacing) / 2) 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--gradient);
  color: var(--light);
  box-shadow: 0 4px 15px rgba(0, 191, 165, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 7px 20px rgba(0, 191, 165, 0.6);
  transform: translateY(-3px);
  color: var(--light);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--light);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.1rem;
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 1.5rem 0;
  background-color: transparent;
  transition: all 0.4s ease;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  padding: 0.8rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 101;
}

.logo-icon {
  width: 40px;
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
}

.nav-toggle {
  display: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23e0f7fa' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23e0f7fa'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E") center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 191, 165, 0.1) 0%, rgba(30, 136, 229, 0.1) 100%);
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-title {
  margin-bottom: 2rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  font-weight: 500;
}

.hero-action {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  height: auto;
  z-index: 0;
}

/* Features Section */
.features {
  background-color: var(--light);
  position: relative;
  border-radius: 30px 30px 0 0;
  margin-top: -30px;
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

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

.feature-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--gradient);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.feature-title {
  margin-bottom: 1rem;
}

/* How It Works */
.how-it-works {
  background-color: var(--light);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  counter-reset: step-counter;
}

.step {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  position: relative;
  padding-left: 80px;
}

.step::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  font-size: 1.75rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-title {
  margin-bottom: 1rem;
}

/* CTA Section */
.cta {
  position: relative;
  overflow: hidden;
  background-color: var(--dark);
  color: var(--light);
  border-radius: var(--border-radius);
  margin: 2rem auto;
  max-width: 1100px;
  padding: 4rem 2rem;
  text-align: center;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  opacity: 0.1;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.cta-title {
  color: var(--light);
}

.cta-text {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.footer-logo-img {
  width: 35px;
  height: 35px;
}

.footer-logo-text {
  color: var(--light);
  font-size: 1.2rem;
  font-weight: 600;
}

.footer-text {
  max-width: 350px;
  margin-bottom: 1.5rem;
}

.footer-heading {
  color: var(--light);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--gradient);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  display: block;
}

.footer-link:hover {
  color: var(--light);
  transform: translateX(5px);
}

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

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  :root {
    --section-spacing: 100px;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  .hero-image {
    width: 40%;
  }
}

@media (max-width: 768px) {
  :root {
    --section-spacing: 80px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero {
    text-align: center;
  }
  
  .hero-content {
    max-width: 100%;
  }
  
  .hero-image {
    display: none;
  }
  
  .hero-action {
    justify-content: center;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.2rem;
  }
  
  .btn {
    padding: 0.8rem 1.8rem;
  }
  
  .btn-lg {
    padding: 1rem 2.2rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
  
  .cta {
    padding: 3rem 1.5rem;
  }
}
