/* Spheresmith Design System — Case Study */

body.case-study-page.spheresmith {
  --accent: #66c6c6;
  --accent-light: #6da7f2;
  --ss-navy-brand: #1c367e;
  --ss-teal: #66c6c6;
  --ss-blue: #6da7f2;
  --hero-gradient: linear-gradient(135deg, #0b2550 0%, #1c367e 55%, #0b3d5c 100%);
  --case-back-bar-bg: linear-gradient(90deg, #0b2550 0%, #0b2550 50%, #1c367e 75%, #66c6c6 100%);
  --icon-bg: rgba(102, 198, 198, 0.18);
  --link: #66c6c6;
  scroll-behavior: smooth;
}

/* Reveal animations */
.ss-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.ss-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-reveal-stagger > *.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ss-reveal-stagger > *:nth-child(1) { transition-delay: 0.04s; }
.ss-reveal-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.ss-reveal-stagger > *:nth-child(3) { transition-delay: 0.12s; }
.ss-reveal-stagger > *:nth-child(4) { transition-delay: 0.16s; }
.ss-reveal-stagger > *:nth-child(5) { transition-delay: 0.2s; }
.ss-reveal-stagger > *:nth-child(6) { transition-delay: 0.24s; }
.ss-reveal-stagger > *:nth-child(7) { transition-delay: 0.28s; }
.ss-reveal-stagger > *:nth-child(8) { transition-delay: 0.32s; }

/* Hero */
.ss-hero {
  position: relative;
  min-height: 92vh;
  padding: 120px 48px 80px;
  background: var(--hero-gradient);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ss-hero-ambient {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
}

.ss-hero-ambient.a1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: rgba(102, 198, 198, 0.22);
  animation: ambient-float-a 16s ease-in-out infinite;
}

.ss-hero-ambient.a2 {
  width: 360px;
  height: 360px;
  bottom: -60px;
  left: -40px;
  background: rgba(109, 167, 242, 0.18);
  animation: ambient-float-b 18s ease-in-out infinite;
}

.ss-hero-ambient.a3 {
  width: 280px;
  height: 280px;
  top: 40%;
  left: 55%;
  background: rgba(28, 54, 126, 0.35);
  animation: ambient-float-c 14s ease-in-out infinite;
}

.ss-hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 48px));
}

.ss-hero-meta-wrap {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.ss-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(102, 198, 198, 0.35);
  background: rgba(102, 198, 198, 0.1);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}

.ss-hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.ss-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 5.8vw, 64px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.ss-hero-title-light {
  color: #ffffff;
}

.ss-hero-title-accent {
  color: var(--accent);
}

.ss-hero-tagline {
  margin: 0 0 48px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  max-width: 580px;
  margin-inline: auto;
}

/* Chapter labels — numbered sections */
.ss-chapter {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 clamp(24px, 5vw, 80px);
  margin-bottom: 24px;
}

.ss-chapter-num {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  opacity: 0.7;
}

.ss-chapter-label {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.ss-section.white .ss-chapter-num {
  color: var(--ss-navy-brand);
  opacity: 0.5;
}

.ss-section.white .ss-chapter-label {
  color: rgba(11, 37, 80, 0.4);
}

.ss-chapter::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(102, 198, 198, 0.35), transparent);
}

.ss-section.white .ss-chapter::after {
  background: linear-gradient(90deg, rgba(28, 54, 126, 0.15), transparent);
}

/* Tech stack timeline */
.ss-stack-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 4px;
  margin-bottom: 56px;
}

.ss-stack-step {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ss-stack-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
  min-width: 88px;
}

.ss-stack-node:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 198, 198, 0.45);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.ss-stack-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
}

.ss-stack-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.ss-stack-arrow {
  color: rgba(102, 198, 198, 0.6);
  font-size: 20px;
  padding: 0 4px;
  user-select: none;
}

/* Meta overview */
.ss-meta-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  width: 100%;
}

.ss-meta-item {
  padding: 28px 28px;
  text-align: left;
  background: rgba(11, 37, 80, 0.5);
  transition: background 0.3s ease;
}

.ss-meta-item:hover {
  background: rgba(28, 54, 126, 0.45);
}

.ss-meta-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.ss-meta-label svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.ss-meta-value {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.ss-meta-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ss-meta-list li {
  position: relative;
  padding-left: 14px;
}

.ss-meta-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.88);
}

/* Section shared */
.ss-section {
  padding: 96px 0;
}

