/* Reset and Base Styles */
:root {
  --primary: #1062FE; /* Premium blue */
  --primary-hover: #0353e9;
  --bg-color: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-color: #e2e8f0;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(16, 98, 254, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --container-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.highlight {
  color: var(--text-main);
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 100%;
  height: 14px;
  background-color: #a8c4fa;
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1deg);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.05em;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: var(--primary);
  bottom: -4px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-main);
}
.nav-links a:hover::after {
  width: 100%;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 98, 254, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: all 0.6s ease;
}

.btn-primary:hover::after {
  left: 100%;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(16, 98, 254, 0.35);
}

.btn-large {
  padding: 18px 36px;
  font-size: 1.125rem;
}

/* Navbar CTA */
.nav-cta {
  white-space: nowrap;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 0 100px;
  overflow: hidden;
  background: radial-gradient(circle at top right, rgba(16, 98, 254, 0.12), transparent 50%),
              radial-gradient(circle at bottom left, rgba(16, 98, 254, 0.05), transparent 50%);
}

.hero::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMTYsIDk4LCAyNTQsIDAuMSkiLz48L3N2Zz4=') repeat;
  z-index: -1;
  opacity: 0.6;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-image-wrapper {
  position: relative;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  transition: transform 0.5s ease;
}

.hero-image {
  border-radius: var(--radius-md);
  transform: scale(1.02);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  transform: translateY(-5px);
}

.glass-card:hover .hero-image {
  transform: scale(1.04);
}

/* Floating Elements */
.chart-1, .chart-2 {
  position: absolute;
  z-index: 4;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.chart-1 {
  top: -30px;
  right: -20px;
  width: 160px;
  animation: float-1 7s ease-in-out infinite;
}

.chart-2 {
  bottom: 20px;
  left: -40px;
  width: 140px;
  animation: float-2 6s ease-in-out infinite alternate;
}

@keyframes float-1 {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 14px 24px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 5;
  color: var(--text-main);
  animation: float-badge 6s ease-in-out infinite;
  border: 1px solid var(--glass-border);
}

.badge-1 {
  top: 15%;
  left: -15%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 10%;
  right: -10%;
  animation-delay: 3s;
}

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

/* Sections */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
  max-width: 700px;
  margin-inline: auto;
}

.section-header h2 {
  font-size: clamp(2.25rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-muted);
}

.bg-white {
  background-color: var(--surface);
}

/* Grid & Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 98, 254, 0.2);
}

.icon-box {
  width: 64px;
  height: 64px;
  background: rgba(16, 98, 254, 0.08);
  color: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.4s ease, background 0.4s ease;
}

.card:hover .icon-box {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
}

.card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
}

/* How it works */
.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 40px 32px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 98, 254, 0.2);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 72px;
  height: 72px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(16, 98, 254, 0.3);
  transition: transform 0.3s ease;
}

.step-card:hover .step-number {
  transform: scale(1.1) rotate(5deg);
}

.steps-line {
  position: absolute;
  top: 76px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}

.steps-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: var(--primary);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.steps-container.visible .steps-line::after {
  transform: scaleX(1);
}


/* Differentials */
.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--surface);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
}

.diff-item:hover {
  transform: translateX(8px) translateY(-4px);
  border-color: rgba(16, 98, 254, 0.3);
  box-shadow: var(--shadow-md);
}

.diff-icon {
  background: rgba(16, 98, 254, 0.08);
  color: var(--primary);
  padding: 16px;
  border-radius: 50%;
  display: flex;
  transition: background 0.3s ease, color 0.3s ease;
}

.diff-item:hover .diff-icon {
  background: var(--primary);
  color: white;
}

/* CTA & Contact */
.cta-section {
  background: radial-gradient(120% 120% at 10% 10%, var(--primary) 0%, #083c9c 100%);
  color: white;
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px auto 100px;
  max-width: var(--container-max);
  box-shadow: 0 24px 48px -12px rgba(16, 98, 254, 0.4);
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMCIgaGVpZ2h0PSIyMCI+PGNpcmNsZSBjeD0iMiIgY3k9IjIiIHI9IjEiIGZpbGw9InJnYmEoMjU1LCAyNTUsIDI1NSwgMC4wNSkiLz48L3N2Zz4=') repeat;
  pointer-events: none;
}

.cta-content, .contact-form {
  position: relative;
  z-index: 2;
}

.cta-section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
}

.cta-section p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.contact-form {
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  color: var(--text-main);
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(16, 98, 254, 0.15);
  background: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--surface);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  transition: color 0.3s ease;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(16, 98, 254, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s ease,
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.3s ease,
              box-shadow 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(16, 98, 254, 0.35);
}

/* Responsive */
@media (max-width: 991px) {
  .nav-links a {
    font-size: 0.95rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }
  
  .hero-subtitle {
    margin-inline: auto;
  }
  
  .chart-1, .chart-2 {
    display: none;
  }
  
  .hero-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .glass-card {
    width: min(560px, 100%);
    margin-inline: auto;
  }

  .badge-1 {
    left: -8px;
  }
  
  .badge-2 {
    right: -8px;
  }
  
  .steps-container {
    grid-template-columns: 1fr;
  }
  
  .steps-line {
    display: none;
  }
  
  .cta-section {
    grid-template-columns: 1fr;
    padding: 60px 32px;
    margin: 60px 24px;
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 899px) {
  .nav-cta {
    display: none;
  }
}

@media (max-width: 767px) {
  .navbar {
    padding: 12px 0;
  }

  .container {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 140px;
    padding-bottom: 80px;
  }

  .glass-card {
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px -20px rgba(16, 98, 254, 0.35);
  }

  .hero-image {
    border-radius: var(--radius-sm);
  }

  .floating-badge {
    padding: 10px 16px;
    font-size: 0.8125rem;
    gap: 8px;
  }

  .floating-badge svg {
    width: 16px;
    height: 16px;
  }

  .badge-1 {
    top: 8%;
    left: 8px;
  }

  .badge-2 {
    bottom: 6%;
    right: 8px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-section {
    padding: 40px 24px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.25rem;
    gap: 8px;
  }

  .logo img {
    width: 28px;
  }

  .section {
    padding: 80px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .cta-section {
    padding: 32px 20px;
    margin: 40px 16px;
  }

  .contact-form {
    padding: 28px 20px;
  }

  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
  }

  .back-to-top svg {
    width: 18px;
    height: 18px;
  }
}
