@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ===========================
   DESIGN SYSTEM - MODERN TECH VIBE
   =========================== */

:root {
  /* Typography */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* DYNAMIC PALETTE COLORS */
  --h1: 245; --s1: 70%; --l1: 55%; /* Primary Gradient Stop */
  --h2: 280; --s2: 80%; --l2: 60%; /* Secondary Gradient Stop */
  
  --primary: hsl(var(--h1), var(--s1), var(--l1));
  --primary-light: hsl(var(--h1), var(--s1), 95%);
  --secondary: hsl(var(--h2), var(--s2), var(--l2));
  --accent-glow: hsla(var(--h1), var(--s1), var(--l1), 0.15);
  
  --text-main: #0f172a;
  --text-muted: #64748b;
  
  --background: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --border-hover: #cbd5e1;
  
  /* Palette Gradients */
  --gradient-primary: linear-gradient(135deg, hsl(var(--h1), var(--s1), var(--l1)), hsl(var(--h2), var(--s2), var(--l2)));
  --gradient-secondary: linear-gradient(135deg, hsl(var(--h2), var(--s2), var(--l2)), hsl(var(--h1), var(--s1), var(--l1)));
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --shadow-primary: 0 20px 40px -15px var(--accent-glow);

  /* Radius */
  --radius: 12px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================
   GLOBAL STYLES
   =========================== */

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

/* Transition for accent elements */
.cta-button, .card-icon, .highlight, .stat-number, .logo, .nav-links a, footer {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  background-color: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Moving Mesh Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 10%, hsla(var(--h1), var(--s1), var(--l1), 0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, hsla(var(--h2), var(--s2), var(--l2), 0.08) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

p {
  color: var(--text-muted);
  font-size: clamp(1rem, 1.2vw, 1.25rem);
  font-weight: 450;
}

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

/* ===========================
   HEADER & NAVIGATION
   =========================== */

header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 2rem);
  max-width: 1000px;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid hsla(var(--h1), var(--s1), var(--l1), 0.1);
  box-shadow: 0 4px 20px hsla(var(--h1), var(--s1), var(--l1), 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1.5px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-full);
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-full);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: white;
  box-shadow: var(--shadow-sm);
}

/* ===========================
   BUTTONS
   =========================== */

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-primary);
  position: relative;
  overflow: hidden;
}

.cta-button:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 25px 50px -12px rgba(79, 70, 229, 0.5);
}

.cta-button.secondary {
  background: var(--gradient-secondary);
  box-shadow: 0 20px 40px -15px rgba(236, 72, 153, 0.4);
}

.cta-button.secondary:hover {
  box-shadow: 0 25px 50px -12px rgba(236, 72, 153, 0.5);
}

.cta-button.white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.cta-button.white:hover {
  background: #f8fafc;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
  padding: 12rem 2rem 8rem;
  text-align: center;
}

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

.hero h1 {
  margin-bottom: 2rem;
  background: linear-gradient(to bottom, var(--text-main) 40%, rgba(15, 23, 42, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.hero .cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ===========================
   STATS SECTION
   =========================== */

.stats {
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.stat-item {
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition-smooth);
}

.stat-item:hover {
  transform: translateY(-10px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

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

.stat-item:nth-child(odd) { animation: float 6s ease-in-out infinite; }
.stat-item:nth-child(even) { animation: float 6s ease-in-out infinite 2s; }

/* ===========================
   MAIN CONTAINER
   =========================== */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  min-height: 60vh;
  padding: 5rem 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  margin-bottom: 1rem;
  color: var(--foreground);
  text-align: center;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ===========================
   CARDS
   =========================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin: 2rem 0;
}

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

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: hsla(var(--h1), var(--s1), var(--l1), 0.3);
  box-shadow: 0 20px 40px hsla(var(--h1), var(--s1), var(--l1), 0.15);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition-fast);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-radius: 12px;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ===========================
   PRICING BOX
   =========================== */

.pricing-box {
  background: var(--text-main);
  color: white;
  border-radius: 2rem;
  padding: 5rem;
  margin: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pricing-box::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
  z-index: 0;
}

.pricing-item {
  position: relative;
  z-index: 1;
}

.price-label {
  color: var(--primary-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.price-amount {
  font-size: clamp(3.5rem, 7vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.price-subtext {
  color: var(--text-muted);
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .pricing-box {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 3rem;
  }
  .pricing-item:first-child::after {
    display: none;
  }
}

/* ===========================
   FORM STYLES
   =========================== */

.form-group {
  margin-bottom: 1.75rem;
}

input, textarea, select {
  width: 100%;
  padding: 1.25rem 1.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 500;
  background-color: white;
  color: var(--text-main);
  transition: var(--transition-fast);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background-color: #0f172a;
  color: white;
  padding: 8rem 2rem 4rem;
  margin-top: 8rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
}

.footer-section h4 {
  margin-bottom: 2rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.5);
  display: inline-block;
  margin-bottom: 1rem;
  transition: var(--transition-fast);
}

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

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

/* ===========================
   CONTACT INFO
   =========================== */

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.contact-item {
  padding: 3rem 2rem;
  background-color: var(--surface);
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.contact-item h4 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.contact-item p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeInUp 0.8s ease forwards;
}

/* ===========================
   UTILITY CLASSES
   =========================== */

.text-center {
  text-align: center;
}

.mt-2 {
  margin-top: 4rem;
}

.mb-2 {
  margin-bottom: 4rem;
}

.bg-surface {
  background-color: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-lg);
}

.form-footer {
  font-size: 0.9rem;
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-muted);
}

.highlight {
  color: var(--secondary);
}

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

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

/* Staggered Delay Helpers */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

.tilt {
  transform: perspective(1000px);
  transform-style: preserve-3d;
}

.tilt > * {
  transform: translateZ(20px);
}

.page {
  display: none;
}

.page.active {
  display: block;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .pricing-box {
    padding: 2.5rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cta-button {
    width: 100%;
  }
}

/* ===========================
   SMOOTH TRANSITIONS
   =========================== */

html {
  scroll-behavior: smooth;
}

* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ===========================
   ACCESSIBILITY
   =========================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===========================
   ANIMATIONS & REVEALS
   =========================== */

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

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

/* Delay for staggered entries */
.cards-grid > .card:nth-child(1) { transition-delay: 0.1s; }
.cards-grid > .card:nth-child(2) { transition-delay: 0.2s; }
.cards-grid > .card:nth-child(3) { transition-delay: 0.3s; }
.cards-grid > .card:nth-child(4) { transition-delay: 0.4s; }
.cards-grid > .card:nth-child(5) { transition-delay: 0.5s; }
.cards-grid > .card:nth-child(6) { transition-delay: 0.6s; }

/* ===========================
   FOOTER & SITEMAP
   =========================== */

footer {
  padding: 8rem 0 4rem;
  border-top: 1px solid var(--border);
  background: white;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
  align-items: flex-start;
}

.footer-section h4 {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-main);
  margin-bottom: 2.5rem; /* Increased spacing */
  font-weight: 800;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 1.25rem; /* Better breathing room */
}

.footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary);
  padding-left: 5px;
}

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

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
  background: white;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: currentColor;
}

.social-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-3px) scale(1.05);
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
