/* ===================================================================
   CP Staffing — Premium Enterprise Theme
   Direction: Palantir / Anduril / Scale AI / Apple Enterprise / McKinsey
   =================================================================== */

:root {
  --black: #04060c;
  --footer: #020409;
  --navy: #070d1c;
  --navy-2: #0a1325;
  --navy-3: #0e1a31;

  --blue: #3b6fd6;
  --blue-bright: #6aa8ff;
  --steel: #8fb2da;        /* refined accent (replaces neon cyan) */
  --purple: #7c6cf0;

  --gold: #d8b466;
  --gold-bright: #eccf86;
  --gold-deep: #b78f3f;

  --text: #f3f6fc;
  --muted: #a9b4c9;
  --dim: #6f7c95;

  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.06);

  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

/* Prevent sticky header from covering section headings on scroll/anchor jumps */
.hero,
.solutions,
.impact,
.assessment {
  scroll-margin-top: 130px;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: Inter, system-ui, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===================== HEADER ===================== */
.site-header {
  height: 96px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  gap: 34px;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  width: 260px;          /* tightly cropped artwork (816x217, ~3.76:1) */
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
  font-size: 14px;
  letter-spacing: 0.01em;
}
.desktop-nav a {
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.desktop-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -4px;
  height: 1.5px; width: 0;
  background: linear-gradient(90deg, var(--blue-bright), var(--gold));
  transition: width 0.28s var(--ease);
}
.desktop-nav a:hover { color: #fff; }
.desktop-nav a:hover::after { width: 100%; }

.top-cta {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1c1503;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 26px rgba(216, 180, 102, 0.22);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.top-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(216, 180, 102, 0.34); }

.menu-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 46px; height: 46px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ===================== MOBILE MENU ===================== */
.mobile-menu {
  display: none;
  background: #060b18;
  padding: 18px 24px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 96px;
  z-index: 40;
}
.mobile-menu a {
  display: block;
  padding: 14px 4px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu.open { display: block; }

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.btn.gold {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-deep));
  color: #1c1503;
  box-shadow: 0 10px 30px rgba(216, 180, 102, 0.26);
}
.btn.gold:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(216, 180, 102, 0.4); }
.btn.outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}
.btn.outline:hover { border-color: var(--blue-bright); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(58, 111, 214, 0.28); }

/* ===================== HERO ===================== */
.hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: 110px 7% 120px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(900px 620px at 82% 28%, rgba(58, 111, 214, 0.22), transparent 60%),
    radial-gradient(700px 500px at 12% 78%, rgba(124, 108, 240, 0.12), transparent 60%),
    linear-gradient(160deg, #04060c 0%, #07112440 45%, #050a16 100%);
}
/* subtle technology grid + dot texture */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 100% at 70% 40%, #000 30%, transparent 80%);
          mask-image: radial-gradient(120% 100% at 70% 40%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 2; }

.hero-content { max-width: 720px; }
.hero h1 {
  font-size: clamp(48px, 5.6vw, 86px);
  line-height: 1.02;
  margin: 0 0 26px;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.hero h1 span {
  background: linear-gradient(96deg, #bcd6ff, #8fb2da 45%, #a99cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  font-size: clamp(18px, 2vw, 23px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 540px;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* enterprise trust strip */
.hero-content .hero-actions + * { margin-top: 0; }

/* ===================== HERO AI NETWORK VISUAL ===================== */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}
.ai-network {
  position: relative;
  width: min(560px, 92%);
  aspect-ratio: 1;
  animation: floaty 9s ease-in-out infinite;
}
.ai-network::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58, 111, 214, 0.28), transparent 68%);
  filter: blur(20px);
}
.ai-network-svg { position: relative; width: 100%; height: 100%; display: block; }

.net-orbits circle { animation: spin 60s linear infinite; transform-origin: 300px 300px; }
.net-orbits circle:last-child { animation: spinRev 44s linear infinite; }

.core { animation: corePulse 5s ease-in-out infinite; transform-origin: 300px 300px; }

.net-nodes .n { animation: nodePulse 4s ease-in-out infinite; }
.net-nodes .n:nth-child(3) { animation-delay: 0.3s; }
.net-nodes .n:nth-child(5) { animation-delay: 0.7s; }
.net-nodes .n:nth-child(7) { animation-delay: 1.1s; }
.net-nodes .n:nth-child(9) { animation-delay: 1.5s; }
.net-nodes .n:nth-child(11) { animation-delay: 1.9s; }
.net-nodes .n:nth-child(13) { animation-delay: 2.3s; }
.net-nodes .accent { fill: var(--gold-bright); }

