/* ============================================================
   ContentFlow — vanilla port of motionsites crypto-wealth-hero
   2 sections (Hero + Showcase) over fixed video background
   Inter font · scroll-linked: bg zoom + hero fade + showcase fade-in
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 200vh; background: #fafafa; color: #111827; font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; text-decoration: none; }

.cf-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,.78); color: rgba(17,24,39,.78);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; padding: 6px 16px; backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* Fixed background video — full viewport, scales 1→1.3x with scroll */
.cf-video-bg {
  position: fixed; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.cf-video-zoom {
  width: 100%; height: 100%;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .15s linear;
  will-change: transform;
}
.cf-video-zoom video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Floating pill nav */
.cf-nav {
  position: fixed; top: 24px; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: center;
  padding: 0 16px;
}
.cf-nav-inner {
  display: flex; align-items: center; gap: 28px;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229,231,235,.8);
  border-radius: 999px;
  padding: 10px 10px 10px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.cf-logo svg { display: block; }
.cf-nav-links {
  display: flex; gap: 28px;
  list-style: none;
}
.cf-nav-links a {
  font-size: 13px; font-weight: 500;
  color: #6B7280;
  transition: color .15s;
}
.cf-nav-links a:hover { color: #111827; }
.cf-nav-cta {
  position: relative;
  background: #fff;
  color: #111827;
  font-size: 13px; font-weight: 600;
  border-radius: 999px;
  padding: 8px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.cf-nav-cta::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 999px;
  padding: 1.5px;
  background: linear-gradient(135deg, #F59E0B, #3B82F6);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* HERO */
.cf-hero {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 130px 16px 64px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  will-change: transform, opacity;
}
.cf-hero-inner {
  width: 100%;
  max-width: 720px;
}
.cf-hero-title {
  font-size: clamp(36px, 5.5vw, 60px);
  line-height: 1;
  letter-spacing: -.04em;
  font-weight: 500;
  color: #111827;
}
.cf-hero-title .cf-mute { color: #A1A1AA; }
.cf-hero-sub {
  margin-top: 28px;
  color: #6B7280;
  font-size: 16px;
  line-height: 1.55;
  max-width: 380px;
  margin-left: auto; margin-right: auto;
}

.cf-popup-cards {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cf-popup-card {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229,231,235,.6);
  border-radius: 16px;
  padding: 14px 22px;
  width: 100%; max-width: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  font-size: 13px; font-weight: 500;
  color: #374151;
  white-space: nowrap;
  opacity: 0;
  animation: cfPopupIn .6s cubic-bezier(.16,1,.3,1) forwards;
  animation-delay: var(--d, 0ms);
}
.cf-popup-icon {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: #000;
}
.cf-icon-emerald { color: #10B981; }
.cf-icon-blue    { color: #2563EB; }
.cf-icon-amber   { color: #D97706; }
.cf-popup-text { flex: 1; text-align: left; }
.cf-spin-ring { animation: cfSpinRing 1.4s linear infinite; }

@keyframes cfPopupIn {
  0%   { opacity: 0; transform: translateY(16px) scale(.96); }
  100% { opacity: 1; transform: translateY(0)    scale(1); }
}
@keyframes cfSpinRing { to { transform: rotate(360deg); } }

/* SHOWCASE */
.cf-showcase {
  position: relative;
  z-index: 20;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 64px 24px;
  will-change: transform, opacity;
}
.cf-showcase-card {
  position: relative;
  width: 100%; max-width: 1280px;
  border-radius: 24px;
  overflow: hidden;
  min-height: 680px;
  background: #0a0a0a;
}
.cf-showcase-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cf-showcase-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.92), rgba(0,0,0,.5) 40%, transparent 80%);
  pointer-events: none;
}
.cf-showcase-grid {
  position: relative; z-index: 10;
  display: flex; align-items: stretch;
  min-height: 680px;
  width: 100%;
}
.cf-showcase-text {
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 48px;
  color: #fff;
}
.cf-showcase-title {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
  color: #fff;
}
.cf-showcase-sub {
  margin-top: 20px;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.55;
  max-width: 480px;
}
.cf-showcase-dashboard {
  flex: 1;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding-left: 48px;
}

/* DASHBOARD */
.cf-dashboard {
  background: #fff;
  border-top-left-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18);
  border: 1px solid rgba(0,0,0,.05);
  padding: 28px;
  width: 100%; max-width: 540px;
  display: flex; flex-direction: column; gap: 20px;
  opacity: 0;
  animation: cfSlideInRight .9s ease-out 1.2s forwards;
}
@keyframes cfSlideInRight {
  0%   { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}
.cf-dash-head {
  display: flex; justify-content: space-between; align-items: center;
}
.cf-dash-head-l {
  display: flex; align-items: center; gap: 14px;
}
.cf-dash-icon {
  width: 44px; height: 44px;
  background: #F3F4F6;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #6B7280;
}
.cf-dash-totals { display: flex; flex-direction: column; gap: 2px; }
.cf-dash-label {
  font-size: 12px; color: #9CA3AF; font-weight: 500;
}
.cf-dash-num {
  font-size: 26px; font-weight: 700;
  letter-spacing: -.025em;
  color: #111827;
}
.cf-dash-unit { font-size: 13px; color: #9CA3AF; font-weight: 400; }
.cf-dash-head-r {
  display: flex; align-items: center; gap: 12px;
}
.cf-legend {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: #6B7280;
}
.cf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  display: inline-block;
}
.cf-dot-pub { background: #000; }
.cf-dot-draft { background: #D1D5DB; }
.cf-pill {
  font-size: 12px; font-weight: 500;
  color: #374151;
  background: #F3F4F6;
  border-radius: 6px;
  padding: 4px 10px;
}

.cf-chart {
  width: 100%; height: 180px;
}
.cf-chart-line {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: cfChartDraw 1.8s ease-out .4s forwards;
}
.cf-chart-area {
  opacity: 0;
  animation: cfFadeIn 1s ease .8s forwards;
}
.cf-chart-dot {
  transform: scale(0);
  transform-origin: 320px 25px;
  animation: cfPopIn .4s ease-out 1.6s forwards;
}
.cf-chart-tip {
  opacity: 0;
  transform: translateY(4px);
  animation: cfTipIn .4s ease-out 1.8s forwards;
}
.cf-chart-drop {
  opacity: 0;
  animation: cfFadeIn .4s ease-out 1.7s forwards;
}
@keyframes cfChartDraw { to { stroke-dashoffset: 0; } }
@keyframes cfFadeIn   { to { opacity: 1; } }
@keyframes cfPopIn    { to { transform: scale(1); } }
@keyframes cfTipIn    { to { opacity: 1; transform: translateY(0); } }

.cf-channels { margin-top: 4px; }
.cf-channels-title {
  font-size: 14px; font-weight: 600; color: #374151;
  margin-bottom: 16px;
}
.cf-channel {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid #F3F4F6;
}
.cf-ch-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px; font-weight: 700;
}
.cf-ch-meta {
  flex: 1;
  display: flex; flex-direction: column; gap: 1px;
  font-size: 13px;
}
.cf-ch-meta strong { color: #111827; font-weight: 600; }
.cf-ch-meta span { color: #9CA3AF; font-size: 12px; }
.cf-ch-num {
  font-size: 14px; font-weight: 600; color: #111827;
}
.cf-ch-change { font-size: 12px; font-weight: 500; }
.cf-pos { color: #10B981; }
.cf-neg { color: #EF4444; }
.cf-ring { width: 40px; height: 40px; }
.cf-ring-fill {
  stroke-dashoffset: 100.5;
  animation: cfRingFill 1.2s ease-out 2s both;
}
@keyframes cfRingFill { from { stroke-dashoffset: 100.5; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .cf-nav-links { display: none; }
  .cf-showcase-grid { flex-direction: column; }
  .cf-showcase-text { padding: 24px; }
  .cf-showcase-dashboard { padding-left: 24px; padding-right: 24px; padding-bottom: 24px; }
  .cf-showcase-card { min-height: auto; }
}
@media (max-width: 640px) {
  .cf-banner { font-size: 9px; padding: 5px 10px; }
  .cf-nav { top: 16px; }
  .cf-nav-inner { padding: 8px 6px 8px 16px; gap: 12px; }
  .cf-nav-cta { padding: 6px 14px; font-size: 12px; }
  .cf-hero { padding: 110px 16px 48px; }
  .cf-hero-title { font-size: 32px; }
  .cf-popup-card { padding: 12px 16px; gap: 12px; }
  .cf-popup-text { font-size: 12px; }
  .cf-dash-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cf-dashboard { padding: 20px; }
}
