/* ==========================================================================
   Aberdeen Advisors — Analytics & Dashboarding showcase
   Brand palette extracted from Aberdeen Slide Template (July 2025)
   ========================================================================== */

:root {
  --navy: #09375F;
  --navy-deep: #003862;
  --teal: #44B0B1;
  --teal-bright: #00B3B2;
  --teal-tint: #D9F0F0;
  --blue: #0072AD;
  --ink: #231F20;
  --good: #00A676;
  --bad: #D85049;
  --cyan: #03CBFF;
  --gold: #F7CE01;

  --paper: #FFFFFF;
  --mist: #F4F8FA;
  --line: #DDE7ED;

  /* Power BI report chrome */
  --pbi-canvas: #F3F2F1;
  --pbi-card: #FFFFFF;
  --pbi-border: #E1E1E1;
  --pbi-text: #201F1E;
  --pbi-muted: #605E5C;
  --pbi-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --font: "Poppins", "Segoe UI", -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(9, 55, 95, 0.10);
  --shadow-lg: 0 18px 60px rgba(9, 55, 95, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo-corp { height: 36px; width: auto; display: block; }
.nav-logo-product { height: 44px; width: auto; display: block; }
.nav-logo-sep {
  width: 1px; height: 30px; background: var(--line); display: block;
}
@media (max-width: 560px) {
  .nav-logo { gap: 10px; }
  .nav-logo-corp { height: 28px; }
  .nav-logo-product { height: 36px; }
  .nav-logo-sep { height: 24px; }
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--navy); font-size: 0.92rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal-bright); }
.nav-links .nav-cta {
  background: var(--navy); color: #fff; padding: 9px 18px; border-radius: 999px;
  transition: background .2s; white-space: nowrap;
}
.nav-links .nav-cta:hover { background: var(--blue); color: #fff; }
.nav-links .nav-portal {
  background: var(--blue); font-weight: 600;
}
.nav-links .nav-portal:hover { background: var(--navy); }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-burger span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ============ HERO ============ */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(68, 176, 177, 0.35), transparent 60%),
    radial-gradient(800px 420px at -10% 110%, rgba(0, 114, 173, 0.30), transparent 60%),
    linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 55%, #0B4A7E 100%);
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 88px 24px 96px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.hero-kicker {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-tint);
  background: rgba(68, 176, 177, 0.18); border: 1px solid rgba(68, 176, 177, 0.45);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; margin-bottom: 18px; }
.hero h1 .accent { color: var(--teal); }
.hero-sub { color: rgba(255, 255, 255, 0.82); font-size: 1.06rem; max-width: 560px; margin-bottom: 30px; font-weight: 300; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 42px; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal-bright); color: #fff; box-shadow: 0 8px 24px rgba(0, 179, 178, 0.35); }
.btn-primary:hover { background: var(--teal); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-tint); }
.btn-teal { background: var(--teal-bright); color: #fff; font-size: 1.05rem; padding: 15px 34px; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--teal); }
.stat-label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); max-width: 150px; }