.net-flow line { animation: dataFlow 3.4s linear infinite; }
.net-flow line:nth-child(2) { animation-delay: 0.9s; }
.net-flow line:nth-child(3) { animation-delay: 1.7s; }
.net-flow line:nth-child(4) { animation-delay: 2.4s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
@keyframes floaty { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }
@keyframes corePulse { 0%, 100% { opacity: 0.9; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes nodePulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes dataFlow { from { stroke-dashoffset: 226; } to { stroke-dashoffset: 0; } }

/* ===================== SECTION HEADINGS ===================== */
.eyebrow {
  color: var(--steel);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}
.solutions h2,
.impact h2,
.assessment h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 3.8vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 12px 0 36px;
}

/* ===================== SOLUTIONS (lighter navy) ===================== */
.solutions {
  padding: 100px 7%;
  text-align: center;
  background: linear-gradient(180deg, #0a1325 0%, #0c182e 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.solution-card {
  position: relative;
  text-align: left;
  min-height: 320px;
  padding: 38px 34px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.solution-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 50% -10%, var(--_glow, rgba(58, 111, 214, 0.22)), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.solution-card.blue { --_glow: rgba(58, 111, 214, 0.26); --_accent: var(--blue-bright); }
.solution-card.cyan { --_glow: rgba(143, 178, 218, 0.26); --_accent: var(--steel); }
.solution-card.purple { --_glow: rgba(124, 108, 240, 0.26); --_accent: var(--purple); }
.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--_accent);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
}
.solution-card:hover::before { opacity: 1; }
.solution-card > * { position: relative; }
.solution-card .icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.solution-card h3 { font-size: 26px; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.01em; }
.solution-card p { color: var(--muted); line-height: 1.65; margin: 0 0 20px; }
.solution-card a { color: var(--_accent, var(--steel)); font-weight: 700; font-size: 15px; }
.solution-card.purple a { color: var(--purple); }

/* ===================== IMPACT (AI infrastructure bg + animated lines) ===================== */
.impact {
  position: relative;
  display: grid;
  grid-template-columns: 0.9fr 1.7fr;
  gap: 64px;
  align-items: center;
  padding: 110px 7%;
  overflow: hidden;
  background:
    radial-gradient(800px 600px at 75% 30%, rgba(58, 111, 214, 0.18), transparent 60%),
    radial-gradient(700px 600px at 8% 80%, rgba(124, 108, 240, 0.12), transparent 60%),
    linear-gradient(150deg, #050a16, #0a1428 60%, #060b18);
}
.impact > * { position: relative; z-index: 2; }

/* ---- Layered AI infrastructure background ---- */
.impact-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
/* depth glows */
.impact-bg::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(420px 420px at 22% 30%, rgba(58, 111, 214, 0.20), transparent 65%),
    radial-gradient(520px 520px at 80% 65%, rgba(124, 108, 240, 0.16), transparent 65%);
  filter: blur(8px);
  animation: glowDrift 16s ease-in-out infinite alternate;
}
@keyframes glowDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(3%, 2%, 0) scale(1.06); }
}

