/* ============================================================
   Blue Peak Labs — shared stylesheet
   Used by every page (homepage + /ai-personal-assistant/).
   Page-specific CSS stays in a <style> block on that page.
   ============================================================ */
/* ============ BLUE PEAK LABS ============ */

:root {
  --bg: #07090f;
  --bg-2: #0b0f1a;
  --bg-3: #0f1424;
  --panel: #10162a;
  --panel-2: #141c34;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --ink: #e8ecf5;
  --ink-2: #b4bcd0;
  --ink-3: #6e7691;
  --ink-4: #3e465c;

  /* Accent — overridden by theme */
  --accent: oklch(0.72 0.18 255);
  --accent-2: oklch(0.82 0.14 255);
  --accent-soft: oklch(0.72 0.18 255 / 0.15);
  --accent-glow: oklch(0.72 0.18 255 / 0.45);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --font-display: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

/* Theme variants */
[data-theme="blue"] {
  --accent: oklch(0.72 0.18 255);
  --accent-2: oklch(0.85 0.14 250);
  --accent-soft: oklch(0.72 0.18 255 / 0.15);
  --accent-glow: oklch(0.72 0.18 255 / 0.45);
}
[data-theme="cyan"] {
  --accent: oklch(0.80 0.16 200);
  --accent-2: oklch(0.88 0.12 190);
  --accent-soft: oklch(0.80 0.16 200 / 0.15);
  --accent-glow: oklch(0.80 0.16 200 / 0.45);
}
[data-theme="violet"] {
  --accent: oklch(0.70 0.22 295);
  --accent-2: oklch(0.82 0.16 300);
  --accent-soft: oklch(0.70 0.22 295 / 0.15);
  --accent-glow: oklch(0.70 0.22 295 / 0.45);
}
[data-theme="amber"] {
  --accent: oklch(0.80 0.17 70);
  --accent-2: oklch(0.88 0.12 75);
  --accent-soft: oklch(0.80 0.17 70 / 0.15);
  --accent-glow: oklch(0.80 0.17 70 / 0.45);
}
[data-theme="lime"] {
  --accent: oklch(0.86 0.20 135);
  --accent-2: oklch(0.92 0.15 135);
  --accent-soft: oklch(0.86 0.20 135 / 0.15);
  --accent-glow: oklch(0.86 0.20 135 / 0.45);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
body { line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* ===== Background canvas ===== */
.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(900px 500px at 0% 30%, rgba(60, 80, 140, 0.18), transparent 55%),
    radial-gradient(700px 600px at 50% 120%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, #06080e 0%, #07090f 40%, #06080e 100%);
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, black 30%, transparent 80%);
}

/* ===== Shared ===== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

.section-title {
  font-size: clamp(36px, 4.2vw, 60px);
  font-weight: 450;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.section-sub {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 620px;
  margin-top: 16px;
  text-wrap: pretty;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .3s ease;
  white-space: nowrap;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.btn-primary {
  background: var(--accent);
  color: #07090f;
  box-shadow:
    0 0 0 1px var(--accent),
    0 10px 30px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px var(--accent),
    0 14px 40px -10px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255,255,255,0.22);
}


/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 8px 8px 20px;
  background: rgba(10, 14, 25, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6);
  white-space: nowrap;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 17px;
  font-weight: 600;
  font-size: 27px;
  flex-shrink: 0;
}
.nav-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: brightness(1.25) saturate(0.9);
}
.nav-logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: -0.01em;
}
.nav-logo-ai {
  color: var(--accent);
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--ink-2);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-cta {
  padding: 10px 18px;
  font-size: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #07090f;
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  display: flex;
  align-items: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-h1 {
  font-size: clamp(44px, 5.6vw, 80px);
  font-weight: 450;
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero-h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
  display: block;
}
.hero-sub {
  margin-top: 28px;
  color: var(--ink-2);
  font-size: 18px;
  max-width: 520px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 48px;
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--font-mono);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--ink-4);
}

/* Hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 560px;
  margin-left: auto;
}

/* ===== Section ===== */
.section {
  padding: 120px 0;
  position: relative;
}
.section-head {
  margin-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Services ===== */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.service:hover {
  border-color: var(--border-2);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
}
.service-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.1em;
}
.service h3 {
  font-size: 26px;
  font-weight: 450;
  letter-spacing: -0.02em;
  margin-top: 14px;
  margin-bottom: 12px;
}
.service p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}
.service-tags {
  margin-top: auto;
  padding-top: 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--ink-2);
  border: 1px solid var(--border);
}
/* link out to a service's own page — only some services have one */
.service-link {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-2);
  text-decoration: none;
}
.service-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}
.service-link:hover svg { transform: translateX(3px); }

