/* ============================================================
   OnDemand B2C Website — Premium Design System
   Inspired by industry-42 aesthetic: dark, vibrant, modern
   ============================================================ */

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

/* ── CSS Variables ── */
:root {
  --bg-base:        #0a0f1e;
  --bg-surface:     #0f1629;
  --bg-card:        #141d35;
  --bg-card-hover:  #1a2540;
  --bg-glass:       rgba(255,255,255,0.04);
  --border-subtle:  rgba(255,255,255,0.08);
  --border-accent:  rgba(96,165,250,0.3);

  --brand:          #3b82f6;
  --brand-light:    #60a5fa;
  --brand-dark:     #1d4ed8;
  --accent:         #8b5cf6;
  --accent-light:   #a78bfa;
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --info:           #06b6d4;

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --gradient-hero:  linear-gradient(135deg, #0a0f1e 0%, #0f1629 40%, #1a1040 100%);
  --gradient-brand: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --gradient-card:  linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.05));

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px rgba(59,130,246,0.15);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a { color: var(--brand-light); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; }

/* ── Navbar ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0 1.5rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff !important;
}
.nav-brand .brand-icon {
  width: 38px; height: 38px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
  background: var(--bg-glass);
}
.nav-cta {
  padding: 0.5rem 1.25rem;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  color: #fff !important;
  font-weight: 600;
  font-size: 0.88rem;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nav-mobile-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-secondary);
  font-size: 1.5rem; cursor: pointer;
}

/* ── Page wrapper ── */
.page-body { padding-top: 70px; }

/* ── Section Utilities ── */
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 1.5rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(59,130,246,0.12);
  border: 1px solid var(--border-accent);
  color: var(--brand-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}
.section-title span { background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}
.text-center { text-align: center; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(59,130,246,0.18) 0%, transparent 70%);
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(59,130,246,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(59,130,246,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; text-align: center; padding: 3rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--brand-light);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem; font-weight: 600;
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.6s ease;
}
.hero-badge .dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s both;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.6s ease 0.2s both;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp 0.6s ease 0.3s both; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
  margin-top: 4rem;
  animation: fadeInUp 0.6s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat .value { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 800; background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-stat .label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.92rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 4px 20px rgba(59,130,246,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,0.5); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border-accent); color: var(--brand-light); }
.btn-outline:hover { background: rgba(59,130,246,0.1); color: #fff; }
.btn-ghost { background: var(--bg-glass); color: var(--text-secondary); border: 1px solid var(--border-subtle); }
.btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }
.btn-success { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.btn-success:hover { transform: translateY(-2px); opacity: 0.9; color: #fff; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; }
.btn-full { width: 100%; justify-content: center; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 1.25rem;
  background: var(--gradient-card);
  border: 1px solid var(--border-accent);
}
.card-title { font-size: 1.15rem; margin-bottom: 0.6rem; }
.card-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.65; }

/* ── Service Cards ── */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { border-color: var(--border-accent); transform: translateY(-6px); box-shadow: var(--shadow-glow); }
.service-card:hover::before { transform: scaleX(1); }
.service-price { font-family: 'Outfit', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--brand-light); margin: 0.5rem 0; }
.service-price small { font-size: 0.7rem; font-weight: 400; color: var(--text-muted); }

/* ── Grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ── Form Styles ── */
.form-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 2.5rem; }
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.form-label .req { color: var(--danger); }
.form-control, .form-select {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.7rem 1rem;
  font-size: 0.92rem;
  font-family: inherit;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-select option { background: var(--bg-card); }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }
.form-help { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── Step Progress ── */
.steps { display: flex; align-items: center; gap: 0; margin-bottom: 2.5rem; }
.step { display: flex; align-items: center; gap: 0.6rem; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700;
  background: var(--bg-surface); border: 2px solid var(--border-subtle);
  color: var(--text-muted);
  flex-shrink: 0;
}
.step.active .step-num { background: var(--gradient-brand); border-color: transparent; color: #fff; }
.step.done .step-num { background: var(--success); border-color: transparent; color: #fff; }
.step-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }
.step.active .step-label { color: var(--text-primary); }
.step-divider { flex: 1; height: 1px; background: var(--border-subtle); min-width: 20px; margin: 0 0.75rem; }

/* ── Status Badges ── */
.status-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.76rem; font-weight: 600;
}
.status-open      { background: rgba(59,130,246,0.15); color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.status-assigned  { background: rgba(6,182,212,0.15); color: #22d3ee; border: 1px solid rgba(6,182,212,0.3); }
.status-progress  { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.status-closed    { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(16,185,129,0.3); }
.status-hold      { background: rgba(100,116,139,0.15); color: #94a3b8; border: 1px solid rgba(100,116,139,0.3); }
.status-cancelled { background: rgba(239,68,68,0.15); color: #f87171; border: 1px solid rgba(239,68,68,0.3); }
.status-techclosed { background: rgba(245,158,11,0.15); color: #fbbf24; border: 1px solid rgba(245,158,11,0.3); }

/* ── Tabs ── */
.tab-header { display: flex; gap: 0.25rem; background: var(--bg-surface); border-radius: var(--radius-sm); padding: 0.3rem; margin-bottom: 1.5rem; }
.tab-btn {
  flex: 1; padding: 0.6rem 1rem;
  background: none; border: none; border-radius: 6px;
  color: var(--text-secondary); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  font-family: inherit;
}
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

/* ── Rating Stars ── */
.star-rating { display: flex; gap: 0.4rem; }
.star-rating .star { font-size: 1.8rem; cursor: pointer; color: var(--text-muted); transition: var(--transition); line-height: 1; }
.star-rating .star.active, .star-rating .star:hover { color: #fbbf24; transform: scale(1.1); }

/* ── Lead Track Card ── */
.lead-track-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}
.lead-track-card:hover { border-color: var(--border-accent); }
.lead-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.8rem; margin-top: 1rem; }
.lead-meta-item .meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; }
.lead-meta-item .meta-value { font-size: 0.88rem; font-weight: 600; }

/* ── How it Works ── */
.how-step { display: flex; gap: 1.25rem; align-items: flex-start; }
.how-step-num {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 800; color: #fff;
}
.how-step-body h4 { font-size: 1rem; margin-bottom: 0.3rem; }
.how-step-body p { font-size: 0.88rem; color: var(--text-secondary); }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.testimonial-stars { color: #fbbf24; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 0.75rem; }
.testimonial-text { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 0.92rem; }
.testimonial-location { font-size: 0.78rem; color: var(--text-muted); }

/* ── Alert/Toast ── */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
}
.alert-success { background: rgba(16,185,129,0.12); border: 1px solid rgba(16,185,129,0.3); color: #34d399; }
.alert-danger  { background: rgba(239,68,68,0.12);  border: 1px solid rgba(239,68,68,0.3);  color: #f87171; }
.alert-info    { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); color: #60a5fa; }
.alert-warning { background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.3); color: #fbbf24; }

/* ── CTA Section ── */
.cta-section {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Footer ── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin-top: 0.75rem; max-width: 280px; }
.footer-col h5 { font-size: 0.88rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: var(--text-secondary); font-size: 0.88rem; }
.footer-col ul li a:hover { color: var(--brand-light); }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.82rem; }

/* ── Divider ── */
hr.fancy { border: none; height: 1px; background: var(--border-subtle); margin: 0; }

/* ── Animations ── */
@keyframes fadeInDown { from { opacity:0; transform:translateY(-20px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeInUp   { from { opacity:0; transform:translateY(20px);  } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn     { from { opacity:0; } to { opacity:1; } }
@keyframes pulse      { 0%,100% { opacity:1; } 50% { opacity:0.5; } }
@keyframes spin       { to { transform: rotate(360deg); } }

.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ── Mobile ── */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-toggle { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(10,15,30,0.97); padding: 1rem 1.5rem; gap: 0.25rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.75rem; }
  .steps { flex-direction: column; align-items: flex-start; }
  .step-divider { width: 1px; height: 20px; min-width: 0; margin: 0.25rem 0 0.25rem 1rem; }
}
@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .hero-title { font-size: 2.2rem; }
  .card { padding: 1.25rem; }
  .form-card { padding: 1.5rem; }
  .cta-section { padding: 2.5rem 1.25rem; }
}