@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap");

:root {
  --cs-primary: #0e38b1;
  --cs-purple: #6e18ef;
  --cs-primary-dark: #113adc;
  --cs-accent: #a1e934;
  --cs-text: #0d0e10;
  --cs-muted: #676879;
  --cs-bg: #f8f9fa;
  --cs-white: #ffffff;
  --cs-dark: #1e182d;
  --cs-border: #e2e8f0;
  --cs-gradient: linear-gradient(135deg, #020617 0%, #0e38b1 55%, #6e18ef 100%);
  --cs-shadow: 0 18px 48px rgba(14, 56, 177, 0.12);
  --cs-radius: 16px;
  --cs-font: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--cs-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cs-muted);
  background: var(--cs-white);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cs-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cs-purple);
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--cs-text);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(1200px, calc(100% - 32px));
  margin-inline: auto;
}

/* Header */
.cs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cs-border);
}

.cs-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.cs-logo img {
  height: 42px;
  width: auto;
}

.cs-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cs-nav a {
  color: var(--cs-text);
  font-weight: 500;
  font-size: 15px;
}

.cs-nav a:hover,
.cs-nav a.active {
  color: var(--cs-primary);
}

.cs-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--cs-primary);
  color: var(--cs-white) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cs-header-cta:hover {
  background: var(--cs-purple);
  transform: translateY(-2px);
  box-shadow: var(--cs-shadow);
  color: var(--cs-white) !important;
}

.cs-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--cs-text);
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.cs-hero {
  position: relative;
  overflow: hidden;
  background: #070b18;
  color: var(--cs-white);
  padding: 72px 0 0;
}

.cs-hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 12% 18%, rgba(14, 56, 177, 0.42), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 8%, rgba(110, 24, 239, 0.32), transparent 68%);
}

.cs-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 140, 220, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 140, 220, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 78% 42%, black 12%, transparent 68%);
}

.cs-hero .container {
  position: relative;
  z-index: 1;
}

.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}

.cs-hero-copy h1 {
  color: var(--cs-white);
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 18ch;
  margin-bottom: 20px;
}

.cs-hero-visual {
  margin: 0;
}

.cs-hero-stage {
  position: relative;
  margin: 0;
}

.cs-hero-stage img {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.cs-hero h1 {
  color: var(--cs-white);
}

.cs-hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 38rem;
  margin-bottom: 32px;
}

.cs-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.cs-stat-pill {
  display: flex;
  flex-direction: column;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  min-width: 120px;
}

.cs-stat-pill strong {
  font-size: 1.5rem;
  color: var(--cs-white);
  line-height: 1.2;
}

.cs-stat-pill span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.cs-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cs-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--cs-white);
  color: var(--cs-primary) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cs-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  color: var(--cs-purple) !important;
}

.cs-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--cs-white) !important;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cs-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--cs-white);
  color: var(--cs-white) !important;
}

/* Tags & chips */
.cs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.cs-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--cs-bg);
  border: 1px solid var(--cs-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--cs-text);
}

.cs-tag i {
  color: var(--cs-primary);
}

.cs-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.cs-filter {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--cs-border);
  background: var(--cs-white);
  color: var(--cs-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cs-filter:hover,
.cs-filter.active {
  background: var(--cs-primary);
  border-color: var(--cs-primary);
  color: var(--cs-white);
}

/* Sections */
.cs-section {
  padding: 80px 0;
}

.cs-section-alt {
  background: var(--cs-bg);
}

.cs-section-title {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.cs-section-title h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
}

.cs-section-title p {
  font-size: 17px;
}

/* Cards grid */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.cs-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cs-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cs-shadow);
}

.cs-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--cs-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  /* padding: 24px; */
}

.cs-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cs-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.cs-card-industry {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-primary);
}

.cs-card-metric {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(14, 56, 177, 0.08);
  color: var(--cs-primary);
  border-radius: 999px;
}

.cs-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cs-card h3 a {
  color: var(--cs-text);
}

.cs-card h3 a:hover {
  color: var(--cs-primary);
}

.cs-card p {
  font-size: 15px;
  flex: 1;
}

.cs-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--cs-primary);
}

.cs-card-link i {
  transition: transform 0.2s ease;
}

.cs-card:hover .cs-card-link i {
  transform: translateX(4px);
}

/* Detail page */
.cs-detail-hero {
  padding: 56px 0 64px;
}

.cs-detail-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  max-width: 900px;
}

