/* VibeLab Group — shared stylesheet for inner pages (service pages + blog).
   The homepage keeps its own inline <style>; the tokens, nav, buttons and
   footer below are copied from it so inner pages match. If you change the
   nav/footer/button styling on index.html, mirror the change here. */

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

:root {
  --navy-abyss: #020810;
  --navy-deep: #040c1a;
  --navy: #0a1628;
  --navy-mid: #0d1d38;
  --blue-core: #0b8fd8;
  --blue-primary: #0ea5e9;
  --blue-bright: #38bdf8;
  --blue-glow: #06b6d4;
  --cyan: #22d3ee;
  --white: #eef2f7;
  --white-soft: #c8d6e5;
  --white-dim: #8899aa;
  --white-muted: #556677;
  --font-main: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--navy-abyss);
  color: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-bright); }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-abyss); }
::-webkit-scrollbar-thumb { background: var(--blue-core); border-radius: 3px; }

#wave-canvas {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0.4;
}

/* ── NAV (mirrors index.html) ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.2rem 2.5rem;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(2, 8, 16, 0.4);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(14, 165, 233, 0.06);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav.pinched { padding: 0.65rem 2.5rem; background: rgba(2, 8, 16, 0.88); border-bottom-color: rgba(14, 165, 233, 0.12); }
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 47px; width: auto; display: block; transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.nav.pinched .nav-brand img { height: 33px; }
#mobileMenu { display: none; }
.nav-menu { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-menu a {
  position: relative; color: var(--white-dim); text-decoration: none;
  font-size: 0.825rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; transition: color 0.3s;
}
.nav-menu a:not(.nav-btn):hover, .nav-menu a[aria-current="page"] { color: var(--white); }
.nav-menu a:not(.nav-btn)::after {
  content: ''; position: absolute; bottom: -5px; left: 0;
  width: 0; height: 2px; background: var(--blue-primary);
  border-radius: 1px; transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-menu a:not(.nav-btn):hover::after, .nav-menu a[aria-current="page"]::after { width: 100%; }
.nav-btn {
  background: var(--blue-primary) !important; color: var(--navy-abyss) !important;
  padding: 0.55rem 1.4rem !important; border-radius: 6px; font-weight: 700 !important;
  letter-spacing: 0.03em !important; transition: all 0.3s !important;
}
.nav-btn:hover { background: var(--blue-bright) !important; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(14, 165, 233, 0.35) !important; }
.nav-btn::after { display: none !important; }
.nav-login {
  color: var(--blue-bright) !important; border: 1px solid rgba(14, 165, 233, 0.3);
  padding: 0.3rem 0.9rem !important; border-radius: 4px;
  font-family: var(--font-mono) !important; font-size: 0.65rem !important;
  letter-spacing: 0.08em; text-transform: uppercase; transition: all 0.3s !important;
}
.nav-login:hover { border-color: var(--blue-bright) !important; background: rgba(14, 165, 233, 0.08) !important; }
.nav-login::after { display: none !important; }
.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; z-index: 210; background: none; border: 0; }
.burger span { width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all 0.3s; }

@media (max-width: 1080px) {
  .nav { padding: 1rem 1.5rem; }
  .nav.pinched { padding: 0.6rem 1.5rem; }
  .nav-menu { display: none !important; }
  .burger { display: flex !important; z-index: 99999; position: relative; }
  #mobileMenu {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #0e2a4a; z-index: 9999; flex-direction: column; justify-content: center; align-items: center;
  }
  #mobileMenu.open { display: flex; }
  #mobileMenu ul { list-style: none; text-align: center; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1.6rem; }
  #mobileMenu a { font-family: var(--font-main); font-size: 1.3rem; font-weight: 600; color: var(--white-soft); text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s; }
  #mobileMenu a:hover { color: var(--blue-bright); }
  #mobileMenu .nav-login { font-size: 0.9rem !important; padding: 0.4rem 1.2rem; }
  #mobileMenu .nav-btn { padding: 0.75rem 2.5rem; border-radius: 8px; font-size: 1rem !important; }
  .burger span { transition: all 0.3s ease; transform-origin: center; }
  .burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.9rem 1.8rem; font-family: var(--font-main);
  font-size: 0.925rem; font-weight: 700; border-radius: 8px;
  text-decoration: none; cursor: pointer; border: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-fill { background: var(--blue-primary); color: var(--navy-abyss); }
.btn-fill:hover { background: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(200, 214, 229, 0.2); }
.btn-ghost:hover { border-color: var(--blue-primary); background: rgba(14, 165, 233, 0.06); color: var(--blue-bright); }

/* ── LAYOUT ── */
main { position: relative; z-index: 1; }
.section { position: relative; z-index: 1; padding: 5rem 2.5rem; }
.section-alt { background: var(--navy-deep); }
.section-wrap { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 800px; }
.section-header { margin-bottom: 2.75rem; }
.section-tag {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600;
  color: var(--blue-primary); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6rem;
}
.section-title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 0.75rem; }
.section-title .em { color: var(--blue-bright); }
.section-subtitle { font-size: 1.05rem; color: var(--white-dim); max-width: 620px; line-height: 1.7; }