.service-visual {
  height: 140px;
  margin: -4px -4px 18px;
  border-radius: var(--radius);
  background: rgba(0,0,0,0.35);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

/* ===== Process (how it works) ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}
.process-step {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  position: relative;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.process-step .step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 24px;
  background: rgba(0,0,0,0.3);
}
.process-step h4 {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 10px;
}
.process-step p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0;
  line-height: 1.55;
}
.process-step .step-dur {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}

/* ===== Demo ===== */
.demo-wrap {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.3);
}
.demo-dots {
  display: flex;
  gap: 7px;
}
.demo-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #444a5e;
}
.demo-dots span:nth-child(1) { background: #ff5f57; }
.demo-dots span:nth-child(2) { background: #febc2e; }
.demo-dots span:nth-child(3) { background: #28c840; }
.demo-title {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
}
.demo-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 520px;
}
.demo-sidebar {
  border-right: 1px solid var(--border);
  padding: 20px 12px;
  background: rgba(0,0,0,0.2);
}
.demo-sidebar-head {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  padding: 0 10px 12px;
}
.demo-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: background .2s, color .2s;
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 2px;
}
.demo-tab:hover { background: rgba(255,255,255,0.03); color: var(--ink); }
.demo-tab.active {
  background: var(--accent-soft);
  color: var(--accent-2);
}
.demo-tab .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink-4);
  flex-shrink: 0;
}
.demo-tab.active .dot {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}
.demo-main {
  padding: 32px;
  position: relative;
  min-height: 520px;
}

.logos {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logo-placeholder {
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 0;
  opacity: 0.7;
  transition: opacity .2s, color .2s;
}
.logo-placeholder:hover { opacity: 1; color: var(--ink-2); }

/* ===== CTA / Contact ===== */
.cta-block {
  position: relative;
  padding: 80px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 20% 0%, var(--accent-soft), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(120, 140, 200, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(20, 28, 52, 0.6), rgba(10, 14, 25, 0.8));
  border: 1px solid var(--border);
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}
.cta-block-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.cta-block h2 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 450;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.cta-block h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-2);
}
.cta-block p {
  color: var(--ink-2);
  margin-top: 20px;
  font-size: 17px;
  max-width: 480px;
}
.contact-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.contact-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14px;
}
.contact-row:last-child { border-bottom: none; }
.contact-row span:first-child {
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
}
.contact-row span:last-child { color: var(--ink); }

/* ===== Footer ===== */
.footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}
.footer-links a:hover { color: var(--accent-2); }
.footer-sm {
  color: var(--ink-3);
  font-size: 13px;
  font-family: var(--font-mono);
}

/* ===== Tweaks panel ===== */
.tweaks {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  background: rgba(10, 14, 25, 0.92);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(20px);
  width: 280px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
  display: none;
}
.tweaks.visible { display: block; }
.tweaks-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.tweaks-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tweaks-close {
  color: var(--ink-3);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.tweak {
  margin-bottom: 16px;
}
.tweak:last-child { margin-bottom: 0; }
.tweak-label {
  display: block;
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 8px;
}
.tweak-swatches {
  display: flex;
  gap: 8px;
}
.tweak-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s;
  position: relative;
}
.tweak-swatch:hover { transform: scale(1.1); }
.tweak-swatch.active {
  border-color: var(--ink);
}
.tweak-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tweak-option {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  color: var(--ink-2);
  cursor: pointer;
  font-family: var(--font-mono);
}
.tweak-option.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Demo responsive grids — defined as classes so the media query can override them */
.demo-quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.demo-report-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid,
  .cta-block-inner { grid-template-columns: 1fr; }
  .hero-visual { margin: 0 auto; max-width: 100%; overflow: hidden; }
  .services,
  .process { grid-template-columns: 1fr; }
  .cta-block { padding: 40px 28px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-sidebar { border-right: none; border-bottom: 1px solid var(--border); }
  .demo-main { padding: 20px 16px; }
  .demo-quote-grid { grid-template-columns: 1fr; }
  .demo-report-grid { grid-template-columns: 1fr; }
  .contact-row { flex-direction: column; gap: 4px; }
  .contact-row span:last-child { text-align: left; }
  .bpl-mark { width: 32px !important; height: 32px !important; }
  .nav-logo-wordmark { font-size: 17px !important; }
  .nav-logo { gap: 8px !important; }
  .builds-grid { grid-template-columns: 1fr !important; }
  .tiger-header { grid-template-columns: 1fr !important; }
  .tiger-stats { justify-content: flex-start !important; flex-wrap: wrap; gap: 20px !important; }
}

    @keyframes blink { 50% { opacity: 0; } }
    @keyframes pulse {
      0%, 100% { opacity: 0.3; transform: translateY(0); }
      50% { opacity: 1; transform: translateY(-2px); }
    }
    .nav-logo-labs {
      font-family: 'Instrument Serif', Georgia, serif;
      font-style: italic;
      font-weight: 400;
      color: var(--accent-2);
    }
    .nav-logo-wordmark {
      display: inline-flex;
      align-items: baseline;
      gap: 5px;
      letter-spacing: -0.01em;
      font-family: 'Inter Tight', sans-serif;
      font-weight: 600;
      font-size: 27px;
    }
    .bpl-mark {
      width: 50px;
      height: 50px;
      object-fit: contain;
    }
