/* ==========================================================================
   Chemesis Core — Global footer + compound ticker (Vercel reproduction)
   ========================================================================== */

/* Compound ticker */
.ch-ticker {
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ch-ink-950);
}

.ch-ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding-block: 1rem;
  animation: ch-ticker 46s linear infinite;
}

.ch-ticker:hover .ch-ticker-track {
  animation-play-state: paused;
}

.ch-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 2rem;
  font-family: var(--ch-font-mono);
  font-size: var(--ch-type-mono);
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.ch-ticker-name {
  color: #fff;
}

.ch-ticker-sep {
  opacity: 0.4;
}

.ch-ticker-diamond {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 1rem;
  background: var(--ch-blue-400);
  transform: rotate(45deg);
}

@keyframes ch-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ch-ticker-track {
    animation: none;
  }
}

/* Footer */
.ch-footer {
  position: relative;
  overflow: hidden;
  background: var(--ch-ink-950);
  color: #fff;
}

.ch-footer-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
}

.ch-footer-inner {
  position: relative;
  padding-block: 4rem;
}

@media (min-width: 768px) {
  .ch-footer-inner {
    padding-block: 6rem;
  }
}

.ch-footer-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .ch-footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .ch-footer-brand {
    grid-column: span 4;
  }

  .ch-footer-col {
    grid-column: span 2;
  }
}

.ch-footer-plate {
  display: inline-block;
  padding: 1.25rem;
  border-radius: 6px;
  background: #fff;
}

.ch-footer-plate img {
  width: 190px;
  height: auto;
}

.ch-footer-intro {
  max-width: 24rem;
  margin: 1.5rem 0 0;
  font-family: var(--ch-font-body);
  font-size: var(--ch-type-body);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
}

.ch-footer-stage {
  margin: 1.5rem 0 0;
  font-family: var(--ch-font-mono);
  font-size: var(--ch-type-mono);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.ch-footer-heading {
  color: var(--ch-blue-300);
  margin: 0;
}

.ch-footer-col ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.ch-footer-col li {
  margin-bottom: 0.625rem;
}

.ch-footer-col a {
  position: relative;
  font-family: var(--ch-font-body);
  font-size: var(--ch-type-body-sm);
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s var(--ch-ease-expo);
}

.ch-footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ch-ease-expo);
}

.ch-footer-col a:hover {
  color: #fff;
}

.ch-footer-col a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.ch-footer-docs {
  margin: 1.25rem 0 0;
  font-family: var(--ch-font-mono);
  font-size: var(--ch-type-mono);
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

.ch-footer-docs-link {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--ch-blue-300);
  font-family: var(--ch-font-body);
  font-size: var(--ch-type-body-sm);
  font-weight: 500;
  text-decoration: none;
}

.ch-footer-legal-block {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ch-footer-compliance {
  max-width: 48rem;
  margin: 0;
  font-family: var(--ch-font-mono);
  font-size: var(--ch-type-caption);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
}

.ch-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
}

.ch-footer-copy {
  margin: 0;
  font-family: var(--ch-font-mono);
  font-size: var(--ch-type-caption);
  color: rgba(255, 255, 255, 0.55);
}

.ch-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ch-footer-legal a {
  font-family: var(--ch-font-mono);
  font-size: var(--ch-type-caption);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s var(--ch-ease-expo);
}

.ch-footer-legal a:hover {
  color: #fff;
}

.ch-footer-watermark {
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  font-family: var(--ch-font-display);
  font-size: var(--ch-type-display);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-align: center;
  color: rgba(255, 255, 255, 0.035);
  transform: translateY(0.18em);
  white-space: nowrap;
}
