/* ==========================================================================
   EVALUATE HEALTH — COZY STUDIO VIBE
   Warm amber atmosphere with animated girl character
   ========================================================================== */

:root {
  --skin:        #f5c5a3;
  --skin-dark:   #e8a882;
  --hair:        #2c1a10;
  --shirt:       #8b6bb5;
  --shirt-dark:  #6a4e96;
  --pant:        #3a3560;
  --orange:      #ff8a3d;
  --amber:       #ffc470;
  --font-head:   'Outfit', sans-serif;
  --font-body:   'Plus Jakarta Sans', sans-serif;
  --bg-dark:     #0a0705;
  --text-pri:    #fff8f0;
  --text-sec:    #e2d1c3;
  --text-muted:  #a89485;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: var(--bg-dark); font-family: var(--font-body); color: var(--text-pri); }

/* =====================================================
   BACKGROUND SCENE
   ===================================================== */
.scene-viewport {
  position: fixed; inset: 0; overflow: hidden; z-index: 1;
}

.scene-image-layer {
  position: absolute;
  top: -4%; left: -4%;
  width: 108%; height: 108%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

#fx-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 2;
}

.warm-scrim {
  position: fixed; inset: 0; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 72% 32%, rgba(255,150,60,0.14) 0%, transparent 55%),
    radial-gradient(circle at 25% 72%, rgba(255,196,112,0.09) 0%, transparent 50%),
    linear-gradient(to top,  rgba(10,7,5,0.88) 0%, rgba(10,7,5,0.25) 38%, transparent 65%),
    linear-gradient(to right, rgba(10,7,5,0.82) 0%, rgba(10,7,5,0.15) 45%, transparent 72%);
}

/* =====================================================
   CHARACTER SCENE
   ===================================================== */
.character-scene {
  position: fixed;
  bottom: 0;
  right: 5%;
  z-index: 8;
  pointer-events: none;
  /* Subtle float */
  animation: sceneFloat 6s ease-in-out infinite;
}

@keyframes sceneFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-8px); }
}

.character {
  position: relative;
  width: 220px;
  height: 320px;
}

/* Shadow on floor */
.char-shadow {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 18px;
  background: rgba(0,0,0,0.25);
  border-radius: 50%;
  filter: blur(8px);
}

