@charset "UTF-8";
:root {
  --navy: #010f35;
  --navy-2: #0a1a4a;
  --primary-900: #0e2a87;
  --primary-800: #1334a0;
  --primary-700: #1b3fb8;
  --primary-600: #274ecd;
  --primary-500: #385fdd;
  --primary-400: #5074e9;
  --primary-300: #708ef2;
  --primary-200: #98aef9;
  --primary-100: #c5d2fd;
  --primary-0: #f5f7ff;
  --ink: #212121;
  --ink-soft: #424242;
  --muted: #616161;
  --line: #e0e0e0;
  --line-soft: #eeeeee;
  --paper: #fafafa;
  --white: #ffffff;
  --success: #0f8a56;
  --warning: #f29100;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Challenges */
.challenges {
  background: radial-gradient(1100px 620px at 85% 10%, color-mix(in srgb, var(--primary-400) 28%, transparent), transparent 55%), radial-gradient(800px 500px at 5% 90%, color-mix(in srgb, var(--primary-700) 30%, transparent), transparent 50%), linear-gradient(165deg, #02091f 0%, var(--navy) 48%, #0a1a4f 100%);
  color: var(--white);
  overflow: hidden;
}

.challenges .section-head {
  max-width: 52rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.challenges .section-head h2 em {
  color: var(--primary-200);
}

.challenges .watermark {
  position: absolute;
  left: 50%;
  top: 4.5rem;
  transform: translateX(-50%);
  font-size: clamp(4.5rem, 16vw, 12rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--white) 10%, transparent);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.challenge-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.challenge-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.challenge-item {
  --friction: #ec7f92;
  --friction-soft: #f4a4b2;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.15rem 0.85rem 1.2rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--friction) 32%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--friction) 8%, transparent), color-mix(in srgb, var(--white) 3.5%, transparent));
  backdrop-filter: blur(10px);
  cursor: pointer;
  text-align: center;
  color: inherit;
  width: 100%;
  min-height: 100%;
  transition: border-color 0.3s, background 0.35s, transform 0.4s var(--ease), box-shadow 0.35s;
}

.challenge-item:hover {
  border-color: color-mix(in srgb, var(--friction-soft) 55%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--friction) 16%, transparent), color-mix(in srgb, var(--white) 5%, transparent));
  transform: translateY(-3px);
  box-shadow: 0 14px 32px color-mix(in srgb, #000 20%, transparent), 0 0 24px color-mix(in srgb, var(--friction) 18%, transparent);
}

.challenge-item.is-active {
  border-color: color-mix(in srgb, var(--friction-soft) 75%, transparent);
  background: linear-gradient(165deg, color-mix(in srgb, var(--friction) 28%, transparent), color-mix(in srgb, var(--white) 5%, transparent));
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--friction) 35%, transparent), 0 0 28px color-mix(in srgb, var(--friction) 42%, transparent), 0 0 56px color-mix(in srgb, var(--friction) 22%, transparent), 0 20px 44px color-mix(in srgb, #000 28%, transparent);
}

.challenge-item .idx {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--friction-soft);
}

.challenge-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--friction-soft);
  background: color-mix(in srgb, var(--friction) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--friction) 35%, transparent);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.35s, color 0.3s;
}

.challenge-item.is-active .challenge-ico {
  color: #ffe4e9;
  background: color-mix(in srgb, var(--friction) 28%, transparent);
  border-color: color-mix(in srgb, var(--friction-soft) 65%, transparent);
  box-shadow: 0 0 18px color-mix(in srgb, var(--friction) 40%, transparent);
}

.challenge-ico svg {
  width: 20px;
  height: 20px;
}

.challenge-item h3 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.challenge-item p {
  display: none;
}

.challenge-arrow {
  display: none;
}