.ss-section-head {
  width: 100%;
  max-width: none;
  padding: 0 clamp(24px, 5vw, 80px);
  margin-bottom: 24px;
  box-sizing: border-box;
}

.ss-section-head h2 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  max-width: none;
}

.ss-section-head h2 .lead {
  color: #ffffff;
}

.ss-section-head h2 .accent {
  color: var(--accent);
}

.ss-section-head p {
  margin: 0;
  font-size: clamp(16px, 1.85vw, 20px);
  line-height: 1.6;
  max-width: none;
  width: 100%;
  opacity: 0.85;
}

/* Alias kept for clarity — same as .ss-section-head */
.ss-section-head--full {
  width: 100%;
  max-width: none;
  padding: 0 clamp(24px, 5vw, 80px);
  margin-bottom: 56px;
  box-sizing: border-box;
}

.ss-section-head--full h2,
.ss-section-head--full p {
  max-width: none;
  width: 100%;
}

.ss-section.white {
  background: #ffffff;
  color: #333333;
}

.ss-section.white .ss-section-head h2 .lead {
  color: #0b2550;
}

.ss-section.white .ss-section-head p,
.ss-section.white .ss-section-head--full p {
  color: #515151;
  opacity: 1;
}

.ss-section.navy {
  background: var(--navy);
}

/* Problem — chaos vs clarity */
.ss-problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ss-problem-card {
  padding: 40px 36px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease;
}

.ss-problem-card:hover {
  transform: translateY(-4px);
}

.ss-problem-card.chaos {
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08), rgba(11, 37, 80, 0.6));
  border-color: rgba(239, 68, 68, 0.2);
}

.ss-problem-card.clarity {
  background: linear-gradient(145deg, rgba(102, 198, 198, 0.12), rgba(11, 37, 80, 0.6));
  border-color: rgba(102, 198, 198, 0.25);
}

.ss-problem-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.ss-problem-card.chaos .ss-problem-icon {
  background: rgba(239, 68, 68, 0.15);
}

.ss-problem-card.clarity .ss-problem-icon {
  background: rgba(102, 198, 198, 0.15);
}

.ss-problem-card h3 {
  margin: 0 0 20px;
  font-size: 24px;
  font-weight: 600;
}

.ss-problem-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ss-problem-list li {
  position: relative;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.ss-problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ss-problem-card.chaos .ss-problem-list li::before {
  background: #ef4444;
}

.ss-pain-points {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.ss-pain-card {
  padding: 24px 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.ss-pain-card:hover {
  border-color: rgba(102, 198, 198, 0.3);
  transform: translateX(4px);
}

.ss-pain-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
}

.ss-pain-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* Solution phases */
.ss-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.ss-phase-card {
  position: relative;
  padding: 32px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.4s ease;
}

.ss-phase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(102, 198, 198, 0.35);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.2);
}

.ss-phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ss-navy-brand), var(--ss-teal));
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}

.ss-phase-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.ss-phase-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.ss-checklist {
  margin: 40px 0 0;
  padding: 32px 36px;
  border-radius: 20px;
  background: rgba(102, 198, 198, 0.08);
  border: 1px solid rgba(102, 198, 198, 0.2);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
}

.ss-checklist li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.ss-checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b2550;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* Foundations */
.ss-foundation-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding: 6px;
  border-radius: 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.ss-fdn-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #64748b;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.ss-fdn-tab:hover {
  color: #0b2550;
  background: rgba(255, 255, 255, 0.7);
}

.ss-fdn-tab.is-active {
  color: #0b2550;
  background: var(--accent);
  box-shadow: 0 4px 16px rgba(102, 198, 198, 0.3);
}

.ss-fdn-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.ss-fdn-tab.is-active .ss-fdn-num {
  opacity: 1;
}

.ss-foundation-panels {
  position: relative;
}

.ss-foundation-panel {
  display: none;
  animation: fdn-fade-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-foundation-panel.is-active {
  display: block;
}

@keyframes fdn-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ss-foundation-block--panel {
  width: 100%;
}

.ss-foundations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.ss-foundation-block {
  padding: 36px;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ss-foundation-block:hover {
  box-shadow: 0 16px 40px rgba(11, 37, 80, 0.08);
  transform: translateY(-3px);
}

.ss-foundation-block h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #0b2550;
}

.ss-foundation-block > p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  color: #64748b;
}

.ss-placeholder {
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(11, 37, 80, 0.04), rgba(102, 198, 198, 0.08));
  border: 1.5px dashed rgba(102, 198, 198, 0.35);
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.5;
}