/* hero floating KPI cards */
.hero-visual { position: relative; min-height: 380px; }
.hero-grid-bg {
  position: absolute; inset: -20px;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  border-radius: 20px;
  mask-image: radial-gradient(closest-side, #000, transparent);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
}
.float-card {
  position: absolute; background: #fff; border-radius: 12px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); z-index: 2; min-width: 190px;
  animation: floaty 7s ease-in-out infinite;
}
.fc-1 { top: 6%; left: 4%; animation-delay: 0s; }
.fc-2 { top: 42%; right: 2%; animation-delay: 1.6s; }
.fc-3 { bottom: 4%; left: 14%; animation-delay: 3.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.fc-title { font-family: var(--pbi-font); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; color: var(--pbi-muted); margin-bottom: 4px; }
.fc-value { font-family: var(--pbi-font); font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.fc-value.good { color: var(--good); }
.fc-delta { font-family: var(--pbi-font); font-size: 0.72rem; color: var(--good); margin-top: 2px; }
.fc-spark { width: 120px; height: 36px; margin-top: 6px; }
.fc-rag { display: flex; gap: 5px; margin: 8px 0 4px; }
.rag { width: 16px; height: 16px; border-radius: 4px; }
.rag-g { background: var(--good); } .rag-y { background: var(--gold); } .rag-r { background: var(--bad); }

/* ============ SECTIONS ============ */
.section { padding: 92px 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-inner.wide { max-width: 1320px; }
.section-kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal-bright); margin-bottom: 12px;
}
.section-kicker.light { color: var(--teal); }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 14px; }
.section h2.light { color: #fff; }
.section-sub { color: #4A5A68; max-width: 720px; margin-bottom: 46px; font-weight: 300; font-size: 1.02rem; }

/* ============ CAPABILITIES ============ */
.capabilities { background: var(--mist); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .25s, border-color .2s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.cap-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--teal-tint); margin-bottom: 16px;
}
.cap-icon svg { width: 24px; height: 24px; fill: var(--navy); }
.cap-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cap-card p { font-size: 0.9rem; color: #4A5A68; font-weight: 300; }

/* ============ SHOWCASE ============ */
.showcase { background: linear-gradient(180deg, #fff 0%, var(--mist) 100%); }
.tabbar { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.tab {
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 12px 22px; cursor: pointer; text-align: left; font-family: var(--font);
  transition: border-color .2s, box-shadow .2s;
}
.tab:hover { border-color: var(--teal); }
.tab.active { border-color: var(--teal-bright); box-shadow: 0 6px 18px rgba(0, 179, 178, 0.18); background: #fff; }
.tab-title { display: block; font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.tab-sub { display: block; font-size: 0.76rem; color: #6B7B88; }
.tab.active .tab-title { color: var(--teal-bright); }

.dash-frame {
  background: var(--navy); border-radius: 18px; padding: 10px; box-shadow: var(--shadow-lg);
}
.dash-frame.hidden { display: none; }
.dash-chrome {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 14px 12px;
}
.dash-chrome-left { display: flex; gap: 6px; }
.dash-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.28); }
.dash-chrome-title { color: #fff; font-size: 0.85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-chrome-right { color: rgba(255,255,255,0.55); font-size: 0.72rem; white-space: nowrap; }
.dash-caption { color: rgba(255,255,255,0.6); font-size: 0.74rem; padding: 12px 14px 8px; font-weight: 300; }

/* --- Power BI canvas --- */
.pbi {
  background: var(--pbi-canvas); border-radius: 10px; padding: 14px;
  font-family: var(--pbi-font); color: var(--pbi-text);
}
.pbi-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.pbi-title { font-size: 1.02rem; font-weight: 700; color: var(--navy); }
.pbi-title-sep { color: var(--teal-bright); margin: 0 4px; }
.pbi-slicers { display: flex; gap: 8px; flex-wrap: wrap; }
.slicer {
  background: #fff; border: 1px solid var(--pbi-border); border-radius: 4px;
  font-size: 0.7rem; color: var(--pbi-muted); padding: 4px 10px;
}
.slicer b { color: var(--pbi-text); font-weight: 600; }

.pbi-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.kpi {
  background: var(--pbi-card); border: 1px solid var(--pbi-border); border-radius: 6px;
  padding: 12px 14px; position: relative; overflow: hidden;
}
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--teal-bright); }
.kpi.k-good::before { background: var(--good); }
.kpi.k-warn::before { background: var(--gold); }
.kpi.k-bad::before { background: var(--bad); }
.kpi-label { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pbi-muted); }
.kpi-value { font-size: 1.55rem; font-weight: 700; color: var(--pbi-text); line-height: 1.25; }
.kpi-delta { font-size: 0.7rem; color: var(--pbi-muted); }
.kpi-delta.up { color: var(--good); }
.kpi-delta.down { color: var(--bad); }

.pbi-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; }
.pbi-card {
  background: var(--pbi-card); border: 1px solid var(--pbi-border); border-radius: 6px;
  padding: 12px 14px; min-width: 0;
}
.span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; } .span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
.pbi-card-title { font-size: 0.78rem; font-weight: 600; color: var(--pbi-text); margin-bottom: 10px; }
.pbi-card-sub { display: block; font-size: 0.66rem; font-weight: 400; color: var(--pbi-muted); margin-top: 1px; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; }

/* legend + axis text inside SVGs use these */
.pbi text { font-family: var(--pbi-font); }

/* health table */
.health-table { width: 100%; border-collapse: collapse; font-size: 0.74rem; }
.health-table th {
  text-align: left; color: var(--pbi-muted); font-weight: 600; font-size: 0.64rem;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 6px 8px; border-bottom: 1px solid var(--pbi-border);
}
.health-table td { padding: 7px 8px; border-bottom: 1px solid #F0F0F0; color: var(--pbi-text); }
.health-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.64rem; font-weight: 600; }
.badge.on-track { background: rgba(0, 166, 118, 0.12); color: #00795A; }
.badge.at-risk { background: rgba(247, 206, 1, 0.18); color: #8A7400; }
.badge.off-track { background: rgba(216, 80, 73, 0.12); color: #B03A34; }
.mini-bar { height: 6px; border-radius: 3px; background: #EDEDED; overflow: hidden; min-width: 60px; }
.mini-bar i { display: block; height: 100%; border-radius: 3px; background: var(--teal-bright); }

/* AI panel */
.pbi-ai { background: linear-gradient(135deg, #FBFDFE 0%, var(--teal-tint) 160%); }
.ai-chip {
  display: inline-block; background: var(--navy); color: #fff; font-size: 0.6rem;
  font-weight: 700; letter-spacing: 0.06em; border-radius: 4px; padding: 2px 7px; margin-right: 6px;
}
.ai-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 22px; }
.ai-list li {
  font-size: 0.76rem; color: #33404C; padding-left: 18px; position: relative; line-height: 1.5;
}
.ai-list li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--teal-bright); font-size: 0.6rem; }

/* ============ PLATFORM ============ */
.platform { background: var(--navy); }
.platform .section-kicker { color: var(--teal); }
.platform h2 { color: #fff; }
.platform .section-sub { color: rgba(255,255,255,0.72); }
.arch { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1fr 250px; gap: 48px; align-items: start; }
.arch-layer {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.arch-layer:hover { border-color: var(--teal); background: rgba(68, 176, 177, 0.08); }
.arch-layer.open { border-color: var(--teal-bright); background: rgba(68, 176, 177, 0.10); }
.arch-head { display: flex; align-items: center; gap: 18px; padding: 20px 24px; }
.arch-num { font-size: 0.9rem; font-weight: 700; color: var(--teal); letter-spacing: 0.05em; }
.arch-head h3 { color: #fff; font-size: 1.08rem; }
.arch-tag { font-size: 0.76rem; color: rgba(255,255,255,0.55); font-weight: 300; }
.arch-toggle { margin-left: auto; color: var(--teal); font-size: 1.4rem; font-weight: 300; transition: transform .25s; }
.arch-layer.open .arch-toggle { transform: rotate(45deg); }
.arch-body {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px;
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease;
}
.arch-layer.open .arch-body { max-height: 300px; padding: 0 24px 22px; }
.pill {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88); border-radius: 999px; font-size: 0.76rem;
  padding: 6px 14px; font-weight: 300;
}
.pill.hl { background: rgba(0, 179, 178, 0.22); border-color: var(--teal-bright); color: #fff; font-weight: 500; }
.arch-connector {
  width: 2px; height: 26px; margin: 0 auto;
  background: linear-gradient(180deg, var(--teal) 0%, rgba(68,176,177,0.2) 100%);
  position: relative;
}
.arch-connector::after {
  content: ""; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
  border: 5px solid transparent; border-top-color: var(--teal);
}
.arch-icon { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; opacity: 0.85; }
.arch-icon svg { width: 100%; height: 100%; display: block; }
.arch-diagram { position: sticky; top: 96px; }
.arch-d-label { font-size: 0.68rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.arch-d-block {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px; padding: 11px 14px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color .2s, background .2s;
}
.arch-d-block:hover { border-color: rgba(68,176,177,0.6); background: rgba(68,176,177,0.07); }
.arch-d-block.active { border-color: var(--teal-bright); background: rgba(68,176,177,0.12); }
.arch-d-icon { width: 28px; height: 28px; color: var(--teal); flex-shrink: 0; opacity: 0.85; }
.arch-d-icon svg { width: 100%; height: 100%; display: block; }
.arch-d-num { font-size: 0.62rem; font-weight: 700; color: var(--teal); letter-spacing: 0.06em; display: block; }
.arch-d-name { font-size: 0.78rem; color: #fff; font-weight: 500; display: block; line-height: 1.3; }
.arch-d-items { font-size: 0.65rem; color: rgba(255,255,255,0.48); display: block; margin-top: 2px; }
.arch-d-conn { width: 2px; height: 12px; margin: 0 auto; background: rgba(68,176,177,0.35); }
.arch-d-hint { font-size: 0.66rem; color: rgba(255,255,255,0.35); text-align: center; margin-top: 14px; letter-spacing: 0.03em; }

/* ============ DOMAINS ============ */
.dom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dom-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: #fff; transition: transform .2s, box-shadow .25s, border-color .2s;
  display: flex; flex-direction: column;
}
.dom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal); }
.dom-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.dom-card p { font-size: 0.88rem; color: #4A5A68; font-weight: 300; flex: 1; }
.dom-metric {
  margin-top: 16px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--teal-bright);
  border-top: 1px solid var(--line); padding-top: 12px;
}

/* ============ ENGAGE ============ */
.engage { background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy) 70%); }
.eng-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 40px 0 56px; }
.eng-step {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); padding: 24px;
}
.eng-step span {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--teal-bright); color: #fff; font-weight: 700; font-size: 0.9rem; margin-bottom: 14px;
}
.eng-step h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.eng-step p { color: rgba(255,255,255,0.68); font-size: 0.84rem; font-weight: 300; }
.eng-cta { text-align: center; }
.eng-cta p { color: rgba(255,255,255,0.85); font-size: 1.2rem; margin-bottom: 20px; font-weight: 300; }

/* ============ FOOTER ============ */
.footer { background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,0.1); }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer p { color: rgba(255,255,255,0.55); font-size: 0.78rem; font-weight: 300; }

/* ============ REVEAL ANIMATION ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; padding: 64px 24px; }
  .hero-visual { display: none; }
  .cap-grid, .dom-grid { grid-template-columns: repeat(2, 1fr); }
  .eng-steps { grid-template-columns: repeat(2, 1fr); }
  .span-3, .span-4, .span-5, .span-7 { grid-column: span 6; }
  .arch { grid-template-columns: 1fr; }
  .arch-diagram { display: none; }
}
/* Architecture layer screenshots */
.arch-shots {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-top: 18px; padding-top: 16px; border-top: 1px dashed rgba(9, 55, 95, 0.14);
  width: 100%;
}
.arch-shots-3 { grid-template-columns: repeat(3, 1fr); }
.arch-shot {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 8px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(9, 55, 95, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.arch-shot:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(9, 55, 95, 0.14); }
.arch-shot img { display: block; width: 100%; height: auto; object-fit: cover; max-height: 340px; }
.arch-shots-3 .arch-shot img { max-height: 180px; }

/* Stylized mockups (used in place of raw screenshots) */
.mock { background: #fff; font-family: "Segoe UI", -apple-system, sans-serif; color: #201F1E; }
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; background: #F3F2F1; border-bottom: 1px solid #E1E1E1;
}
.mock-bar span { width: 8px; height: 8px; border-radius: 50%; background: #C7C7C7; }
.mock-bar em {
  margin-left: 10px; font-style: normal; font-size: 0.66rem;
  color: #605E5C; font-weight: 500; letter-spacing: 0.02em;
}
.mock-bar-dark { background: #252526; border-bottom-color: #1E1E1E; }
.mock-bar-dark em { color: #B9B9B9; }

/* Layer 1 — SharePoint */
.mock-sp-body { display: grid; grid-template-columns: 90px 1fr; }
.mock-sp-side { background: #FAFAFA; border-right: 1px solid #EDEDED; padding: 10px 8px; }
.mock-sp-brand { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; }
.mock-sp-avatar {
  width: 22px; height: 22px; border-radius: 4px;
  background: linear-gradient(135deg, #09375F, #0072AD);
  color: #fff; font-size: 0.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.mock-sp-brandtxt { display: flex; flex-direction: column; font-size: 0.58rem; line-height: 1.15; }
.mock-sp-brandtxt b { color: #201F1E; font-weight: 600; }
.mock-sp-brandtxt span { color: #605E5C; }
.mock-sp-nav { display: flex; flex-direction: column; gap: 2px; }
.mock-sp-nav div {
  font-size: 0.6rem; padding: 3px 6px; border-radius: 3px; color: #3A3A3A;
}
.mock-sp-nav div.active { background: #E1E7ED; color: #09375F; font-weight: 600; }
.mock-sp-main { padding: 12px; }
.mock-sp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-sp-tile {
  background: #fff; border: 1px solid #EDEDED; border-radius: 5px;
  overflow: hidden; display: flex; flex-direction: column;
}
.mock-sp-tile b { font-size: 0.63rem; padding: 5px 6px 0; color: #201F1E; }
.mock-sp-tile span { font-size: 0.55rem; padding: 0 6px 6px; color: #605E5C; }
.mock-sp-img { height: 40px; background: linear-gradient(160deg, #09375F 0%, #0072AD 60%, #44B0B1 100%); position: relative; }
.mock-sp-img::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 40% 100%, rgba(255,255,255,0.35), transparent 60%);
}
.mock-sp-img-b { background: linear-gradient(160deg, #0F4B7A, #37718F, #A8BFC7); }
.mock-sp-img-c { background: linear-gradient(160deg, #09375F, #44B0B1); }
.mock-sp-tools { display: flex; gap: 6px; margin-top: 10px; }
.mock-sp-tool {
  font-size: 0.58rem; padding: 3px 8px; border: 1px solid #EDEDED;
  border-radius: 3px; color: #3A3A3A; background: #FAFAFA;
}

/* Layer 2 — Notebook (dark markdown) */
.mock-nb { background: #1E1E1E; color: #E5E5E5; }
.mock-nb-body { padding: 12px 14px; font-size: 0.65rem; line-height: 1.5; }
.mock-nb-body h4 { color: #fff; font-size: 0.78rem; margin: 0 0 6px; font-weight: 600; }
.mock-nb-body p { color: #C9C9C9; margin: 0 0 8px; font-size: 0.62rem; }
.mock-nb-body p b { color: #fff; }
.mock-nb-sec { display: flex; align-items: center; gap: 5px; margin: 6px 0 3px; padding-top: 6px; border-top: 1px solid #333; }
.mock-nb-sec b { color: #fff; font-size: 0.66rem; font-weight: 600; }
.mock-nb-emo { font-size: 0.68rem; }
.mock-nb-body ul { margin: 2px 0 4px 16px; padding: 0; }
.mock-nb-body li { color: #B9B9B9; font-size: 0.58rem; margin: 1px 0; }

/* Layer 2 — Notebook (dark code) */
.mock-code { background: #1E1E1E; }
.mock-code-body {
  margin: 0; padding: 12px 14px; color: #D4D4D4; font-size: 0.62rem;
  font-family: "SF Mono", Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  line-height: 1.55; white-space: pre-wrap; overflow: hidden;
}
.mock-code .c { color: #6A9955; }   /* comments */
.mock-code .k { color: #C586C0; }   /* keywords */
.mock-code .fn { color: #DCDCAA; }  /* functions */
.mock-code .s { color: #CE9178; }   /* strings */
.mock-code .n { color: #B5CEA8; }   /* numbers */

/* Layer 2 — Pipelines / Layer 3 — Model / other SVG mockups */
.mock-pipe svg, .mock-model svg { display: block; width: 100%; height: auto; background: #F7F9FB; }

/* Layer 5 — GitHub repo */
.mock-repo-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #EDEDED; }
.mock-repo-logo {
  width: 28px; height: 28px; border-radius: 5px;
  background: linear-gradient(135deg, #09375F, #0072AD); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.mock-repo-name { flex: 1; display: flex; align-items: center; gap: 8px; }
.mock-repo-name b { font-size: 0.78rem; color: #0072AD; }
.mock-repo-tag {
  font-size: 0.56rem; padding: 1px 8px; border: 1px solid #D0D7DE;
  border-radius: 999px; color: #656D76; background: #fff;
}
.mock-repo-meta { display: flex; gap: 8px; font-size: 0.62rem; color: #605E5C; }
.mock-repo-files { padding: 4px 0; }
.mock-repo-files > div {
  display: grid; grid-template-columns: 20px 1fr auto;
  align-items: center; padding: 5px 14px; font-size: 0.66rem;
  border-bottom: 1px solid #F1F3F5;
}
.mock-repo-files > div:last-child { border-bottom: 0; }
.mock-repo-ic { font-size: 0.7rem; }
.mock-repo-files b { font-weight: 500; color: #0072AD; }
.mock-repo-files em { font-style: normal; color: #605E5C; font-size: 0.6rem; }
.mock-repo-readme { padding: 10px 14px 14px; background: #FAFBFC; border-top: 1px solid #EDEDED; }
.mock-repo-readme h5 { margin: 0 0 4px; font-size: 0.82rem; font-weight: 700; color: #201F1E; }
.mock-repo-readme p { margin: 0; font-size: 0.65rem; color: #3A3A3A; line-height: 1.5; }

/* Remove max-height cap for mocks (they size themselves) */
.arch-shot > .mock { display: block; }
.arch-shots-3 .arch-shot .mock-nb-body { padding: 10px 12px; }

.arch-shot figcaption {
  padding: 8px 12px; font-size: 0.72rem; color: #6B7B88;
  border-top: 1px solid var(--line); background: #FAFCFD;
}
@media (max-width: 900px) {
  .arch-shots-3 { grid-template-columns: 1fr; }
  .arch-shots-3 .arch-shot img { max-height: 260px; }
}

/* AI narrative card */
.ai-agent-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, var(--teal-bright), var(--blue));
  color: #fff; font-size: 0.7rem; font-weight: 600; padding: 4px 12px;
  border-radius: 999px; text-decoration: none;
}
.ai-agent-chip:hover { opacity: 0.9; }
.ai-narrative { padding: 4px 2px 2px; }
.ai-narr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.ai-narr-init { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ai-narr-score { font-size: 0.78rem; color: var(--pbi-muted); }
.ai-narr-score b { color: var(--good); font-size: 1rem; }
.ai-narr-body { font-size: 0.82rem; color: var(--pbi-text); line-height: 1.55; margin: 0 0 10px; }
.ai-narr-cite { font-size: 0.7rem; color: var(--pbi-muted); font-style: italic; border-top: 1px dashed var(--pbi-border); padding-top: 8px; }
.ai-narr-cite b { color: var(--navy); font-style: normal; }

/* Video showcase */
.video-showcase { background: var(--navy); }
.video-showcase h2, .video-showcase .section-sub { color: #fff; }
.video-showcase .section-kicker { color: var(--teal); }
.video-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,.5); margin-top: 40px; }
.video-wrap video { width: 100%; display: block; }

@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 16px; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .cap-grid, .dom-grid, .eng-steps { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-7, .span-12 { grid-column: span 12; }
  .ai-list { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .dash-chrome-right { display: none; }
  .hero-stats { gap: 24px; }
}
