/* ── COPYRIGHTV Homepage — gray fintech palette ── */

.fx-bleed {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.fx-bleed--light {
  background: linear-gradient(180deg, #d6d6d6 0%, #cdcdcd 100%);
  color: #111111;
}
.fx-bleed--light .fx-heading,
.fx-bleed--light .fx-display {
  color: #111111;
}
.fx-bleed--light .fx-label {
  color: #5d5d5d;
}
.fx-bleed--light .fx-sub,
.fx-bleed--light .fx-sub--dark {
  color: #434343;
}
.fx-wrap {
  width: min(1140px, calc(100% - 3rem));
  margin-inline: auto;
}

.fx-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--g-stone);
  margin: 0 0 1rem;
}
.fx-label--center { text-align: center; }
.fx-display {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--g-frost);
}
.fx-heading {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--g-frost);
}
.fx-heading--center { text-align: center; }
.fx-highlight {
  background: linear-gradient(135deg, var(--g-frost) 0%, var(--g-stone) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fx-sub {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--g-stone);
  max-width: 28rem;
  margin: 0 0 1.75rem;
}
.fx-sub--dark { color: var(--g-graphite); }

.btn--lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }
.btn--dark {
  background: var(--g-base);
  color: var(--g-frost);
  border-color: var(--g-base);
  display: inline-flex;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
}
.btn--dark:hover { background: var(--g-charcoal); color: var(--g-frost); }

/* ── Hero ── */
.fx-hero {
  padding: 3rem 0 5rem;
  background: transparent;
}
.fx-hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.fx-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.fx-visual {
  position: relative;
  background: linear-gradient(145deg, var(--g-rich) 0%, var(--g-deep) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  min-height: 340px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fx-visual__glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205, 205, 205, 0.08) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.fx-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  z-index: 1;
}
.fx-flow__step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--g-charcoal);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  min-width: 220px;
  animation: fxPulse 3s ease-in-out infinite;
}
.fx-flow__step--2 { animation-delay: 0.4s; }
.fx-flow__step--3 { animation-delay: 0.8s; }
.fx-flow__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(205, 205, 205, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.fx-flow__step strong { display: block; font-size: 0.88rem; color: var(--g-frost); }
.fx-flow__step small { color: var(--g-stone); font-size: 0.75rem; }
.fx-flow__line {
  width: 2px;
  height: 24px;
  background: linear-gradient(180deg, rgba(205, 205, 205, 0.18), rgba(205, 205, 205, 0.04));
}
.fx-visual__badge {
  position: absolute;
  top: 16px;
  right: 16px;
}
.fx-live {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--g-ash);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(44, 44, 44, 0.65);
}

@keyframes fxPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