/* ── PAGE HERO ── */
.page-hero {
  position: relative; z-index: 1;
  padding: 9.5rem 2.5rem 4.5rem;
  background:
    radial-gradient(ellipse 60% 55% at 70% 0%, rgba(14,165,233,0.10), transparent 70%),
    linear-gradient(180deg, var(--navy-deep), var(--navy-abyss));
  border-bottom: 1px solid rgba(14, 165, 233, 0.08);
}
.crumbs { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white-muted); margin-bottom: 1.5rem; }
.crumbs a { color: var(--white-dim); text-decoration: none; }
.crumbs a:hover { color: var(--blue-bright); }
.crumbs span[aria-hidden] { margin: 0 0.5rem; opacity: 0.6; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--blue-bright); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.5rem; padding: 0.45rem 1rem;
  border: 1px solid rgba(14, 165, 233, 0.2); border-radius: 100px; background: rgba(14, 165, 233, 0.04);
}
.hero-eyebrow .pulse { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; animation: glow-pulse 2s ease infinite; }
@keyframes glow-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); } }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em; margin-bottom: 1.4rem; max-width: 900px; }
.page-hero h1 .em { color: var(--blue-bright); }
.page-hero .lead { font-size: 1.12rem; color: var(--white-soft); max-width: 720px; line-height: 1.75; margin-bottom: 2.25rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── ANSWER BOX (the direct, quotable definition) ── */
.answer {
  position: relative; border-radius: 16px; padding: 2rem 2.25rem;
  background: linear-gradient(160deg, rgba(13, 29, 56, 0.75), rgba(10, 22, 40, 0.45));
  border: 1px solid rgba(14, 165, 233, 0.14);
}
.answer::before { content: ''; position: absolute; top: -1px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-primary), var(--cyan), transparent); }
.answer h2 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 0.8rem; }
.answer p { color: var(--white-soft); font-size: 1.02rem; line-height: 1.8; }
.answer p + p { margin-top: 0.9rem; }

/* ── PROSE ── */
.prose p { color: var(--white-soft); font-size: 1.02rem; line-height: 1.8; margin-bottom: 1.1rem; }
.prose p strong { color: var(--white); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin: 2.75rem 0 1rem; }
.prose h2:first-child, .prose .section-tag + h2 { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 0.5rem; }
.prose a { color: var(--blue-bright); }

/* ── FEATURE CARDS ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.feature {
  position: relative; padding: 1.9rem 1.6rem; border-radius: 16px;
  background: linear-gradient(165deg, rgba(13, 29, 56, 0.7), rgba(10, 22, 40, 0.4));
  border: 1px solid rgba(14, 165, 233, 0.08);
  transition: border-color 0.35s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.feature:hover { border-color: rgba(14, 165, 233, 0.2); transform: translateY(-4px); }
.feature h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.feature p { font-size: 0.92rem; color: var(--white-dim); line-height: 1.7; }

/* ── CHECK LIST ── */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.check-list li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.98rem; color: var(--white-soft); line-height: 1.6; }
.check-list li strong { color: var(--white); }
.check-icon {
  width: 24px; height: 24px; border-radius: 6px; margin-top: 1px;
  background: rgba(14, 165, 233, 0.1); border: 1px solid rgba(14, 165, 233, 0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.check-icon svg { width: 14px; height: 14px; stroke: var(--blue-bright); stroke-width: 2.5; fill: none; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }

/* ── PROCESS ── */
.process-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { padding: 1.5rem 1.25rem; border-radius: 14px; background: rgba(13, 29, 56, 0.4); border: 1px solid rgba(14, 165, 233, 0.06); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 1rem;
  background: rgba(14, 165, 233, 0.08); border: 1px solid rgba(14, 165, 233, 0.15);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; color: var(--blue-bright);
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step p { font-size: 0.88rem; color: var(--white-dim); line-height: 1.65; }

/* ── FAQ (shared with index.html) ── */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { border-radius: 14px; background: rgba(13, 29, 56, 0.45); border: 1px solid rgba(14, 165, 233, 0.08); transition: border-color 0.3s, background 0.3s; }
.faq-item[open] { border-color: rgba(14, 165, 233, 0.2); background: rgba(13, 29, 56, 0.7); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 3.2rem 1.2rem 1.5rem; position: relative;
  font-size: 1.02rem; font-weight: 700; color: var(--white); line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 1.4rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue-bright); transition: transform 0.3s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 2px; border-radius: 14px; }
.faq-answer { padding: 0 1.5rem 1.35rem; }
.faq-answer p { color: var(--white-soft); font-size: 0.97rem; line-height: 1.75; }
.faq-answer p + p { margin-top: 0.7rem; }
.faq-answer a { color: var(--blue-bright); }

/* ── RELATED LINKS ── */
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.related {
  display: block; padding: 1.4rem 1.5rem; border-radius: 14px; text-decoration: none;
  background: rgba(13, 29, 56, 0.45); border: 1px solid rgba(14, 165, 233, 0.08);
  transition: border-color 0.3s, transform 0.3s;
}
.related:hover { border-color: rgba(14, 165, 233, 0.25); transform: translateY(-3px); }
.related .k { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-primary); margin-bottom: 0.4rem; display: block; }
.related strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 0.3rem; }
.related span.d { display: block; color: var(--white-dim); font-size: 0.87rem; line-height: 1.55; }