/* flowing technology wave */
.impact-wave {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 200%;
  height: 90%;
}
.impact-wave .wave use { stroke: url(#waveStroke); }
.impact-wave .wave { will-change: transform; }
.w1 { stroke-width: 2; animation: waveFlow 18s linear infinite; }
.w2 { stroke-width: 1.5; opacity: 0.55; animation: waveFlow 26s linear infinite; }
.w3 { stroke-width: 1.5; opacity: 0.32; animation: waveFlowRev 34s linear infinite; }
@keyframes waveFlow { from { transform: translateX(0); } to { transform: translateX(-360px); } }
@keyframes waveFlowRev { from { transform: translateX(-360px); } to { transform: translateX(0); } }

/* network node mesh */
.impact-net {
  position: absolute;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 60%);
  height: auto;
  opacity: 0.7;
}
.impact-net .net-pts circle { animation: nodePulse 4.5s ease-in-out infinite; }
.impact-net .net-pts circle:nth-child(2n) { animation-delay: 1.2s; }
.impact-net .net-pts circle:nth-child(3n) { animation-delay: 2.1s; }
.impact-net .net-pts .g { fill: var(--gold-bright); }

/* drifting particles */
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #bcd6ff;
  box-shadow: 0 0 8px rgba(106, 168, 255, 0.8);
  opacity: 0;
  animation: rise linear infinite;
}
.p1 { left: 12%; animation-duration: 14s; animation-delay: 0s; }
.p2 { left: 28%; animation-duration: 18s; animation-delay: 3s; }
.p3 { left: 41%; animation-duration: 12s; animation-delay: 6s; width: 2px; height: 2px; }
.p4 { left: 57%; animation-duration: 20s; animation-delay: 1.5s; }
.p5 { left: 70%; animation-duration: 16s; animation-delay: 4.5s; width: 4px; height: 4px; }
.p6 { left: 83%; animation-duration: 22s; animation-delay: 8s; }
.p7 { left: 92%; animation-duration: 15s; animation-delay: 2s; width: 2px; height: 2px; }
@keyframes rise {
  0%   { transform: translateY(110%) scale(0.6); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.7; }
  100% { transform: translateY(-20%) scale(1); opacity: 0; }
}
.impact h2 span { color: var(--gold); }
.impact-copy p { color: var(--muted); line-height: 1.65; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: stretch;
}
.metrics div {
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 24px;
}
.metrics strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(120deg, #bcd6ff, var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metrics span { display: block; font-weight: 700; margin: 12px 0 6px; font-size: 15px; }
.metrics p { color: var(--dim); font-size: 13.5px; line-height: 1.45; }

/* ===================== ASSESSMENT (glassmorphism) ===================== */
.assessment {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 56px;
  align-items: center;
  padding: 100px 7%;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(700px 500px at 85% 20%, rgba(124, 108, 240, 0.1), transparent 60%),
    linear-gradient(180deg, #060b16, #04070e);
}
.assessment h2 span,
.gold-text { color: var(--gold); }
.assessment-copy p { color: var(--muted); line-height: 1.65; }

.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.lead-form input,
.lead-form select {
  background: rgba(4, 7, 14, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  padding: 16px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.lead-form input::placeholder { color: var(--dim); }
.lead-form input:focus,
.lead-form select:focus {
  outline: none;
  border-color: var(--blue-bright);
  background: rgba(4, 7, 14, 0.85);
  box-shadow: 0 0 0 3px rgba(58, 111, 214, 0.2);
}
.lead-form select { appearance: none; cursor: pointer; }
.lead-form select option { background: var(--navy-2); color: #fff; }
.lead-form select,
.lead-form button,
.privacy-note { grid-column: span 2; }
.lead-form button { width: 100%; margin-top: 4px; }
.privacy-note { color: var(--dim); font-size: 13px; text-align: center; margin: 4px 0 0; }

/* ===================== FOOTER (almost black) ===================== */
.site-footer {
  padding: 64px 7% 48px;
  display: grid;
  grid-template-columns: 1.7fr repeat(4, 1fr);
  gap: 40px;
  background: var(--footer);
  border-top: 1px solid var(--line-soft);
}
.footer-brand img { width: 210px; height: auto; margin-bottom: 18px; }
.site-footer p,
.site-footer a { color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer-brand p { max-width: 34ch; color: var(--dim); }
.site-footer h4 {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.14em;
  margin: 0 0 14px;
}
.site-footer a {
  display: block;
  margin: 10px 0;
  color: var(--dim);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.site-footer a:hover { color: var(--blue-bright); padding-left: 4px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .impact, .assessment { grid-template-columns: 1fr; gap: 40px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .desktop-nav, .top-cta { display: none; }
  .menu-btn { display: flex; margin-left: auto; }
  .site-header { padding: 0 22px; height: 82px; justify-content: space-between; }
  .logo img { width: 180px; }
  .mobile-menu { top: 82px; }

  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px 70px;
    min-height: 0;
    text-align: left;
  }
  .hero-content { order: 1; max-width: 100%; }
  .hero-visual { order: 2; min-height: 280px; margin-top: 32px; margin-bottom: 0; }
  .ai-network { width: min(420px, 86%); }

  .card-grid { grid-template-columns: 1fr; }
  .solutions { padding: 70px 22px; }
}

@media (max-width: 640px) {
  .hero,
  .solutions,
  .impact,
  .assessment {
    scroll-margin-top: 100px;
  }

  .logo img { width: 180px; }
  .site-header { height: 78px; }
  .mobile-menu { top: 78px; }
  .hero h1 { font-size: clamp(40px, 11vw, 56px); }
  .hero-actions { gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .metrics { grid-template-columns: 1fr; }
  .metrics div { border-left: none; border-top: 1px solid var(--line); padding: 18px 0 0; }
  .impact, .assessment { padding: 70px 22px; }
  .lead-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .lead-form select,
  .lead-form button,
  .privacy-note { grid-column: span 1; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 28px; padding: 56px 22px 40px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 400px) {
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
}
