:root {
  /* Brand Colors */
  --color-navy: #1a2035;
  --color-navy-light: #232b45;
  --color-orange: #F97316;
  --color-purple: #8B5CF6;
  --color-blue: #3B82F6;
  
  /* Typography */
  --color-text: #F8FAFC;
  --color-text-muted: #94A3B8;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', var(--font-body);
  
  /* UI Elements */
  --glass-bg: rgba(26, 32, 53, 0.55);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--color-navy);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Glow Animation */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 15% 25%, rgba(139, 92, 246, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 85% 75%, rgba(249, 115, 22, 0.14) 0%, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
    z-index: -2;
    animation: meshGradient 20s infinite alternate ease-in-out;
}

/* Starfield now rendered via canvas in script.js */

@keyframes meshGradient {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(50px, 50px); }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

/* --- Loader --- */
.loader {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--color-navy);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s;
}
.loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-purple));
  border-radius: 12px;
  animation: pulseRotate 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes pulseRotate {
  0% { transform: scale(0.8) rotate(0deg); border-radius: 12px; }
  50% { transform: scale(1.1) rotate(180deg); border-radius: 25px; }
  100% { transform: scale(0.8) rotate(360deg); border-radius: 12px; }
}

/* --- Utilities --- */
.text-gradient {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.sub-title {
  color: var(--color-purple);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-orange), #ff4500);
  color: #fff;
  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.25);
}
.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
}
.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 1rem 5%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
}
.nav-links a:hover {
  color: var(--color-text);
}
.nav-links a.btn { color: white; }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2rem;
  overflow: hidden;
}
/* Glowing orbs */
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  opacity: 0.8; /* Increased opacity to distribute light */
}
.hero::before {
  top: -15%; left: -15%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, transparent 60%);
  animation: floatOrb 12s infinite alternate ease-in-out;
}
.hero::after {
  bottom: -25%; right: -15%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 60%);
  animation: floatOrb 10s infinite alternate-reverse ease-in-out;
}
@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, -50px) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
}
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.3);
    color: var(--color-orange);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  color: #fff;
}
.hero p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

/* --- Sections --- */
.section {
  padding: 8rem 5%;
  position: relative;
  z-index: 10;
}
.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Cards --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.05);
  position: relative;
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.card:hover {
  transform: translateY(-12px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(30, 38, 56, 0.7);
}
/* Orange/Purple glowing line atop card */
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--color-orange), var(--color-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}
.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(139, 92, 246, 0.15); /* Purple light */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--color-purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
}
.card:hover .card-icon { transform: scale(1.1) rotate(5deg); }
.card-icon i { width: 30px; height: 30px; }
.card-icon.orange {
  background: rgba(249, 115, 22, 0.15);
  color: var(--color-orange);
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: #a855f7; border-color: rgba(168, 85, 247, 0.3); }
.card-icon.blue { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.card-icon.green { background: rgba(16, 185, 129, 0.15); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.card-icon.red { background: rgba(239, 68, 68, 0.15); color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}
.card p {
  color: var(--color-text-muted);
}

/* --- Workflow / About Section --- */
.workflow-section {
  background: linear-gradient(to bottom, var(--color-navy), var(--color-navy-light));
}
.workflow-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.tech-stack-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.tech-item {
    font-family: monospace;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    cursor: default;
}
.tech-item:hover {
    background: rgba(249, 115, 22, 0.1);
    color: var(--color-orange);
    border-color: var(--color-orange);
    transform: translateY(-2px);
}
.check-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #fff;
}
.check-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.2);
  border: 1px solid var(--color-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.check-circle::after {
  content: "✓";
  color: var(--color-orange);
  font-size: 12px;
  font-weight: bold;
}

/* UI Mockup Panel */
.glass-panel {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.glass-header {
  background: rgba(255,255,255,0.05);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dots { display: flex; gap: 6px; }
.dots span { width: 12px; height: 12px; border-radius: 50%; display: block; }
.panel-title { font-size: 0.85rem; color: var(--color-text-muted); font-family: monospace; }
.glass-body { padding: 2rem; }
.stat-line { height: 12px; background: rgba(255,255,255,0.1); border-radius: 6px; margin-bottom: 1.5rem; }
.stat-box-container { display: flex; gap: 1rem; margin-top: 2rem; }
.stat-box { flex: 1; padding: 1rem; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 12px; text-align: center; color: var(--color-purple); font-weight: 600;}

/* --- Footer --- */
footer {
  padding: 6rem 5% 2rem;
  background: var(--color-navy);
  text-align: center;
  position: relative;
}
footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 2rem;
  margin-top: 4rem;
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1150px) {
  .workflow-content { grid-template-columns: 1fr; gap: 3rem; }
  .mobile-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(15, 23, 42, 0.98);
    flex-direction: column;
    padding: 2rem 5%;
    gap: 1.5rem;
    align-items: flex-start;
    display: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.active { display: flex; }
}

/* Logo and WhatsApp */
.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
    color: white;
}

.whatsapp-float i { width: 20px; height: 20px; }

@media (max-width: 768px) {
    .whatsapp-float span { display: none; }
    .whatsapp-float { padding: 15px; border-radius: 100%; bottom: 20px; right: 20px; }
}

/* Background Adjustments for Text Readability */
.product-text {
    background: rgba(26, 32, 53, 0.65);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-showcase {
    margin-bottom: 2rem;
}

.badge-purple { color: #a78bfa; background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.3); }

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
@media (max-width: 1000px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}
.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 16px;
    position: relative;
}
.testimonial-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-purple), var(--color-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}
.author-info h4 { margin-bottom: 2px; font-size: 1rem; }
.author-info span { color: var(--color-orange); font-size: 0.8rem; }
.quote-icon {
    position: absolute;
    top: 15px;
    right: 20px;
    color: rgba(255,255,255,0.05);
    font-size: 4rem;
    font-family: serif;
}

/* --- Exit Intent Modal --- */
.exit-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.exit-modal-overlay.show { opacity: 1; visibility: visible; }
.exit-modal {
    background: var(--color-navy);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(-50px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.exit-modal-overlay.show .exit-modal { transform: translateY(0); }
.exit-modal h3 { font-size: 2rem; margin-bottom: 1rem; color: white; }
.exit-modal p { color: var(--color-text-muted); margin-bottom: 2rem; }
.exit-close {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none; color: white;
    font-size: 2rem; cursor: pointer; opacity: 0.5;
}
.exit-close:hover { opacity: 1; }