.friction-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  min-height: 0;
  border: 1px solid color-mix(in srgb, var(--primary-200) 24%, transparent);
  background: radial-gradient(900px 340px at 50% 0%, color-mix(in srgb, var(--primary-400) 28%, transparent), transparent 58%), radial-gradient(700px 300px at 10% 100%, color-mix(in srgb, var(--primary-700) 28%, transparent), transparent 55%), radial-gradient(700px 300px at 90% 100%, color-mix(in srgb, var(--primary-600) 22%, transparent), transparent 55%), linear-gradient(160deg, #031033 0%, #06153f 55%, #0c2460 100%);
  box-shadow: 0 30px 70px color-mix(in srgb, #000 35%, transparent);
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
}

.friction-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--white) 5%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--white) 5%, transparent) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 80%);
  opacity: 0.55;
  pointer-events: none;
}

.friction-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem 0.5rem;
}

.friction-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-200);
}

.friction-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ec7f92;
  box-shadow: 0 0 0 4px color-mix(in srgb, #ec7f92 20%, transparent);
  animation: pulse 1.8s ease-in-out infinite;
}

.friction-panel[data-mode=resolved] .friction-badge::before {
  background: #6fb99a;
  box-shadow: 0 0 0 4px color-mix(in srgb, #6fb99a 20%, transparent);
}

.friction-panel[data-mode=resolved] .friction-badge {
  color: #6fb99a;
}

.friction-mode {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: color-mix(in srgb, var(--white) 45%, transparent);
}

.friction-map {
  position: relative;
  z-index: 1;
  padding: 0.35rem 1.25rem 0.75rem;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.friction-map svg {
  width: 100%;
  height: auto;
  max-height: 340px;
  overflow: visible;
}

.fmap-line {
  fill: none;
  stroke: color-mix(in srgb, var(--primary-300) 35%, transparent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  animation: dashMove 14s linear infinite;
  transition: stroke 0.45s, opacity 0.45s;
}

.fmap-line.is-chaos {
  stroke: color-mix(in srgb, #ec7f92 58%, var(--primary-300));
  opacity: 0.8;
}

.fmap-line.is-flow {
  stroke: var(--primary-200);
  stroke-dasharray: none;
  opacity: 0.95;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -80;
  }
}
.fmap-core-ring {
  fill: none;
  stroke: color-mix(in srgb, var(--primary-200) 28%, transparent);
  stroke-width: 1;
  stroke-dasharray: 2 4;
}

.fmap-core {
  fill: url(#fmapCoreGrad);
  stroke: color-mix(in srgb, var(--primary-100) 55%, transparent);
  stroke-width: 1.5;
}

.fmap-node {
  cursor: pointer;
  outline: none;
}

.fmap-node .fmap-hit {
  fill: transparent;
  pointer-events: all;
}

.fmap-node:focus-visible .fmap-disk,
.fmap-node:focus-visible .fmap-dot-ring {
  stroke: var(--primary-100);
}

.fmap-node:hover .fmap-disk {
  stroke: color-mix(in srgb, #f4a4b2 70%, transparent);
  filter: drop-shadow(0 0 8px color-mix(in srgb, #ec7f92 35%, transparent));
}

.fmap-node:hover .fmap-inner {
  opacity: 0.7;
  fill: #ffe8ec;
}

.fmap-label.is-clickable {
  cursor: pointer;
  transition: fill 0.25s;
}

.fmap-label.is-clickable:hover,
.fmap-node.is-hot + .fmap-label,
.fmap-label.is-hot {
  fill: #ffe8ec;
}

.fmap-node .fmap-halo {
  fill: none;
  stroke: color-mix(in srgb, #ec7f92 0%, transparent);
  stroke-width: 1.25;
  opacity: 0;
  transition: opacity 0.35s, stroke 0.35s;
  pointer-events: none;
}

.fmap-node .fmap-dot-ring {
  fill: none;
  stroke: color-mix(in srgb, #f4a4b2 0%, transparent);
  stroke-width: 1.35;
  stroke-dasharray: 1.6 3.4;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.35s, stroke 0.35s;
}

.fmap-node .fmap-disk {
  fill: color-mix(in srgb, var(--navy) 65%, #0a1a4a);
  stroke: color-mix(in srgb, var(--primary-200) 40%, transparent);
  stroke-width: 1.5;
  transition: fill 0.35s, stroke 0.35s, filter 0.35s;
}

.fmap-node .fmap-inner {
  fill: color-mix(in srgb, var(--primary-200) 35%, transparent);
  opacity: 0.35;
  transition: fill 0.35s, opacity 0.35s;
}

.fmap-node.is-hot .fmap-halo {
  stroke: color-mix(in srgb, #ec7f92 70%, transparent);
  opacity: 1;
  filter: drop-shadow(0 0 6px color-mix(in srgb, #ec7f92 45%, transparent));
}

.fmap-node.is-hot .fmap-dot-ring {
  stroke: #f8c4cd;
  opacity: 1;
  animation: fmapDotSpin 8s linear infinite;
}

.fmap-node.is-hot .fmap-disk {
  fill: color-mix(in srgb, #ec7f92 38%, #0a1a4a);
  stroke: #f4a4b2;
  filter: drop-shadow(0 0 10px color-mix(in srgb, #ec7f92 50%, transparent));
}

.fmap-node.is-hot .fmap-inner {
  fill: #ffe8ec;
  opacity: 1;
}

@keyframes fmapDotSpin {
  to {
    stroke-dashoffset: -48;
  }
}
.fmap-label {
  fill: color-mix(in srgb, var(--white) 72%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.fmap-label.is-core {
  fill: color-mix(in srgb, var(--white) 90%, transparent);
  font-size: 12px;
  font-weight: 600;
}

.friction-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 1.25rem 2rem;
  align-items: end;
  padding: 1.15rem 1.5rem 1.45rem;
  border-top: 1px solid color-mix(in srgb, var(--white) 8%, transparent);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #000 22%, transparent));
}

.friction-copy h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  margin-bottom: 0.45rem;
  letter-spacing: -0.02em;
  transition: opacity 0.25s;
}

.friction-copy p {
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--white) 68%, transparent);
  max-width: 40rem;
  line-height: 1.55;
}

.friction-copy .friction-fix {
  justify-content: flex-end;
  align-self: center;
  margin-top: 0;
}

.friction-fix {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.friction-fix span {
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  background: color-mix(in srgb, var(--white) 5%, transparent);
  color: color-mix(in srgb, var(--white) 78%, transparent);
}

.challenge-bridge {
  position: relative;
  z-index: 1;
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary-200) 22%, transparent);
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary-500) 18%, transparent), color-mix(in srgb, var(--white) 4%, transparent));
  backdrop-filter: blur(10px);
}

.challenge-bridge strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.challenge-bridge p {
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--white) 65%, transparent);
  max-width: 42rem;
}

/* —— Responsive —— */
@media (max-width: 1100px) {
  .challenge-bridge {
    grid-template-columns: 1fr;
  }
  .challenge-board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .friction-copy {
    grid-template-columns: 1fr;
  }
  .friction-copy .friction-fix {
    justify-content: flex-start;
  }
  .challenges .watermark {
    top: 3.2rem;
    font-size: clamp(4rem, 14vw, 7rem);
  }
}
@media (max-width: 960px) {
  .challenge-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .challenge-board .challenge-item:last-child {
    grid-column: 1/-1;
    max-width: 50%;
    justify-self: center;
  }
}
@media (max-width: 820px) {
  .challenge-board {
    grid-template-columns: 1fr;
  }
  .challenge-board .challenge-item:last-child {
    grid-column: auto;
    max-width: none;
    justify-self: stretch;
  }
  .challenge-item {
    padding: 1rem 0.95rem;
  }
  .challenges .watermark {
    opacity: 0.22;
    font-size: clamp(3.2rem, 18vw, 5rem);
    top: 2.4rem;
  }
  .friction-map {
    min-height: 200px;
    padding-inline: 0.65rem;
  }
  .friction-panel {
    padding: 1rem;
  }
}