.cs-mini-nav {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--cs-white);
  border-bottom: 1px solid var(--cs-border);
  padding: 12px 0;
}

.cs-mini-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-mini-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--cs-muted);
}

.cs-mini-nav a:hover {
  color: var(--cs-primary);
}

.cs-glance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.cs-glance-item {
  padding: 24px;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  text-align: center;
}

.cs-glance-item i {
  font-size: 28px;
  color: var(--cs-primary);
  margin-bottom: 12px;
  display: block;
}

.cs-glance-item strong {
  display: block;
  font-size: 14px;
  color: var(--cs-text);
  margin-bottom: 6px;
}

.cs-glance-item span {
  font-size: 14px;
  color: var(--cs-muted);
}

.cs-challenge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.cs-challenge-list li {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cs-challenge-list li:hover {
  border-color: var(--cs-primary);
  box-shadow: 0 8px 24px rgba(14, 56, 177, 0.08);
}

.cs-challenge-list i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 56, 177, 0.1), rgba(110, 24, 239, 0.1));
  color: var(--cs-primary);
  border-radius: 12px;
  font-size: 20px;
}

.cs-challenge-list h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.cs-challenge-list p {
  font-size: 15px;
  margin: 0;
}

/* Flow diagram */
.cs-flow-wrap {
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  padding: 32px 24px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.cs-flow-wrap h3 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.cs-flow-svg {
  /* min-width: 600px; */
  margin: 0 auto;
}

.cs-flow-caption {
  text-align: center;
  font-size: 14px;
  color: var(--cs-muted);
  margin-top: 16px;
}

/* Steps */
.cs-steps {
  display: grid;
  gap: 16px;
}

.cs-step {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  align-items: flex-start;
}

.cs-step-num {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cs-gradient);
  color: var(--cs-white);
  font-weight: 800;
  font-size: 18px;
  border-radius: 12px;
}

.cs-step h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.cs-step p {
  margin: 0;
  font-size: 15px;
}

/* Before / After */
.cs-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cs-compare-col {
  padding: 28px;
  border-radius: var(--cs-radius);
  border: 1px solid var(--cs-border);
}

.cs-compare-col.before {
  background: #fef2f2;
  border-color: #fecaca;
}

.cs-compare-col.after {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.cs-compare-col h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.cs-compare-col.before h3 {
  color: #b91c1c;
}

.cs-compare-col.after h3 {
  color: #15803d;
}

.cs-compare-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-compare-col li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 15px;
}

.cs-compare-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.cs-compare-col.before li::before {
  background: #ef4444;
}

.cs-compare-col.after li::before {
  background: #22c55e;
}

/* Results metrics */
.cs-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.cs-result-card {
  padding: 28px 20px;
  text-align: center;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-result-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cs-shadow);
}

.cs-result-card i {
  font-size: 32px;
  color: var(--cs-purple);
  margin-bottom: 12px;
  display: block;
}

.cs-result-card .cs-count {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cs-primary);
  line-height: 1.2;
  display: block;
}

.cs-result-card .cs-count-suffix {
  font-size: 1rem;
  font-weight: 600;
}

.cs-result-card p {
  font-size: 14px;
  margin: 8px 0 0;
}

/* CTA band */
.cs-cta-band {
  background: var(--cs-gradient);
  color: var(--cs-white);
  padding: 64px 0;
  text-align: center;
}

.cs-cta-band h2 {
  color: var(--cs-white);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 12px;
}

.cs-cta-band p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 17px;
}

/* Footer */
.cs-footer {
  background: var(--cs-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 56px 0 24px;
}

.cs-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.cs-footer h4 {
  color: var(--cs-white);
  font-size: 16px;
  margin-bottom: 16px;
}

.cs-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-footer li {
  margin-bottom: 10px;
}

.cs-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.cs-footer a:hover {
  color: var(--cs-white);
}

.cs-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes flowDash {
  to {
    stroke-dashoffset: -20;
  }
}

.flow-arrow {
  stroke-dasharray: 8 4;
  animation: flowDash 1.5s linear infinite;
}

/* ============================================
   PORTFOLIO DETAIL PAGE (single case study)
   ============================================ */
body.cs-portfolio-page {
  background: var(--cs-white);
}

.pf-hero {
  background: var(--cs-white);
  padding: 48px 0 0;
}

.pf-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 48px;
}

.pf-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-primary);
  margin-bottom: 16px;
}

