/* ============================================================
   PHAROSGRAPH DESIGN SYSTEM
   Shared CSS for Solutions pages + future build-out.
   Mirrors the approved homepage exactly.
   BRAND SWAP ZONE, confirm hex codes + fonts from PPTX style guide
   ============================================================ */

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

:root {
  /* Surfaces */
  --bg:        #FFFFFF;
  --bg-soft:   #FAFBFD;
  --bg-deep:   #07101F;
  --bg-mid:    #0F1F38;

  /* Ink */
  --ink:       #0A0F1A;
  --ink-soft:  #3A4A66;
  --ink-mute:  #8A95A8;
  --line:      #ECEFF5;
  --line-mid:  #D8DEE9;
  --line-dark: #18253E;

  /* Brand */
  --brand:        #1E6BFF;
  --brand-deep:   #0040C8;
  --brand-light:  #5A95FF;
  --brand-pale:   #EEF4FF;

  /* Data viz */
  --viz-purple-d: #7C5FA8;
  --viz-purple-l: #C5B8DD;
  --viz-green-d:  #7AAE7A;
  --viz-green-l:  #B5D6B5;

  /* Type */
  --display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
}
.container.narrow { max-width: 1100px; }

/* ===== NAV ===== */
nav.site-nav {
  position: sticky; top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  padding: 22px 0;
}
nav.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo-lockup { display: inline-block; line-height: 0; text-decoration: none; }
.logo-svg { width: 142px; height: 38px; display: block; }
.logo-img { height: 40px; width: auto; display: block; }
footer.site-footer .logo-img { height: 30px; }
.nav-links { display: flex; gap: 40px; align-items: center; font-size: 14px; }
.nav-links a { color: var(--ink-soft); transition: color 0.2s; font-weight: 400; }
.nav-links a:hover { color: var(--brand); }

.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { font-size: 8px; margin-top: 2px; opacity: 0.55; transition: opacity 0.2s, transform 0.2s; }
.nav-item:hover .nav-caret { opacity: 1; transform: translateY(1px); }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 0;
  min-width: 240px;
  box-shadow: 0 24px 60px -20px rgba(7,16,31,0.18), 0 4px 12px -4px rgba(7,16,31,0.06);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
  margin-top: 14px;
}
.nav-dropdown::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  font-weight: 400;
}
.nav-dropdown a:hover { color: var(--brand); background: var(--bg-soft); }
.nav-dropdown a.nav-soon {
  color: var(--ink-mute);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-top: 1px solid var(--line); margin-top: 6px; padding-top: 14px;
}
.nav-dropdown a.nav-soon:hover { color: var(--ink-mute); background: transparent; }
.nav-dropdown a.nav-soon span {
  font-family: var(--mono);
  font-size: 9px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--brand); background: var(--brand-pale);
  padding: 3px 8px; border-radius: 2px; font-weight: 500;
}

