/* Shared pages — legal + service landings */
.site-page {
  min-height: 100vh;
  background: #05070b;
}

.page-hero {
  width: min(920px, calc(100% - 2rem));
  margin: 5.5rem auto 2rem;
}

.page-hero .kicker {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #05b1fa;
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: #f3f3f3;
}

.page-hero .lead {
  margin: 0;
  max-width: 62ch;
  color: rgba(243, 243, 243, 0.68);
  font-size: 1.05rem;
  line-height: 1.55;
}

.page-body {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto 4rem;
}

.page-toc {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
}

.page-toc h2 {
  margin: 0 0 0.65rem;
  font-family: Syne, sans-serif;
  font-size: 0.95rem;
}

.page-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  gap: 1.5rem;
}

.page-toc li {
  margin: 0.25rem 0;
  font-size: 0.88rem;
  color: rgba(243, 243, 243, 0.7);
  break-inside: avoid;
}

.page-toc a { color: #05b1fa; }

/* Mind-map radial (dot grid + title cards) */
.toc-radial {
  margin: 0 0 2.5rem;
}

.toc-radial-card.toc-map {
  margin: 0 0 1rem;
  padding: 1.25rem 0.75rem 1.4rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #07090e;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(5, 177, 250, 0.07), transparent 55%),
    radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.8px);
  background-size: auto, 14px 14px;
  background-position: center, 0 0;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.toc-radial-frame {
  --parallax: 0;
  position: relative;
  width: min(560px, 100%);
  aspect-ratio: 1;
  margin: 0 auto;
  transform: perspective(1000px) rotateX(calc(var(--parallax) * 5deg));
  transform-style: preserve-3d;
  will-change: transform;
}

.toc-radial-spokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.toc-spoke {
  stroke: var(--c, #05b1fa);
  stroke-width: 0.55;
  stroke-linecap: round;
  opacity: 0.82;
  filter: drop-shadow(0 0 0.35px var(--c, #05b1fa));
  animation: toc-flow 4s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.toc-radial-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 22%;
  min-width: 78px;
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.toc-radial-hub img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 16px rgba(5, 177, 250, 0.28));
  animation: toc-hub-breathe 5s ease-in-out infinite;
}

.toc-radial-nodes {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 1;
}

.toc-radial-nodes li {
  position: absolute;
  inset: 0;
  transform: rotate(var(--a));
  pointer-events: none;
}

.toc-radial-nodes a {
  /* 50% - 36% orbit ≈ 14% from top */
  position: absolute;
  left: 50%;
  top: 14%;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7.2rem;
  max-width: 8.6rem;
  padding: 0.42rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  pointer-events: auto;
  font-family: Syne, sans-serif;
  font-size: clamp(0.62rem, 1.7vw, 0.78rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-align: center;
  color: #f2f4f8;
  background: #10131a;
  border: 1px solid color-mix(in srgb, var(--c, #05b1fa) 42%, rgba(255, 255, 255, 0.12));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 8px 18px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.toc-radial-nodes a:hover,
.toc-radial-nodes a:focus-visible {
  border-color: var(--c, #05b1fa);
  background: color-mix(in srgb, var(--c, #05b1fa) 14%, #10131a);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--c, #05b1fa) 35%, transparent),
    0 10px 22px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a))) scale(1.04);
  outline: none;
  color: #fff;
}

@keyframes toc-flow {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.95; }
}

@keyframes toc-hub-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Scroll-video sections */
.page-section.sv-section {
  --sv: 0;
  position: relative;
  padding: 1.55rem 0 1.65rem 2.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 5rem;
  opacity: calc(0.22 + (var(--sv) * 0.78));
  transform: translate3d(0, calc((1 - var(--sv)) * 42px), 0);
  filter: blur(calc((1 - var(--sv)) * 1.6px));
  will-change: opacity, transform, filter;
}

.page-section.sv-section.is-sv-active {
  border-top-color: color-mix(in srgb, #05b1fa 28%, rgba(255, 255, 255, 0.08));
}

.page-section.sv-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.55rem;
  bottom: 1.55rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, #05b1fa calc(var(--sv) * 100%), transparent),
    color-mix(in srgb, #a78bfa calc(var(--sv) * 70%), transparent)
  );
  opacity: var(--sv);
  transform: scaleY(var(--sv));
  transform-origin: top center;
  pointer-events: none;
}

.page-section .sv-line {
  --sv-i: 0;
  opacity: calc(0.15 + (var(--sv) * 0.85));
  transform: translate3d(0, calc((1 - var(--sv)) * (14px + (var(--sv-i) * 2px))), 0);
  transition:
    opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--sv-i) * 28ms);
}

.page-section.is-sv-in .sv-line {
  opacity: 1;
  transform: none;
}

.page-section.is-toc-focus {
  animation: toc-section-in 1.35s ease;
}

.page-section.is-toc-focus .sv-line {
  animation: toc-copy-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--sv-i) * 45ms);
}

@keyframes toc-section-in {
  0% { background: color-mix(in srgb, #05b1fa 14%, transparent); }
  100% { background: transparent; }
}

@keyframes toc-copy-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

html.is-toc-scrolling {
  scroll-behavior: auto;
}

html.is-toc-scrolling body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background:
    linear-gradient(180deg, rgba(5, 7, 11, 0.28), transparent 26%, transparent 74%, rgba(5, 7, 11, 0.32));
  animation: toc-veil 1s ease;
}

@keyframes toc-veil {
  from { opacity: 0; }
  35% { opacity: 1; }
  to { opacity: 0; }
}

.toc-rail {
  list-style: none;
  margin: 0.25rem 0.35rem 0;
  padding: 0.7rem 0.55rem 0.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.toc-rail li {
  margin: 0;
  min-width: 0;
}

.toc-rail a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.85rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  text-decoration: none;
  color: rgba(242, 244, 248, 0.82);
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.toc-rail a:hover,
.toc-rail a:focus-visible {
  color: #fff;
  background: color-mix(in srgb, var(--c, #05b1fa) 14%, rgba(16, 19, 26, 0.92));
  border-color: color-mix(in srgb, var(--c, #05b1fa) 50%, transparent);
  outline: none;
}

.toc-rail-dot {
  flex: 0 0 auto;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--c, #05b1fa);
  box-shadow: 0 0 8px color-mix(in srgb, var(--c, #05b1fa) 70%, transparent);
}

.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.data-card {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.data-card h3 {
  margin: 0 0 0.45rem;
  font-family: Syne, sans-serif;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  color: #f3f3f3;
}

.data-card p {
  margin: 0 0 0.35rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.data-card p:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .toc-radial-card.toc-map {
    padding: 0.85rem 0.35rem 1rem;
  }

  .toc-radial-frame {
    width: min(100%, 420px);
  }

  .toc-radial-nodes a {
    min-width: 5.4rem;
    max-width: 6.4rem;
    padding: 0.34rem 0.45rem;
    font-size: 0.58rem;
  }

  .toc-rail {
    gap: 0.3rem;
    padding-top: 0.65rem;
  }

  .toc-rail a {
    white-space: normal;
    max-width: 100%;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toc-radial-frame {
    transform: none;
  }

  .toc-spoke,
  .toc-radial-hub img,
  .page-section.is-toc-focus,
  .page-section.is-toc-focus .sv-line,
  html.is-toc-scrolling body::after {
    animation: none !important;
  }

  .page-section.sv-section,
  .page-section .sv-line {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .toc-radial-nodes a {
    transition: none;
  }
}

.page-section:not(.sv-section) {
  padding: 1.35rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 5rem;
}

.page-section h2 {
  margin: 0 0 0.55rem;
  font-family: Syne, sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.page-section p,
.page-section li {
  color: rgba(243, 243, 243, 0.68);
  line-height: 1.55;
  font-size: 0.95rem;
}

.page-section ul,
.page-section ol {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.page-section li + li { margin-top: 0.3rem; }

.page-section a { color: #05b1fa; }

.page-note {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(5, 177, 250, 0.22);
  background: rgba(5, 177, 250, 0.06);
  font-size: 0.86rem;
  color: rgba(243, 243, 243, 0.75);
}

.page-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.page-cta a {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.page-cta .btn-main {
  background: #05b1fa;
  color: #041018;
}

.page-cta .btn-soft {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f3f3f3;
  background: rgba(255, 255, 255, 0.04);
}

.site-foot .footer-grid {
  grid-template-columns: minmax(14rem, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  align-items: start;
}

.site-foot .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 28rem;
}

.site-foot .footer-brand .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #f3f3f3;
  width: fit-content;
}

.site-foot .footer-brand p {
  margin: 0;
  max-width: none;
  line-height: 1.5;
}

.site-foot .footer-brand .legal {
  margin-top: 0.35rem;
  color: rgba(243, 243, 243, 0.42);
}

.site-foot .footer-label {
  margin: 0 0 0.55rem;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(243, 243, 243, 0.45);
}

.site-foot nav {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0.45rem;
}

.site-foot nav a,
.site-foot nav .linkish {
  font-size: 0.9rem;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .page-toc ol { columns: 1; }
  .site-foot .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-foot .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-foot .footer-grid {
    grid-template-columns: 1fr;
  }
}
