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

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0D1117;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

:root {
  --bg:       #0D1117;
  --bg2:      #161B22;
  --bg3:      #1C2230;
  --blue:     #0066FF;
  --blue-dim: rgba(0,102,255,0.1);
  --blue-mid: rgba(0,102,255,0.25);
  --w:        #FFFFFF;
  --t60:      rgba(255,255,255,0.72);
  --t40:      rgba(255,255,255,0.58);
  --t20:      rgba(255,255,255,0.42);
  --t10:      rgba(255,255,255,0.08);
  --border:   rgba(255,255,255,0.1);
  --mono:     'DM Mono', monospace;

  /* Service accent colors */
  --accent-search:   #5B9BFF;
  --accent-search-dim: rgba(91,155,255,0.12);
  --accent-search-mid: rgba(91,155,255,0.35);
  --accent-social:   #C084FC;
  --accent-social-dim: rgba(192,132,252,0.12);
  --accent-social-mid: rgba(192,132,252,0.35);
  --accent-seo:      #34D399;
  --accent-seo-dim:  rgba(52,211,153,0.12);
  --accent-seo-mid:  rgba(52,211,153,0.35);
  --accent-strategy: #FACC15;
  --accent-strategy-dim: rgba(250,204,21,0.12);
  --accent-strategy-mid: rgba(250,204,21,0.35);
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* ══════════════════════════════════════
   NAV + BURGER
══════════════════════════════════════ */
nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(13,17,23,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 60px;
}
.nav-logo { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; color: var(--w); }
.nav-logo span { color: var(--blue); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--t40); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--w); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  background: var(--blue); color: var(--w);
  font-size: 12px; font-weight: 600;
  border: none; padding: 9px 18px;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .85; }

/* Burger button */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--w); border-radius: 2px;
  transition: all .25s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.nav-mobile {
  display: none;
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0;
  background: rgba(13,17,23,0.98);
  backdrop-filter: blur(20px);
  z-index: 199;
  flex-direction: column;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile ul { list-style: none; margin-bottom: 32px; }
.nav-mobile ul li { border-bottom: 1px solid var(--border); }
.nav-mobile ul li a {
  display: block; padding: 18px 0;
  font-size: 18px; font-weight: 600; color: var(--t40);
  transition: color .15s;
}
.nav-mobile ul li a:hover, .nav-mobile ul li a.active { color: var(--w); }
.nav-mobile .mobile-cta {
  background: var(--blue); color: var(--w);
  font-size: 14px; font-weight: 600;
  border: none; padding: 16px 24px;
  width: 100%; margin-bottom: 12px;
}
.nav-mobile .mobile-audit {
  background: transparent; color: var(--t60);
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--border); padding: 16px 24px;
  width: 100%;
}

/* ══════════════════════════════════════
   POPUP / MODAL
══════════════════════════════════════ */
.popup-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 500;
  align-items: center; justify-content: center;
  padding: 20px;
}
.popup-overlay.open { display: flex; }
.popup-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  width: 100%; max-width: 480px;
  padding: 40px 36px;
  position: relative;
  animation: popupIn .25s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.popup-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; color: var(--t40);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: color .15s;
}
.popup-close:hover { color: var(--w); }
.popup-eyebrow {
  font-family: var(--mono); font-size: 10px; color: var(--blue);
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 12px;
}
.popup-title { font-size: 22px; font-weight: 700; color: var(--w); margin-bottom: 6px; letter-spacing: -.5px; }
.popup-sub { font-size: 13px; color: var(--t40); line-height: 1.6; margin-bottom: 28px; }
.popup-form { display: flex; flex-direction: column; gap: 14px; }
.popup-field { display: flex; flex-direction: column; gap: 6px; }
.popup-field label { font-size: 11px; font-weight: 600; color: var(--t40); text-transform: uppercase; letter-spacing: 1px; }
.popup-field input,
.popup-field select,
.popup-field textarea {
  background: var(--bg); border: 1px solid var(--border);
  color: var(--w); font-family: inherit; font-size: 13px;
  padding: 11px 14px; outline: none;
  transition: border-color .15s;
}
.popup-field input:focus,
.popup-field select:focus,
.popup-field textarea:focus { border-color: var(--blue); }
.popup-field select option { background: var(--bg2); }
.popup-field textarea { resize: vertical; min-height: 80px; }
.popup-submit {
  background: var(--blue); color: var(--w);
  font-size: 13px; font-weight: 600;
  border: none; padding: 14px;
  margin-top: 6px; transition: opacity .15s;
}
.popup-submit:hover { opacity: .85; }
.popup-checks {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px;
}
.popup-check { font-size: 11px; color: var(--t20); display: flex; align-items: center; gap: 5px; }
.popup-check::before { content: 'v'; color: var(--blue); font-weight: 700; }
.popup-success {
  display: none; text-align: center; padding: 20px 0;
}
.popup-success-icon { font-size: 40px; margin-bottom: 16px; }
.popup-success h3 { font-size: 20px; font-weight: 700; color: var(--w); margin-bottom: 8px; }
.popup-success p { font-size: 13px; color: var(--t40); line-height: 1.6; }

