/* ===========================================================
   LidFlow.ai — Alpha Hero
   Light-first sport-tech aesthetic
   =========================================================== */

:root {
  --bg-base: #fafbf9;
  --bg-soft: #f0f4f1;
  --bg-card: #ffffff;
  --bg-deep: #0c1c17;
  --bg-deep-alt: #152820;

  --text-primary: #0c1c17;
  --text-muted: #5a6b64;
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b8cec6;

  --green-light: #52c491;
  --green-mid: #3d8f72;
  --green-dark: #2d7a5e;
  --green-soft: #dcefe4;
  --green-glow: rgba(82, 196, 145, 0.13);

  --border-soft: #e2ebe6;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.mono { font-family: var(--font-mono); }

/* ===========================================================
   HERO container
   =========================================================== */

.hero {
  position: relative;
  min-height: 120vh;
  width: 100%;
  padding: 96px 24px 120px;
  overflow: hidden;
  isolation: isolate;
}

/* ===========================================================
   BACKGROUND LAYERS
   =========================================================== */

.bg-mesh {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.bg-mesh::before, .bg-mesh::after {
  content: ''; position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: multiply;
}
.bg-mesh::before {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(82,196,145,0.18) 0%, transparent 60%);
  top: -10%; left: -10%;
  animation: meshDrift1 28s ease-in-out infinite alternate;
}
.bg-mesh::after {
  width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(220,239,228,0.7) 0%, transparent 60%);
  bottom: -20%; right: -15%;
  animation: meshDrift2 32s ease-in-out infinite alternate;
}
@keyframes meshDrift1 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(40vw, 30vh); }
}
@keyframes meshDrift2 {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-30vw, -20vh); }
}

.bg-grid {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(82,196,145,0.18) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.bg-slashes {
  position: absolute; inset: -10%;
  z-index: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -75deg,
    transparent 0,
    transparent 79px,
    rgba(226,235,230,0.7) 79px,
    rgba(226,235,230,0.7) 80px
  );
  opacity: 0.5;
}

.bg-scanline {
  position: absolute;
  left: 0; right: 0;
  top: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(82,196,145,0.4) 50%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  animation: scanLine 8s linear infinite;
}
@keyframes scanLine {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.bg-particles {
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  background: var(--green-light);
  border-radius: 50%;
  bottom: -10px;
  animation: particleFloat linear infinite;
  will-change: transform, opacity;
}
@keyframes particleFloat {
  0%   { transform: translateY(0); opacity: 0; }
  10%  { opacity: var(--p-opacity, 0.6); }
  90%  { opacity: var(--p-opacity, 0.6); }
  100% { transform: translateY(-110vh); opacity: 0; }
}

.bg-ekg {
  position: absolute;
  left: 0; right: 0;
  top: 76%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  height: 40px;
}
.bg-ekg svg {
  position: absolute;
  left: 0;
  height: 100%;
  width: 200%;
  animation: ekgScroll 12s linear infinite;
}
@keyframes ekgScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cursor-orb {
  position: fixed;
  width: 600px; height: 600px;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(82,196,145,0.18) 0%, rgba(82,196,145,0.08) 30%, transparent 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  left: 50%; top: 50%;
  transition: opacity 0.3s ease;
  will-change: transform;
}

/* ===========================================================
   NAVBAR
   =========================================================== */

.nav-wrap {
  position: fixed;
  top: 16px; left: 16px; right: 16px;
  z-index: 100;
}
.nav {
  height: 64px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(12, 28, 23, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(12, 28, 23, 0.06);
  display: flex; align-items: center;
  padding: 0 20px;
  gap: 24px;
}

.logo {
  display: flex; align-items: center;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.18s var(--ease-smooth);
}
.logo:hover { opacity: 0.85; }
.logo-text { display: inline-flex; align-items: baseline; }
.logo-text .lid { color: var(--text-primary); font-weight: 700; }
.logo-text .flow { color: var(--green-mid); font-weight: 700; }
.logo-text .ai { color: var(--text-muted); font-size: 14px; font-weight: 500; margin-left: 1px; }

.nav-menu {
  display: flex;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
  list-style: none;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center;
  height: 44px;
  padding: 0 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: color 0.2s var(--ease-smooth), background 0.2s;
  cursor: pointer;
  position: relative;
}
.nav-link:hover { color: var(--green-mid); background: rgba(82,196,145,0.06); }
.nav-link.has-caret::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s;
}
.nav-item:hover .nav-link.has-caret::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-cta {
  background: var(--bg-deep);
  color: white;
  font-size: 14px;
  font-weight: 600;
  padding: 0 18px;
  height: 40px;
  border-radius: 10px;
  border: none;
  display: flex; align-items: center;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth), transform 0.2s var(--ease-smooth);
  flex-shrink: 0;
}
.nav-cta:hover {
  background: var(--green-mid);
  transform: scale(1.03);
}