/* ── Case Studies Arc Carousel ── */
.cs-section {
  padding: 5rem 0 4.5rem;
  background: #000000;
  color: #ffffff;
  overflow: hidden;
}
.cs-wrap {
  width: min(1140px, calc(100% - 2rem));
  margin-inline: auto;
  text-align: center;
}
.cs-badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.cs-title {
  font-family: var(--font);
  font-size: clamp(2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: #ffffff;
  text-transform: uppercase;
}
.cs-lede {
  max-width: 34rem;
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.cs-stage {
  position: relative;
  height: clamp(340px, 42vw, 420px);
  margin: 0 auto 2.5rem;
  outline: none;
  touch-action: pan-y;
  cursor: grab;
}
.cs-stage:active { cursor: grabbing; }
.cs-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cs-card {
  position: absolute;
  left: 50%;
  top: 42%;
  width: clamp(160px, 16vw, 210px);
  height: clamp(280px, 30vw, 360px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  transform-origin: center bottom;
  transform:
    translate(-50%, -50%)
    translateX(var(--cs-tx, 0px))
    translateY(var(--cs-ty, 0px))
    rotate(var(--cs-rot, 0deg))
    scale(var(--cs-scale, 1));
  opacity: var(--cs-opacity, 1);
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}
.cs-card.is-active {
  cursor: default;
}
.cs-card__inner {
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-card.is-active .cs-card__inner {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}
.cs-card__visual {
  flex: 1;
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(165deg, color-mix(in srgb, var(--cs-accent, #333) 85%, #ffffff 15%) 0%, var(--cs-accent, #333) 100%);
  padding: 1.25rem;
}
.cs-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}
.cs-card__logo-wrap {
  display: grid;
  place-items: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 1rem 1.35rem;
  min-width: 72%;
  min-height: 88px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.cs-card__logo {
  max-width: 78%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}
.cs-card__foot {
  padding: 0.85rem 1rem 1rem;
  background: #ffffff;
  text-align: left;
}
.cs-card__foot strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #111111;
  line-height: 1.35;
}

.cs-detail {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem 2rem;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cs-detail__body {
  min-width: 0;
}
.cs-detail__name {
  font-family: var(--font);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  color: #ffffff;
  transition: opacity 0.35s ease;
}
.cs-detail__desc {
  margin: 0 0 1.15rem;
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
  max-width: 36rem;
  margin-inline: auto;
  transition: opacity 0.35s ease;
}
.cs-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cs-cta:hover {
  background: #f0f0f0;
  color: #000000;
  transform: translateY(-1px);
}
.cs-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.cs-nav:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}
.cs-nav:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .cs-card {
    transition: none;
  }
}

@media (max-width: 640px) {
  .cs-section { padding: 3.5rem 0 3rem; }
  .cs-title { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .cs-stage { height: 360px; margin-bottom: 2rem; }
  .cs-detail {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .cs-nav {
    justify-self: center;
  }
  .cs-detail__body { order: -1; }
}

/* ── Product sections ── */
.fx-product { padding: 5rem 0; }
.fx-product__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}
.fx-product__row:last-child { margin-bottom: 0; }
.fx-product__row--reverse .fx-product__text { order: 2; }
.fx-product__row--reverse .fx-product__viz { order: 1; }

.fx-card-demo, .fx-ig-demo, .fx-verify-demo {
  background: var(--g-frost);
  border: 1px solid rgba(44, 44, 44, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  min-width: min(100%, 380px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}
.fx-card-demo__bar, .fx-code__bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}
.fx-card-demo__bar span, .fx-code__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--g-silver);
}
.fx-card-demo__file {
  height: 80px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--g-silver), var(--g-ash));
  margin-bottom: 1rem;
}
.fx-card-demo__progress {
  height: 4px;
  background: var(--g-silver);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.fx-card-demo__fill {
  height: 100%;
  width: 0;
  background: var(--g-base);
  border-radius: 2px;
  animation: fxFill 2.5s ease-in-out infinite;
}
.fx-card-demo__url {
  font-family: monospace;
  font-size: 0.82rem;
  color: var(--g-graphite);
  margin: 0;
}
@keyframes fxFill {
  0% { width: 0; }
  60% { width: 100%; }
  100% { width: 100%; }
}

.fx-ig-demo__input {
  font-family: monospace;
  font-size: 0.82rem;
  padding: 0.75rem 1rem;
  background: var(--g-silver);
  border-radius: 8px;
  color: var(--g-charcoal);
}
.fx-ig-demo__arrow {
  text-align: center;
  color: var(--g-stone);
  padding: 0.5rem 0;
  font-size: 1.2rem;
}
.fx-ig-demo__result {
  text-align: center;
  padding: 0.75rem;
  background: rgba(96, 96, 96, 0.12);
  color: var(--g-charcoal);
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
}

.fx-verify-demo__q {
  font-size: 0.88rem;
  color: var(--g-graphite);
  margin-bottom: 0.75rem;
}
.fx-verify-demo__a {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
}
.fx-verify-demo__a--yes {
  background: rgba(96, 96, 96, 0.14);
  color: var(--g-charcoal);
}

/* ── Global dark ── */
.fx-global {
  padding: 6rem 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 50%, #434343 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 20% 80%, #3a3a3a 0%, transparent 50%),
    linear-gradient(180deg, #424242 0%, #2c2c2c 100%);
  position: relative;
  overflow: hidden;
}
.fx-global__inner {
  position: relative;
  z-index: 1;
  max-width: 560px;
}
.fx-globe {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 420px;
  height: 420px;
  opacity: 0.35;
}
.fx-globe__ring {
  position: absolute;
  inset: 10%;
  border: 1px solid rgba(205, 205, 205, 0.14);
  border-radius: 50%;
  animation: fxSpin 30s linear infinite;
}
.fx-globe__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--g-ash);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(205, 205, 205, 0.35);
  animation: fxBlink 2s ease-in-out infinite;
}
.fx-globe__dot--1 { top: 20%; left: 45%; }
.fx-globe__dot--2 { top: 40%; left: 75%; animation-delay: 0.4s; }
.fx-globe__dot--3 { top: 65%; left: 30%; animation-delay: 0.8s; }
.fx-globe__dot--4 { top: 55%; left: 60%; animation-delay: 1.2s; }
.fx-globe__dot--5 { top: 30%; left: 20%; animation-delay: 1.6s; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ── Developer ── */
.fx-dev { padding: 5rem 0; }
.fx-dev__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
.fx-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.fx-tabs__item {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--g-stone);
  border: 1px solid var(--border);
  cursor: default;
}
.fx-tabs__item.is-active {
  background: var(--g-base);
  color: var(--g-frost);
  border-color: var(--g-base);
}
.fx-code {
  background: var(--g-rich);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fx-code__bar { padding: 0.85rem 1rem 0; }
.fx-code__bar span:nth-child(1) { background: #a7a7a7; }
.fx-code__bar span:nth-child(2) { background: #cdcdcd; }
.fx-code__bar span:nth-child(3) { background: #d6d6d6; }
.fx-code pre {
  margin: 0;
  padding: 1.25rem 1.5rem 1.5rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.7;
}
.fx-code code { color: var(--g-silver); font-family: "SF Mono", "Fira Code", monospace; }
.fx-code .c { color: var(--g-stone); }
.fx-code .k { color: var(--g-ash); }
.fx-code .s { color: var(--g-frost); }

/* ── Registry ── */
.fx-registry {
  padding: 5rem 0;
  background: var(--g-base);
}
.fx-registry__head { margin-bottom: 2rem; }
.fx-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.fx-gallery__item {
  background: var(--g-rich);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.fx-gallery__item:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}
.fx-gallery__media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--g-deep);
  overflow: hidden;
}
.fx-gallery__media img,
.fx-gallery__media video { width: 100%; height: 100%; object-fit: cover; }
.fx-gallery__media span {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  background: rgba(44, 44, 44, 0.75);
  border-radius: 4px;
}
.fx-gallery__item strong,
.fx-gallery__item small {
  display: block;
  padding: 0.65rem 0.85rem 0;
}
.fx-gallery__item small {
  padding-bottom: 0.85rem;
  color: var(--g-stone);
  font-size: 0.78rem;
}
.fx-empty {
  text-align: center;
  padding: 3rem;
  color: var(--g-stone);
}

/* ── Final CTA ── */
.fx-cta-final {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--g-charcoal) 0%, var(--g-rich) 100%);
  border-top: 1px solid var(--border-soft);
}
.fx-cta-final__inner {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}
.fx-cta-final .fx-display {
  margin-bottom: 0;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal--delay { transition-delay: 0.15s; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .fx-hero__grid,
  .fx-product__row,
  .fx-dev__grid { grid-template-columns: 1fr; }
  .fx-product__row--reverse .fx-product__text,
  .fx-product__row--reverse .fx-product__viz { order: unset; }
  .fx-gallery { grid-template-columns: 1fr 1fr; }
  .fx-globe { display: none; }
}
@media (max-width: 560px) {
  .fx-gallery { grid-template-columns: 1fr; }
}