/* ══════════════════════════════════════
   SECTION HEADERS
══════════════════════════════════════ */
.section { padding: 80px 0; border-bottom: 1px solid var(--border); }
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--blue); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--blue); }
.section-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700; letter-spacing: -0.8px;
  color: var(--w); margin-bottom: 12px;
}
.section-sub { font-size: 15px; color: var(--t40); line-height: 1.65; max-width: 520px; }

/* ══════════════════════════════════════
   BUTTONS
══════════════════════════════════════ */
.btn-primary {
  background: var(--blue); color: var(--w);
  font-size: 13px; font-weight: 600;
  border: none; padding: 13px 24px;
  transition: opacity .15s; display: inline-block; cursor: pointer;
}
.btn-primary:hover { opacity: .85; }
.btn-ghost {
  background: transparent; color: var(--t60);
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border); padding: 13px 24px;
  transition: color .15s, border-color .15s; display: inline-block; cursor: pointer;
}
.btn-ghost:hover { color: var(--w); border-color: var(--t20); }

/* TAGS */
.tag {
  font-size: 11px; font-weight: 500;
  color: var(--t40); background: var(--t10);
  padding: 4px 10px; display: inline-block;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-logo { font-size: 16px; font-weight: 700; color: var(--w); margin-bottom: 10px; }
.footer-logo span { color: var(--blue); }
.footer-desc { font-size: 12px; color: var(--t20); line-height: 1.65; max-width: 220px; }
.footer-col-title {
  font-family: var(--mono); font-size: 10px;
  color: var(--t20); letter-spacing: 2px;
  text-transform: uppercase; margin-bottom: 14px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: var(--t40); transition: color .15s; }
.footer-links a:hover { color: var(--w); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.footer-legal { font-family: var(--mono); font-size: 10px; color: var(--t20); line-height: 1.65; }
.footer-socials { display: flex; gap: 16px; }
.footer-socials a { font-size: 12px; color: var(--t20); transition: color .15s; }
.footer-socials a:hover { color: var(--blue); }

/* ══════════════════════════════════════
   FAQ
══════════════════════════════════════ */
.faq-list { border: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 28px; font-size: 14px; font-weight: 600;
  color: var(--w); text-align: left; cursor: pointer;
  transition: background .15s;
}
.faq-q:hover, .faq-item.open .faq-q { background: var(--bg2); }
.faq-q .faq-icon { color: var(--blue); font-size: 20px; font-weight: 300; transition: transform .2s; flex-shrink: 0; margin-left: 16px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 28px 20px; font-size: 13px; color: var(--t40); line-height: 1.7; background: var(--bg2); }
.faq-item.open .faq-a { display: block; }

/* ══════════════════════════════════════
   CTA BANNER
══════════════════════════════════════ */
.cta-banner { padding: 80px 0; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-banner::before {
  content: ''; position: absolute; bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 250px;
  background: radial-gradient(ellipse, rgba(0,102,255,0.09) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; letter-spacing: -1px; color: var(--w); margin-bottom: 14px; }
.cta-inner p { font-size: 15px; color: var(--t40); line-height: 1.6; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; }
.cta-checks { display: flex; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.cta-check {
  font-size: 14px; font-weight: 500; color: var(--t60);
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  padding: 9px 16px; border-radius: 100px;
}
.cta-check::before {
  content: '✓'; color: var(--w); font-weight: 700; font-size: 11px;
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%; background: var(--blue);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   SERVICE PAGE HERO GRID (shared)
══════════════════════════════════════ */
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ══════════════════════════════════════
   QUIZ WIDGET - "Is X right for your business?"
══════════════════════════════════════ */
.quiz-widget { max-width: 100%; }
.quiz-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 30px 36px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.quiz-progress-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--t60); margin-bottom: 9px; font-weight: 500; }
.quiz-progress-track { background: var(--bg); border-radius: 100px; height: 6px; margin-bottom: 26px; overflow: hidden; }
.quiz-progress-fill { background: linear-gradient(90deg, var(--blue), #5B9BFF); height: 100%; border-radius: 100px; width: 0%; transition: width .3s; }
.quiz-question-text { font-size: 19px; font-weight: 700; color: var(--w); margin-bottom: 20px; line-height: 1.4; letter-spacing: -.2px; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-option-btn {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px;
  padding: 15px 18px; color: var(--t60); font-size: 15px; font-weight: 500; text-align: left;
  cursor: pointer; transition: all .2s; font-family: inherit;
}
.quiz-option-btn:hover { border-color: var(--blue-mid); color: var(--w); background: var(--blue-dim); }
.quiz-option-btn.selected { background: var(--blue); border-color: var(--blue); color: var(--w); }
.quiz-result-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--t40); margin-bottom: 12px; font-weight: 600; }
.quiz-result-title { font-size: 26px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.6px; }
.quiz-result-text { font-size: 15px; color: var(--t60); line-height: 1.7; margin-bottom: 24px; max-width: 640px; }
.quiz-result-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.quiz-retake { background: none; border: none; color: var(--t40); font-size: 13px; cursor: pointer; font-family: inherit; padding: 0; transition: color .15s; text-decoration: underline; text-decoration-color: var(--border); }
.quiz-retake:hover { color: var(--t60); }
@media (max-width: 700px) {
  .quiz-options { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   TIMELINE WIDGET - tabbed process steps
══════════════════════════════════════ */
.timeline-widget { max-width: 100%; }
.timeline-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 36px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
.timeline-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.timeline-tab-btn {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 100px;
  padding: 10px 18px; color: var(--t60); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .2s; font-family: inherit;
}
.timeline-tab-btn.active { background: var(--tab-color); border-color: var(--tab-color); color: #0D1117; font-weight: 700; }
.timeline-content { border-left: 3px solid var(--border); padding-left: 22px; transition: border-color .3s; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.timeline-content-main { display: flex; flex-direction: column; }
.timeline-step-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; font-weight: 700; }
.timeline-step-title { font-size: 22px; font-weight: 700; color: var(--w); letter-spacing: -.3px; line-height: 1.2; }
.timeline-items { display: flex; flex-direction: column; gap: 13px; }
.timeline-item-row { display: flex; align-items: center; gap: 12px; }
.timeline-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.timeline-item-row span:last-child { font-size: 15px; color: var(--t60); line-height: 1.5; }
.timeline-nav { display: flex; justify-content: space-between; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); gap: 10px; }
.timeline-nav button {
  border-radius: 100px; padding: 10px 20px; font-size: 14px; cursor: pointer;
  font-family: inherit; transition: opacity .15s; font-weight: 500;
}
.timeline-prev { background: none; border: 1.5px solid var(--border); color: var(--t60); }
@media (max-width: 700px) {
  .timeline-content { grid-template-columns: 1fr; gap: 16px; }
}
.timeline-prev:disabled { color: var(--t20); cursor: default; }
.timeline-next { border: none; color: #0D1117; font-weight: 700; }

/* ══════════════════════════════════════
   BUDGET CALCULATOR WIDGET
══════════════════════════════════════ */
.budget-calc-widget { max-width: 100%; }
.bc-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 32px 36px; box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px;
}
.bc-col { display: flex; flex-direction: column; }
.bc-section-label { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--t40); margin: 0 0 18px; font-weight: 700; }
.bc-slider-row { margin-bottom: 20px; }
.bc-slider-top { display: flex; justify-content: space-between; font-size: 14px; color: var(--t60); margin-bottom: 10px; font-weight: 500; }
.bc-slider-top span:last-child { color: var(--w); font-weight: 700; }
.bc-slider-row input[type="range"] { width: 100%; accent-color: var(--blue); cursor: pointer; height: 6px; }
.bc-divider { display: none; }
.bc-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.bc-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.bc-stat-val { font-size: 22px; font-weight: 800; color: var(--w); letter-spacing: -.4px; }
.bc-stat-lbl { font-size: 12px; color: var(--t40); margin-top: 4px; }
.bc-insight { border-left: 3px solid var(--blue); padding: 14px 16px; background: var(--bg); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--t60); line-height: 1.65; margin-top: auto; }
@media (max-width: 800px) {
  .bc-card { grid-template-columns: 1fr; gap: 4px; }
  .bc-col:first-child { margin-bottom: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .quiz-card, .timeline-card, .bc-card { padding: 24px 20px; }
  .timeline-content { padding-left: 16px; }
  .bc-stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-checks { flex-direction: column; align-items: center; gap: 10px; }
  .cta-btns { flex-direction: column; }
  .popup-box { padding: 28px 20px; }
}

/* ══════════════════════════════════════
   SHARED NAV + POPUP JS SNIPPET
   (included via shared snippet at bottom of each page)
══════════════════════════════════════ */