/* Dropdowns */
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 360px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(82, 196, 145, 0.2);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(12, 28, 23, 0.12);
  padding: 12px;
  margin-top: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s var(--ease-smooth);
  z-index: 110;
}
.nav-item:hover .dropdown,
.dropdown:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.nav-item:not(:hover) .dropdown { transition-delay: 0.15s; }

.dd-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: background 0.18s, border-color 0.18s;
  cursor: pointer;
}
.dd-row:hover {
  background: rgba(82, 196, 145, 0.08);
  border-color: rgba(82, 196, 145, 0.4);
}
.dd-row:hover .dd-icon {
  transform: translateX(2px);
}
.dd-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s;
}
.dd-icon svg { width: 16px; height: 16px; }
.dd-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dd-title { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-primary); font-family: var(--font-mono); }
.dd-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.dd-stat { font-size: 12px; color: var(--green-mid); font-weight: 600; font-family: var(--font-mono); margin-top: 2px; }

.dd-step-num {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--bg-deep);
  color: white;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.menu-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: 0.2s;
}

/* ===========================================================
   HERO TEXT STACK (centered)
   =========================================================== */

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
}
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green-light);
  opacity: 0.5;
  animation: pulseDot 1.4s ease-out infinite;
}
@keyframes pulseDot {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-top: 24px;
}
.headline .l2 { color: var(--green-mid); display: block; }

.word-swap {
  margin-top: 22px;
  font-size: 22px;
  color: var(--text-muted);
  font-weight: 500;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.word-swap .static { color: var(--text-muted); }
.word-swap .swap-target {
  color: var(--text-primary);
  font-weight: 700;
  display: inline-block;
  min-width: 280px;
  text-align: left;
  position: relative;
  transition: opacity 0.25s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}
.word-swap .swap-target.out {
  opacity: 0;
  transform: translateY(-6px);
}

.sub-headline {
  margin-top: 24px;
  max-width: 600px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.55;
}

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s var(--ease-smooth), color 0.2s, transform 0.2s var(--ease-smooth), box-shadow 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--bg-deep);
  color: white;
}
.btn-primary:hover {
  background: var(--green-mid);
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(82, 196, 145, 0.3);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}
.btn-secondary:hover {
  background: var(--text-primary);
  color: white;
}

