/* ============================================
   DxLogic Design System — styles.css
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --deep: #0F1729;
  --surface: #FFFFFF;
  --surface-alt: #F8F9FC;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-subtle: #EFF6FF;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --border-hover: #CBD5E1;
  --success: #10B981;
  --metric: #F59E0B;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- UTILITIES ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: 'JetBrains Mono', monospace; }
.serif-italic { font-family: 'Instrument Serif', serif; font-style: italic; }
.section { padding: 96px 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--deep); color: white; }
.section-title { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; text-align: center; margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-secondary); text-align: center; max-width: 600px; margin: 0 auto 48px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-family: 'Inter', sans-serif;
}
.btn:hover { transform: scale(1.02); }
.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-white { background: white; color: var(--text-primary); }
.btn-white:hover { background: #F1F5F9; }
.btn-ghost { background: transparent; color: var(--accent); padding: 8px 0; }
.btn-ghost:hover { opacity: 0.8; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--accent-subtle); color: var(--accent);
}

/* ---- FADE IN ANIMATION ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.08s; }
.fade-in:nth-child(3) { transition-delay: 0.16s; }
.fade-in:nth-child(4) { transition-delay: 0.24s; }
.fade-in:nth-child(5) { transition-delay: 0.32s; }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: 1200px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px; border-radius: 16px; z-index: 1000;
  transition: all 0.35s ease;
}
.navbar.transparent { background: transparent; }
.navbar.solid {
  background: rgba(255,255,255,0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.navbar .logo { text-decoration: none; display: flex; align-items: center; }
.navbar .logo-img { height: 32px; width: auto; transition: opacity 0.3s; }
.navbar .logo-img.logo-blue { display: none; }
.navbar.solid .logo-img.logo-white { display: none; }
.navbar.solid .logo-img.logo-blue { display: block; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: opacity 0.2s; }
.navbar.transparent .nav-links a { color: rgba(255,255,255,0.8); }
.navbar.transparent .nav-links a:hover { color: white; }
.navbar.solid .nav-links a { color: var(--text-secondary); }
.navbar.solid .nav-links a:hover { color: var(--text-primary); }
.nav-cta { font-size: 0.9rem !important; padding: 10px 20px !important; }
.navbar.solid .nav-links a.nav-cta { color: white; }

/* Industries dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: -16px; padding-top: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all 0.25s ease;
}
.nav-dropdown:hover .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown-menu ul {
  background: white; border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; list-style: none; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  min-width: 220px;
}
.nav-dropdown-menu li a {
  display: block; padding: 10px 16px; border-radius: 8px; font-size: 0.9rem;
  color: var(--text-secondary) !important; transition: all 0.15s;
}
.nav-dropdown-menu li a:hover { background: var(--surface-alt); color: var(--text-primary) !important; }

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; position: relative;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.mobile-menu-btn span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  transition: all 0.3s ease;
}
.navbar.transparent .mobile-menu-btn span { background: white; }
.navbar.solid .mobile-menu-btn span { background: var(--text-primary); }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: white; border: 1px solid var(--border); border-radius: 12px;
    padding: 16px; margin-top: 8px; box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    gap: 8px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { color: var(--text-secondary) !important; padding: 10px 16px; border-radius: 8px; }
  .nav-links a:hover { background: var(--surface-alt); color: var(--text-primary) !important; }
  .nav-dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; padding-top: 0; }
  .nav-dropdown-menu ul { box-shadow: none; border: none; padding: 0 0 0 16px; }
  .mobile-menu-btn { display: flex; }
  .navbar { padding: 12px 16px; }
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh; background: var(--deep); display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(15,23,41,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,41,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center;
  opacity: 0.15;
  animation: gridPulse 8s ease-in-out infinite;
}
@keyframes gridPulse { 0%,100% { opacity: 0.1; } 50% { opacity: 0.2; } }

.hero-content { position: relative; z-index: 1; text-align: center; width: 100%; padding-top: 80px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; color: white; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 8px; }
.hero h1 .accent { color: var(--accent); }
.hero h1 .serif { font-family: 'Instrument Serif', serif; font-style: italic; color: var(--accent); }
.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,0.6); max-width: 560px; margin: 16px auto 40px; line-height: 1.7; }

/* Quiz Widget */
.quiz-widget {
  max-width: 580px; margin: 0 auto 40px;
  background: rgba(255,255,255,0.07); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
  padding: 32px;
}
.quiz-label { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.9); margin-bottom: 20px; letter-spacing: 0.02em; }
.quiz-selects { display: flex; gap: 12px; margin-bottom: 16px; }
.quiz-selects select {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: white; font-size: 0.9rem;
  font-family: 'Inter', sans-serif; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.quiz-selects select option { background: var(--deep); color: white; }
.quiz-btn { width: 100%; display: flex; justify-content: center; box-sizing: border-box; padding: 14px 16px; margin: 0; }

/* Quiz Result */
.quiz-result {
  max-height: 0; overflow: hidden; transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 0;
}
.quiz-result.open { max-height: 500px; opacity: 1; margin-top: 20px; }
.result-card {
  background: white; border-radius: 16px; padding: 28px;
  text-align: left; color: var(--text-primary);
}
.result-badge { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.result-name { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.02em; }
.result-industry { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.result-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.result-metrics { display: flex; gap: 12px; margin-bottom: 24px; }
.result-metric {
  flex: 1; padding: 12px; background: var(--accent-subtle); border-radius: 10px; text-align: center;
}
.result-metric .num { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 1.1rem; color: var(--accent); }
.result-metric .label { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.result-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.result-link { font-size: 0.9rem; color: var(--accent); text-decoration: none; font-weight: 500; }
.result-link:hover { text-decoration: underline; }
.try-again { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-top: 12px; cursor: pointer; text-align: center; }
.try-again:hover { color: rgba(255,255,255,0.8); }

.hero-metrics {
  display: flex; justify-content: center; gap: 32px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: rgba(255,255,255,0.4);
}
.hero-metrics span { display: flex; align-items: center; gap: 6px; }
.hero-metrics .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.3); }

@media (max-width: 768px) {
  .quiz-selects { flex-direction: column; }
  .hero-metrics { flex-direction: column; gap: 8px; }
}

/* ---- INDUSTRY GRID ---- */
.industry-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.industry-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 24px 20px; text-align: center; text-decoration: none; color: var(--text-primary);
  transition: all 0.25s ease; cursor: pointer; display: block;
}
.industry-card:hover {
  transform: translateY(-3px); border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.industry-icon { font-size: 2.5rem; margin-bottom: 12px; display: block; text-align: center; }
.industry-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; letter-spacing: -0.01em; }
.industry-count { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 12px; }
.industry-link { font-size: 0.85rem; color: var(--accent); font-weight: 600; }
.industry-fallback { text-align: center; margin-top: 24px; font-size: 0.95rem; color: var(--text-secondary); }
.industry-fallback a { color: var(--accent); text-decoration: none; font-weight: 600; }

@media (max-width: 768px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- PROBLEM CARDS ---- */
.problem-card {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 32px; margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 20px;
  transition: all 0.25s ease; cursor: pointer; text-decoration: none; color: inherit;
  border-left: 4px solid transparent;
}
.problem-card:hover {
  border-left-color: var(--accent); transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.problem-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.problem-content { flex: 1; }
.problem-name { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.problem-desc { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.6; }
.problem-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.problem-tag { font-size: 0.75rem; padding: 3px 10px; background: var(--accent-subtle); color: var(--accent); border-radius: 100px; font-weight: 500; }
.problem-result { font-size: 0.85rem; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; }
.problem-cta { font-size: 0.9rem; color: var(--accent); font-weight: 600; text-decoration: none; margin-left: auto; flex-shrink: 0; align-self: center; }

/* ---- PROOF BAR ---- */
.proof-bar { text-align: center; }
.proof-metrics { display: flex; justify-content: center; gap: 64px; margin-bottom: 40px; }
.proof-metric .num {
  font-family: 'JetBrains Mono', monospace; font-size: 3.5rem; font-weight: 700; color: white;
  letter-spacing: -0.03em;
}
.proof-metric .label { font-size: 0.95rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.proof-quote {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.25rem; color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 8px;
}
.proof-attribution { font-size: 0.85rem; color: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
  .proof-metrics { flex-direction: column; gap: 32px; }
  .proof-metric .num { font-size: 2.5rem; }
}

/* ---- HOW WE WORK / STEPS ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
.step-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px 28px; position: relative;
}
.step-num {
  font-family: 'JetBrains Mono', monospace; font-size: 4rem; font-weight: 700;
  color: var(--accent); opacity: 0.12; position: absolute; top: 16px; right: 24px;
}
.step-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 4px;
}
.step-name { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.step-time {
  display: inline-block; padding: 4px 12px; background: var(--accent-subtle);
  border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 16px;
}
.step-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.step-price { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 0.95rem; color: var(--text-primary); }

@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }

/* ---- COMPARISON TABLE ---- */
.comparison-wrapper { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 700px; }
.comparison-table th {
  padding: 16px 20px; text-align: left; font-weight: 700; font-size: 0.85rem;
  border-bottom: 2px solid var(--border); white-space: nowrap;
}
.comparison-table th:first-child { width: 180px; }
.comparison-table th.highlight { background: var(--accent-subtle); color: var(--accent); border-radius: 12px 12px 0 0; }
.comparison-table td { padding: 14px 20px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.comparison-table td.highlight { background: var(--accent-subtle); color: var(--text-primary); font-weight: 600; }
.comparison-table td.label { font-weight: 600; color: var(--text-primary); }
.check { color: var(--success); font-weight: 700; }
.cross { color: var(--text-muted); }

/* ---- CASE STUDIES GRID ---- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: all 0.25s ease; text-decoration: none; color: inherit; display: block;
}
.case-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.case-badge { margin-bottom: 16px; }
.case-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.case-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.case-metrics { display: flex; gap: 12px; margin-bottom: 20px; }
.case-metric {
  padding: 8px 14px; background: var(--surface-alt); border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; font-weight: 500;
}
.case-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.case-link:hover { text-decoration: underline; }

@media (max-width: 768px) { .cases-grid { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; cursor: pointer; font-size: 1.05rem; font-weight: 600;
  color: var(--text-primary); transition: color 0.2s;
  background: none; border: none; width: 100%; text-align: left;
  font-family: 'Inter', sans-serif;
}
.faq-question:hover { color: var(--accent); }
.faq-chevron { transition: transform 0.3s ease; font-size: 1.2rem; color: var(--text-muted); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.35s ease;
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding-bottom: 20px; }

/* ---- FINAL CTA ---- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: 2.5rem; font-weight: 800; color: white; letter-spacing: -0.03em; margin-bottom: 16px; }
.final-cta p { font-size: 1.1rem; color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 32px; line-height: 1.7; }
.final-cta .email { font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: rgba(255,255,255,0.35); margin-top: 16px; }

/* ---- FOOTER ---- */
.footer { background: var(--deep); border-top: 1px solid rgba(255,255,255,0.08); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { margin-bottom: 8px; display: flex; align-items: center; }
.footer-brand .logo-img { height: 28px; width: auto; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.4); max-width: 280px; line-height: 1.6; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-size: 0.8rem; color: rgba(255,255,255,0.3); }
.footer-bottom a { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: rgba(255,255,255,0.4); text-decoration: none; }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }


/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .separator { margin: 0 8px; color: var(--text-muted); }
.breadcrumb .current { color: var(--text-primary); font-weight: 500; }

/* Breadcrumb on dark hero backgrounds */
.hero .breadcrumb { padding-top: 80px; }
.hero .breadcrumb a { color: rgba(255,255,255,0.5); }
.hero .breadcrumb a:hover { color: white; }
.hero .breadcrumb .separator { color: rgba(255,255,255,0.3); }
.hero .breadcrumb .current { color: rgba(255,255,255,0.8); }


/* ============================================
   INDUSTRY PAGE — Hero with colored gradient
   ============================================ */
.industry-hero {
  min-height: 50vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
}
.industry-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(15,23,41,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,41,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.1;
}
.industry-hero-content { position: relative; z-index: 1; }
.industry-hero .hero-icon { font-size: 3rem; margin-bottom: 16px; display: block; }
.industry-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: white; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.industry-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.65); max-width: 600px; line-height: 1.7; }

/* Industry gradient color variants */
.industry-hero--healthcare { background: linear-gradient(135deg, #0F1729 0%, #1E3A5F 50%, #0F4C75 100%); }
.industry-hero--legal { background: linear-gradient(135deg, #0F1729 0%, #2D1B4E 50%, #4A1D6B 100%); }
.industry-hero--retail { background: linear-gradient(135deg, #0F1729 0%, #1B3A2D 50%, #1D6B4A 100%); }
.industry-hero--real-estate { background: linear-gradient(135deg, #0F1729 0%, #3A2D1B 50%, #6B5A1D 100%); }
.industry-hero--manufacturing { background: linear-gradient(135deg, #0F1729 0%, #2D3A1B 50%, #4A6B1D 100%); }
.industry-hero--financial { background: linear-gradient(135deg, #0F1729 0%, #1B2D3A 50%, #1D4A6B 100%); }
.industry-hero--logistics { background: linear-gradient(135deg, #0F1729 0%, #3A1B2D 50%, #6B1D4A 100%); }
.industry-hero--hospitality { background: linear-gradient(135deg, #0F1729 0%, #3A2D1B 50%, #6B4A1D 100%); }
.industry-hero--staffing { background: linear-gradient(135deg, #0F1729 0%, #1B3A3A 50%, #1D6B6B 100%); }
.industry-hero--construction { background: linear-gradient(135deg, #0F1729 0%, #3A3A1B 50%, #6B6B1D 100%); }
.industry-hero--hotels { background: linear-gradient(135deg, #0F1729 0%, #1B2D3A 50%, #1D4A6B 100%); }
.industry-hero--restaurants { background: linear-gradient(135deg, #0F1729 0%, #3A1B1B 50%, #6B2D1D 100%); }
.industry-hero--private-clubs { background: linear-gradient(135deg, #0F1729 0%, #1B3A2D 50%, #1D6B4A 100%); }


/* ============================================
   WORKFLOW CARDS GRID — Industry pages
   ============================================ */
.workflow-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.workflow-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: all 0.25s ease;
}
.workflow-card:hover {
  transform: translateY(-3px); border-color: var(--border-hover);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.workflow-card-icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.workflow-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.workflow-card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.workflow-card-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.workflow-card-metric {
  padding: 6px 12px; background: var(--accent-subtle); border-radius: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; font-weight: 500; color: var(--accent);
}
.workflow-card-link { color: var(--accent); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.workflow-card-link:hover { text-decoration: underline; }

@media (max-width: 768px) { .workflow-grid { grid-template-columns: 1fr; } }


/* ============================================
   TESTIMONIAL BLOCKS
   ============================================ */
.testimonial-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.testimonial-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; position: relative;
}
.testimonial-card::before {
  content: '\201C'; font-family: 'Instrument Serif', serif; font-size: 4rem;
  color: var(--accent); opacity: 0.15; position: absolute; top: 12px; left: 20px; line-height: 1;
}
.testimonial-text {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 16px; padding-top: 8px;
  font-style: italic; font-family: 'Instrument Serif', serif;
  font-size: 1.05rem;
}
.testimonial-author { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
.testimonial-role { font-size: 0.8rem; color: var(--text-muted); }

@media (max-width: 768px) { .testimonial-grid { grid-template-columns: 1fr; } }


/* ============================================
   ARTICLE LAYOUT — Case study / blog pages
   ============================================ */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px;
  padding: 48px 0;
}
.article-content h2 {
  font-size: 1.5rem; font-weight: 700; margin: 40px 0 16px;
  letter-spacing: -0.02em;
}
.article-content h3 {
  font-size: 1.2rem; font-weight: 600; margin: 32px 0 12px;
}
.article-content p {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 24px; color: var(--text-secondary); line-height: 1.8;
}
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 24px; margin: 24px 0;
  background: var(--accent-subtle); border-radius: 0 12px 12px 0;
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 1.1rem; color: var(--text-primary); line-height: 1.6;
}

/* Article sidebar */
.article-sidebar {
  position: sticky; top: 100px; align-self: start;
}
.sidebar-card {
  background: var(--surface-alt); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; margin-bottom: 24px;
}
.sidebar-card h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px;
}
.sidebar-metric {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.sidebar-metric:last-child { border-bottom: none; }
.sidebar-metric-label { font-size: 0.9rem; color: var(--text-secondary); }
.sidebar-metric-value {
  font-family: 'JetBrains Mono', monospace; font-weight: 600;
  font-size: 1rem; color: var(--accent);
}

/* Metric highlight boxes (case study hero) */
.metric-highlights {
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px;
}
.metric-highlight {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 16px 20px; text-align: center; flex: 1; min-width: 140px;
}
.metric-highlight .num {
  font-family: 'JetBrains Mono', monospace; font-weight: 700;
  font-size: 1.5rem; color: white; display: block;
}
.metric-highlight .label {
  font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 4px;
}

@media (max-width: 768px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .metric-highlights { flex-direction: column; }
}


/* ============================================
   CASE STUDY INDEX PAGE
   ============================================ */
.case-studies-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.case-study-list-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 32px; transition: all 0.25s ease; text-decoration: none; color: inherit; display: block;
}
.case-study-list-card:hover {
  transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

@media (max-width: 768px) { .case-studies-list { grid-template-columns: 1fr; } }


/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  min-height: 50vh; background: var(--deep); display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
}
.about-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(15,23,41,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,41,0.3) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.1;
}
.about-hero-content { position: relative; z-index: 1; }
.about-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: white; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.about-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.65); max-width: 600px; line-height: 1.7; }

.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.value-card {
  background: white; border: 1px solid var(--border); border-radius: 16px;
  padding: 28px;
}
.value-card-icon { font-size: 1.5rem; margin-bottom: 12px; display: block; }
.value-card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.value-card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

@media (max-width: 768px) { .values-grid { grid-template-columns: 1fr; } }


/* ============================================
   HOW IT WORKS PAGE (standalone)
   ============================================ */
.hiw-hero {
  min-height: 50vh; background: var(--deep); display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hiw-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(15,23,41,0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,41,0.3) 1px, transparent 1px);
  background-size: 60px 60px; opacity: 0.1;
}
.hiw-hero-content { position: relative; z-index: 1; }
.hiw-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: white; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.hiw-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.65); max-width: 600px; line-height: 1.7; }

.hiw-step {
  display: grid; grid-template-columns: 80px 1fr; gap: 32px;
  padding: 48px 0; border-bottom: 1px solid var(--border);
}
.hiw-step:last-child { border-bottom: none; }
.hiw-step-num {
  font-family: 'JetBrains Mono', monospace; font-size: 3rem; font-weight: 700;
  color: var(--accent); opacity: 0.3; text-align: center;
}
.hiw-step h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 8px; }
.hiw-step p { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; }

@media (max-width: 768px) {
  .hiw-step { grid-template-columns: 1fr; gap: 16px; }
  .hiw-step-num { text-align: left; font-size: 2rem; }
}


/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  body::before { display: none; }
  .navbar, .mobile-menu-btn, .quiz-widget, .try-again { display: none !important; }
  .hero { min-height: auto; padding: 40px 0; }
  .section { padding: 40px 0; }
  .section-dark { background: white; color: var(--text-primary); }
  .section-dark .proof-metric .num { color: var(--accent); }
  .section-dark .proof-quote { color: var(--text-secondary); }
  .section-dark .proof-attribution { color: var(--text-muted); }
  .final-cta h2 { color: var(--text-primary); }
  .final-cta p { color: var(--text-secondary); }
  .footer { background: white; border-top: 1px solid var(--border); }
  .footer-brand .logo-img { filter: brightness(0) saturate(100%); }
  .footer-brand .logo, .footer-col h4, .footer-col a { color: var(--text-primary) !important; }
  .footer-brand p { color: var(--text-secondary) !important; }
  .footer-bottom span, .footer-bottom a { color: var(--text-muted) !important; }
  a { text-decoration: underline; }
  .btn { border: 1px solid var(--border); }
  .case-card, .industry-card, .workflow-card, .step-card, .value-card, .testimonial-card {
    break-inside: avoid;
  }
  .sticky-cta, .exit-modal-overlay { display: none !important; }
}


/* ============================================
   CRO OPTIMIZATIONS — Conversion Mechanics
   ============================================ */

/* ---- CTA BUTTON ENHANCEMENTS ---- */
.btn-accent {
  min-height: 48px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  position: relative;
}
.btn-accent:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}
.btn-accent:active {
  transform: scale(0.99);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

/* Subtle pulse glow on primary CTAs — draws eye without being annoying */
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(37, 99, 235, 0.5); }
}
.hero .btn-accent,
.final-cta .btn-accent {
  animation: ctaPulse 3s ease-in-out infinite;
}
.hero .btn-accent:hover,
.final-cta .btn-accent:hover {
  animation: none;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

/* Keep nav CTA compact */
.nav-cta.btn-accent { min-height: auto; padding: 10px 20px !important; font-size: 0.9rem !important; animation: none; }
.btn-sm.btn-accent { min-height: auto; padding: 10px 20px; font-size: 0.9rem; animation: none; }

/* ---- STICKY MOBILE CTA ---- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--accent);
  padding: 12px 20px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  width: 100%;
  padding: 4px 0;
}
@media (max-width: 768px) {
  .sticky-cta { display: block; }
  /* Add bottom padding to body so footer content isn't hidden behind sticky bar */
  body.sticky-cta-active { padding-bottom: 56px; }
}

/* ---- TRUST BADGES ---- */
.trust-badges {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}
.trust-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}
.trust-badges .check-icon {
  color: var(--success);
  font-size: 0.9rem;
}
/* Trust badges on light backgrounds */
.section .trust-badges span,
.section-alt .trust-badges span {
  color: var(--text-muted);
}

/* ---- URGENCY BADGE ---- */
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--metric);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
/* On dark backgrounds */
.section-dark .urgency-badge,
.hero .urgency-badge {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
}

/* ---- INLINE SOCIAL PROOF ---- */
.inline-testimonial {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 12px auto 0;
  text-align: center;
  line-height: 1.5;
}
.inline-testimonial .author {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 4px;
}
/* On dark backgrounds */
.section-dark .inline-testimonial,
.hero .inline-testimonial {
  color: rgba(255, 255, 255, 0.4);
}
.section-dark .inline-testimonial .author,
.hero .inline-testimonial .author {
  color: rgba(255, 255, 255, 0.5);
}

/* ---- METRIC HIGHLIGHT (number counter) ---- */
.counter-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.proof-metric .counter-number {
  font-size: 3.5rem;
  color: white;
}
@media (max-width: 768px) {
  .proof-metric .counter-number { font-size: 2.5rem; }
}

/* ---- EXIT INTENT MODAL ---- */
.exit-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 41, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}
.exit-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}
.exit-modal {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
  text-align: center;
  transform: translateY(16px);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.exit-modal-overlay.visible .exit-modal {
  transform: translateY(0);
}
.exit-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.exit-modal-close:hover {
  background: var(--border);
  color: var(--text-primary);
}
.exit-modal h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}
.exit-modal p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.exit-modal .btn-accent {
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.exit-modal .exit-dismiss {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.2s;
}
.exit-modal .exit-dismiss:hover {
  color: var(--text-secondary);
}

/* ---- FORM IMPROVEMENTS ---- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
select {
  min-height: 48px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ---- SCROLL PROGRESS BAR ---- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
  pointer-events: none;
}
