/* ==============================================================================
   VLE Desk - Official Landing Page Design System
   Brand: VLE Desk by Ankur Digital Hub (adh24.in)
   Compliance: WCAG 2.1 AA | Zero External Trackers | 100% On-Premise
   ============================================================================== */

:root {
  --vle-primary: #1e3a8a;
  --vle-primary-hover: #1e40af;
  --vle-primary-dark: #0f172a;
  --vle-accent: #2563eb;
  --vle-accent-light: #eff6ff;
  --vle-wa: #25d366;
  --vle-wa-dark: #128c7e;
  --vle-success: #15803d;
  --vle-success-bg: #dcfce7;
  --vle-warning: #d97706;
  --vle-danger: #dc2626;
  --vle-gray-50: #f8fafc;
  --vle-gray-100: #f1f5f9;
  --vle-gray-200: #e2e8f0;
  --vle-gray-300: #cbd5e1;
  --vle-gray-600: #475569;
  --vle-gray-700: #334155;
  --vle-gray-800: #1e293b;
  --vle-gray-900: #0f172a;
  --vle-radius: 12px;
  --vle-radius-sm: 8px;
  --vle-radius-lg: 20px;
  --vle-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --vle-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.06);
  --vle-shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--vle-gray-50);
  color: var(--vle-gray-900);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Accessibility Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.5);
  outline-offset: 2px;
}

/* Container */
.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Top Bar */
.top-announcement {
  background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.top-announcement a {
  color: #93c5fd;
  text-decoration: underline;
}

/* Navbar */
.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--vle-gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--vle-shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--vle-radius-sm);
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1e3a8a;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--vle-gray-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vle-gray-700);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--vle-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--vle-radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--vle-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.25);
}

.btn-primary:hover {
  background: var(--vle-primary-hover);
  transform: translateY(-1px);
}

.btn-wa {
  background: var(--vle-wa);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-wa:hover {
  background: #20ba5a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--vle-gray-300);
  color: var(--vle-gray-700);
}

.btn-outline:hover {
  background: var(--vle-gray-100);
  border-color: var(--vle-gray-400);
}

.btn-lg {
  padding: 0.85rem 1.75rem;
  font-size: 1.05rem;
  border-radius: var(--vle-radius);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at top right, #dbeafe 0%, transparent 60%),
              radial-gradient(circle at bottom left, #ecfdf5 0%, transparent 60%);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 1.25rem;
  box-shadow: var(--vle-shadow-sm);
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: #2563eb;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--vle-gray-700);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-trust-list {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vle-gray-700);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Hero Simulator Phone Mockup */
.phone-mockup {
  background: #ffffff;
  border: 8px solid #1e293b;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  max-width: 380px;
  margin: 0 auto;
}

.phone-header {
  background: #075e54;
  color: #ffffff;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.phone-chat-body {
  background: #efeae2;
  padding: 1rem;
  height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.chat-bubble.bot {
  background: #ffffff;
  align-self: flex-start;
  border-top-left-radius: 0;
}

.chat-bubble.user {
  background: #d9fdd3;
  align-self: flex-end;
  border-top-right-radius: 0;
}

.chat-time {
  font-size: 0.65rem;
  color: #8696a0;
  text-align: right;
  margin-top: 0.25rem;
}

.chat-btn-pill {
  display: inline-block;
  background: #e7f8e9;
  border: 1px solid #b7ebb9;
  color: #128c7e;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-top: 0.35rem;
  font-size: 0.75rem;
  cursor: pointer;
}

/* Authentic WhatsApp Interactive CTA Buttons */
.wa-interactive-buttons {
  margin: 0.65rem -0.85rem -0.65rem -0.85rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.wa-cta-btn {
  padding: 0.55rem 0.85rem;
  color: #0284c7;
  font-weight: 700;
  font-size: 0.78rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.wa-cta-btn:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.wa-cta-btn:hover {
  background: #e0f2fe;
  color: #0369a1;
}

.wa-cta-btn.wa-call {
  color: #15803d;
}

.wa-cta-btn.wa-link {
  color: #2563eb;
}

/* Stats Counter Section */
.stats-strip {
  background: #ffffff;
  border-top: 1px solid var(--vle-gray-200);
  border-bottom: 1px solid var(--vle-gray-200);
  padding: 2.25rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-num {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--vle-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--vle-gray-600);
  font-weight: 600;
}

/* Section Title */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--vle-accent);
  background: var(--vle-accent-light);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--vle-gray-900);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--vle-gray-600);
}

/* 5 Steps Workflow */
.workflow-section {
  padding: 5rem 0;
  background: #ffffff;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.wf-card {
  background: var(--vle-gray-50);
  border: 1px solid var(--vle-gray-200);
  border-radius: var(--vle-radius);
  padding: 1.5rem;
  position: relative;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.wf-card:hover {
  transform: translateY(-4px);
  border-color: var(--vle-accent);
  box-shadow: var(--vle-shadow);
  background: #ffffff;
}

.wf-step-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--vle-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.wf-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.wf-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--vle-gray-900);
  margin-bottom: 0.5rem;
}

.wf-text {
  font-size: 0.85rem;
  color: var(--vle-gray-600);
  line-height: 1.5;
  flex: 1;
}

.wf-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-top: 1rem;
}

