
/* ============================================
   GLOBAL BRAND VARIABLES
============================================ */
:root {
  --orange: #FF6A00;
  --amber: #FFB000;
  --matte-black: #050505;
  --steel-grey: #3A3A3A;
  --soft-white: #F5F5F5;
  --slate-grey: #2F2F2F;
}

/* ============================================
   BASE
============================================ */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--matte-black);
  color: var(--soft-white);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

body.loaded {
  opacity: 1;
}

a {
  color: inherit;
}

/* ============================================
   HERO HEADER — CINEMATIC VERSION
============================================ */
.hero-header {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  border-bottom: 4px solid var(--orange);
  animation: fadeInHero 0.8s ease-out forwards;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) contrast(1.08);
  transform: scale(1.12);
  animation: heroZoom 12s ease-out forwards;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0.12), rgba(0,0,0,0.78));
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero-text {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 800;
  color: var(--soft-white);
  text-shadow:
    0 0 10px rgba(0,0,0,0.9),
    0 0 18px rgba(0,0,0,0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
  white-space: nowrap;
  animation: fadeInText 1.2s ease-out forwards;
  z-index: 2;
}

/* ============================================
   DASHBOARD LAYOUT
============================================ */
.dashboard-body {
  background: var(--matte-black);
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

/* ============================================
   DASHBOARD CARDS
============================================ */
.card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(24,28,36,0.98), rgba(10,10,10,0.98));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.03),
    0 10px 28px rgba(0,0,0,0.50);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(255,106,0,0.04),
      transparent 18%,
      transparent 82%,
      rgba(255,106,0,0.03)
    );
  pointer-events: none;
}

.card h2 {
  margin: 0 0 12px 0;
  font-size: 13px;
  color: #CFCFCF;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ============================================
   KPI BLOCKS
============================================ */
.kpi {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  margin: 10px 0 8px;
  color: var(--orange);
  text-shadow: 0 0 18px rgba(255,106,0,0.28);
}

.kpi-label {
  font-size: 13px;
  line-height: 1.5;
  color: #B7B7B7;
  min-height: 20px;
}

/* ============================================
   TAG LISTS
============================================ */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  min-height: 36px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(58,58,58,0.95);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  color: var(--soft-white);
  box-shadow: 0 0 12px rgba(255,106,0,0.12);
}

/* ============================================
   CANVAS / CHARTS
============================================ */
canvas {
  display: block;
  width: 100% !important;
  height: 280px !important;
  background-color: #050505 !important;
  border-radius: 8px;
}

/* ============================================
   FOOTER
============================================ */
.site-footer {
  background: #070707;
  color: var(--soft-white);
  padding: 24px;
  text-align: center;
  font-size: 14px;
  border-top: 4px solid var(--orange);
  opacity: 0.95;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeInHero {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroZoom {
  0% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1.04);
  }
}

@keyframes pulseGlow {
  0% {
    opacity: 0.72;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.72;
  }
}

@keyframes fadeInText {
  0% {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 900px) {
  .hero-header {
    height: 240px;
  }

  .hero-text {
    font-size: 22px;
  }

  .dashboard-container {
    padding: 24px 16px 36px;
  }

  canvas {
    height: 240px !important;
  }

  .kpi {
    font-size: 48px;
  }
}

@media (max-width: 600px) {
  .hero-header {
    height: 180px;
  }

  .hero-text {
    font-size: 18px;
    white-space: normal;
    padding: 0 12px;
  }

  .card {
    padding: 16px;
  }

  .kpi {
    font-size: 40px;
  }

  canvas {
    height: 220px !important;
  }
}

@media (max-width: 400px) {
  .hero-header {
    height: 150px;
  }

  .hero-text {
    font-size: 16px;
  }
}
