/*
 * BoltHash Design System — Light Theme
 * Shared across all marketing pages (index, pricing, compare, docs)
 * Dashboard uses its own dark theme in dashboard.html
 */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=JetBrains+Mono:wght@400;500&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Colors */
  --white:           #ffffff;
  --off-white:       #f8f9fc;
  --surface:         #f1f4fb;
  --surface-raised:  #eaeff8;
  --border:          #e2e8f5;
  --border-strong:   #c8d3ea;
  --text-primary:    #0d1526;
  --text-secondary:  #4a5878;
  --text-muted:      #8a97b5;

  --blue-deep:       #0047cc;
  --blue-mid:        #1a6bff;
  --blue-light:      #4d8fff;
  --blue-pale:       #e8f0ff;
  --blue-pale2:      #dceafe;

  --green:           #00c471;
  --green-pale:      #dcfff0;
  --green-text:      #006b3e;

  --amber:           #f59e0b;
  --amber-pale:      #fef3c7;
  --amber-text:      #92400e;

  --red:             #ef4444;
  --red-pale:        #fee2e2;
  --red-text:        #7f1d1d;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(13,21,38,0.06), 0 1px 2px rgba(13,21,38,0.04);
  --shadow-sm:  0 2px 8px rgba(13,21,38,0.08), 0 1px 3px rgba(13,21,38,0.05);
  --shadow-md:  0 8px 24px rgba(13,21,38,0.10), 0 2px 8px rgba(13,21,38,0.06);
  --shadow-lg:  0 20px 48px rgba(13,21,38,0.12), 0 4px 16px rgba(13,21,38,0.07);
  --shadow-xl:  0 32px 64px rgba(13,21,38,0.14), 0 8px 24px rgba(13,21,38,0.08);
  --shadow-blue:0 8px 32px rgba(26,107,255,0.20);
  --shadow-blue-lg: 0 16px 48px rgba(26,107,255,0.28);

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   24px;
  --r-2xl:  32px;
  --r-pill: 999px;

  /* Typography */
  --font-display: 'Sora', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── TYPOGRAPHY ──────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
p { line-height: 1.7; }
a { color: var(--blue-mid); }
code, pre { font-family: var(--font-mono); }

.text-display-xl { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; }
.text-display-lg { font-size: clamp(36px, 4.5vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.text-display-md { font-size: clamp(28px, 3.5vw, 42px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; }
.text-title      { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.text-body-lg    { font-size: 18px; line-height: 1.7; }
.text-body       { font-size: 15px; line-height: 1.7; }
.text-sm         { font-size: 13px; line-height: 1.55; }
.text-xs         { font-size: 11.5px; line-height: 1.5; }

.text-primary   { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-blue      { color: var(--blue-mid); }
.text-green     { color: var(--green-text); }

.gradient-text {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── LAYOUT ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 880px; margin: 0 auto; padding: 0 32px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

@media (max-width: 640px) {
  .container, .container-sm, .container-lg { padding: 0 20px; }
}

/* ─── NAVBAR ──────────────────────────────────────── */
.bh-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.bh-nav .nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
      position: relative;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(26,107,255,0.30);
}

.nav-logo-mark svg { width: 18px; height: 18px; fill: white; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--r-pill);
  transition: all 0.16s ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-primary); background: var(--surface); }
.nav-links a.active { font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--r-pill);
}

.btn-lg  { padding: 14px 28px; font-size: 15px; }
.btn-md  { padding: 10px 22px; font-size: 14px; }
.btn-sm  { padding: 7px  16px; font-size: 13px; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-deep));
  color: white;
  box-shadow: 0 3px 12px rgba(26,107,255,0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-blue-lg); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--blue-light); color: var(--blue-mid); }

.btn-outline-blue {
  background: var(--blue-pale);
  color: var(--blue-mid);
  border: 1.5px solid var(--blue-pale2);
}
.btn-outline-blue:hover { background: var(--blue-pale2); }

.btn-white {
  background: white;
  color: var(--blue-deep);
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
}
.btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }

.btn-dark {
  background: var(--text-primary);
  color: white;
}
.btn-dark:hover { background: var(--blue-deep); transform: translateY(-1px); }

/* ─── BADGES / PILLS ──────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge-blue   { background: var(--blue-pale);  color: var(--blue-mid);  border: 1px solid var(--blue-pale2); }
.badge-green  { background: var(--green-pale);  color: var(--green-text); border: 1px solid rgba(0,196,113,0.2); }
.badge-amber  { background: var(--amber-pale);  color: var(--amber-text); border: 1px solid rgba(245,158,11,0.2); }
.badge-red    { background: var(--red-pale);    color: var(--red-text);   border: 1px solid rgba(239,68,68,0.2); }
.badge-neutral{ background: var(--surface);     color: var(--text-muted); border: 1px solid var(--border); }

.badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.65); }
}

/* Eyebrow label above section header */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--blue-mid);
  background: var(--blue-pale);
  border: 1px solid var(--blue-pale2);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 16px;
}