.nav-links a.btn-nav-cta {
  display: inline-block;
  padding: 12px 24px;
  background: var(--bg-deep);
  color: #fff;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s ease;
  letter-spacing: -0.005em;
}
.nav-links a.btn-nav-cta:hover { background: var(--brand); color: #fff; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-mid);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-on-dark { background: #fff; color: var(--bg-deep); }
.btn-on-dark:hover { background: var(--brand-light); color: #fff; }
.btn-on-dark-ghost { color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-on-dark-ghost:hover { background: #fff; color: var(--bg-deep); border-color: #fff; }

/* ===== TYPOGRAPHY ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--brand);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before {
  content: ''; width: 36px; height: 1px; background: var(--brand);
}
.micro-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--brand);
  margin-bottom: 18px;
  font-weight: 500;
}
.section.dark .micro-eyebrow { color: var(--brand-light); }

h1 {
  font-family: var(--display);
  font-size: 76px; line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  color: var(--ink);
}
.editorial-head {
  font-family: var(--display);
  font-size: 56px; line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--ink);
  max-width: 880px;
}
.section.dark .editorial-head { color: #fff; }
.editorial-sub {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 620px;
  margin-top: 22px;
}
.section.dark .editorial-sub { color: rgba(255,255,255,0.72); }

/* ===== SECTION FRAMING ===== */
.section { padding: 110px 0; }
.section.tight { padding: 88px 0; }
.section.dark { background: var(--bg-deep); color: #fff; }
.section.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== LIVE DOT ===== */
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #34D399;
  animation: live-blink 2s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== FOOTER ===== */
footer.site-footer {
  padding: 56px 0 36px;
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
footer.site-footer .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
footer.site-footer .footer-meta {
  font-family: var(--mono);
  font-size: 11px; color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-top: 14px;
}
footer.site-footer .footer-links { display: flex; gap: 36px; font-size: 14px; }
footer.site-footer .footer-links a:hover { color: var(--brand); }

/* Footer social icons */
footer.site-footer .footer-social {
  display: flex; gap: 10px; align-items: center;
  margin-top: 16px;
}
footer.site-footer .footer-social a {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
}
footer.site-footer .footer-social a:hover {
  background: var(--brand); border-color: var(--brand);
}
footer.site-footer .footer-social a svg {
  width: 13px; height: 13px;
  fill: var(--ink-soft);
}
footer.site-footer .footer-social a:hover svg { fill: #fff; }

/* ===== SOLUTION PAGE, HERO ===== */
.sp-hero {
  padding: 56px 0 100px;
}
.sp-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.sp-hero h1 {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 28px;
}
.sp-hero-sub {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 36px;
}
.sp-hero-proof {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-map-wrap {
  position: relative;
  aspect-ratio: 1.05 / 1;
  background: var(--bg-deep);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 32px 80px -24px rgba(7,16,31,0.28);
}
.sp-map-wrap svg { width: 100%; height: 100%; display: block; }
.map-corner {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.map-corner.tl { top: 24px; left: 24px; display: flex; align-items: center; gap: 8px; }
.map-corner.tr { top: 24px; right: 24px; }
.map-corner.br { bottom: 24px; right: 24px; color: var(--brand-light); }

/* ===== WHO USES PHAROS, elegant editorial strip ===== */
.who-strip {
  padding: 52px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.who-grid {
  display: grid;
  grid-template-columns: 1fr 2.3fr;
  gap: 64px;
  align-items: center;
}
.who-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
}
.who-list {
  font-family: var(--display);
  font-size: 19px;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
}
.who-list span {
  color: var(--ink-mute);
  margin: 0 12px;
}

/* ===== STRATEGIC QUESTIONS ===== */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.q-card {
  padding: 36px 32px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 200px;
}
.q-card:hover {
  background: var(--bg-soft);
}
.q-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--brand);
  font-weight: 500;
}
.q-text {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-top: auto;
}

/* ===== SAMPLE OUTPUTS ===== */
.outputs-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
  margin-top: 56px;
}
.output-stack {
  position: relative;
  height: 480px;
}
.output-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 22px;
  width: 260px;
  height: 360px;
  box-shadow: 0 24px 60px -20px rgba(7,16,31,0.16), 0 4px 12px -4px rgba(7,16,31,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.output-back   { left: 0;    top: 60px;  transform: rotate(-4deg); opacity: 0.5; z-index: 1; }
.output-middle { left: 100px; top: 80px; transform: rotate(2.5deg); opacity: 0.78; z-index: 2; }
.output-front  { left: 220px; top: 0;    transform: rotate(-1.2deg); z-index: 3; width: 300px; height: 440px; padding: 24px; }
.oc-tag {
  font-family: var(--mono);
  font-size: 9px; color: var(--brand);
  letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 8px;
}
.oc-title {
  font-family: var(--display);
  font-size: 16px; font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.output-front .oc-title { font-size: 18px; }
.oc-doc-meta {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.oc-section {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  color: var(--ink);
  margin: 12px 0 6px;
}
.oc-lines { display: flex; flex-direction: column; gap: 4px; }
.oc-lines span {
  height: 2.5px;
  background: var(--line);
  border-radius: 1px;
}
.oc-lines span:nth-child(odd) { width: 96%; }
.oc-lines span:nth-child(even) { width: 80%; }
.oc-viz {
  height: 80px;
  margin: 12px 0;
  background: var(--bg-soft);
  border-radius: 2px;
}
.oc-viz svg { width: 100%; height: 100%; display: block; }
.oc-footer {
  display: flex; gap: 16px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.oc-footer strong { color: var(--brand); font-weight: 700; margin-right: 4px; }

/* ===== DIFFERENTIATION ===== */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 56px;
}
.diff-col {
  padding: 40px 36px;
  border-radius: 6px;
}
.diff-others {
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.diff-pharos {
  background: var(--bg-deep);
  color: #fff;
}
.diff-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 28px;
  font-weight: 500;
}
.diff-pharos .diff-label { color: var(--brand-light); }
.diff-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.diff-list li {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-soft);
  padding-left: 24px;
  position: relative;
  letter-spacing: -0.005em;
}
.diff-pharos .diff-list li { color: rgba(255,255,255,0.85); }
.diff-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-mute);
}
.diff-pharos .diff-list li::before { color: var(--brand-light); content: '+'; font-weight: 600; }

/* ===== PHAROS ENGINE, Scapes module ===== */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 48px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.scape {
  padding: 40px 24px;
  border-right: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.scape:last-child { border-right: none; }
.scape-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.02em;
}
.scape-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.scape-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--brand-light);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ===== PROOF / CASE ===== */
.case-block {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.case-meta-line {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--brand);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 14px;
}
.case-meta-line::before {
  content: ''; width: 36px; height: 1px; background: var(--brand);
}
.case-narrative {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 36px;
}
.case-narrative em {
  color: var(--brand);
  font-style: normal;
  font-weight: 600;
}
.case-stats {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
}
.case-stat-bare { border-top: 1px solid var(--line); padding-top: 16px; }
.case-stat-bare .k {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-mute);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.case-stat-bare .v {
  font-family: var(--display);
  font-size: 38px; font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1;
}
.case-visual-wrap {
  aspect-ratio: 1 / 0.78;
  background: var(--bg-deep);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.case-visual-wrap svg { width: 100%; height: 100%; }

/* ===== COMMERCIAL MODEL, work rows ===== */
.work-rows { margin-top: 56px; border-top: 1px solid var(--line); }
.work-row {
  display: grid;
  grid-template-columns: 64px 1fr 1.6fr auto;
  gap: 40px;
  align-items: center;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding-left 0.3s ease;
}
.work-row:hover { padding-left: 12px; }
.work-row .w-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.work-row .w-title-block {
  display: flex; flex-direction: column; gap: 10px;
}
.work-row .w-title {
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.work-row .w-tagline {
  font-family: var(--display);
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.work-row .w-desc {
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 540px;
}
.work-row .w-cta {
  font-size: 14px;
  color: var(--brand);
  font-weight: 500;
  white-space: nowrap;
}
.work-row .w-cta::after {
  content: ' →';
  transition: margin-left 0.2s;
  display: inline-block;
}
.work-row:hover .w-cta::after { margin-left: 6px; }
.work-row:hover .w-title { color: var(--brand); }

/* ===== FINAL CTA ===== */
.final-cta {
  padding: 160px 0;
  background: var(--bg-deep);
  color: #fff;
  text-align: center;
}
.final-cta h2 {
  font-family: var(--display);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 28px;
  color: #fff;
}
.final-cta .sub {
  font-size: 19px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 48px;
}

/* ===== INLINE CTA ROW ===== */
.inline-cta {
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.inline-cta-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1000px) {
  .sp-hero-grid, .who-grid, .outputs-grid, .diff-grid, .case-block {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .questions-grid { grid-template-columns: repeat(2, 1fr); }
  .engine-grid { grid-template-columns: repeat(2, 1fr); }
  .scape { border-right: none; border-bottom: 1px solid var(--line-dark); }
  .work-row { grid-template-columns: 48px 1fr; gap: 16px; }
  .work-row .w-desc, .work-row .w-cta { grid-column: 1 / -1; padding-left: 64px; }
  .container { padding: 0 24px; }
  h1, .sp-hero h1 { font-size: 48px; }
  .editorial-head { font-size: 36px; }
  .case-narrative { font-size: 24px; }
  .final-cta h2 { font-size: 44px; }
}