/* ── CTA ── */
.cta-section { padding: 5rem 2.5rem 6.5rem; text-align: center; position: relative; z-index: 1; }
.cta-card {
  max-width: 760px; margin: 0 auto; padding: 3.25rem 2.5rem; border-radius: 24px; position: relative;
  background: linear-gradient(160deg, rgba(13, 29, 56, 0.7), rgba(10, 22, 40, 0.5));
  border: 1px solid rgba(14, 165, 233, 0.1);
}
.cta-card::before { content: ''; position: absolute; top: -1px; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, var(--blue-primary), var(--cyan), transparent); }
.cta-card h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 0.75rem; }
.cta-card p { color: var(--white-dim); font-size: 1rem; max-width: 480px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-card .hero-actions { justify-content: center; }

/* ── FOOTER (mirrors index.html) ── */
.footer { position: relative; z-index: 1; padding: 2.5rem; border-top: 1px solid rgba(14, 165, 233, 0.06); background: rgba(2, 8, 16, 0.6); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-logo img { height: 48px; width: auto; opacity: 0.75; transition: opacity 0.3s; }
.footer-logo img:hover { opacity: 1; }
.footer-meta { text-align: right; font-size: 0.78rem; color: var(--white-muted); line-height: 1.6; }
.footer-meta .loc { color: var(--white-dim); font-weight: 500; }
.footer-links { margin-top: 0.6rem; display: flex; gap: 0.5rem 1.25rem; flex-wrap: wrap; justify-content: flex-end; }
.footer-links a { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white-muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue-bright); }
.footer-links.services a { color: var(--white-dim); }
.footer-credit { margin-top: 0.4rem; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em; color: rgba(200, 214, 229, 0.3); text-transform: uppercase; }
.footer-credit span { color: var(--blue-bright); opacity: 0.7; }
.social { display: flex; gap: 10px; align-items: center; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(14,165,233,0.18); background: rgba(14,165,233,0.06); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.social svg { width: 16px; height: 16px; fill: var(--white-dim); transition: fill .25s ease; }
.social a:hover { transform: translateY(-2px); border-color: rgba(14,165,233,0.5); background: rgba(14,165,233,0.12); }
.social a:hover svg { fill: var(--blue-bright); }
.footer-meta .social { justify-content: flex-end; margin: 0.85rem 0 0.25rem; }

/* ── REVEAL (opt-in, same pattern as index.html) ── */
.js-rv .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.js-rv .reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js-rv .reveal { opacity: 1; transform: none; transition: none; }
  .feature, .related { transition: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .nav-brand img { height: 34px; }
  .nav.pinched .nav-brand img { height: 28px; }
  .footer-logo img { height: 40px; }
}
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .process-track { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 3.75rem 1.25rem; }
  .page-hero { padding: 7.5rem 1.25rem 3.25rem; }
  .feature-grid, .process-track, .related-grid, .two-col { grid-template-columns: 1fr; }
  .two-col { gap: 2rem; }
  .answer { padding: 1.5rem 1.35rem; }
  .cta-section { padding: 3.5rem 1.25rem 4.5rem; }
  .cta-card { padding: 2.5rem 1.4rem; }
  .footer { padding: 2rem 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; gap: 0.75rem; }
  .footer-meta { text-align: center; }
  .footer-meta .social, .footer-links { justify-content: center; }
}
