/* TrendNalysis — candlestick "N" hero (landing page).
   Self-contained; scoped to .tn-hero so it doesn't touch the rest of the site's styles. */
.tn-hero {
  --tn-bg: #05070d;
  --tn-green: #00b894;
  --tn-red: #ff3b4f;
  --tn-blue: #3b82f6;
  --tn-text: #f8fafc;
  --tn-muted: #94a3b8;
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(59, 130, 246, 0.12), transparent 34%),
    linear-gradient(180deg, #080b12 0%, #05070d 100%);
  color: var(--tn-text);
}

.tn-market-hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.tn-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5,7,13,0.84) 0%, rgba(5,7,13,0.35) 38%, rgba(5,7,13,0.35) 62%, rgba(5,7,13,0.84) 100%),
    linear-gradient(180deg, rgba(5,7,13,0.16) 0%, rgba(5,7,13,0.72) 100%);
  pointer-events: none;
}

.tn-hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  text-align: center;
  padding: 80px 24px 64px;
}

.tn-logo-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.08em;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.075em;
  color: var(--tn-text);
  text-shadow: 0 12px 42px rgba(0,0,0,0.45);
}

.tn-logo-left,
.tn-logo-right {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(10px) scale(0.97);
  transition: opacity 500ms ease, filter 500ms ease, transform 500ms ease;
}

.tn-logo-n-placeholder {
  display: inline-block;
  width: clamp(0.64em, 7vw, 0.82em);
  height: 1em;
}

.tn-hero.is-logo-visible .tn-logo-left,
.tn-hero.is-logo-visible .tn-logo-right {
  opacity: 1;
  filter: blur(0);
  transform: translateX(0) translateY(0);
}

.tn-hero-subtitle {
  margin: 26px auto 0;
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  color: rgba(248,250,252,0.92);
  font-weight: 600;
}

.tn-hero-description {
  margin: 14px auto 0;
  max-width: 680px;
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--tn-muted);
  line-height: 1.65;
}

.tn-hero-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.tn-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}
.tn-btn:hover { transform: translateY(-1px); }
.tn-btn-primary { background: #2563EB; color: #fff; }
.tn-btn-secondary {
  color: #f8fafc;
  border: 1px solid rgba(248,250,252,0.24);
  background: rgba(255,255,255,0.06);
}

@media (max-width: 720px) {
  .tn-hero { min-height: 76vh; }
  .tn-logo-reveal { letter-spacing: -0.06em; }
  .tn-hero-overlay {
    background: linear-gradient(180deg, rgba(5,7,13,0.18) 0%, rgba(5,7,13,0.84) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tn-logo-left, .tn-logo-right, .tn-btn { transition: none; }
}
