/* Shared styles for /customers hub and case study pages */

.kimss-customers-page .kimss-section {
  padding: 80px 5%;
}

.reveal-hidden {
  opacity: 0;
  transform: translateY(30px);
}
.reveal-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* --- Hub hero --- */
.cust-hero {
  padding: 56px 5% 48px;
  background:
    radial-gradient(circle at 18% 24%, rgba(127, 57, 235, 0.14), transparent 32%),
    linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}
.cust-hero-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.cust-hero h1 {
  font-family: var(--font-mono, "DM Mono", ui-monospace, monospace);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 18px 0;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.cust-hero .lead {
  font-size: 1.12rem;
  color: #64748b;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* --- Featured story card (hub) --- */
.cust-hub-section {
  background: #ffffff;
}
.cust-hub-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cust-hub-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b21b6;
  margin-bottom: 20px;
}
.cust-featured-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background:
    radial-gradient(circle at 100% 0%, rgba(127, 57, 235, 0.12), transparent 40%),
    linear-gradient(135deg, #0b1120 0%, #1e1b4b 55%, #302d82 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  padding: 40px 44px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}
.cust-featured-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 80px rgba(127, 57, 235, 0.22);
}
.cust-featured-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(127, 57, 235, 0.35), transparent 68%);
  pointer-events: none;
}
.cust-featured-top {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.cust-customer-name {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
}
.cust-featured-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cust-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: #e9d5ff;
}
.cust-featured-title {
  position: relative;
  font-family: var(--font-mono, "DM Mono", ui-monospace, monospace);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 14px 0;
  line-height: 1.2;
  max-width: 720px;
}
.cust-featured-outcome {
  position: relative;
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 680px;
  margin: 0 0 28px 0;
}
.cust-featured-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #e9d5ff;
  font-weight: 700;
  font-size: 0.95rem;
}
.cust-featured-cta svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
}
.cust-featured-card:hover .cust-featured-cta svg {
  transform: translateX(4px);
}

.cust-coming-soon {
  margin-top: 36px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.95rem;
}

.cust-hub-cta {
  text-align: center;
  padding: 48px 5% 64px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.cust-hub-cta h2 {
  font-size: 1.5rem;
  color: #0f172a;
  margin: 0 0 12px 0;
  font-weight: 800;
}
.cust-hub-cta p {
  color: #64748b;
  margin: 0 0 24px 0;
}
.cust-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.cust-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  background: #7F39EB;
  color: #fff;
  border: 0;
  box-shadow: 0 8px 24px rgba(127, 57, 235, 0.3);
  transition: background 0.2s, transform 0.2s;
}
.cust-btn-primary:hover {
  background: #6d2fd4;
  transform: translateY(-1px);
}
.cust-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  color: #302d82;
  border: 1px solid #cbd5e1;
  transition: border-color 0.2s, background 0.2s;
}
.cust-btn-outline:hover {
  border-color: #7F39EB;
  background: #faf5ff;
}

/* --- Detail page hero --- */
.cust-detail-hero {
  padding: 48px 5% 56px;
  background:
    radial-gradient(circle at 12% 20%, rgba(127, 57, 235, 0.16), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid #e2e8f0;
}
.cust-detail-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}
.cust-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(127, 57, 235, 0.08);
  color: #5b21b6;
  border: 1px solid rgba(127, 57, 235, 0.18);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cust-detail-hero h1 {
  font-family: var(--font-mono, "DM Mono", ui-monospace, monospace);
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.cust-detail-lede {
  font-size: 1.12rem;
  color: #475569;
  line-height: 1.7;
  margin: 0 0 28px 0;
  max-width: 720px;
}
.cust-customer-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6d28d9;
  margin-bottom: 12px;
}

/* --- Narrative sections --- */
.cust-narrative {
  max-width: 900px;
  margin: 0 auto;
}
.cust-narrative h2 {
  font-size: 1.75rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}
.cust-narrative p {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 18px 0;
}
.cust-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.cust-pillar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}
.cust-pillar-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 57, 235, 0.12);
  color: #5b21b6;
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.cust-pillar h3 {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 800;
  color: #302d82;
}
.cust-pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
}