/* ─── CARDS ───────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  transition: all 0.22s ease;
}

.card-raised {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
}

.card-raised:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--blue-light); }

.card-featured {
  background: linear-gradient(160deg, #0047cc 0%, #1a6bff 55%, #3d8aff 100%);
  border-radius: var(--r-xl);
  color: white;
  position: relative;
  overflow: hidden;
}

.card-surface {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
}

/* ─── SECTIONS ────────────────────────────────────── */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-lg { padding: 140px 0; }

.section-alt { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--text-primary); }

/* ─── DIVIDER ─────────────────────────────────────── */
hr, .divider { border: none; border-top: 1px solid var(--border); }

/* ─── CHECK LIST ─────────────────────────────────── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.check-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  background: var(--green-pale);
  border: 1.5px solid rgba(0,196,113,0.25);
  border-radius: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2300c471' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.cross-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.cross-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}
.cross-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 3l6 6M9 3l-6 6' stroke='%238a97b5' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ─── CODE BLOCK ──────────────────────────────────── */
.code-block {
  background: #0d1117;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
}

.code-block-header {
  background: #161b22;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.code-dots { display: flex; gap: 6px; }
.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot-r { background: #ff5f56; }
.code-dot-y { background: #ffbd2e; }
.code-dot-g { background: #27c93f; }

.code-block-label { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.35); margin-left: auto; font-family: var(--font-mono); }

.code-block pre {
  padding: 20px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: #e6edf3;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.code-block .c  { color: #6e7681; }
.code-block .k  { color: #ff7b72; }
.code-block .kw { color: #d2a8ff; }
.code-block .s  { color: #a5d6ff; }
.code-block .n  { color: #79c0ff; }
.code-block .v  { color: #f8c555; }
.code-block .op { color: #e6edf3; }
.code-block .g  { color: #3fb950; }

/* ─── STAT GRID ───────────────────────────────────── */
.stat-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 400; }

/* ─── TRUST BAR ──────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.trust-bar .icon { font-size: 15px; }

/* ─── LOGO STRIP ─────────────────────────────────── */
.logo-strip {
  padding: 48px 0;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.logo-strip-label {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--border-strong);
  letter-spacing: -0.2px;
  transition: color 0.18s;
}
.logo-item:hover { color: var(--text-muted); }

.logo-ico {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

/* ─── FOOTER ─────────────────────────────────────── */
.bh-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.55);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .nav-logo { color: white; margin-bottom: 16px; }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.45); line-height: 1.7; max-width: 240px; }

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.16s; }
.footer-col a:hover { color: rgba(255,255,255,0.88); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.footer-legal { display: flex; align-items: center; gap: 20px; color: rgba(255,255,255,0.32); }
.footer-legal a { color: rgba(255,255,255,0.32); text-decoration: none; transition: color 0.15s; }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

.social-row { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.16s;
}
.social-btn:hover { background: rgba(255,255,255,0.10); color: white; }

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-slow { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes chip-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scale-in { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.reveal {
  /* opacity: 0; */
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ─── UTILITY ────────────────────────────────────── */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.gap-4 { gap: 16px; } .gap-6 { gap: 24px; } .gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; }
.p-6 { padding: 24px; } .p-8 { padding: 32px; } .p-10 { padding: 40px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.hidden { display: none; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .stat-grid { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── NAV SCROLL STATE ────────────────────────────── */
.bh-nav.scrolled { box-shadow: var(--shadow-sm); background: rgba(255,255,255,0.96); }

/* ─── MOBILE NAV TOGGLE ──────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--r-sm);
}
.hamburger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.2s;
}

@media (max-width: 1024px) { .hamburger { display: flex; } }

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 99;
  flex-direction: column;
  gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.mobile-menu a:hover { background: var(--surface); color: var(--text-primary); }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* ── Language picker ───────────────────────────────── */
#nav-lang-btn { min-width: 52px; }
#bh-lang-menu { font-family: var(--font-ui, system-ui, sans-serif); max-width: 190px; }

/* ── Nav logo: image only, no text ──────────────────── */
.nav-logo { gap: 0; }
.nav-logo img { height: auto; width: auto; min-width: 180px; max-width: 260px; margin-top:15px; display: block; }
.footer-brand .nav-logo img { height: auto; max-height: 32px; min-width: unset; max-width: 160px; }
@media (max-width: 600px) { .nav-logo img { max-height: 36px; min-width: 140px; } }

/* ── Dashboard + Admin nav buttons ──────────────────── */
#nav-dashboard-btn { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Info icon (contact page cards) ─────────────────── */
.info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #2563eb; font-size: 1.125rem; flex-shrink: 0;
  margin-bottom: .625rem;
}
.info-card { padding: 1.25rem 0; border-bottom: 1px solid #f1f5f9; }
.info-card:last-child { border-bottom: none; }

/* ── Responsive: hide long nav items on small screens ─ */
@media (max-width: 860px) {
  .nav-links li:nth-child(n+4) { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  #desktop-nav-extra { display: none; }
}