.ss-placeholder.tall {
  min-height: 240px;
}

.ss-placeholder img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

/* Color palette */
.ss-color-viz {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ss-color-scale-label {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.ss-color-scale-row {
  display: flex;
  gap: 3px;
}

.ss-color-scale-row .ss-color-chip {
  height: 28px;
  margin-bottom: 14px;
}

.ss-color-scale-row .ss-color-chip span {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  margin-top: 0;
}

.ss-color-chip {
  flex: 1;
  min-width: 0;
  height: 32px;
  border-radius: 5px;
  position: relative;
  cursor: default;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ss-color-chip span {
  display: block;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 600;
  text-align: center;
  color: #94a3b8;
  line-height: 1;
}

.ss-color-scale-row .ss-color-chip span {
  margin-top: 0;
}

.ss-color-chip.is-base {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #1c367e;
  z-index: 1;
}

.ss-color-chip:hover {
  transform: scaleY(1.08);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ss-color-chip.wide {
  width: 100%;
  height: 28px;
  flex: none;
}

.ss-color-chip.sm {
  flex: 1;
  min-width: 0;
  height: 24px;
  border-radius: 4px;
}

.ss-color-chip.sm span {
  display: none;
}

.ss-color-semantic-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ss-color-semantic {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ss-color-semantic > span {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

.ss-color-extras {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding-top: 4px;
  border-top: 1px solid #e2e8f0;
}

.ss-color-extra-group {
  min-width: 0;
}

.ss-color-mini-row {
  display: flex;
  gap: 4px;
}

.ss-color-labeled-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.ss-color-labeled {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.ss-color-labeled span {
  font-size: 9px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

.ss-color-labeled .ss-color-chip.sm {
  width: 18px;
  height: 18px;
  flex: none;
  min-width: 18px;
}

.ss-type-samples {
  padding: 20px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.ss-type-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.ss-type-row:last-child {
  border-bottom: none;
}

.ss-type-row p {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.ss-type-specs {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.ss-type-specs span {
  min-width: 44px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(28, 54, 126, 0.06);
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.ss-type-specs span:first-child {
  color: #1c367e;
  background: rgba(102, 198, 198, 0.12);
}

.ss-type-h1 { font-size: 32px; font-weight: 700; line-height: 1.2; color: #0b2550; }
.ss-type-h2 { font-size: 26px; font-weight: 600; line-height: 1.25; color: #0b2550; }
.ss-type-h3 { font-size: 22px; font-weight: 600; line-height: 1.3; color: #0b2550; }
.ss-type-h4 { font-size: 20px; font-weight: 600; line-height: 1.35; color: #0b2550; }
.ss-type-h5 { font-size: 18px; font-weight: 500; line-height: 1.4; color: #0b2550; }
.ss-type-h6 { font-size: 16px; font-weight: 500; line-height: 1.45; color: #334155; }
.ss-type-body { font-size: 16px; font-weight: 400; line-height: 1.5; color: #475569; }
.ss-type-body-sm { font-size: 14px; font-weight: 400; line-height: 1.5; color: #475569; }
.ss-type-caption { font-size: 12px; font-weight: 400; line-height: 1.4; color: #94a3b8; }
.ss-type-mono {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: #475569;
  font-family: "Courier New", Courier, monospace;
}

.ss-type-table {
  margin-top: 20px;
}

.ss-foundation-block--wide {
  grid-column: 1 / -1;
}

/* Radius visualization */
.ss-radius-viz {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-end;
  padding: 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.ss-radius-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 72px;
}

.ss-radius-sample {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1c367e, #66c6c6);
  border: 2px solid rgba(28, 54, 126, 0.15);
}

.ss-radius-sample.is-pill {
  width: 80px;
}

.ss-radius-item span {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

/* Icon visualization */
.ss-icon-viz {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  padding: 32px 24px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
}

.ss-icon-size {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #1c367e;
}

.ss-icon-size span {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

/* Token tier architecture */
.ss-subsection-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.ss-subsection-desc {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
}

.ss-token-tiers {
  margin-bottom: 56px;
}

.ss-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ss-tier-card {
  padding: 28px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ss-tier-card:hover {
  transform: translateY(-3px);
  border-color: rgba(102, 198, 198, 0.35);
}

.ss-tier-level {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(102, 198, 198, 0.15);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ss-tier-card h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
}

.ss-tier-card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.ss-tier-card code {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(102, 198, 198, 0.85);
  word-break: break-word;
}

/* Ripple impact band */
.ss-ripple-band {
  margin: 0 clamp(24px, 5vw, 80px) 56px;
  padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 56px);
  border-radius: 24px;
  text-align: center;
  background: linear-gradient(135deg, rgba(102, 198, 198, 0.12) 0%, rgba(28, 54, 126, 0.35) 100%);
  border: 1px solid rgba(102, 198, 198, 0.2);
}

.ss-ripple-desc {
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.65);
}

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

.ss-ripple-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ss-ripple-metric strong {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.ss-ripple-metric span {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.55);
}

.ss-spacing-viz {
  margin-top: 8px;
  padding: 32px clamp(16px, 3vw, 40px) 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.ss-spacing-viz::before {
  content: "";
  position: absolute;
  inset: 32px clamp(16px, 3vw, 40px) 68px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(100% / 11 - 1px),
    rgba(203, 213, 225, 0.35) calc(100% / 11 - 1px),
    rgba(203, 213, 225, 0.35) calc(100% / 11)
  );
  pointer-events: none;
  border-radius: 8px;
}

.ss-spacing-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(6px, 1.2vw, 16px);
  min-height: 180px;
  position: relative;
  z-index: 1;
}

.ss-spacing-chart::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 52px;
  height: 2px;
  background: linear-gradient(90deg, rgba(28, 54, 126, 0.15), rgba(102, 198, 198, 0.4), rgba(28, 54, 126, 0.15));
  border-radius: 1px;
}

.ss-spacing-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  padding-bottom: 52px;
  position: relative;
}

.ss-spacing-bar {
  width: 100%;
  max-width: clamp(28px, 5vw, 64px);
  height: var(--h);
  min-height: 4px;
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--ss-teal) 0%, var(--ss-navy-brand) 100%);
  box-shadow: 0 4px 12px rgba(28, 54, 126, 0.12);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
  transform-origin: bottom center;
}

.ss-spacing-col:hover .ss-spacing-bar {
  transform: translateY(-6px) scaleX(1.06);
  box-shadow: 0 12px 28px rgba(28, 54, 126, 0.22);
}

.ss-spacing-meta {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.ss-spacing-token {
  display: block;
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  color: #0b2550;
  line-height: 1.2;
}

.ss-spacing-px {
  display: block;
  font-size: clamp(10px, 1vw, 11px);
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.2;
}

/* Shadow elevation */
.ss-shadow-viz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 24px);
  padding: 40px clamp(16px, 3vw, 32px);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
}

.ss-shadow-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ss-shadow-sample {
  width: 100%;
  max-width: clamp(64px, 10vw, 120px);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-shadow-step[data-level="2xs"] .ss-shadow-sample { box-shadow: 0 1px 2px rgba(11, 37, 80, 0.06); }
.ss-shadow-step[data-level="xs"] .ss-shadow-sample { box-shadow: 0 2px 4px rgba(11, 37, 80, 0.08); }
.ss-shadow-step[data-level="sm"] .ss-shadow-sample { box-shadow: 0 4px 8px rgba(11, 37, 80, 0.1); }
.ss-shadow-step[data-level="md"] .ss-shadow-sample { box-shadow: 0 8px 16px rgba(11, 37, 80, 0.12); }
.ss-shadow-step[data-level="lg"] .ss-shadow-sample { box-shadow: 0 12px 24px rgba(11, 37, 80, 0.14); }
.ss-shadow-step[data-level="xl"] .ss-shadow-sample { box-shadow: 0 16px 32px rgba(11, 37, 80, 0.16); }
.ss-shadow-step[data-level="2xl"] .ss-shadow-sample { box-shadow: 0 24px 48px rgba(11, 37, 80, 0.2); }

.ss-shadow-step:hover .ss-shadow-sample {
  transform: translateY(-6px);
}

.ss-shadow-step span {
  font-size: clamp(11px, 1.1vw, 13px);
  font-weight: 600;
  color: #0b2550;
}

/* Token table */
.ss-token-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 15px;
}

.ss-token-table th,
.ss-token-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.ss-token-table th {
  font-weight: 600;
  color: #0b2550;
  background: #f1f5f9;
}

.ss-token-table td {
  color: #475569;
}

.ss-swatch-inline {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 8px;
}

/* Components */
.ss-comp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.ss-filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.ss-filter-btn:hover {
  border-color: rgba(102, 198, 198, 0.4);
  color: #fff;
}

.ss-filter-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b2550;
  font-weight: 600;
}

.ss-comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.ss-comp-card {
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease,
    opacity 0.3s ease;
}

.ss-comp-card.is-hidden {
  display: none;
}

.ss-comp-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(102, 198, 198, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.ss-comp-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.ss-comp-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.ss-comp-card:hover p {
  opacity: 1;
  max-height: 80px;
}

.ss-comp-count {
  text-align: center;
  margin-top: 48px;
  padding: 24px;
  border-radius: 16px;
  background: rgba(102, 198, 198, 0.1);
  border: 1px solid rgba(102, 198, 198, 0.25);
}

.ss-comp-count strong {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}

.ss-comp-count span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

.ss-comp-placeholder {
  margin-top: 48px;
}

/* Workflow */
.ss-workflow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.ss-workflow-step {
  flex: 1;
  min-width: 140px;
  max-width: 200px;
  padding: 28px 20px;
  text-align: center;
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.35s ease, border-color 0.3s ease;
}

.ss-workflow-step:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 198, 198, 0.35);
}

.ss-workflow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
  z-index: 2;
}

.ss-workflow-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: rgba(102, 198, 198, 0.15);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.ss-workflow-step h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
}

.ss-workflow-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.65);
}

.ss-code-block {
  margin: 32px 0;
  padding: 28px 32px;
  border-radius: 16px;
  background: #0a1628;
  border: 1px solid rgba(102, 198, 198, 0.2);
  overflow-x: auto;
}

.ss-code-block pre {
  margin: 0;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.ss-code-block .kw { color: #6da7f2; }
.ss-code-block .str { color: #66c6c6; }
.ss-code-block .prop { color: #fbbf24; }

.ss-gitlab-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.ss-stat-pill {
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.ss-stat-pill:hover {
  border-color: rgba(102, 198, 198, 0.35);
}

.ss-stat-pill strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.ss-stat-pill span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* Impact */
.ss-impact-hero {
  text-align: center;
  margin-bottom: 64px;
}

.ss-impact-number {
  font-size: clamp(80px, 14vw, 140px);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--ss-blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
}

.ss-impact-label {
  font-size: clamp(20px, 3vw, 28px);
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.ss-impact-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.ss-impact-before,
.ss-impact-after {
  padding: 32px;
  border-radius: 20px;
  text-align: center;
}

.ss-impact-before {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.ss-impact-after {
  background: rgba(102, 198, 198, 0.1);
  border: 1px solid rgba(102, 198, 198, 0.3);
}

.ss-impact-before .ss-time-num {
  color: #ef4444;
}

.ss-impact-after .ss-time-num {
  color: var(--accent);
}

.ss-time-num {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.ss-time-label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.ss-impact-arrow {
  font-size: 36px;
  color: var(--accent);
}

.ss-impact-bar-wrap {
  max-width: 600px;
  margin: 0 auto 56px;
}

.ss-impact-bar-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.ss-impact-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ss-impact-bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ss-navy-brand), var(--accent));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ss-impact-bar-fill.is-animated {
  width: 80%;
}

.ss-impact-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.ss-breakdown-col h4 {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
}

.ss-breakdown-col.before h4 {
  color: #ef4444;
}

.ss-breakdown-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ss-breakdown-list li {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
}

.ss-breakdown-list li span:last-child {
  font-weight: 600;
  color: var(--accent);
}

.ss-breakdown-col.before .ss-breakdown-list li span:last-child {
  color: #ef4444;
}

/* Unique features */
.ss-unique-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.ss-unique-card {
  padding: 32px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.ss-unique-card:hover {
  box-shadow: 0 16px 40px rgba(11, 37, 80, 0.1);
  transform: translateY(-4px);
}

.ss-unique-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: #0b2550;
}

.ss-unique-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #64748b;
}

.ss-unique-num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ss-navy-brand), var(--ss-teal));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* Closing CTA */
.ss-closing {
  text-align: center;
  padding: 80px 48px 120px;
  background: linear-gradient(180deg, var(--navy) 0%, #0a1628 100%);
}

.ss-closing h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
}

.ss-closing p {
  margin: 0 0 32px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 560px;
  margin-inline: auto;
}

.ss-back-projects {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 32px;
  border-radius: 999px;
  border: 1.5px solid rgba(102, 198, 198, 0.4);
  background: rgba(102, 198, 198, 0.1);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.ss-back-projects:hover {
  transform: translateY(-2px);
  background: rgba(102, 198, 198, 0.2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Process section */
.ss-process-dual {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 8px;
}

.ss-process-card {
  padding: 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.35s ease;
}

.ss-process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 198, 198, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.ss-process-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.ss-process-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ss-navy-brand), var(--ss-teal));
  color: #ffffff;
}

.ss-process-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.ss-process-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ss-process-steps li {
  position: relative;
  padding: 14px 0 14px 20px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ss-process-steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ss-process-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ss-process-sync {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 4px;
}

.ss-process-sync-line {
  width: 2px;
  flex: 1;
  min-height: 48px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  border-radius: 2px;
}

.ss-process-sync-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(102, 198, 198, 0.12);
  border: 1px solid rgba(102, 198, 198, 0.25);
  white-space: nowrap;
}

.ss-process-milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0;
}

.ss-process-milestone-track {
  width: 2px;
  height: 32px;
  background: linear-gradient(180deg, rgba(102, 198, 198, 0.5), var(--accent));
  border-radius: 2px;
  margin-bottom: 16px;
}

.ss-process-milestone-label {
  padding: 12px 28px;
  border-radius: 999px;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0b2550;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(102, 198, 198, 0.25);
}

.ss-process-panel {
  padding: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  transition: border-color 0.3s ease;
}

.ss-process-panel:last-child {
  margin-bottom: 0;
}

.ss-process-panel:hover {
  border-color: rgba(102, 198, 198, 0.28);
}

.ss-process-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 28px;
}

.ss-process-panel-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--ss-navy-brand), var(--ss-teal));
  color: #ffffff;
}

.ss-process-panel-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.ss-process-panel-head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

.ss-process-tier-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ss-process-tier-chip {
  flex: 1;
  min-width: 140px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(102, 198, 198, 0.08);
  border: 1px solid rgba(102, 198, 198, 0.2);
  text-align: center;
}

.ss-process-tier-chip span {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.ss-process-tier-chip strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
}

.ss-process-tier-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: rgba(102, 198, 198, 0.5);
}

.ss-process-ship {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ss-process-ship-step {
  position: relative;
  padding: 20px 20px 20px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ss-process-ship-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(102, 198, 198, 0.4);
  border-right: 2px solid rgba(102, 198, 198, 0.4);
  transform: translateY(-50%) rotate(45deg);
}

.ss-process-ship-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-bottom: 12px;
  box-shadow: 0 0 12px rgba(102, 198, 198, 0.5);
}

.ss-process-ship-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* Responsive */
@media (max-width: 1100px) {
  .ss-tier-grid {
    grid-template-columns: 1fr;
  }

  .ss-ripple-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .ss-meta-bar {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .ss-workflow-step:not(:last-child)::after {
    display: none;
  }

  .ss-workflow {
    gap: 16px;
  }

  .ss-process-dual {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ss-process-sync {
    flex-direction: row;
    padding: 8px 0;
  }

  .ss-process-sync-line {
    width: auto;
    flex: 1;
    min-height: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
  }

  .ss-process-ship {
    grid-template-columns: 1fr;
  }

  .ss-process-ship-step:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .ss-problem-grid,
  .ss-foundations-grid,
  .ss-impact-breakdown,
  .ss-unique-grid,
  .ss-pain-points,
  .ss-checklist {
    grid-template-columns: 1fr;
  }

  .ss-impact-compare {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ss-impact-arrow {
    transform: rotate(90deg);
    text-align: center;
  }

  .ss-foundation-nav {
    gap: 6px;
  }

  .ss-fdn-tab {
    padding: 8px 12px;
    font-size: 13px;
  }

  .ss-fdn-num {
    display: none;
  }

  .ss-ripple-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .ss-radius-viz,
  .ss-icon-viz {
    justify-content: center;
  }

  .ss-gitlab-stats {
    grid-template-columns: 1fr;
  }

  .ss-process-tier-row {
    flex-direction: column;
  }

  .ss-process-tier-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 700px) {
  .ss-hero {
    padding: 100px 24px 60px;
    min-height: auto;
  }

  .ss-section {
    padding: 64px 0;
  }

  .ss-meta-bar {
    grid-template-columns: 1fr;
  }

  .ss-phases {
    grid-template-columns: 1fr;
  }

  .ss-stack-timeline {
    gap: 12px;
  }

  .ss-stack-arrow {
    display: none;
  }

  .ss-stack-step {
    flex: 1 1 40%;
    justify-content: center;
  }

  .case-content {
    width: calc(100% - 40px);
  }

  .ss-type-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ss-reveal,
  .ss-reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .ss-impact-bar-fill {
    width: 80%;
  }
}