.chip-row {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}
.chip {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(82, 196, 145, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.chip:hover {
  border-color: var(--green-light);
  transform: translateY(-2px);
}
.chip-bullet {
  width: 6px; height: 6px;
  background: var(--green-mid);
  border-radius: 50%;
  display: inline-block;
}

/* TRUST STRIP */
.trust {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}
.marquee {
  width: min(720px, 90%);
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 12%, black 88%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-logo {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(90, 107, 100, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.marquee-logo::before {
  content: '//';
  color: rgba(82, 196, 145, 0.5);
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===========================================================
   3D DASHBOARD SCENE
   =========================================================== */

.scene {
  position: relative;
  z-index: 5;
  margin: 96px auto 0;
  max-width: 1280px;
  perspective: 2000px;
}

.scene-3d {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-2deg);
  transition: transform 0.4s var(--ease-smooth);
}

.dashboard {
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(12, 28, 23, 0.1), 0 4px 12px rgba(12, 28, 23, 0.04);
  padding: 28px 32px;
  position: relative;
  z-index: 5;
}

.dash-head {
  display: flex; align-items: center;
  margin-bottom: 24px;
  gap: 16px;
}
.dash-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-primary);
}
.dash-toggle {
  margin-left: auto;
  display: flex;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 3px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.dash-toggle button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
.dash-toggle button.active {
  background: var(--green-soft);
  color: var(--text-primary);
}

.dash-body {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 28px;
}

.chart-block { padding: 4px 0; }
.chart-head {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
.chart-title {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}
.chart-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: 4px;
}
.chart-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-mid);
  font-weight: 600;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart-svg {
  width: 100%;
  height: 200px;
  display: block;
}
.chart-line {
  fill: none;
  stroke: var(--green-mid);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-area { fill: url(#chartGrad); opacity: 0.7; }
.chart-dot {
  fill: var(--green-mid);
  stroke: white;
  stroke-width: 2;
}

.tile-stack { display: flex; flex-direction: column; gap: 12px; }
.tile {
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 18px;
  border: 1px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.tile:hover {
  border-color: rgba(82, 196, 145, 0.3);
}
.tile-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1;
}
.tile-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 8px;
}
.tile-delta {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green-mid);
  font-weight: 600;
}

/* ===========================================================
   FLOATING ELEMENTS AROUND DASHBOARD
   =========================================================== */

.float-whatsapp {
  position: absolute;
  top: -32px;
  right: -32px;
  width: 280px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 16px 36px rgba(12, 28, 23, 0.1);
  z-index: 10;
  animation: floatY1 5s ease-in-out infinite;
}
@keyframes floatY1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wa-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wa-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-mid);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.wa-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
}
.wa-status {
  font-size: 11px;
  color: var(--green-mid);
  display: flex; align-items: center; gap: 5px;
  margin-top: 1px;
}
.wa-msg {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}
.wa-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--green-mid);
  letter-spacing: 0.06em;
  margin-top: 6px;
  text-align: right;
}

.float-stat {
  position: absolute;
  bottom: -36px;
  left: -36px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--green-light);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 16px 40px rgba(82, 196, 145, 0.18), 0 4px 12px rgba(12, 28, 23, 0.06);
  z-index: 10;
  animation: floatY2 6s ease-in-out infinite;
}
@keyframes floatY2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.float-stat-value {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 800;
  color: var(--green-mid);
  letter-spacing: -0.03em;
  line-height: 1;
}
.float-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 600;
}

/* Mini data tiles in negative space */
.mini-tile {
  position: absolute;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(82, 196, 145, 0.3);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 4px 14px rgba(12, 28, 23, 0.08);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
}
.mini-tile-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.mini-tile-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex; align-items: center; gap: 6px;
}

/* ===========================================================
   3D GYM EQUIPMENT (SVG)
   =========================================================== */

.equipment {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(12, 28, 23, 0.12)) drop-shadow(0 0 30px rgba(82, 196, 145, 0.15));
}
.equipment.kettlebell {
  top: 18%; left: 6%;
  width: 130px; height: 130px;
  opacity: 0.85;
  animation: floatRotKettle 28s linear infinite, floatY1 6s ease-in-out infinite;
}
@keyframes floatRotKettle {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.equipment.plate {
  top: 42%; right: 4%;
  width: 150px; height: 150px;
  opacity: 0.78;
  animation: plateWobble 8s ease-in-out infinite, floatPlate 10s ease-in-out infinite;
}
@keyframes plateWobble {
  0%, 100% { transform: rotateX(0) rotateY(0); }
  25% { transform: rotateX(8deg) rotateY(-12deg); }
  50% { transform: rotateX(-4deg) rotateY(8deg); }
  75% { transform: rotateX(6deg) rotateY(-4deg); }
}
@keyframes floatPlate {
  0%, 100% { translate: 0 0; }
  50% { translate: -8px -10px; }
}
.equipment.dumbbell {
  bottom: 8%; right: 14%;
  width: 100px; height: 100px;
  opacity: 0.7;
  transform: rotate(-18deg);
  animation: floatY2 7s ease-in-out infinite;
}

/* ===========================================================
   ACHIEVEMENT BADGES
   =========================================================== */

.badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(82, 196, 145, 0.3);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(12, 28, 23, 0.06);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  white-space: nowrap;
}
.badge-1 { top: 14%; left: 16%; animation: floatY1 5s ease-in-out infinite; }
.badge-2 { top: 20%; right: 12%; animation: floatY2 6s ease-in-out infinite 0.4s; }
.badge-3 { top: 72%; left: 6%; animation: floatY1 7s ease-in-out infinite 0.8s; }
.badge-4 { top: 48%; right: 3%; animation: floatY2 5s ease-in-out infinite 1.2s; }

