:root {
  --sunrise-coral: #FF6B4A;
  --digital-teal: #2EC4B6;
  --midnight-indigo: #1A1145;
  --cream-float: #FFF8F0;
  --frosted-lilac: #E8E0F0;
  --solar-gold: #FFB347;
  --aqua-pulse: #66E0D8;
  --ink-deep: #2A2340;
  --edge-indigo: #2A1B5E;
  --elastic-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --elastic-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --cell-radius: 20px;
  --cell-blur: 12px;
  --noise-opacity: 0.03;
}

/* Interactions**: All bento cells respond to hover with elastic scale (1.0 → 1.02, IntersectionObserver IntersectionObserver (no scroll listeners */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink-deep);
  font-family: "DM Sans", Inter, sans-serif;
  background:
    radial-gradient(circle at 72% 3%, rgba(255, 107, 74, 0.16), transparent 36rem),
    linear-gradient(180deg, var(--midnight-indigo) 0 48rem, #FFF8F0 48rem 100%);
  overflow-x: hidden;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.compliance-phrase { display: none; }

.hero-hud {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--cream-float);
  background:
    radial-gradient(circle at 73% 18%, rgba(255, 107, 74, 0.08), transparent 38%),
    radial-gradient(circle at center, var(--midnight-indigo), var(--edge-indigo) 72%);
}

.hero-hud::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, rgba(46, 196, 182, 0.03) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.sunrise-arc {
  position: absolute;
  width: 80vw;
  height: 40vw;
  left: 10vw;
  bottom: -25vw;
  border-radius: 80vw 80vw 0 0;
  background: radial-gradient(ellipse at center bottom, rgba(255, 107, 74, 0.2), rgba(255, 179, 71, 0.08) 36%, transparent 70%);
  filter: blur(1px);
  opacity: 0.65;
}

.hud-radar {
  position: absolute;
  top: 14vh;
  left: 8vw;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(46, 196, 182, 0.4);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(46, 196, 182, 0.12), inset 0 0 40px rgba(102, 224, 216, 0.05);
  opacity: 0;
  animation: loadFade 700ms var(--elastic-smooth) forwards;
}

.hud-radar::before,
.hud-radar::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(46, 196, 182, 0.16);
  border-radius: 50%;
}

.hud-radar::after {
  inset: 0;
  border: 0;
  background: conic-gradient(from 0deg, rgba(46, 196, 182, 0.34), transparent 42deg, transparent 360deg);
  animation: radarSweep 8s linear infinite;
}

.radar-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--aqua-pulse);
  box-shadow: 0 0 14px var(--aqua-pulse);
  animation: dotBlink 3.5s var(--elastic-smooth) infinite;
  z-index: 2;
}
.dot-one { top: 42px; left: 118px; }
.dot-two { top: 130px; left: 70px; animation-delay: 900ms; }
.dot-three { top: 92px; right: 40px; animation-delay: 1700ms; }
.radar-label { position: absolute; left: 0; bottom: -28px; font-family: "Chakra Petch", sans-serif; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--aqua-pulse); }

.hud-nav-pills {
  position: fixed;
  top: 28px;
  right: 28px;
  display: flex;
  gap: 10px;
  z-index: 50;
  transition: all 450ms var(--elastic-bounce);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: var(--cream-float);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font: 600 clamp(0.65rem, 0.9vw, 0.8rem) "Chakra Petch", sans-serif;
  background: rgba(255, 248, 240, 0.09);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(26, 17, 69, 0.18);
  transition: transform 300ms var(--elastic-bounce), background 300ms var(--elastic-smooth), color 300ms var(--elastic-smooth);
}

.nav-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--frosted-lilac); box-shadow: 0 0 0 transparent; transition: inherit; }
.nav-pill.active { background: rgba(46, 196, 182, 0.18); color: var(--aqua-pulse); transform: translateY(-1px); }
.nav-pill.active span { background: var(--sunrise-coral); box-shadow: 0 0 16px var(--sunrise-coral); animation: pillPulse 1.7s var(--elastic-smooth) infinite; }
.hud-nav-pills.compact { top: 50%; right: 18px; flex-direction: column; transform: translateY(-50%); }
.hud-nav-pills.compact .nav-pill { width: 16px; height: 16px; padding: 0; font-size: 0; justify-content: center; background: rgba(26, 17, 69, 0.42); }
.hud-nav-pills.compact .nav-pill span { width: 7px; height: 7px; }

.hud-horizon {
  position: absolute;
  left: 0;
  top: 60%;
  width: 100%;
  height: 1px;
  background: rgba(255, 107, 74, 0.2);
  transform: scaleX(0);
  transform-origin: left;
  animation: horizonDraw 800ms var(--elastic-smooth) 200ms forwards;
}

