/* ==========================================================================
  STRICTSPHERE — COHERENCE PAGE
  Scope: body.ss-coherence
========================================================================== */

/* HEADER */

.ss-coherence .ss-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background:
    linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.96),
      rgba(2, 6, 23, 0.78),
      rgba(2, 6, 23, 0.52)
    );
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.ss-coherence .ss-nav-top {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ss-coherence .ss-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.ss-coherence .ss-logo img {
  height: 78px;
  width: auto;
}

.ss-coherence .ss-nav-layers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.ss-coherence .ss-nav-layer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.ss-coherence .ss-nav-layer-label {
  min-width: 112px;
  color: var(--text-soft);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: right;
}

.ss-coherence .ss-nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
}

.ss-coherence .ss-nav-links a {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.ss-coherence .ss-nav-links a:hover,
.ss-coherence .ss-nav-links a[aria-current="page"] {
  color: var(--text-main);
  border-color: rgba(34, 211, 238, 0.7);
}

.ss-coherence .ss-nav-layer--switch {
  opacity: 0.72;
}

.ss-coherence .ss-nav-links--switch a {
  color: var(--text-soft);
}

/* MAIN */

.ss-coherence main {
  padding: 0 0 4rem;
}

/* HERO */

.ss-coherence .hero {
  padding: 5rem 0 3.5rem;
}

.ss-coherence .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
  gap: 3rem;
  align-items: center;
}

.ss-coherence .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.26);
  background: rgba(34, 211, 238, 0.07);
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ss-coherence .hero-kicker-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.9);
}

.ss-coherence .hero-title {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.45rem, 5vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.ss-coherence .highlight {
  display: inline-block;
  margin-top: 0.25rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ss-coherence .hero-subtitle {
  max-width: 680px;
  margin: 1.35rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.ss-coherence .existence-note {
  margin-top: 1.2rem;
  padding-left: 0.9rem;
  border-left: 2px solid rgba(34, 211, 238, 0.35);
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* PANELS / CARDS */

.ss-coherence .exits-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.1), transparent 34%),
    rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow-card);
  padding: 1.25rem;
}

.ss-coherence .exits-title {
  margin-bottom: 0.95rem;
  color: var(--text-soft);
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ss-coherence .exit-card {
  display: block;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.52);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.ss-coherence .exit-card + .exit-card {
  margin-top: 0.8rem;
}

.ss-coherence .exit-card:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(34, 211, 238, 0.06);
}

.ss-coherence .exit-card--route {
  border-color: rgba(168, 85, 247, 0.3);
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.08), transparent 40%),
    rgba(2, 6, 23, 0.52);
}

.ss-coherence .exit-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}

.ss-coherence .exit-card-name {
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: 1.02rem;
  font-weight: 600;
}

.ss-coherence .exit-card-tag {
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ss-coherence .exit-card-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* CONTENT SECTIONS */

.ss-coherence main > section:not(.hero) {
  padding: 1.25rem 0;
  background: transparent;
  border: 0;
}

.ss-coherence main > section:not(.hero) > .ss-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.38);
  box-shadow: var(--shadow-card);
}

.ss-coherence main > section:not(.hero):nth-of-type(odd) > .ss-container {
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.07), transparent 34%),
    rgba(15, 23, 42, 0.42);
}

.ss-coherence main > section:not(.hero):nth-of-type(even) > .ss-container {
  background:
    radial-gradient(circle at 0% 0%, rgba(168, 85, 247, 0.08), transparent 34%),
    rgba(15, 23, 42, 0.42);
  border-color: rgba(168, 85, 247, 0.14);
}

.ss-coherence .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.07);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ss-coherence .section-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.ss-coherence .section-title {
  max-width: 860px;
  margin: 0 0 1.15rem;
  color: var(--text-main);
  font-family: var(--font-title);
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.ss-coherence .section-intro {
  max-width: 860px;
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.82;
}

.ss-coherence .section-intro + .section-intro {
  margin-top: 0.95rem;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.ss-coherence .section-intro a,
.ss-coherence .ss-f-link {
  color: var(--text-main);
  border-bottom: 1px solid rgba(34, 211, 238, 0.45);
}

.ss-coherence .section-intro a:hover,
.ss-coherence .ss-f-link:hover {
  color: var(--primary);
}

/* COMPONENTS PANEL INSIDE SECTION */

.ss-coherence section .exits-panel {
  margin-top: 1.35rem;
  max-width: 860px;
}

.ss-coherence section .exits-panel .exit-card {
  margin-bottom: 0;
}

.ss-coherence section .exits-panel .exit-card + .exit-card {
  margin-top: 0.7rem;
}

/* NEXT STEP */

.ss-coherence .next-step {
  margin: 2.5rem 0 0;
  padding: 1.35rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(34, 211, 238, 0.2);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.11), transparent 32%),
    rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow-card);
}

.ss-coherence .next-step-label {
  margin-bottom: 0.55rem;
  color: var(--primary);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.ss-coherence .next-step h2 {
  margin: 0 0 0.55rem;
  font-family: var(--font-title);
  font-size: 1.35rem;
}

.ss-coherence .next-step p {
  max-width: 760px;
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.ss-coherence .next-step a {
  display: inline-flex;
  align-items: center;
  color: var(--text-main);
  font-size: 0.95rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(2, 6, 23, 0.35);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.ss-coherence .next-step a:hover {
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.08);
}

/* FOOTER */

.ss-coherence .ss-footer {
  margin-top: 4rem;
  padding: 1.8rem 0 2.4rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.ss-coherence .ss-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ss-coherence .ss-footer-brand {
  color: var(--text-main);
  font-family: var(--font-title);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.ss-coherence .ss-footer-meta,
.ss-coherence .ss-footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.ss-coherence .ss-f-link {
  color: var(--text-soft);
}

/* RESPONSIVE */

@media (max-width: 980px) {
  .ss-coherence .ss-nav-top,
  .ss-coherence .hero-grid {
    grid-template-columns: 1fr;
  }

  .ss-coherence .ss-nav-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .ss-coherence .ss-nav-layers {
    align-items: flex-start;
  }

  .ss-coherence .ss-nav-layer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ss-coherence .ss-nav-layer-label {
    min-width: 0;
    text-align: left;
  }

  .ss-coherence .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .ss-coherence .hero-grid {
    display: grid;
    gap: 2rem;
  }
}

@media (max-width: 720px) {
  .ss-coherence .ss-logo img {
    height: 66px;
  }

  .ss-coherence .ss-nav-links {
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .ss-coherence .hero-title {
    font-size: 2.55rem;
  }

  .ss-coherence main > section:not(.hero) > .ss-container {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
  }

  .ss-coherence .section-title {
    font-size: 1.85rem;
  }

  .ss-coherence .section-intro {
    font-size: 1rem;
  }
}