/* ScalePeople Advisory — Portfolio stylesheet
   Shares design tokens with the main site (deploy/index.html) for a consistent look. */

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

:root {
  --bg:          #08081C;
  --surface:     #0F0F2A;
  --card:        #1A1A3E;
  --divider:     #2A2A50;
  --purple:      #8B5CF6;
  --purple-lt:   #A78BFA;
  --teal:        #06B6D4;
  --teal-lt:     #22D3EE;
  --white:       #FFFFFF;
  --gray:        #BEBFD2;
  --green:       #10B981;
  --amber:       #F59E0B;
  --max-w:       1160px;
  --radius:      12px;
  --t:           0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, rgba(139,92,246,0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

section { padding: 72px 0; position: relative; z-index: 1; }

.glow-purple {
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.glow-teal {
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse, rgba(6,182,212,0.14) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

h1, h2, h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

em { font-style: normal; color: var(--purple); }
.teal { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--t);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--purple);
  color: var(--white);
  padding: 13px 26px;
  box-shadow: 0 0 24px rgba(139,92,246,0.35);
}
.btn-primary:hover {
  background: var(--purple-lt);
  box-shadow: 0 0 40px rgba(139,92,246,0.5);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  padding: 13px 22px;
  border: 1px solid var(--divider);
}
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }

/* Nav */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(8,8,28,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; width: auto; }
.nav-logo-text { font-size: 15px; font-weight: 700; color: var(--white); letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--purple); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--gray); text-decoration: none; transition: color var(--t); }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--purple); color: var(--white) !important; padding: 9px 20px; border-radius: 7px; font-weight: 700 !important; }
.nav-cta:hover { background: var(--purple-lt); color: var(--white) !important; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--teal); }
.back-link:hover { color: var(--teal-lt); }

/* Hero */
.hero { padding: 132px 0 40px; overflow: hidden; }
.hero .glow-purple { top: -100px; right: -160px; }
.hero .glow-teal { bottom: -80px; left: -120px; }
.hero-h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 20px; }
.hero-sub { font-size: 17px; color: var(--gray); line-height: 1.75; max-width: 640px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--divider); margin-bottom: 40px; }
.stat-num { font-size: 26px; font-weight: 800; color: var(--purple); line-height: 1; letter-spacing: -0.03em; }
.stat-label { font-size: 12px; color: var(--gray); margin-top: 4px; line-height: 1.4; }

.framed-image {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--divider);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
  background: #fff;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 8px; }

/* Section headers */
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); margin: 0 0 10px; }
.section-head p { color: var(--gray); font-size: 16px; margin: 0; }

/* Case grid */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.case-card {
  background: var(--card);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
}
.case-card:hover { border-color: rgba(139,92,246,0.5); transform: translateY(-3px); }
.case-media { aspect-ratio: 16/9; overflow: hidden; background: #fff; padding: 8px; }
.case-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.case-body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.case-tag { font-size: 11px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.case-body h3 { font-size: 18px; margin: 0 0 10px; letter-spacing: -0.01em; }
.case-body p { font-size: 14px; color: var(--gray); margin: 0 0 16px; line-height: 1.65; flex: 1; }
.case-link { font-size: 13px; font-weight: 700; color: var(--teal); display: inline-flex; align-items: center; gap: 6px; }
.case-card:hover .case-link { color: var(--teal-lt); }

/* Stat strip */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-strip .stat-card {
  background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius);
  padding: 24px; text-align: center;
}
.stat-strip .stat-card b { display: block; font-size: 26px; color: var(--purple); letter-spacing: -0.02em; }
.stat-strip .stat-card span { font-size: 13px; color: var(--gray); }

/* Detail page content */
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.block { margin-bottom: 32px; }
.block h2 { font-size: 19px; margin: 0 0 12px; letter-spacing: -0.01em; }
.block p { color: var(--gray); font-size: 15px; margin: 0; line-height: 1.75; }
.block ul { margin: 0; padding-left: 20px; color: var(--gray); font-size: 14.5px; }
.block ul li { margin-bottom: 8px; }

.meta-card { background: var(--card); border: 1px solid var(--divider); border-radius: var(--radius); padding: 22px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--divider); font-size: 13.5px; }
.meta-row:last-child { border-bottom: none; }
.meta-row span:first-child { color: var(--gray); }
.meta-row span:last-child { font-weight: 600; text-align: right; }

.impact-list { list-style: none; margin: 0; padding: 0; }
.impact-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--white); margin-bottom: 12px; }
.impact-list li:before { content: "✓"; color: var(--teal); font-weight: 700; flex-shrink: 0; }

.subcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.subcard { background: var(--surface); border: 1px solid var(--divider); border-radius: 10px; padding: 18px 20px; }
.subcard h4 { margin: 0 0 4px; font-size: 14.5px; color: var(--white); }
.subcard .tech { font-size: 11.5px; color: var(--teal); font-weight: 700; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.subcard ul { margin: 0; padding-left: 16px; font-size: 13.5px; color: var(--gray); }
.subcard ul li { margin-bottom: 5px; }

.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 12px; font-weight: 600; color: var(--purple-lt); background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.3); border-radius: 999px; padding: 6px 14px; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, rgba(139,92,246,0.18) 0%, rgba(6,182,212,0.14) 100%);
  border: 1px solid var(--divider);
  border-radius: 18px; padding: 40px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.cta-band h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.01em; }
.cta-band p { margin: 0; color: var(--gray); font-size: 14.5px; max-width: 460px; }

/* Footer */
footer.site-footer { background: var(--bg); border-top: 1px solid var(--divider); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-logo img { height: 28px; width: auto; }
.footer-logo-text { font-size: 14px; font-weight: 700; color: var(--white); }
.footer-logo-text span { color: var(--purple); }
.footer-copy { font-size: 13px; color: var(--gray); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a { font-size: 13px; color: var(--gray); text-decoration: none; transition: color var(--t); }
.footer-links a:hover { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .subcard-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