.pf-label-center {
  display: block;
  text-align: center;
}

.pf-hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--cs-text);
}

.pf-hero-content > p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 520px;
}

.pf-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--cs-primary);
  color: var(--cs-white) !important;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pf-btn-primary:hover {
  background: var(--cs-purple);
  transform: translateY(-2px);
  box-shadow: var(--cs-shadow);
  color: var(--cs-white) !important;
}

.pf-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--cs-text) !important;
  border: 2px solid var(--cs-border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pf-btn-secondary:hover {
  border-color: var(--cs-primary);
  color: var(--cs-primary) !important;
}

.pf-hero-visual {
  position: relative;
  min-height: 340px;
}

.pf-mockup-stack {
  position: relative;
  width: 100%;
  height: 100%;
}

.pf-mockup {
  background: linear-gradient(145deg, #f0f4ff 0%, #e8eeff 100%);
  border: 1px solid var(--cs-border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 24px 64px rgba(14, 56, 177, 0.15);
  overflow: hidden;
}

.pf-mockup-main {
  position: relative;
  z-index: 2;
}

.pf-mockup-main img {
  border-radius: 12px;
  width: 100%;
}

.pf-mockup-float {
  position: absolute;
  width: 42%;
  z-index: 3;
  box-shadow: 0 16px 40px rgba(14, 56, 177, 0.2);
}

.pf-mockup-float-1 {
  top: -12px;
  right: -8px;
}

.pf-mockup-float-2 {
  bottom: -16px;
  left: -12px;
  width: 36%;
}

.pf-meta-bar {
  border-top: 1px solid var(--cs-border);
  border-bottom: 1px solid var(--cs-border);
  background: var(--cs-bg);
}

.pf-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px 0;
}

.pf-meta-grid > div span {
  display: block;
  font-size: 13px;
  color: var(--cs-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.pf-meta-grid > div strong {
  font-size: 16px;
  color: var(--cs-text);
  font-weight: 700;
}

.pf-hero--cinematic {
  position: relative;
  overflow: hidden;
  background: #070b18;
  padding: 72px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.pf-hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 50% at 12% 18%, rgba(14, 56, 177, 0.42), transparent 70%),
    radial-gradient(ellipse 45% 40% at 92% 8%, rgba(110, 24, 239, 0.32), transparent 68%);
}

.pf-hero--cinematic::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(110, 140, 220, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 140, 220, 0.09) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 78% 42%, black 12%, transparent 68%);
}

.pf-hero--cinematic .pf-hero-grid {
  position: relative;
  z-index: 1;
  padding-bottom: 56px;
  gap: 56px;
  align-items: center;
}

.pf-hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.pf-hero-kicker-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.pf-hero-kicker-tool {
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  letter-spacing: 0.1em;
  color: var(--cs-white);
}

.pf-hero--cinematic .pf-hero-content h1 {
  color: var(--cs-white);
  font-size: clamp(2.35rem, 5vw, 3.55rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.pf-hero--cinematic .pf-hero-content > p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.7;
  max-width: 38rem;
  margin-bottom: 32px;
}

.pf-hero--cinematic .pf-hero-visual {
  min-height: 0;
}

.pf-hero-stage {
  position: relative;
  margin: 0;
}

.pf-hero-stage > img {
  display: block;
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

.pf-hero-float {
  position: absolute;
  left: -22px;
  bottom: -18px;
  width: 118px;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #070b18;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  animation: pfHeroFloat 5.5s ease-in-out infinite;
}

.pf-hero-float img {
  display: block;
  width: 100%;
}

.pf-hero-chip {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(7, 11, 24, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--cs-white);
  font-size: 13px;
  font-weight: 600;
}

.pf-hero-chip i {
  color: #8eb4ff;
}

@keyframes pfHeroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-hero-float {
    animation: none;
  }
}

.pf-hero-dossier {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.cs-hero .pf-meta-grid > div span,
.pf-hero--cinematic .pf-meta-grid > div span {
  color: rgba(255, 255, 255, 0.45);
}

.cs-hero .pf-meta-grid > div strong,
.pf-hero--cinematic .pf-meta-grid > div strong {
  color: var(--cs-white);
}

.pf-section {
  padding: 80px 0;
}

.pf-section-alt {
  background: var(--cs-bg);
}

.pf-title-center {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 12px;
}

.pf-subtitle-center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 17px;
}

.pf-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.pf-dark-card {
  background: linear-gradient(160deg, #020617 0%, #0e38b1 50%, #6e18ef 100%);
  border-radius: 24px;
  padding: 32px;
  color: var(--cs-white);
  box-shadow: 0 32px 64px rgba(14, 56, 177, 0.25);
}

.pf-dark-card img {
  border-radius: 12px;
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
}

.pf-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pf-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pf-check-list li:last-child {
  border-bottom: none;
}

.pf-check-list i {
  color: var(--cs-accent);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pf-overview-text h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 20px;
}

.pf-overview-text p {
  font-size: 16px;
  line-height: 1.75;
}

.pf-overview--panel {
  background: var(--cs-white);
}

.pf-overview-panel {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 560px;
}

.pf-overview-panel-media {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #0b1a4a;
}

.pf-overview-panel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 560px;
}

.pf-overview-panel-card {
  position: relative;
  z-index: 1;
  align-self: center;
  margin-left: -88px;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: 24px;
  padding: 40px 40px 36px;
  box-shadow: 0 28px 64px rgba(14, 56, 177, 0.14);
}

.pf-overview-panel-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.pf-overview-panel-card p {
  font-size: 16px;
  line-height: 1.7;
}

.pf-overview-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--cs-border);
}