/* --- Architecture diagram --- */
.cust-arch-bg {
  background: #0b1120;
  color: #e2e8f0;
  border-top: 1px solid #1e293b;
  border-bottom: 1px solid #1e293b;
}
.cust-arch-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cust-arch-header {
  text-align: center;
  margin-bottom: 40px;
}
.cust-arch-header h2 {
  font-family: var(--font-mono, "DM Mono", ui-monospace, monospace);
  font-size: 2rem;
  color: #f8fafc;
  margin: 0 0 10px 0;
}
.cust-arch-header p {
  color: #94a3b8;
  margin: 0;
  font-size: 1rem;
}
.cust-arch-diagram {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.cust-arch-lane {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cust-arch-lane-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
  margin-bottom: 4px;
}
.cust-arch-node {
  flex: 1;
  min-height: 72px;
  padding: 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.2);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  transition: border-color 0.35s, background 0.35s, color 0.35s, box-shadow 0.35s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cust-arch-node.arch-step--active {
  background: rgba(127, 57, 235, 0.22);
  border-color: rgba(167, 139, 250, 0.5);
  color: #f8fafc;
  box-shadow: 0 0 24px rgba(127, 57, 235, 0.35);
}
.cust-arch-caption {
  text-align: center;
  margin-top: 28px;
  font-size: 0.95rem;
  color: #94a3b8;
  min-height: 1.5em;
}
.cust-arch-caption strong {
  color: #e9d5ff;
}

/* --- Worker grid --- */
.cust-workers-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.cust-workers-header {
  text-align: center;
  margin-bottom: 40px;
}
.cust-workers-header h2 {
  font-size: 2rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 10px 0;
}
.cust-workers-header p {
  color: #64748b;
  margin: 0;
}
.cust-worker-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.cust-worker-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.cust-worker-card:hover {
  border-color: rgba(127, 57, 235, 0.35);
  box-shadow: 0 12px 32px rgba(127, 57, 235, 0.1);
}
.cust-worker-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127, 57, 235, 0.1);
  color: #5b21b6;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.cust-worker-card h3 {
  margin: 0 0 6px 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}
.cust-worker-card p {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

/* --- Proof grid (shared with homepage story) --- */
.cust-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
}
.cust-proof {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.04);
}
.cust-proof strong {
  display: block;
  color: #302d82;
  font-size: 0.95rem;
  margin-bottom: 5px;
}
.cust-proof span {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Results strip --- */
.cust-results-bg {
  background: linear-gradient(135deg, #302d82 0%, #4a4790 100%);
  color: #f8fafc;
}
.cust-results-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.cust-results-inner h2 {
  font-family: var(--font-mono, "DM Mono", ui-monospace, monospace);
  font-size: 1.85rem;
  margin: 0 0 32px 0;
}
.cust-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.cust-metric {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cust-metric-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: #e9d5ff;
  margin-bottom: 6px;
}
.cust-metric-label {
  font-size: 0.88rem;
  color: rgba(248, 250, 252, 0.85);
  line-height: 1.45;
}

/* --- Quote placeholder --- */
.cust-quote-bg {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.cust-quote-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.cust-quote-block {
  font-family: var(--font-mono, "DM Mono", ui-monospace, monospace);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-style: italic;
  color: #334155;
  line-height: 1.5;
  margin: 0 0 20px 0;
}
.cust-quote-attribution {
  font-size: 0.9rem;
  color: #94a3b8;
}
.cust-quote-placeholder {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin-top: 8px;
}

/* --- Stack pills --- */
.cust-stack-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
.cust-stack-inner h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #64748b;
  margin: 0 0 20px 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cust-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.cust-stack-pill {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #475569;
}

/* --- Footer: use kimss-footer--compact + kimss-cyber.css (no per-page footer column rules) --- */

@media (max-width: 960px) {
  .cust-arch-diagram {
    grid-template-columns: 1fr;
  }
  .cust-arch-lane {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .cust-arch-lane-label {
    width: 100%;
  }
  .cust-arch-node {
    flex: 1 1 calc(50% - 8px);
    min-height: 56px;
  }
  .cust-pillars {
    grid-template-columns: 1fr;
  }
  .cust-worker-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cust-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cust-worker-grid,
  .cust-proof-grid,
  .cust-metrics {
    grid-template-columns: 1fr;
  }
  .cust-featured-card {
    padding: 28px 24px;
  }
}