.hud-horizon i { position: absolute; top: -8px; width: 1px; height: 16px; background: rgba(255, 179, 71, 0.26); }
.hud-horizon i:nth-child(1) { left: 4%; } .hud-horizon i:nth-child(2) { left: 12%; } .hud-horizon i:nth-child(3) { left: 20%; } .hud-horizon i:nth-child(4) { left: 28%; } .hud-horizon i:nth-child(5) { left: 36%; } .hud-horizon i:nth-child(6) { left: 44%; } .hud-horizon i:nth-child(7) { left: 52%; } .hud-horizon i:nth-child(8) { left: 60%; } .hud-horizon i:nth-child(9) { left: 68%; } .hud-horizon i:nth-child(10) { left: 76%; } .hud-horizon i:nth-child(11) { left: 84%; } .hud-horizon i:nth-child(12) { left: 92%; }

.hero-greeting {
  position: absolute;
  left: clamp(24px, 12vw, 170px);
  top: 35%;
  z-index: 3;
  opacity: 0;
  transform: scale(0.8) translateY(20px);
  animation: greetingLoad 800ms var(--elastic-bounce) 400ms forwards;
}

.hud-kicker,
.cell-label,
.data-chip span {
  font-family: "Chakra Petch", sans-serif;
  font-size: clamp(0.65rem, 0.9vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hud-kicker { color: var(--aqua-pulse); margin-bottom: 0.4rem; }
.hero-greeting h1 { margin: 0; font-family: "Urbanist", sans-serif; font-size: clamp(3rem, 8vw, 7rem); line-height: 0.88; letter-spacing: -0.02em; font-weight: 700; text-shadow: 0 0 34px rgba(255, 107, 74, 0.2); }
.hero-subtitle { margin: 0.7rem 0 0; font-size: clamp(1rem, 2vw, 1.5rem); color: rgba(255, 248, 240, 0.78); }

.hud-data-strip {
  position: absolute;
  left: clamp(24px, 8vw, 110px);
  right: clamp(24px, 8vw, 110px);
  bottom: 9vh;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  z-index: 3;
  opacity: 0;
  transform: translateY(30px);
  animation: dataLoad 700ms var(--elastic-bounce) 600ms forwards;
}

.data-chip {
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255, 248, 240, 0.08);
  backdrop-filter: blur(12px);
}
.data-chip span { display: block; color: rgba(102, 224, 216, 0.9); }
.data-chip strong { display: block; margin-top: 6px; font-weight: 500; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }

.bento-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(190px, auto);
  gap: clamp(8px, 1.5vw, 16px);
  padding: clamp(18px, 5vw, 76px);
  background:
    radial-gradient(circle at 12% 20%, rgba(102, 224, 216, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 42%, rgba(255, 107, 74, 0.11), transparent 25rem),
    var(--cream-float);
  overflow: hidden;
}

.bento-cell {
  position: relative;
  min-height: 250px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--cell-radius);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255, 248, 240, 0.85);
  backdrop-filter: blur(var(--cell-blur));
  box-shadow: 0 16px 60px rgba(42, 27, 94, 0.08), inset 0 1px 0 rgba(255,255,255,0.7);
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 300ms var(--elastic-bounce), box-shadow 300ms var(--elastic-smooth), opacity 600ms var(--elastic-smooth);
}

.bento-cell.revealed { opacity: 1; transform: translateY(0); }
.bento-cell:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(46, 196, 182, 0.15), 0 0 0 1px rgba(255,107,74,0.1), 0 22px 80px rgba(42, 27, 94, 0.12); }
.cell-layer { position: relative; z-index: 2; transition: transform 500ms var(--elastic-smooth); }
.bento-cell:hover .cell-layer { transform: translateY(-4px); }
.cell-wide { grid-column: span 2; }
.cell-large { grid-row: span 2; min-height: 430px; }
.cell-tall { grid-row: span 2; }
.cell-medium { grid-column: span 2; }
.cell-label { color: var(--digital-teal); margin: 0 0 12px; }
.bento-cell h2 { margin: 0 0 16px; font: 600 clamp(1.5rem, 3vw, 2.5rem)/0.98 "Urbanist", sans-serif; letter-spacing: -0.02em; color: var(--ink-deep); }
.bento-cell p:not(.cell-label) { margin: 0; font-size: clamp(0.875rem, 1.2vw, 1.1rem); line-height: 1.65; letter-spacing: 0.005em; color: rgba(42, 35, 64, 0.78); }
.coral-cell { background: linear-gradient(135deg, rgba(255, 107, 74, 0.17), rgba(255, 248, 240, 0.86)); }
.lilac-cell { background: linear-gradient(135deg, rgba(232, 224, 240, 0.9), rgba(255, 248, 240, 0.82)); }
.final-cell { background: linear-gradient(120deg, rgba(26, 17, 69, 0.92), rgba(42, 27, 94, 0.86)); }
.final-cell h2, .final-cell p { color: var(--cream-float) !important; }