.pf-overview-facts dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cs-primary);
  margin-bottom: 6px;
}

.pf-overview-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--cs-text);
  line-height: 1.4;
}

.pf-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pf-feature-card {
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cs-shadow);
}

.pf-feature-card-thumb {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, rgba(14, 56, 177, 0.08), rgba(110, 24, 239, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.pf-feature-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-feature-card-thumb i {
  font-size: 40px;
  color: var(--cs-primary);
}

.pf-feature-card-body {
  padding: 20px;
}

.pf-feature-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pf-feature-card-body p {
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

.pf-workflow-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.pf-workflow-pair .pf-workflow-panel {
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .pf-workflow-pair {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.pf-workflow-panel {
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  border-radius: 20px;
  padding: 40px 32px;
  margin-bottom: 32px;
}

.pf-workflow-panel h3 {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.pf-workflow-panel p {
  text-align: center;
  font-size: 15px;
  margin: 0 auto 24px;
  max-width: 42ch;
}

.pf-stack-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.pf-stack-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100px;
}

.pf-stack-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--cs-border);
  background: var(--cs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--cs-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pf-stack-icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.pf-stack-item:hover .pf-stack-icon {
  transform: scale(1.08);
  border-color: var(--cs-primary);
  box-shadow: 0 8px 20px rgba(14, 56, 177, 0.12);
}

.pf-stack-item:hover .pf-stack-icon:not(:has(img)) {
  background: var(--cs-primary);
  color: var(--cs-white);
}

.pf-stack-item span {
  font-size: 12px;
  font-weight: 600;
  color: var(--cs-text);
  text-align: center;
}

.pf-impact {
  background: linear-gradient(160deg, #020617 0%, #1e182d 40%, #0e38b1 100%);
  padding: 80px 0;
  color: #ffffff;
}

.pf-impact .pf-label {
  color: #ffffff;
}

.pf-impact h2 {
  color: #ffffff;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
}

.pf-impact > .container > p {
  text-align: center;
  color: #ffffff;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 17px;
}

.pf-impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.pf-impact-stat strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.pf-impact-stat span {
  font-size: 14px;
  color: #ffffff;
}

.pf-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pf-related-card {
  border-radius: var(--cs-radius);
  overflow: hidden;
  background: var(--cs-white);
  border: 1px solid var(--cs-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pf-related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cs-shadow);
}

.pf-related-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--cs-gradient);
}

.pf-related-card-body {
  padding: 24px;
}

.pf-related-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-primary);
  margin-bottom: 10px;
}

.pf-related-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pf-related-card-body h3 a {
  color: var(--cs-text);
}

.pf-related-card-body h3 a:hover {
  color: var(--cs-primary);
}

.pf-related-card-body p {
  font-size: 14px;
  margin-bottom: 16px;
}

.pf-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--cs-primary);
}

.pf-cta-simple {
  padding: 64px 0;
  text-align: center;
  background: var(--cs-white);
}

.pf-cta-simple h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.pf-cta-simple p {
  max-width: 560px;
  margin: 0 auto 24px;
  font-size: 17px;
}

.pf-cta-band {
  position: relative;
  overflow: hidden;
  background: var(--cs-gradient);
  padding: 80px 0;
  color: var(--cs-white);
}