/* ROI Calculator Section */
.calc-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}

.calc-card {
  background: #ffffff;
  border-radius: var(--vle-radius-lg);
  box-shadow: var(--vle-shadow-lg);
  border: 1px solid var(--vle-gray-200);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

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

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vle-gray-800);
  margin-bottom: 0.5rem;
}

.slider-val {
  color: var(--vle-accent);
  font-size: 1.15rem;
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: var(--vle-gray-200);
  outline: none;
  cursor: pointer;
}

.calc-result-box {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  color: #ffffff;
  border-radius: var(--vle-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 25px rgba(30, 58, 138, 0.3);
}

.calc-extra-rev {
  font-size: 3rem;
  font-weight: 900;
  color: #4ade80;
  line-height: 1;
  margin: 0.75rem 0;
}

.calc-pill-row {
  display: flex;
  justify-content: space-around;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
}

/* Pricing Grid */
.pricing-section {
  padding: 5rem 0;
  background: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--vle-gray-200);
  border-radius: var(--vle-radius-lg);
  padding: 2.25rem;
  box-shadow: var(--vle-shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card.featured {
  border: 2px solid var(--vle-accent);
  box-shadow: 0 20px 30px -10px rgba(37, 99, 235, 0.2);
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2563eb, #1e40af);
  color: #ffffff;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--vle-gray-900);
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--vle-gray-900);
  line-height: 1;
  margin: 1rem 0;
}

.plan-price span {
  font-size: 1rem;
  color: var(--vle-gray-600);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin: 1.5rem 0;
  flex: 1;
}

.plan-features li {
  font-size: 0.9rem;
  color: var(--vle-gray-700);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Registration Form Section */
.register-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.register-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--vle-gray-200);
  border-radius: var(--vle-radius-lg);
  padding: 3rem;
  box-shadow: var(--vle-shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--vle-gray-800);
}

.form-input, .form-select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--vle-gray-300);
  border-radius: var(--vle-radius-sm);
  font-size: 0.95rem;
  transition: all 0.15s ease;
  background: #ffffff;
}

.form-input:focus, .form-select:focus {
  border-color: var(--vle-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: none;
}

.subdomain-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--vle-gray-300);
  border-radius: var(--vle-radius-sm);
  overflow: hidden;
  background: #ffffff;
}

.subdomain-input-wrapper input {
  border: none;
  padding: 0.75rem 1rem;
  flex: 1;
  font-size: 0.95rem;
  outline: none;
}

.subdomain-suffix {
  background: var(--vle-gray-100);
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--vle-gray-600);
  border-left: 1px solid var(--vle-gray-300);
  white-space: nowrap;
}

.subdomain-status {
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--vle-radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 2.25rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

/* FAQ Accordion */
.faq-section {
  padding: 5rem 0;
  background: #ffffff;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--vle-gray-200);
  border-radius: var(--vle-radius);
  overflow: hidden;
  background: var(--vle-gray-50);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--vle-gray-700);
  line-height: 1.6;
  display: none;
}

.faq-item.open {
  background: #ffffff;
  border-color: var(--vle-accent);
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

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

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Floating WhatsApp Button */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 99;
  transition: transform 0.2s ease;
}

.float-wa:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta-group { justify-content: center; }
  .hero-trust-list { justify-content: center; }
  .calc-card { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero-title { font-size: 2rem; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
