﻿*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #d4a843;
  --gold-light: #f0d078;
  --navy-deep: #070b14;
  --navy-mid: #0c1424;
  --white: #ffffff;
}

html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(170deg, var(--navy-mid) 0%, var(--navy-deep) 40%, #000000 100%);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* -- Background Grid Overlay -- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(212, 168, 67, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 168, 67, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridFade 2.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes gridFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* -- Canvas -- */
#candlesticks {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* -- Top Bar Header & Ticker -- */
#top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 42px;
  background: rgba(7, 11, 20, 0.7);
  border-bottom: 1px solid rgba(212, 168, 67, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  animation: topBarIn 1.5s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes topBarIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(34, 197, 150, 0.8);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.ticker-wrap {
  overflow: hidden;
  width: 100%;
  max-width: 650px;
  margin-left: 2rem;
  mask-image: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 15%, #fff 85%, transparent);
}

.ticker {
  display: flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: tickerScroll 28s linear infinite;
}

@keyframes tickerScroll {
  0% { transform: translateX(50%); }
  100% { transform: translateX(-100%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ticker-symbol {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.ticker-val {
  font-family: monospace;
  font-size: 0.72rem;
}

.ticker-val.up { color: #22c55e; }
.ticker-val.down { color: #ef4444; }

/* -- Floating background symbols -- */
#floaters {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.floater {
  position: absolute;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--gold);
  opacity: 0;
  will-change: transform, opacity;
}

.f1  { left:  5%; font-size: 1.1rem; animation: floatUp 18s 0s    infinite; }
.f2  { left: 14%; font-size: 0.8rem; animation: floatUp 22s 3s    infinite; }
.f3  { left: 24%; font-size: 1.4rem; animation: floatUp 20s 1.5s  infinite; }
.f4  { left: 35%; font-size: 1rem;   animation: floatUp 25s 5s    infinite; }
.f5  { left: 48%; font-size: 0.7rem; animation: floatUp 19s 8s    infinite; }
.f6  { left: 58%; font-size: 1.2rem; animation: floatUp 23s 2s    infinite; }
.f7  { left: 68%; font-size: 0.9rem; animation: floatUp 17s 6s    infinite; }
.f8  { left: 76%; font-size: 1.3rem; animation: floatUp 21s 4s    infinite; }
.f9  { left: 84%; font-size: 0.85rem;animation: floatUp 26s 7s    infinite; }
.f10 { left: 92%; font-size: 1rem;   animation: floatUp 20s 10s   infinite; }
.f11 { left: 40%; font-size: 0.6rem; animation: floatUp 24s 12s   infinite; }
.f12 { left: 72%; font-size: 0.75rem;animation: floatUp 16s 9s    infinite; }

@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg);   opacity: 0; }
  5%   { opacity: 0.07; }
  50%  { opacity: 0.1;  transform: translateY(50vh) rotate(15deg); }
  95%  { opacity: 0.04; }
  100% { transform: translateY(-10vh) rotate(-10deg);  opacity: 0; }
}

/* -- Ambient background orbs -- */
#orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.orb1 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  top: 15%; left: -5%;
  animation: orbDrift1 30s ease-in-out infinite;
}
.orb2 {
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(212,168,67,0.05) 0%, transparent 70%);
  bottom: 10%; right: -3%;
  animation: orbDrift2 35s ease-in-out infinite;
}
.orb3 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  top: 50%; left: 55%;
  animation: orbDrift3 40s ease-in-out infinite;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(60px, 40px); }
  66%      { transform: translate(-30px, 80px); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-50px, -60px); }
  66%      { transform: translate(40px, -30px); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.6; }
  50%      { transform: translate(-80px, 40px); opacity: 1; }
}

/* -- Scan line -- */
#scanline {
  position: fixed;
  left: 0; right: 0;
  height: 1px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(212,168,67,0.15) 40%, rgba(212,168,67,0.15) 60%, transparent);
  animation: scanMove 12s linear infinite;
  opacity: 0.5;
}

@keyframes scanMove {
  0%   { top: -2px; }
  100% { top: 100%; }
}

/* -- Hero -- */
#hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 2rem;
}

#hero-content {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

#wordmark {
  font-size: clamp(3.4rem, 8vw, 7.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--white) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(212, 168, 67, 0.25));
  animation: wordmarkIn 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes wordmarkIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: drop-shadow(0 0 0 rgba(212, 168, 67, 0)) blur(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 40px rgba(212, 168, 67, 0.25)) blur(0px);
  }
}

#tagline {
  font-size: clamp(1rem, 2.2vw, 1.45rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
  margin-top: 1.2rem;
  animation: fadeUp 1.2s 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); filter: blur(5px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0px); }
}

