/* Styling: app.css */

:root {
  --primary: #1a365d;
  --accent: #2b6cb0;
  --accent-light: #2f78c711;
  --text-main: #2d3748;
  --text-light: #718096;
  --bg: #f7fafc;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  color: var(--text-main);
  background-color: var(--bg);
}

#loader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
  text-align: center;
  width: 300px;
}

.loader-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
}

.loader-logo span {
  color: var(--accent);
}

.progress-container {
  width: 100%;
  height: 6px;
  background: #edf2f7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 10px;
  transition: width 0.4s ease;
}

#loader-text {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 500;
  letter-spacing: 0.5px;
}

.navbar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(237, 242, 247, 0.8);
  transition: all 0.3s ease;
}

.navbar-scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary);
}
.logo span {
  color: var(--accent);
}

.btn-nav {
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  padding: 8px 20px;
  border: 1.5px solid var(--primary);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: var(--primary);
  color: white;
}

.hero {
  max-width: 1100px;
  margin: 80px auto;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.shape {
  position: absolute;
  z-index: -1;
  filter: blur(80px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 10s infinite alternate ease-in-out;
}

.shape-1 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: -50px;
  right: -50px;
  border-radius: 50%;
}

.shape-2 {
  width: 250px;
  height: 250px;
  background: #bee3f8;
  bottom: 50px;
  left: -50px;
  animation-delay: 2s;
  border-radius: 50%;
}

.badge {
  background: #ebf8ff;
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin: 24px 0;
}

h1 span {
  color: var(--accent);
}

p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-primary {
  background: var(--primary);
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--primary);
  padding: 16px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  display: inline-block;
}

.btn-secondary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(30px, 50px);
  }
}

.hero-preview {
  animation: previewFloat 6s infinite ease-in-out;
}

@keyframes previewFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.hero-preview {
  margin-top: 80px;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid #e2e8e0;
}

.features {
  padding: 100px 20px;
  background-color: #ffffff;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-top: 15px;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  visibility: hidden;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  padding: 40px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(49, 130, 206, 0.05);
  cursor: pointer;
}

.feature-card:hover .feature-icon {
  background: var(--accent);
  color: #ffffff;
  transform: rotate(-5deg) scale(1.1);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: #ebf8ff;
  color: var(--accent);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin: 0;
}

.steps {
  padding: 100px 20px;
  background-color: #f8fafc;
  position: relative;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 50px;
}

.step-card {
  position: relative;
  padding: 40px;
  background: transparent;
  text-align: left;
}

.step-number {
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  font-weight: 900;
  color: #e2e8f0;
  z-index: 0;
  opacity: 0.5;
  user-select: none;
}

.step-icon {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.step-card h3 {
  position: relative;
  z-index: 1;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.step-card p {
  position: relative;
  z-index: 1;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
}

.final-cta {
  padding: 100px 20px;
  background: #ffffff;
}

.cta-container {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary) 0%, #2c5282 100%);
  padding: 80px 40px;
  border-radius: 32px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.cta-content p {
  font-size: 1.1rem;
  color: #bee3f8;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.btn-cta {
  background: #ffffff !important;
  color: var(--primary) !important;
  border: none !important;
  padding: 18px 40px !important;
  font-size: 1.1rem;
}

.btn-cta:hover {
  background: #f7fafc !important;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.footer-simple {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #edf2f7;
  color: var(--text-light);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .shape {
    width: 150px;
    height: 150px;
    filter: blur(50px);
  }
  .hero-content h1 {
    margin-bottom: 16px;
    line-height: 1.2;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 32px;
    line-height: 1.5;
    opacity: 0.9;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
  }

  .btn-secondary {
    border: 1.5px solid #e2e8f0 !important;
    padding: 12px !important;
    margin-top: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.5);
  }

  .btn-primary,
  .btn-secondary,
  .btn-cta {
    padding: 14px !important;
    font-size: 1rem;
    text-align: center;
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .feature-card,
  .step-card {
    padding: 30px 20px;
  }

  .cta-container {
    margin: 0 15px;
    padding: 40px 20px;
    border-radius: 24px;
  }

  .cta-content h2 {
    font-size: 1.7rem;
    margin-bottom: 12px;
  }

  .nav-container {
    padding: 0 15px;
  }

  .logo {
    font-size: 1.2rem;
  }
}