/* ---- Chair back ---- */
.chair-back-rest {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 110px;
  background: linear-gradient(160deg, #4a3a8a 0%, #2e2260 100%);
  border-radius: 12px 12px 4px 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
  z-index: 1;
}

.chair-back-rest::after {
  content: '';
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 20px;
  background: linear-gradient(160deg, #5a4a9a 0%, #3a2a70 100%);
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

/* ---- Body wrapper ---- */
.char-body {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 3;
}

/* ---- Head ---- */
.char-head {
  position: relative;
  width: 68px;
  height: 72px;
  margin-bottom: -4px;
}

.char-face {
  position: absolute;
  inset: 0;
  background: var(--skin);
  border-radius: 50% 50% 46% 46%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  overflow: hidden;
}

.blush {
  position: absolute;
  bottom: 22px;
  width: 14px; height: 8px;
  background: rgba(255,130,130,0.35);
  border-radius: 50%;
}
.blush-l { left: 6px; }
.blush-r { right: 6px; }

.eyes-row {
  position: absolute;
  top: 30px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.eye {
  width: 9px; height: 9px;
  background: #1a0e08;
  border-radius: 50%;
  position: relative;
  animation: blink 4.5s ease-in-out infinite;
}

.pupil {
  position: absolute;
  top: 1px; left: 2px;
  width: 3px; height: 3px;
  background: rgba(255,255,255,0.7);
  border-radius: 50%;
}

@keyframes blink {
  0%, 40%, 60%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.08); }
}

.nose {
  position: absolute;
  top: 42px; left: 50%;
  transform: translateX(-50%);
  width: 7px; height: 6px;
  border-right: 2px solid var(--skin-dark);
  border-bottom: 2px solid var(--skin-dark);
  border-radius: 0 0 4px 0;
}

.mouth {
  position: absolute;
  top: 52px; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 6px;
  border-bottom: 2.5px solid #d07080;
  border-radius: 0 0 50% 50%;
}

/* ---- Hair ---- */
.hair {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.hair-top {
  position: absolute;
  top: -5px; left: -3px; right: -3px;
  height: 34px;
  background: var(--hair);
  border-radius: 52% 52% 10% 10%;
}

.hair-l {
  position: absolute;
  top: 8px; left: -8px;
  width: 14px; height: 46px;
  background: var(--hair);
  border-radius: 8px 0 8px 12px;
}

.hair-r {
  position: absolute;
  top: 8px; right: -8px;
  width: 14px; height: 46px;
  background: var(--hair);
  border-radius: 0 8px 12px 8px;
}

.hair-bun {
  position: absolute;
  top: -14px; right: 4px;
  width: 20px; height: 20px;
  background: var(--hair);
  border-radius: 50%;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.3);
}

/* ---- Headphones ---- */
.headphones {
  position: absolute;
  inset: 0; z-index: 5;
}

.hp-arc {
  position: absolute;
  top: -12px; left: -12px; right: -12px;
  height: 20px;
  border-top: 5px solid #1a1a2e;
  border-left: 5px solid #1a1a2e;
  border-right: 5px solid #1a1a2e;
  border-radius: 50% 50% 0 0;
}

.hp-pad {
  position: absolute;
  top: 12px;
  width: 15px; height: 22px;
  background: linear-gradient(160deg, #2a2a4a, #12122a);
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}
.hp-pad-l { left: -14px; }
.hp-pad-r { right: -14px; }

/* ---- Torso ---- */
.char-torso {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.torso-neck {
  width: 20px; height: 12px;
  background: var(--skin);
  border-radius: 0 0 4px 4px;
}

.torso-shirt {
  width: 90px; height: 72px;
  background: linear-gradient(160deg, var(--shirt) 0%, var(--shirt-dark) 100%);
  border-radius: 12px 12px 20px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  position: relative;
}

.torso-shirt::before {
  /* Collar V */
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 24px; height: 14px;
  background: var(--skin);
  clip-path: polygon(50% 100%, 0% 0%, 100% 0%);
}

/* ---- Arms ---- */
.arm {
  position: absolute;
  bottom: 14px;
}

.arm-l {
  left: -4px;
  transform-origin: top left;
  animation: typeL 0.5s ease-in-out infinite alternate;
}
.arm-r {
  right: -4px;
  transform-origin: top right;
  animation: typeR 0.5s ease-in-out infinite alternate 0.25s;
}

@keyframes typeL {
  from { transform: rotate(-8deg) translateY(0); }
  to   { transform: rotate(6deg) translateY(5px); }
}
@keyframes typeR {
  from { transform: rotate(8deg) translateY(0); }
  to   { transform: rotate(-6deg) translateY(5px); }
}

.arm-upper-l, .arm-upper-r {
  width: 18px; height: 36px;
  background: linear-gradient(160deg, var(--shirt) 0%, var(--shirt-dark) 100%);
  border-radius: 9px;
  margin: 0 auto;
}

.arm-lower-l, .arm-lower-r {
  width: 16px; height: 30px;
  background: linear-gradient(160deg, var(--skin) 0%, var(--skin-dark) 100%);
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
}

.hand {
  width: 18px; height: 16px;
  background: var(--skin);
  border-radius: 40% 40% 50% 50%;
  margin: 0 auto;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* ---- Laptop ---- */
.laptop {
  position: absolute;
  bottom: 86px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.laptop-screen {
  width: 130px;
  height: 90px;
  background: #0d1117;
  border-radius: 8px 8px 0 0;
  border: 3px solid #1e1e2e;
  padding: 6px;
  box-shadow: 0 0 30px rgba(80,160,255,0.2), 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
}

.screen-inner {
  width: 100%;
  height: 100%;
  background: #0a1628;
  border-radius: 4px;
  padding: 6px 8px;
  overflow: hidden;
  position: relative;
}

.code-line {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 7px;
  animation: codeGlow 2.5s ease-in-out infinite alternate;
}

.cl-1 { width: 75%; background: linear-gradient(90deg, #79c0ff, transparent); animation-delay: 0s; }
.cl-2 { width: 50%; background: linear-gradient(90deg, #ff7b72, transparent); animation-delay: 0.2s; }
.cl-3 { width: 85%; background: linear-gradient(90deg, #79c0ff, transparent); animation-delay: 0.4s; }
.cl-4 { width: 40%; background: linear-gradient(90deg, #d2a8ff, transparent); animation-delay: 0.6s; }
.cl-5 { width: 65%; background: linear-gradient(90deg, #56d364, transparent); animation-delay: 0.8s; }

@keyframes codeGlow {
  from { opacity: 0.5; }
  to   { opacity: 1; }
}

.cursor-block {
  width: 6px; height: 10px;
  background: #79c0ff;
  animation: cursorBlink 1s step-end infinite;
  position: absolute;
  bottom: 10px; left: 36px;
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.laptop-hinge {
  width: 140px;
  height: 5px;
  background: #1e1e2e;
  border-radius: 3px;
  margin: 0 auto;
}

.laptop-base {
  width: 150px;
  height: 12px;
  background: linear-gradient(160deg, #252535, #151522);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* ---- Coffee mug ---- */
.coffee {
  position: absolute;
  bottom: 90px;
  right: 10px;
  z-index: 4;
}

.coffee-cup {
  width: 28px; height: 32px;
  background: linear-gradient(135deg, #fffaf4, #f0e8d8);
  border-radius: 3px 3px 7px 7px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.coffee-cup::after {
  /* handle */
  content: '';
  position: absolute;
  right: -9px; top: 6px;
  width: 10px; height: 14px;
  border: 2.5px solid rgba(200,180,150,0.8);
  border-left: none;
  border-radius: 0 6px 6px 0;
}

.cup-inner {
  position: absolute;
  top: 4px; left: 4px; right: 4px;
  height: 8px;
  background: #7a4020;
  border-radius: 2px;
}

.steam {
  position: absolute;
  bottom: 32px;
  width: 3px;
  background: rgba(255,255,255,0.55);
  border-radius: 3px;
  animation: steamUp 2.2s ease-in-out infinite;
}

.s1 { left: 6px;  height: 12px; animation-delay: 0s; }
.s2 { left: 16px; height: 10px; animation-delay: 0.55s; }

@keyframes steamUp {
  0%   { transform: translateY(0)   scaleX(1);   opacity: 0.6; }
  60%  { transform: translateY(-12px) scaleX(1.5); opacity: 0.3; }
  100% { transform: translateY(-22px) scaleX(0.8); opacity: 0; }
}

/* =====================================================
   UI LAYER
   ===================================================== */
.ui-layer {
  position: fixed; inset: 0; z-index: 15;
  display: flex; flex-direction: column;
  justify-content: space-between;
  padding: 36px 48px;
  pointer-events: none;
}

.ui-interactive { pointer-events: auto; }

/* Header */
.top-header {
  display: flex; justify-content: space-between; align-items: center;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text-pri);
}

.brand-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 14px var(--orange);
  animation: warmPulse 2.5s ease-in-out infinite;
}

.brand-name {
  font-family: var(--font-head);
  font-size: 1.45rem; font-weight: 800;
  letter-spacing: -0.02em;
}

.location-chip {
  display: flex; align-items: center; gap: 6px;
  background: rgba(28,18,12,0.6);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,138,61,0.25);
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-sec);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* Hero text */
.hero-content {
  max-width: 520px;
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(36,20,12,0.72);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,138,61,0.35);
  color: var(--amber);
  padding: 6px 14px; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  width: fit-content;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
  animation: warmPulse 2s ease-in-out infinite;
}

@keyframes warmPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.82); }
}

.main-title {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-shadow: 0 4px 24px rgba(0,0,0,0.9);
}

.title-gradient {
  background: linear-gradient(135deg, #ffffff 30%, #ffd09e 70%, #ff8a3d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-subtitle {
  color: var(--text-sec);
  font-size: 1.1rem; line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0,0,0,0.9);
}

/* Footer */
.bottom-footer {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .character-scene { right: 0; }
  .character { transform: scale(0.8); transform-origin: bottom right; }
}
@media (max-width: 640px) {
  .ui-layer { padding: 24px 20px; }
  .character { transform: scale(0.6); transform-origin: bottom right; }
  .main-title { font-size: 2rem; }
}