/* ===========================================================
   LIVE ACTIVITY TICKER
   =========================================================== */

.ticker {
  position: absolute;
  bottom: 32px;
  right: 32px;
  width: 320px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 12px 32px rgba(12, 28, 23, 0.1);
  z-index: 30;
}
.ticker-head {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}
.ticker-body {
  position: relative;
  min-height: 44px;
}
.ticker-msg {
  position: absolute; inset: 0;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease-smooth);
  transform: translateY(8px);
}
.ticker-msg.active {
  opacity: 1;
  transform: translateY(0);
}
.ticker-msg .who { color: var(--text-primary); font-weight: 700; }
.ticker-msg .when { font-family: var(--font-mono); color: var(--green-mid); font-size: 11px; display: block; margin-top: 2px; letter-spacing: 0.04em; }

/* ===========================================================
   ENTRANCE ANIMATIONS (initial state — JS unhides)
   =========================================================== */
.fx-fade { opacity: 0; transform: translateY(12px); transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo); }
.fx-fade.in { opacity: 1; transform: translateY(0); }

.fx-slide-down { opacity: 0; transform: translateY(-16px); transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo); }
.fx-slide-down.in { opacity: 1; transform: translateY(0); }

.fx-rise { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo); }
.fx-rise.in { opacity: 1; transform: translateY(0); }

.fx-pop { opacity: 0; transform: scale(0.92); transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo); }
.fx-pop.in { opacity: 1; transform: scale(1); }

/* keep CSS-driven floats alive after entrance */
.fx-fade.in.float-whatsapp,
.fx-fade.in.float-stat,
.fx-pop.in.equipment.kettlebell,
.fx-pop.in.equipment.plate,
.fx-pop.in.equipment.dumbbell,
.fx-pop.in.badge,
.fx-rise.in.scene-3d {
  /* re-enable CSS animations after JS sets transform via class */
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 1100px) {
  .float-whatsapp { right: 12px; top: -16px; width: 240px; }
  .float-stat { left: 12px; bottom: -20px; padding: 16px 20px; }
  .float-stat-value { font-size: 44px; }
  .equipment.kettlebell { width: 96px; height: 96px; left: 2%; }
  .equipment.plate { width: 110px; height: 110px; right: 1%; }
}

@media (max-width: 768px) {
  .hero { padding: 88px 16px 80px; min-height: auto; }
  .nav-menu, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .nav { padding: 0 16px; }

  .hero-content { padding-top: 32px; }
  .headline { font-size: clamp(40px, 12vw, 56px); }
  .word-swap { font-size: 16px; }
  .word-swap .swap-target { min-width: 0; }
  .sub-headline { font-size: 16px; }

  .scene { margin-top: 72px; perspective: 1400px; }
  .scene-3d { transform: rotateX(3deg) rotateY(-1deg); }

  .dashboard { padding: 20px; }
  .dash-body { grid-template-columns: 1fr; gap: 16px; }
  .chart-svg { height: 160px; }

  .float-whatsapp { width: 220px; right: 8px; top: -8px; padding: 10px 12px; }
  .float-whatsapp .wa-msg { font-size: 11.5px; }
  .float-stat { padding: 12px 14px; left: 8px; bottom: -16px; }
  .float-stat-value { font-size: 36px; }

  .equipment.kettlebell, .equipment.plate, .equipment.dumbbell { display: none; }
  .badge-1, .badge-3 { display: inline-flex; }
  .badge-2, .badge-4 { display: none; }
  .badge-1 { top: 6%; left: 8%; }
  .badge-3 { top: auto; bottom: 8%; left: 8%; }

  .mini-tile-pwr, .mini-tile-kcal { display: none; }

  .ticker { display: none; }
  .ticker-mobile { display: flex; }

  .cursor-orb { display: none; }
}

.ticker-mobile {
  display: none;
  margin-top: 24px;
  width: 100%;
  overflow: hidden;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: nowrap;
  position: relative;
  align-items: center;
  gap: 10px;
}
.ticker-mobile .pulse-dot { flex-shrink: 0; }
.ticker-mobile-track {
  display: inline-flex;
  gap: 32px;
  animation: marqueeScroll 28s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
