/* ==========================================================================
   1. VARIABLES & TOKENS
   ========================================================================== */
:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --blue-50: #eff6ff;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --emerald-50: #ecfdf5;
  --emerald-500: #10b981;
  --red-500: #ef4444;
  --radius-md: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 4px 6px -1px rgba(15,23,42,0.08);
  --shadow-lg: 0 20px 40px -10px rgba(15,23,42,0.15);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--slate-900);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
*:focus-visible { outline: 2px solid var(--blue-600); outline-offset: 2px; }

/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
p { color: var(--slate-600); }

.text-center { text-align: center; }
.text-emerald { color: var(--emerald-500); }
.text-red { color: var(--red-500); }

/* ==========================================================================
   4. LAYOUT UTILITIES
   ========================================================================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 5%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gap-sm { gap: 12px; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */
/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; font-weight: 600; font-size: 0.95rem;
  border-radius: 999px; transition: all 0.2s ease; cursor: pointer; border: none; gap: 8px;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn-primary:hover:not(:disabled) { background: var(--blue-700); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-outline { border: 1px solid var(--slate-200); background: #fff; color: var(--slate-900); }
.btn-outline:hover { border-color: var(--slate-900); }
.btn-ghost { background: transparent; color: var(--slate-600); padding: 10px 16px; border-radius: var(--radius-md); }
.btn-ghost:hover { color: var(--slate-900); background: var(--slate-50); }
.btn-full { width: 100%; font-size: 1.05rem; padding: 16px; }
.btn-link { background: none; border: none; color: var(--slate-600); font-size: 0.95rem; font-weight: 500; text-decoration: underline; cursor: pointer; padding: 8px; transition: color 0.2s; }
.btn-link:hover { color: var(--slate-900); }

/* Form Elements */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 8px; color: var(--slate-800); }
.form-control {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-md); border: 1px solid var(--slate-300);
  font-size: 1rem; font-family: inherit; background: var(--slate-50); transition: all 0.2s;
}
.form-control:focus { outline: none; background: #fff; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
select.form-control {
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
textarea.form-control { min-height: 100px; resize: vertical; }
.error-msg { color: var(--red-500); font-size: 0.8rem; font-weight: 500; margin-top: 6px; display: none; }

/* Widgets & Cards */
.widget-box { background: #ffffff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--slate-200); overflow: hidden; }
.widget-header { padding: 32px 32px 24px; border-bottom: 1px solid var(--slate-100); background: var(--slate-50); }
.widget-header h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--slate-900); }
.widget-body { padding: 32px; }

/* ==========================================================================
   6. SECTIONS
   ========================================================================== */
/* Navigation */
.nav-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; background: rgba(255,255,255,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--slate-100); }
.nav-inner { padding: 14px 5%; display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; }

.logo-container { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, var(--blue-600), var(--emerald-500)); box-shadow: 0 2px 8px rgba(37,99,235,0.4); }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-title { font-weight: 800; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1; color: var(--slate-900); }
.logo-sub { font-size: 0.7rem; color: var(--slate-600); font-weight: 600; margin-top: 4px; letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 500; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.8rem; color: var(--slate-900); cursor: pointer; padding: 4px; }

