/* ============================================
   Lead OS — Shared Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --navy-950: #050d1a;
  --navy-900: #0A1628;
  --navy-800: #0f2040;
  --navy-700: #162b55;
  --blue-primary: #1976D2;
  --blue-mid: #1565C0;
  --blue-dark: #0D47A1;
  --blue-light: #29B6F6;
  --blue-glow: rgba(41, 182, 246, 0.33);
  --blue-primary-12: rgba(25, 118, 210, 0.12);
  --blue-primary-15: rgba(25, 118, 210, 0.15);
  --blue-primary-40: rgba(25, 118, 210, 0.4);
  --blue-light-20: rgba(41, 182, 246, 0.2);
  --blue-light-30: rgba(41, 182, 246, 0.3);
  --blue-light-50: rgba(41, 182, 246, 0.5);
  --blue-light-08: rgba(41, 182, 246, 0.08);
  --blue-light-15: rgba(41, 182, 246, 0.15);
  --blue-light-35: rgba(41, 182, 246, 0.35);
  --white-04: rgba(255, 255, 255, 0.04);
  --white-06: rgba(255, 255, 255, 0.06);
  --white-08: rgba(255, 255, 255, 0.08);
  --white-15: rgba(255, 255, 255, 0.15);
}

/* --- Reset & Base --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--navy-900);
  font-family: 'Proxima Nova', sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* --- Radial Gradient Backgrounds --- */
.bg-radial-blue {
  background: radial-gradient(ellipse 80% 60% at 20% 0%, #1976D222 0%, transparent 70%),
              radial-gradient(ellipse 60% 50% at 80% 10%, #29B6F611 0%, transparent 60%),
              radial-gradient(ellipse 100% 80% at 50% 100%, #1976D214 0%, transparent 70%);
}
.bg-radial-subtle {
  background: radial-gradient(ellipse 70% 50% at 50% 0%, #1976D21a 0%, transparent 70%);
}

/* --- Glass Cards --- */
.glass {
  background: var(--white-04);
  border: 1px solid var(--white-08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.glass-blue {
  background: var(--blue-light-08);
  border: 1px solid var(--blue-light-20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Shadows --- */
.shadow-blue {
  box-shadow:
    0 1px 2px rgba(0,0,0,0.4),
    0 4px 16px rgba(25, 118, 210, 0.15),
    0 16px 48px rgba(0,0,0,0.3);
}
.shadow-card {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 32px rgba(0,0,0,0.2);
}

/* --- Glow Effects --- */
.glow-blue {
  box-shadow:
    0 0 20px rgba(41, 182, 246, 0.3),
    0 0 60px rgba(25, 118, 210, 0.15);
}
.glow-text {
  text-shadow: 0 0 40px rgba(41, 182, 246, 0.4);
}

/* --- Navigation --- */
nav {
  background: rgba(10, 22, 40, 0.8);
  border-bottom: 1px solid var(--white-06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-link {
  color: rgba(255,255,255,0.65);
  transition: color 0.15s ease;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: #fff; }
.nav-link:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 2px; }
.nav-link-active { color: var(--blue-light); }

/* --- Footer --- */
.site-footer {
  background: var(--navy-950);
  border-top: 1px solid var(--white-06);
}

/* Mobile menu */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }

/* --- Buttons --- */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-mid) 50%, var(--blue-dark) 100%);
  border: 1px solid var(--blue-light-30);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.1) inset,
    0 4px 16px rgba(25, 118, 210, 0.4),
    0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 8px 24px rgba(25, 118, 210, 0.5),
    0 16px 48px rgba(0,0,0,0.4);
}
.btn-primary:active { transform: translateY(0px); }
.btn-primary:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

.btn-ghost {
  border: 1px solid var(--white-15);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-ghost:hover {
  border-color: var(--blue-light-50);
  background: var(--blue-light-08);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }
.btn-ghost:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }

/* --- Section Elements --- */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}
.hex-mark {
  position: absolute;
  opacity: 0.06;
  pointer-events: none;
}

/* --- Feature / Icon Elements --- */
.icon-wrap {
  background: var(--blue-primary-12);
  border: 1px solid var(--blue-light-20);
  box-shadow: 0 0 20px var(--blue-primary-15);
}

/* Reusable icon box (52px, used across about, features, etc.) */
.icon-box {
  width: 52px;
  height: 52px;
  background: var(--blue-primary-12);
  border: 1px solid var(--blue-light-20);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px var(--blue-primary-15);
}
.stat-bar {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* --- Cards --- */
.testimonial-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 182, 246, 0.2);
}

.feature-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 182, 246, 0.3);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 32px rgba(25, 118, 210, 0.12),
    0 0 0 1px rgba(41, 182, 246, 0.1);
}

.feature-block {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.feature-block:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 182, 246, 0.3);
}

.value-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 182, 246, 0.3);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 32px rgba(25, 118, 210, 0.12),
    0 0 0 1px rgba(41, 182, 246, 0.1);
}

.team-card {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 182, 246, 0.2);
}

/* --- Pricing --- */
.pricing-card {
  border-radius: 1.5rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 182, 246, 0.3);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.3),
    0 8px 32px rgba(25, 118, 210, 0.12);
}
.pricing-card.featured {
  background: rgba(25, 118, 210, 0.06);
  border-color: rgba(41, 182, 246, 0.3);
  box-shadow: 0 4px 32px rgba(25, 118, 210, 0.15);
}
.pricing-card.featured:hover {
  border-color: rgba(41, 182, 246, 0.5);
  box-shadow: 0 8px 48px rgba(25, 118, 210, 0.25);
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(41, 182, 246, 0.15);
  border: 1px solid rgba(41, 182, 246, 0.35);
  margin-top: 2px;
}

/* --- FAQ (faq.html style — canonical) --- */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  text-align: left;
  color: #fff;
}
.faq-question:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; border-radius: 4px; }
.faq-question h3 {
  font-family: 'Proxima Nova', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(41, 182, 246, 0.3);
  background: rgba(41, 182, 246, 0.08);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, border-color 0.2s ease;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(41, 182, 246, 0.15);
  border-color: rgba(41, 182, 246, 0.5);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
  opacity: 1;
}
.faq-answer-inner { padding: 0 0 1.5rem; }
.faq-answer-inner p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
}

/* FAQ — about.html variant (uses .faq-trigger / .faq-body) */
.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  text-align: left;
  color: #fff;
}
.faq-trigger:hover { color: #29B6F6; }
.faq-trigger:focus-visible { outline: 2px solid var(--blue-light); outline-offset: 3px; }
.faq-trigger .faq-icon {
  width: 24px;
  height: 24px;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  border-color: rgba(41, 182, 246, 0.5);
  background: rgba(41, 182, 246, 0.15);
}
.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.faq-body.open { max-height: 300px; }
.faq-body p {
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  line-height: 1.75;
  font-weight: 300;
  padding-bottom: 1rem;
}

/* --- About Page: Image Frame --- */
.img-frame {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}
.img-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.15), transparent);
  mix-blend-mode: multiply;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Why Page: Comparison Table --- */
.vs-row td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vs-row td:first-child { color: rgba(255,255,255,0.5); font-weight: 300; }
.vs-row td:nth-child(2) { color: rgba(255,255,255,0.3); font-weight: 300; }
.vs-row td:nth-child(3) { color: rgba(41, 182, 246, 0.9); font-weight: 500; }

/* --- Utility --- */
.font-light { font-weight: 300; }

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Keyframe Animations --- */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}
