@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Core Light Theme Colors */
  --bg-main: #FAFAFA;
  --bg-alt: #FFFFFF;
  
  /* Surfaces & Borders */
  --surface: rgba(255, 255, 255, 0.65);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --border-light: rgba(15, 23, 42, 0.08);
  --border-hover: rgba(15, 23, 42, 0.15);
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 25px 50px -12px rgba(37, 99, 235, 0.15);
  
  /* Text Colors */
  --text-main: #0F172A; /* Slate 900 */
  --text-muted: #475569; /* Slate 600 */
  
  /* Gradients & Accents */
  --primary-glow: #2563EB;
  --secondary-glow: #7C3AED;
  --accent-glow: #E11D48;
  
  --gradient-text: linear-gradient(135deg, #2563EB, #7C3AED, #E11D48);
  --gradient-bg: linear-gradient(135deg, #2563EB, #7C3AED, #F43F5E);
  
  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-muted);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-fast);
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Utilities */
.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.section-bg {
  background-color: var(--bg-alt);
}

/* Animated Light Background */
.bg-blobs {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  z-index: -1;
  background-color: var(--bg-main);
}

.noise-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.015; /* Extremely subtle in light mode */
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.blob {
  position: absolute;
  filter: blur(120px);
  opacity: 0.4;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: -10%; left: -10%;
  width: 60vw; height: 60vw;
  background: rgba(59, 130, 246, 0.2);
}
.blob-2 {
  bottom: -20%; right: -10%;
  width: 70vw; height: 70vw;
  background: rgba(139, 92, 246, 0.15);
  animation-delay: -5s;
}
.blob-3 {
  top: 40%; left: 50%;
  width: 50vw; height: 50vw;
  background: rgba(244, 63, 94, 0.15);
  animation-delay: -10s;
  transform: translateX(-50%);
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 90px) scale(1.05); }
  100% { transform: translate(-60px, -40px) scale(0.95); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 9999px;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  font-family: var(--font-heading);
}

.btn-primary {
  background: var(--gradient-bg);
  color: #FFFFFF;
  box-shadow: 0 8px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 12px 35px -5px rgba(37, 99, 235, 0.5);
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-glass {
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(20px);
}

.btn-glass:hover {
  background: #FFFFFF;
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-main);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0; height: 2px;
  bottom: -4px; left: 0;
  background: var(--gradient-text);
  transition: width var(--transition-normal);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1001;
}

.mobile-menu-btn .bar {
  width: 30px;
  height: 2px;
  background-color: var(--text-main);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  padding: 12rem 0 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

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

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.05); /* Slight blue tint */
  border: 1px solid rgba(37, 99, 235, 0.15);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-glow);
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.05);
}

.sparkle {
  font-size: 1.1rem;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--text-muted);
  margin-bottom: 3.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  padding: 2rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  background: #FFFFFF;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.stat-item strong {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-item span {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
}

/* Services */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.services {
  padding: 8rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: var(--shadow-hover);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.service-icon {
  font-size: 1.25rem;
  color: var(--primary-glow);
  background: rgba(37, 99, 235, 0.1);
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 0.5rem;
}

.arrow-icon {
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-normal);
  color: var(--primary-glow);
  font-size: 1.25rem;
}

.service-card:hover .arrow-icon {
  opacity: 1;
  transform: translateX(0);
}

.service-card h3 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-main);
}

/* Process Section */
.process {
  padding: 8rem 0;
}

.process-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.process-text h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.process-list {
  list-style: none;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.process-list li {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: #FFFFFF;
  transition: all var(--transition-normal);
}

.process-list li:hover {
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateX(10px);
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.2);
  transition: all var(--transition-normal);
}

.process-list li:hover .step-num {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-stroke: 0;
  color: transparent;
}

.step-content h4 {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 1rem;
}

.process-visual {
  position: relative;
  height: 500px;
}

.visual-card {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 2.5rem;
  border-radius: 1.5rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.code-sim {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.code-sim .keyword { color: #E11D48; font-weight: 600; }
.code-sim .func { color: #2563EB; font-weight: 600; }
.code-sim .string { color: #059669; } /* Emerald */

.visual-card-small {
  position: absolute;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  font-weight: 600;
  color: var(--text-main);
}

.float-1 {
  top: 10%; right: -5%;
  animation: float 6s ease-in-out infinite alternate;
}

.float-2 {
  bottom: 10%; left: -5%;
  animation: float 8s ease-in-out infinite alternate-reverse;
}

.progress-bar {
  width: 120px; height: 6px;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-bar .fill {
  height: 100%;
  background: var(--gradient-bg);
}
.trend-up {
  color: #059669;
  font-weight: 800;
  font-size: 1.25rem;
  margin-top: 0.25rem;
}

/* CTA */
.cta {
  padding: 8rem 0;
}

.cta-container {
  padding: 6rem 3rem;
  border-radius: 2rem;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  box-shadow: 0 30px 60px -15px rgba(37, 99, 235, 0.1);
}

.cta-container h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.cta-form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 3rem auto 0;
}

.form-input {
  flex: 1;
  padding: 0 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border-hover);
  background: #FAFAFA;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  background: #FFFFFF;
  border-color: var(--primary-glow);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-light);
  background: #FFFFFF;
}

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

.footer-brand p {
  margin-top: 1.5rem;
  max-width: 300px;
  font-size: 0.95rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-group h4 {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.link-group a {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.link-group a:hover {
  color: var(--primary-glow);
  transform: translateX(5px);
}

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

/* --- Reveal & Stagger Animations (Triggered by JS) --- */

.reveal .stagger {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active .stagger.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal:not(:has(.stagger)) {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active:not(:has(.stagger)) {
  opacity: 1;
  transform: translateY(0);
}


/* Responsive */
@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
}

@media (max-width: 992px) {
  .process-container, .footer-container { gap: 3rem; grid-template-columns: 1fr; }
  .process-visual { height: 450px; max-width: 600px; margin: 3rem auto 0; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 768px) {
  /* Navbar */
  .nav-links, .navbar .btn { display: none; }
  .nav-links.nav-links-mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .mobile-menu-btn { display: flex; }
  
  /* Hero */
  .hero { padding: 9rem 0 5rem; }
  .hero h1 { font-size: 2.75rem; }
  .hero-buttons { flex-direction: column; gap: 1rem; width: 100%; max-width: 300px; margin-inline: auto; }
  .hero-buttons .btn { width: 100%; }
  
  /* Stats Grid */
  .stats-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  
  /* Services */
  .services { padding: 5rem 0; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  
  /* Process */
  .process { padding: 5rem 0; }
  .process-visual { height: 350px; transform: scale(0.9); }
  
  /* CTA */
  .cta { padding: 5rem 0; }
  .cta-container { padding: 3.5rem 1.5rem; }
  .cta-form { flex-direction: column; width: 100%; margin-top: 2rem; }
  .form-input { padding: 1.25rem 1.5rem; width: 100%; }
  
  /* Footer */
  .footer { padding: 3rem 0; }
  .footer-links { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2.25rem; }
  .process-visual { transform: scale(0.75); height: 300px; }
  .stat-item { padding: 1.5rem; }
}