/* Hero */
.hero-wrap { padding-top: 140px; padding-bottom: 100px; background: radial-gradient(circle at top left, var(--blue-50) 0%, #ffffff 60%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; background: var(--slate-900); color: white; font-weight: 600; font-size: 0.85rem; margin-bottom: 24px; letter-spacing: 0.02em;}

.hero-title { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 24px; }
.hero-title span { color: var(--blue-600); }
.hero-sub { font-size: 1.125rem; max-width: 520px; color: var(--slate-600); margin-bottom: 32px; }

.trust-text { margin-top: 32px; font-size: 0.9rem; color: var(--slate-600); font-weight: 600; padding-top: 24px; border-top: 1px solid var(--slate-200); max-width: 480px;}

/* Calendar State */
#calendar-state { display: none; animation: fadeIn .5s ease-out; }
.cal-wrapper { height: 600px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--slate-200); margin-top: 20px; }
.preframe-box { background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: var(--radius-md); padding: 20px; margin-top: 20px; }
.preframe-box h4 { font-size: 1rem; margin-bottom: 12px; }
.preframe-box ul { list-style: none; font-size: 0.9rem; color: var(--slate-600); }
.preframe-box ul li { margin-bottom: 8px; display: flex; gap: 8px; }
.preframe-box ul li::before { content: '→'; color: var(--blue-600); font-weight: bold; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* The Process Mechanism */
.process-section { padding: 100px 0; background: white; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.process-card { padding: 28px 24px; background: var(--slate-50); border-radius: var(--radius-lg); border: 1px solid var(--slate-200); }
.process-number { width: 40px; height: 40px; background: var(--blue-600); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; border-radius: 50%; margin-bottom: 20px; font-size: 1.2rem; }
.process-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.process-card p { font-size: 0.95rem; }

.metrics-banner { text-align: center; margin-top: 48px; padding: 24px; background: var(--emerald-50); border-radius: var(--radius-md); border: 1px solid var(--emerald-500); color: var(--slate-900); font-weight: 600; font-size: 1.1rem; }

/* Comparison Section */
.comparison { padding: 100px 0; background: var(--slate-900); color: #fff; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 60px; }
.comp-card { border-radius: var(--radius-lg); padding: 40px; }
.comp-them { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); }
.comp-us { background: var(--blue-600); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.comp-title { font-size: 1.4rem; margin-bottom: 24px; font-weight: 800; }
.comp-list { list-style: none; font-size: 1.05rem; }
.comp-list li { display: flex; gap: 16px; margin-bottom: 16px; color: var(--slate-300); line-height: 1.5; }
.comp-them .comp-list li::before { content: '✕'; color: var(--red-500); font-weight: 800; }
.comp-us .comp-list li { color: #fff; font-weight: 500; }
.comp-us .comp-list li::before { content: '✓'; color: #a7f3d0; font-weight: 800; }

/* VA Application Section */
.va-section { padding: 100px 0; background: var(--slate-50); border-bottom: 1px solid var(--slate-200); }
.va-form-wrapper { max-width: 800px; margin: 0 auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--slate-200); padding: 40px; }
.success-alert { background: var(--emerald-50); border: 1px solid var(--emerald-500); color: var(--emerald-500); padding: 20px; border-radius: var(--radius-md); text-align: center; font-weight: 600; display: none; animation: fadeIn 0.5s; }
.va-benefits { display: flex; justify-content: center; gap: 24px; margin-top: 24px; flex-wrap: wrap; }
.va-benefit-item { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--emerald-500); }

/* Footer */
footer { padding: 60px 0; text-align: center; color: var(--slate-600); background: #ffffff; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 20px 0; font-weight: 600; }

/* ==========================================================================
   7. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: block; }
  .nav-links { 
    position: absolute; top: 100%; left: 0; width: 100%; 
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    flex-direction: column; padding: 24px 5%; gap: 16px;
    border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-sm);
    display: none; 
  }
  .nav-links.active { display: flex; }
  .nav-links .btn-ghost, .nav-links .btn-outline { width: 100%; justify-content: center; }
  
  /* Mobile Hero Optimization: Brings the form above the fold */
  .hero-wrap { padding-top: 100px; padding-bottom: 60px; }
  .hero-title { font-size: 2.3rem; }
  .grid-2 { grid-template-columns: 1fr; gap: 0; }
  .process-grid { grid-template-columns: 1fr; }
  .widget-header, .widget-body, .comp-card, .va-form-wrapper { padding: 24px; }
  .cal-wrapper { height: 750px; }
}
/* ==========================================================================
   8. 2026 UI ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */
@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Base Reveal Class */
.reveal { opacity: 0; visibility: hidden; }

/* Active State (Triggered by JS) */
.reveal.active {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  visibility: visible;
}

/* Staggered Delays for smooth cascading */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Premium Hover Lifts */
.process-card, .comp-card, .candidate-card {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  will-change: transform, box-shadow; /* Hardware acceleration */
}
.process-card:hover, .comp-card:hover, .candidate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px -12px rgba(15,23,42,0.18);
  border-color: var(--blue-600);
}