.corner { position: absolute; width: 16px; height: 16px; border-color: rgba(46, 196, 182, 0.3); transition: width 300ms var(--elastic-bounce), height 300ms var(--elastic-bounce); }
.tl { top: 14px; left: 14px; border-top: 2px solid; border-left: 2px solid; }
.tr { top: 14px; right: 14px; border-top: 2px solid; border-right: 2px solid; }
.bl { bottom: 14px; left: 14px; border-bottom: 2px solid; border-left: 2px solid; }
.br { bottom: 14px; right: 14px; border-bottom: 2px solid; border-right: 2px solid; }
.bento-cell:hover .corner { width: 20px; height: 20px; }

.mini-sun { position: absolute; right: 8%; bottom: 10%; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(255,179,71,0.44), rgba(255,107,74,0.12) 45%, transparent 72%); filter: blur(2px); }
.vertical-gauge { position: absolute; right: 28px; bottom: 28px; width: 12px; height: 58%; border: 1px solid rgba(46,196,182,0.35); border-radius: 999px; padding: 3px; }
.vertical-gauge span { display: block; width: 100%; height: 72%; margin-top: 54%; transform: translateY(-100%); border-radius: inherit; background: linear-gradient(180deg, var(--solar-gold), var(--sunrise-coral)); box-shadow: 0 0 20px rgba(255,179,71,0.28); }
.data-ticker { position: absolute; left: 0; right: 0; bottom: 22px; overflow: hidden; white-space: nowrap; color: var(--aqua-pulse); font: 600 10px "Chakra Petch", sans-serif; letter-spacing: 0.12em; text-transform: uppercase; }
.data-ticker span { display: inline-block; min-width: 200%; animation: ticker 20s linear infinite; }
.data-ticker.wide { position: relative; bottom: auto; margin-top: 24px; padding: 12px 0 0; border-top: 1px solid rgba(46,196,182,0.14); }
.bento-cell:hover .data-ticker span { animation-duration: 40s; }
.bubble-field span { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(102,224,216,0.5), transparent 68%); animation: floatBubble 12s var(--elastic-smooth) infinite; }
.bubble-field span:nth-child(1) { width: 80px; height: 80px; right: 18%; top: 18%; }
.bubble-field span:nth-child(2) { width: 46px; height: 46px; right: 32%; bottom: 18%; animation-delay: 2s; }
.bubble-field span:nth-child(3) { width: 120px; height: 120px; right: -20px; bottom: -20px; animation-delay: 4s; }
.ring-stack span { position: absolute; right: 12%; bottom: 15%; border: 1px solid rgba(46,196,182,0.22); border-radius: 50%; animation: ringPulse 4s var(--elastic-smooth) infinite; }
.ring-stack span:nth-child(1) { width: 70px; height: 70px; }
.ring-stack span:nth-child(2) { width: 112px; height: 112px; margin: -21px; animation-delay: 600ms; }
.ring-stack span:nth-child(3) { width: 154px; height: 154px; margin: -42px; animation-delay: 1200ms; }

.orb { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,179,71,0.8), transparent 70%); opacity: 0.06; animation: orbDrift 32s ease-in-out infinite; }
.orb-one { width: 70px; height: 70px; left: 6%; top: 20%; }
.orb-two { width: 42px; height: 42px; right: 13%; top: 8%; animation-duration: 24s; }
.orb-three { width: 90px; height: 90px; left: 42%; bottom: 18%; animation-duration: 40s; }
.orb-four { width: 56px; height: 56px; right: 6%; bottom: 8%; animation-duration: 28s; }

@keyframes radarSweep { to { transform: rotate(360deg); } }
@keyframes dotBlink { 0%, 100% { opacity: 0.15; transform: scale(0.7); } 45% { opacity: 1; transform: scale(1.45); } }
@keyframes pillPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.5); } }
@keyframes loadFade { to { opacity: 1; } }
@keyframes horizonDraw { to { transform: scaleX(1); } }
@keyframes greetingLoad { to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes dataLoad { to { opacity: 1; transform: translateY(0); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes floatBubble { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-5px, -18px); } }
@keyframes ringPulse { 0%, 100% { opacity: 0.2; transform: scale(0.96); } 50% { opacity: 0.75; transform: scale(1.04); } }
@keyframes orbDrift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(5px, -36px); } }

@media (max-width: 1024px) {
  .hud-radar { transform: scale(0.5); transform-origin: top left; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .cell-wide, .cell-medium { grid-column: span 2; }
  .hud-data-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .hud-radar { display: none; }
  .hud-nav-pills { right: 14px; top: 14px; gap: 6px; }
  .nav-pill { padding: 9px 10px; }
  .hero-greeting { left: 22px; right: 22px; top: 38%; }
  .hud-data-strip { display: none; }
  .bento-grid { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .bento-cell, .cell-wide, .cell-medium, .cell-large, .cell-tall { grid-column: span 1; grid-row: span 1; min-height: 260px; }
  .sunrise-arc { width: 120vw; height: 60vw; left: -10vw; }
}