#accent-line {
  width: clamp(60px, 8vw, 120px);
  height: 2px;
  margin-top: 1.6rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 1px;
  animation: lineIn 1.2s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes lineIn {
  from { opacity: 0; width: 0; }
  to   { opacity: 1; width: clamp(60px, 8vw, 120px); }
}

/* -- Interactive Floating Data Cards -- */
#data-cards {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.data-card {
  position: absolute;
  width: 290px;
  background: rgba(12, 20, 36, 0.35);
  border: 1px solid rgba(212, 168, 67, 0.12);
  border-radius: 14px;
  padding: 1.4rem;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: border-color 0.3s, transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s, background-color 0.3s;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  pointer-events: auto;
}

/* Card Glow Effect (Dynamic Mouse coordinates) */
.data-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(120px circle at var(--x, 0px) var(--y, 0px), rgba(240, 208, 120, 0.12), transparent 75%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.data-card:hover::before {
  opacity: 1;
}

.data-card:hover {
  border-color: rgba(212, 168, 67, 0.55);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(212, 168, 67, 0.15), 0 0 30px rgba(212, 168, 67, 0.04);
  background: rgba(12, 20, 36, 0.7);
}

.card-icon {
  width: 22px;
  height: 22px;
  stroke: var(--gold-light);
  margin-bottom: 0.6rem;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(212, 168, 67, 0.25));
}

.card-label {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold-light);
  letter-spacing: 0.15em;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0.15rem;
}

.card-details {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
  transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.data-card:hover .card-details {
  max-height: 120px;
  opacity: 1;
  margin-top: 0.7rem;
}

/* Card positions and float oscillations */
.dc1 { top: 15%; left: 8%; animation: cardFloat1 9s ease-in-out infinite, cardIn1 1.5s 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.dc2 { top: 15%; right: 8%; animation: cardFloat2 10s ease-in-out infinite, cardIn2 1.5s 1.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.dc3 { bottom: 20%; left: 8%; animation: cardFloat3 11s ease-in-out infinite, cardIn3 1.5s 1.2s cubic-bezier(0.16, 1, 0.3, 1) both; }
.dc4 { bottom: 20%; right: 8%; animation: cardFloat4 8.5s ease-in-out infinite, cardIn4 1.5s 1.3s cubic-bezier(0.16, 1, 0.3, 1) both; }

.data-card:hover {
  animation-play-state: paused;
}

/* Entry slide-in and fade animations for each card corner */
@keyframes cardIn1 {
  from { opacity: 0; transform: translate(-30px, -30px) scale(0.95); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes cardIn2 {
  from { opacity: 0; transform: translate(30px, -30px) scale(0.95); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes cardIn3 {
  from { opacity: 0; transform: translate(-30px, 30px) scale(0.95); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes cardIn4 {
  from { opacity: 0; transform: translate(30px, 30px) scale(0.95); }
  to   { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* Float animations */
@keyframes cardFloat1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(0.8deg); }
}
@keyframes cardFloat2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(-0.8deg); }
}
@keyframes cardFloat3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-10px) rotate(-0.5deg); }
}
@keyframes cardFloat4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(0.5deg); }
}

/* -- Responsive / Mobile Layout Adaptations -- */
@media (max-width: 1100px) {
  html, body {
    overflow-y: auto;
  }
  
  #top-bar {
    padding: 0 1rem;
  }
  
  .ticker-wrap {
    display: none;
  }
  
  #hero {
    height: auto;
    min-height: 100vh;
    padding-top: 6rem;
    padding-bottom: 8rem;
    justify-content: flex-start;
  }
  
  #data-cards {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 800px;
    margin-top: 4.5rem;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    pointer-events: auto;
  }
  
  .data-card {
    position: relative;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100%;
    animation: mobileCardFadeIn 1s cubic-bezier(0.22, 1, 0.36, 1) both !important;
  }
  
  .data-card:nth-child(1) { animation-delay: 0.6s !important; }
  .data-card:nth-child(2) { animation-delay: 0.7s !important; }
  .data-card:nth-child(3) { animation-delay: 0.8s !important; }
  .data-card:nth-child(4) { animation-delay: 0.9s !important; }

  @keyframes mobileCardFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  
  .data-card .card-details {
    max-height: 150px;
    opacity: 1;
    margin-top: 0.7rem;
  }
}

/* -- Footer -- */
#ecosystem {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 1.6rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.04em;
  animation: footerIn 1.5s 1.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes footerIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#bizpowr-logo {
  width: 68px;
  height: 16px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}