.pf-cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: -160px;
  background: radial-gradient(circle, rgba(110, 24, 239, 0.35), transparent 68%);
  pointer-events: none;
}

.pf-cta-band-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
}

.pf-cta-band .pf-label {
  color: rgba(255, 255, 255, 0.7);
}

.pf-cta-band h2 {
  color: var(--cs-white);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.pf-cta-band p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  margin-bottom: 28px;
  max-width: 52ch;
}

.pf-cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pf-cta-band-points {
  list-style: none;
  margin: 0;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
}

.pf-cta-band-points li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pf-cta-band-points li:first-child {
  padding-top: 0;
}

.pf-cta-band-points li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.pf-cta-band-points strong {
  color: var(--cs-white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pf-cta-band-points span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

.pf-footer-full {
  background: #0c1022;
  padding: 72px 0 0;
  color: rgba(255, 255, 255, 0.68);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-footer-full h4 {
  color: var(--cs-white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pf-footer-full a {
  color: rgba(255, 255, 255, 0.68);
}

.pf-footer-full a:hover {
  color: var(--cs-white);
}

.pf-footer-full .cs-footer-grid {
  margin-bottom: 0;
}

.pf-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 48px 32px;
  padding-bottom: 56px;
}

.pf-footer-logo img {
  height: 40px;
  width: auto;
  margin-bottom: 18px;
}

.pf-footer-brand p {
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 24px;
}

.pf-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-footer-col li {
  margin-bottom: 12px;
}

.pf-footer-col a {
  font-size: 15px;
  display: inline-block;
}

.pf-footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 15px;
}

.pf-footer-contact i {
  width: 18px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 3px;
  flex-shrink: 0;
}

.pf-footer-newsletter {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.pf-footer-newsletter input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--cs-white);
  border-radius: 8px;
  font-family: var(--cs-font);
}

.pf-footer-newsletter button {
  padding: 12px 20px;
  background: var(--cs-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.pf-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.pf-footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--cs-white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pf-footer-social a:hover {
  background: var(--cs-white);
  border-color: var(--cs-white);
  color: var(--cs-primary) !important;
}

.pf-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.pf-footer-bar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.pf-footer-legal {
  display: flex;
  gap: 24px;
}

.pf-footer-legal a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.pf-footer-legal a:hover {
  color: var(--cs-white);
}

.pf-footer-full .cs-footer-bottom {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  padding: 22px 0 28px;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.pf-footer-full .cs-footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
  .pf-hero-grid,
  .pf-overview-grid,
  .pf-overview-panel {
    grid-template-columns: 1fr;
  }

  .pf-overview-panel {
    min-height: 0;
  }

  .pf-overview-panel-media img {
    min-height: 280px;
  }

  .pf-overview-panel-card {
    margin: -48px 16px 0;
  }

  .pf-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pf-related-grid {
    grid-template-columns: 1fr;
  }

  .pf-cta-band-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pf-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pf-footer-brand {
    grid-column: 1 / -1;
  }

  .pf-meta-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pf-hero-visual {
    min-height: auto;
  }

  .pf-mockup-float,
  .pf-hero-float {
    display: none;
  }

  .pf-hero--cinematic {
    padding-top: 48px;
  }

  .pf-hero--cinematic .pf-hero-grid {
    padding-bottom: 40px;
    gap: 32px;
  }
}

@media (max-width: 576px) {
  .pf-feature-grid,
  .pf-impact-grid,
  .pf-overview-facts {
    grid-template-columns: 1fr;
  }

  .pf-overview-panel-card {
    margin: -32px 0 0;
    padding: 28px 22px;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .cs-hero {
    padding-top: 48px;
  }

  .cs-hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 40px;
    gap: 32px;
  }

  .cs-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-compare {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cs-menu-toggle {
    display: block;
  }

  .cs-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cs-white);
    border-bottom: 1px solid var(--cs-border);
    padding: 16px 24px;
    gap: 0;
  }

  .cs-nav.open {
    display: flex;
  }

  .cs-nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--cs-border);
  }

  .cs-header-cta {
    display: none;
  }

  .cs-header-inner {
    position: relative;
  }

  .cs-grid {
    grid-template-columns: 1fr;
  }

  .cs-footer-grid {
    grid-template-columns: 1fr;
  }

  .pf-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pf-footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-section {
    padding: 56px 0;
  }
}
