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

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-glow: rgba(79, 70, 229, 0.4);
  --secondary: #e0e7ff;
  --secondary-text: #3730a3;
  --accent: #06b6d4;
  
  --dark: #020617; 
  --dark-surface: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  
  --border: rgba(226, 232, 240, 0.8);
  --border-light: rgba(0, 0, 0, 0.05);
  
  --success-bg: #dcfce7;
  --success-text: #166534;
  
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.05), 0 8px 10px -6px rgb(0 0 0 / 0.05);
  --shadow-hover: 0 25px 40px -12px rgb(0 0 0 / 0.15);
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: 
    linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(241, 245, 249, 0.8) 100%),
    url('https://images.unsplash.com/photo-1449844908441-8829872d2607?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover fixed no-repeat;
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.5); 
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1; 
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8; 
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 var(--primary-glow); }
  70% { box-shadow: 0 0 0 15px rgba(79, 70, 229, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

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

.animate-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }

/* Navbar with Glassmorphism */
.navbar {
  height: 76px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition-smooth);
}

.brand {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand span {
  color: var(--primary);
  font-size: 24px;
  animation: float 4s ease-in-out infinite;
}

.navlinks {
  display: flex;
  gap: 32px;
  align-items: center;
}

.navlinks a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition-fast);
  position: relative;
}

.navlinks a:not(.btn):hover {
  color: var(--primary);
}

.navlinks a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--primary);
  transition: var(--transition-fast);
  border-radius: 2px;
}

.navlinks a:not(.btn):hover::after {
  width: 100%;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 40px 0 80px;
}

@keyframes gradientMesh {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Hero Section */
.hero {
  background: transparent;
  color: var(--dark);
  padding: 120px 60px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 10px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.08), transparent 40%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.08), transparent 40%);
  z-index: 1;
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 850px;
  display: flex;
  flex-direction: column;
  align-items: center;
}


.hero h1 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  margin: 0 0 24px;
  max-width: 850px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  background: linear-gradient(to right, #020617, #334155);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-main);
  max-width: 680px;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 400;
}

@keyframes pulseButton {
  0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(6, 182, 212, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 100px; /* Pill shape for modern look */
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 20px -5px var(--primary-glow);
  position: relative;
  overflow: hidden;
  animation: pulseButton 2.5s infinite;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: var(--transition-smooth);
}

.btn:hover::before {
  left: 100%;
  transition: 0.7s;
}

.btn:hover {
  background: linear-gradient(135deg, #0891b2, var(--primary-hover));
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px -5px rgba(6, 182, 212, 0.6);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.5);
  color: var(--dark) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border: 1px solid rgba(255, 255, 255, 0.8);
  animation: none;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: white;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.btn.green {
  background: var(--success-text);
  box-shadow: 0 10px 20px -5px rgba(22, 101, 52, 0.3);
  animation: none;
}

.btn.green:hover {
  background: #15803d;
}

.btn.small {
  padding: 10px 20px;
  font-size: 14px;
}

/* Grid Layouts */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }

/* Feature Cards - Glassy & Premium Light */
.feature-card {
  position: relative;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.08);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
  border-color: white;
  background: rgba(255, 255, 255, 0.85);
}

.feature-bg {
  position: absolute;
  top: 0; left: 0; right: 0; height: 120px;
  opacity: 0.15;
  z-index: -2;
  transition: var(--transition-smooth);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.feature-card:hover .feature-bg {
  opacity: 0.25;
  height: 140px;
}

.feature-content {
  position: relative;
  z-index: 1;
  padding: 40px 32px;
  flex: 1;
}

.feature-content .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--secondary), #ffffff);
  color: var(--primary);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.8), 0 4px 10px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.feature-card:hover .icon {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px var(--primary-glow);
}

.feature-content h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.feature-content p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.7;
  font-size: 16px;
}

/* Workflow Steps - Ultra Premium Light */
.workflow-step {
  position: relative;
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: var(--dark);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  transform: translateY(0);
}

.workflow-step:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 60px rgba(6, 182, 212, 0.2);
  border-color: white;
  background: rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.step-bg {
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border-radius: var(--radius-lg);
  opacity: 0.4;
  z-index: 0;
  transition: opacity 0.5s ease, transform 0.8s ease;
  filter: grayscale(60%) contrast(1.1);
}

.workflow-step:hover .step-bg {
  opacity: 0.85;
  transform: scale(1.05);
  filter: grayscale(0%) contrast(1.05);
}

.step-content {
  position: absolute;
  bottom: 0; left: 0; right: 0; top: 0;
  padding: 40px 32px 32px;
  z-index: 1;
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: var(--transition-smooth);
}

.workflow-step:hover .step-content {
  background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.2) 100%);
}

.step-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 2px;
  color: white;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-step:hover .step-number {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 30px rgba(6, 182, 212, 0.5);
  border-color: white;
}

.step-content h4 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  transition: var(--transition-smooth);
}

.workflow-step:hover .step-content p {
  color: var(--text-main);
}

/* CTA Section */
.cta-section {
  margin: 140px 0 60px;
  padding: 100px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-xl);
  text-align: center;
  color: white;
  box-shadow: 0 20px 50px -10px rgba(79, 70, 229, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: float 10s linear infinite;
  pointer-events: none;
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 800;
  margin-top: 0;
  letter-spacing: -1.5px;
  position: relative;
  z-index: 2;
  color: white;
}

.cta-section p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 650px;
  margin: 24px auto 48px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
  color: white;
}

.cta-section .btn {
  background: white;
  color: var(--primary) !important;
  font-size: 18px;
  padding: 20px 48px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 2;
  animation: none;
}

.cta-section .btn:hover {
  background: #f8fafc;
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* Forms (Retained & improved) */
.form-card {
  max-width: 520px;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.form-card.wide-form { max-width: 760px; }

label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 20px 0 8px;
  color: var(--text-main);
}

input, select, textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--dark);
  transition: var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px var(--primary-glow);
}

/* Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--danger-bg);
  color: var(--danger-text);
  margin: 16px 0;
  font-weight: 500;
  border-left: 4px solid #ef4444;
}

.alert.success {
  background: var(--success-bg);
  color: var(--success-text);
  border-left: 4px solid #10b981;
}

/* Tables */
.table-wrap {
  overflow: auto;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  margin-top: 24px;
}

th, td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  text-align: left;
}

th {
  background: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--text-muted);
  padding: 60px 5% 40px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 15px;
  border-top: 1px solid rgba(0,0,0,0.05);
}

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

/* Utilities */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
  .grid, .grid.two, .grid.four { grid-template-columns: 1fr; gap: 24px; }
  .hero { padding: 80px 30px; margin-top: 0; border-radius: 0; }
  .hero h1 { font-size: 40px; }
  .navlinks { gap: 16px; }
  .navlinks a:not(.btn) { display: none; }
  .section-header h2 { font-size: 32px; }
  .cta-section { padding: 60px 30px; margin: 80px 0 0; }
  .cta-section h2 { font-size: 36px; }
}
