/* ============================================================
   GYM MENTOR AI — Responsive Frontend
   Visual direction based on the supplied AI GYM Trainer reference
   ============================================================ */

:root {
  --bg: #080808;
  --surface: #101010;
  --surface-2: #151515;
  --border: rgba(255, 255, 255, 0.08);
  --amber: #f5a623;
  --amber-2: #ffc65c;
  --amber-glow: rgba(245, 166, 35, 0.18);
  --cyan: #00d4ff;
  --cyan-glow: rgba(0, 212, 255, 0.13);
  --text: #f1f1f1;
  --muted: #777;
  --muted-2: #505050;
  --display: "Instrument Serif", serif;
  --body: "Ubuntu", sans-serif;
  --max-w: 1200px;
  --radius: 0px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(245, 166, 35, 0.05), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img,
video {
  display: block;
  width: 100%;
}

code {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Grid background */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, black 25%, transparent 100%);
}

/* NAV */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 16px 48px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(18px);
}

.nav-logo {
  position: relative;
  z-index: 2;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.logo-bracket {
  color: var(--amber);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 28px;
}

.nav-links a,
.nav-cta {
  color: #8a8a8a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--amber);
}

.nav-cta {
  padding: 10px 14px;
  border: 1px solid rgba(245,166,35,.35);
  color: var(--amber);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: var(--text);
  cursor: pointer;
  position: relative;
  z-index: 103;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 19px;
  height: 1px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease;
}

.menu-toggle span:first-child { top: 16px; }
.menu-toggle span:last-child { top: 24px; }

.menu-toggle.active span:first-child {
  top: 20px;
  transform: rotate(45deg);
}

.menu-toggle.active span:last-child {
  top: 20px;
  transform: rotate(-45deg);
}

/* COMMON */
.section {
  position: relative;
  z-index: 1;
  width: min(var(--max-w), calc(100% - 96px));
  margin: 0 auto;
  padding: 120px 0;
}

.section-header {
  margin-bottom: 58px;
}

.center-header {
  text-align: center;
}

.section-tag {
  display: block;
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(52px, 6.8vw, 82px);
  line-height: .93;
  letter-spacing: .01em;
}

.section-title em,
.contact-title em {
  color: transparent;
  background: linear-gradient(135deg, var(--amber), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
}

.section-desc {
  max-width: 560px;
  margin: 20px auto 0;
  color: #787878;
  font-size: 14px;
  line-height: 1.85;
}

.section-desc.left {
  margin-left: 0;
  margin-right: 0;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-primary {
  background: var(--amber);
  color: #000;
  box-shadow: 0 0 0 0 var(--amber-glow);
}

.btn-primary:hover {
  background: var(--amber-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 42px var(--amber-glow);
}

.btn-ghost {
  border-color: var(--border);
  color: #777;
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,.22);
}

.arrow {
  font-size: 16px;
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 150px 24px 100px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(2px);
}

.hero-orb-one {
  width: 620px;
  height: 620px;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(245,166,35,.13), transparent 69%);
  animation: drift 8s ease-in-out infinite alternate;
}

.hero-orb-two {
  width: 420px;
  height: 420px;
  right: -90px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(0,212,255,.08), transparent 70%);
  animation: drift-two 10s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translateX(-50%) scale(1); }
  to { transform: translateX(-50%) scale(1.14) translateY(-18px); }
}

@keyframes drift-two {
  from { transform: scale(1); }
  to { transform: scale(1.14) translate(-18px,-10px); }
}

.hero-tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(245,166,35,.28);
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  animation: fade-up .8s ease both;
}

.dot,
.live-pill span,
.pose-note .mini-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}

.hero-title {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  font-family: var(--display);
  line-height: .86;
  letter-spacing: .01em;
  animation: fade-up .8s .08s ease both;
}

.hero-title .line-one {
  display: block;
  color: #666;
  font-size: clamp(52px, 7vw, 92px);
}

.hero-title .line-two {
  display: block;
  font-size: clamp(78px, 14vw, 170px);
  color: transparent;
  background: linear-gradient(135deg, #fff 25%, var(--amber) 66%, var(--cyan) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-title em {
  font-style: normal;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin-top: 28px;
  color: #858585;
  font-size: 15px;
  line-height: 1.85;
  animation: fade-up .8s .16s ease both;
}

.hero-cta-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 38px;
  animation: fade-up .8s .24s ease both;
}

.metrics-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-top: 70px;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fade-up .8s .38s ease both;
}

.metric {
  min-width: 178px;
  padding: 20px 28px;
  background: rgba(255,255,255,.018);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.metric-val {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}

.metric-val .unit {
  color: var(--amber);
  font-size: 17px;
}

.metric-label {
  color: #5f5f5f;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.metric-divider {
  width: 1px;
  height: 58px;
  background: var(--border);
}

/* HERO PREVIEW */
.hero-preview {
  position: relative;
  z-index: 1;
  width: min(100%, 990px);
  margin-top: 78px;
  padding: 14px;
  border: 1px solid rgba(245,166,35,.25);
  background: rgba(12,12,12,.86);
  box-shadow:
    0 35px 110px rgba(0,0,0,.72),
    0 0 60px rgba(245,166,35,.06);
  animation: fade-up .8s .46s ease both;
}

.hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%),
    linear-gradient(transparent 0 49.8%, rgba(255,255,255,.04) 50%, transparent 50.2%);
  background-size: 64px 64px;
  opacity: .35;
}

.preview-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 6px 14px;
}

.preview-kicker {
  display: block;
  color: #535353;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}

.preview-header strong {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(245,166,35,.25);
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}

.preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
}

.camera-panel,
.coach-panel {
  min-height: 360px;
  border: 1px solid var(--border);
  background: #0d0d0d;
}

.camera-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px),
    #0b0b0b;
  background-size: 36px 36px;
}

.camera-corner,
.demo-corners span {
  position: absolute;
  width: 18px;
  height: 18px;
  border: solid var(--amber);
  opacity: .75;
  z-index: 3;
}

.camera-corner.tl,
.demo-corners .tl { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.camera-corner.tr,
.demo-corners .tr { top: 12px; right: 12px; border-width: 1px 1px 0 0; }
.camera-corner.bl,
.demo-corners .bl { bottom: 12px; left: 12px; border-width: 0 0 1px 1px; }
.camera-corner.br,
.demo-corners .br { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }

/* ================================
   LIVE SESSION POSE HUD IMAGE
   ================================ */

.camera-panel {
  position: relative;
  overflow: hidden;
}

/* HUD image alignment */
.camera-panel .live-session-pose-hud {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: block;

  /* Keep the original proportions */
  object-fit: cover;

  /* Center the HUD image inside camera panel */
  object-position: center center;

  /* Remove any previous transform/offset */
  transform: none;

  /* Prevent inherited image sizing */
  max-width: none;
  max-height: none;

  z-index: 1;
}

/* Keep camera corner markers above the image */
.camera-panel .camera-corner {
  z-index: 3;
}

/* If you keep POSE DETECTED */
.camera-panel .pose-note {
  z-index: 4;
}

.pose-note {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid rgba(0,212,255,.2);
  background: rgba(0,20,25,.35);
  color: var(--cyan);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.pose-note .mini-dot {
  background: var(--cyan);
}

.skeleton {
  position: absolute;
  width: 230px;
  height: 300px;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-48%);
}

.joint {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(0,212,255,.25);
}

.j-head { left: 111px; top: 20px; }
.j-neck { left: 111px; top: 67px; }
.j-ls { left: 62px; top: 78px; }
.j-rs { right: 62px; top: 78px; }
.j-lh { left: 73px; top: 173px; }
.j-rh { right: 73px; top: 173px; }
.j-lk { left: 47px; top: 235px; }
.j-rk { right: 47px; top: 235px; }
.j-la { left: 35px; bottom: 13px; }
.j-ra { right: 35px; bottom: 13px; }

.bone {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,255,.2), var(--cyan));
  transform-origin: left center;
  box-shadow: 0 0 12px rgba(0,212,255,.15);
}
.b-a { width: 52px; left: 68px; top: 82px; transform: rotate(-19deg); }
.b-b { width: 52px; left: 112px; top: 82px; transform: rotate(199deg); }
.b-c { width: 116px; left: 86px; top: 86px; transform: rotate(90deg); }
.b-d { width: 115px; left: 83px; top: 176px; transform: rotate(-30deg); }
.b-e { width: 115px; left: 84px; top: 176px; transform: rotate(210deg); }
.b-f { width: 66px; left: 77px; top: 181px; transform: rotate(118deg); }
.b-g { width: 66px; left: 151px; top: 181px; transform: rotate(62deg); }
.b-h { width: 69px; left: 51px; top: 243px; transform: rotate(90deg); }
.b-i { width: 69px; right: 51px; top: 243px; transform: rotate(90deg); }

.coach-panel {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-content: start;
}

.coach-stat {
  padding: 12px 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}

.coach-stat span {
  display: block;
  color: #585858;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
}

.coach-stat strong {
  display: block;
  margin-top: 5px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.coach-stat strong span {
  display: inline;
  color: #545454;
  font-family: var(--body);
  font-size: 10px;
}

.coach-stat .phase {
  color: var(--amber);
  font-family: var(--body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.feedback-box {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 16px;
  border: 1px solid rgba(245,166,35,.18);
  background: rgba(245,166,35,.035);
}

.feedback-label {
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.feedback-box p {
  margin-top: 10px;
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

.voice-bar {
  display: flex;
  align-items: end;
  gap: 3px;
  height: 22px;
  margin-top: 18px;
}

.voice-bar span {
  width: 3px;
  background: var(--amber);
  animation: bars 1.1s ease-in-out infinite;
}

.voice-bar span:nth-child(1) { height: 7px; animation-delay: .05s; }
.voice-bar span:nth-child(2) { height: 15px; animation-delay: .18s; }
.voice-bar span:nth-child(3) { height: 10px; animation-delay: .27s; }
.voice-bar span:nth-child(4) { height: 20px; animation-delay: .12s; }
.voice-bar span:nth-child(5) { height: 12px; animation-delay: .32s; }
.voice-bar span:nth-child(6) { height: 8px; animation-delay: .08s; }

@keyframes bars {
  50% { transform: scaleY(.35); opacity: .5; }
}

/* FEATURES */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  background: var(--border);
}

.feature-card {
  position: relative;
  min-height: 230px;
  padding: 30px;
  background: rgba(255,255,255,.02);
  transition: transform .25s ease, background .25s ease;
}

.feature-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  background: rgba(245,166,35,.035);
}

.feature-index {
  color: #4b4b4b;
  font-size: 9px;
  letter-spacing: .16em;
}

.feature-icon {
  display: block;
  margin-top: 20px;
  color: var(--amber);
  font-size: 32px;
  line-height: 1;
}

.feature-card h3 {
  margin-top: 16px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.feature-card p {
  max-width: 290px;
  margin-top: 12px;
  color: #686868;
  font-size: 12px;
  line-height: 1.75;
}

/* EXERCISES */
.exercise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.exercise-card {
  position: relative;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}

.exercise-card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
}

.tilt-left { transform: rotate(-2deg); }
.tilt-right { transform: rotate(2deg); }

.exercise-card.wide {
  grid-column: 1 / -1;
  max-width: 70%;
  margin: 0 auto;
}

.exercise-visual {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 32%, rgba(0,212,255,.08), transparent 28%),
    #101010;
}

.exercise-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 28px 28px;
}

.person {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 120px;
  height: 180px;
  transform: translate(-50%,-48%);
}

.person i {
  position: absolute;
  display: block;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0,212,255,.3);
}

.person .head {
  width: 20px;
  height: 20px;
  left: 50px;
  top: 0;
  border: 2px solid var(--cyan);
  background: transparent;
  border-radius: 50%;
}

.person .body {
  width: 3px;
  height: 75px;
  left: 59px;
  top: 28px;
}

.person .arm {
  width: 46px;
  height: 3px;
  top: 52px;
  transform-origin: left center;
}

.person .arm.left {
  left: 59px;
  transform: rotate(162deg);
}

.person .arm.right {
  left: 61px;
  transform: rotate(18deg);
}

.person .leg {
  width: 64px;
  height: 3px;
  left: 59px;
  top: 98px;
  transform-origin: left center;
}

.person .leg.left {
  transform: rotate(112deg);
}

.person .leg.right {
  transform: rotate(68deg);
}

.squat .person { transform: translate(-50%,-38%) scaleY(1.08); }
.pushup .person { transform: translate(-50%,-8%) rotate(-17deg); }
.curl .person .arm.left { transform: rotate(205deg); }
.curl .person .arm.right { transform: rotate(-25deg); }
.press .person .arm.left { transform: rotate(245deg); }
.press .person .arm.right { transform: rotate(-65deg); }
.lunge .person { transform: translate(-50%,-43%) rotate(-4deg); }

.exercise-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border: 1px solid rgba(245,166,35,.22);
  background: rgba(8,8,8,.7);
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: scan 3.4s linear infinite;
  opacity: .55;
}

@keyframes scan {
  from { top: 0; opacity: .7; }
  to { top: 100%; opacity: 0; }
}

.exercise-copy {
  padding: 18px 4px 0;
}

.exercise-copy > span {
  color: #555;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.exercise-copy h3 {
  margin-top: 6px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.exercise-copy p {
  margin-top: 5px;
  color: #666;
  font-size: 12px;
}

/* WORKFLOW */
.pipeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}

.pipeline-step {
  min-height: 120px;
  padding: 18px;
  border: 1px solid var(--border);
  background: #0c0c0c;
}

.pipeline-step span {
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.pipeline-step strong {
  display: block;
  margin-top: 14px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.pipeline-step small {
  display: block;
  margin-top: 8px;
  color: #606060;
  font-size: 9px;
}

.pipeline-arrow {
  color: #4c4c4c;
  font-size: 24px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 36px;
  border: 1px solid var(--border);
  background: var(--border);
}

.stack-card {
  padding: 28px;
  background: rgba(255,255,255,.02);
}

.stack-card span {
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}

.stack-card strong {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
}

.stack-card p {
  max-width: 430px;
  margin-top: 10px;
  color: #666;
  font-size: 12px;
  line-height: 1.75;
}


/* DEMO VIDEO */
.demo-frame {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 166, 35, 0.25);
  background: #0b0b0b;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}

.demo-video {
  position: relative;
  z-index: 3;
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  max-height: 75vh;
  object-fit: contain;
  background: #090909;
  opacity: 1;
  pointer-events: auto;
}

/* Hide the placeholder only when video playback is available */
.demo-frame.video-ready .demo-placeholder {
  display: none;
}

.demo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #5b5b5b;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(245, 166, 35, 0.05),
    transparent 45%
  );
}

@media (max-width: 700px) {
  .demo-video {
    min-height: 240px;
    max-height: none;
  }
}


/* DEMO */
/* .demo-frame {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid rgba(245,166,35,.25);
  background: #0b0b0b;
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}

.demo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 36px 36px;
} */

.video-status {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.demo-corners span {
  width: 20px;
  height: 20px;
  z-index: 4;
}

.demo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  color: #5b5b5b;
  background: radial-gradient(circle at 50% 40%, rgba(245,166,35,.05), transparent 45%);
}

.play-ring {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 50%;
  animation: breathe 2.8s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(1.05); box-shadow: 0 0 45px rgba(245,166,35,.09); }
}

.play-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(245,166,35,.35);
  border-radius: 50%;
  color: var(--amber);
}

.demo-placeholder > span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.demo-placeholder small {
  max-width: 320px;
  color: #414141;
  font-size: 11px;
}

.small-btn {
  margin-top: 6px;
  min-height: 42px;
  padding: 10px 16px;
}

.demo-video {
  position: relative;
  z-index: 1;
  min-height: 500px;
  object-fit: contain;
  background: #090909;
  opacity: 0;
  pointer-events: none;
}

.demo-frame.video-ready .demo-placeholder {
  display: none;
}

.demo-frame.video-ready .demo-video {
  opacity: 1;
  pointer-events: auto;
}

/* CONTACT */
.contact {
  position: relative;
  z-index: 1;
  padding: 120px 24px 56px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(0,212,255,.06), transparent 70%);
}

.contact-inner {
  position: relative;
  z-index: 1;
  width: min(800px, 100%);
  margin: 0 auto;
}

.contact-title {
  margin: 16px 0 18px;
  font-family: var(--display);
  font-size: clamp(54px, 7vw, 84px);
  line-height: .94;
}

.contact-desc {
  max-width: 620px;
  margin: 0 auto 48px;
  color: #676767;
  font-size: 14px;
  line-height: 1.85;
}

/* .social-grid {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 19px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  color: #7e7e7e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: transform .2s ease, color .2s ease, border-color .2s ease, background .2s ease;
}

.social-btn:hover {
  color: var(--amber);
  border-color: rgba(245,166,35,.35);
  background: rgba(245,166,35,.04);
  transform: translateY(-3px);
}

.social-icon {
  color: var(--amber);
  opacity: .8;
} */

.social-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.02);
  color: #888;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  color: var(--amber);
  border-color: rgba(245,166,35,0.4);
  background: rgba(245,166,35,0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--amber-glow);
}
.social-icon {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.social-btn:hover .social-icon { opacity: 1; }
.social-label { opacity: 0.8; }

/* .footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #3c3c3c;
  font-size: 12px;
  text-align: left; 
 
}

.footer-mono {
  font-size: 9px;
  letter-spacing: .1em;
} */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #333;
}
.footer-mono {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.1em;
}


@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll */
.feature-card,
.exercise-card,
.stack-card,
.pipeline,
.demo-frame {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal {
  opacity: 1;
  transform: none;
}

/* TABLET */
@media (max-width: 1020px) {
  .nav {
    padding: 15px 24px;
  }

  .section {
    width: min(var(--max-w), calc(100% - 48px));
    padding: 90px 0;
  }

  .nav-links {
    gap: 18px;
    margin-right: 18px;
  }

  .feature-grid,
  .exercise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .exercise-card.wide {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .pipeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .pipeline-arrow {
    display: none;
  }
}

/* MOBILE */
@media (max-width: 700px) {
  .nav {
    padding: 13px 18px;
  }

  .nav-logo {
    font-size: 11px;
    letter-spacing: .12em;
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 12px 18px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(8,8,8,.97);
    backdrop-filter: blur(18px);
    transform: translateY(-120%);
    transition: transform .25s ease;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    padding: 130px 18px 70px;
  }

  .hero-tag {
    max-width: 100%;
    font-size: 7.5px;
    letter-spacing: .12em;
  }

  .hero-title .line-one {
    font-size: clamp(42px, 13vw, 68px);
  }

  .hero-title .line-two {
    font-size: clamp(58px, 18vw, 105px);
  }

  .hero-sub {
    max-width: 440px;
    font-size: 13px;
  }

  .hero-cta-row {
    width: 100%;
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: min(100%, 350px);
  }

  .metrics-strip {
    width: 100%;
    flex-direction: column;
  }

  .metric {
    width: 100%;
    min-width: 0;
  }

  .metric-divider {
    width: 60%;
    height: 1px;
  }

  .hero-preview {
    margin-top: 48px;
    padding: 10px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
  }

  .camera-panel,
  .coach-panel {
    min-height: 270px;
  }

  .coach-panel {
    min-height: auto;
  }

  .section {
    width: min(100% - 36px, var(--max-w));
    padding: 78px 0;
  }

  .section-title {
    font-size: clamp(45px, 15vw, 66px);
  }

  .section-header {
    margin-bottom: 40px;
  }

  .feature-grid,
  .exercise-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 205px;
  }

  .exercise-card.wide {
    grid-column: auto;
  }

  .pipeline {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .pipeline-step {
    min-height: auto;
  }

  .demo-frame,
  .demo-video {
    min-height: 320px;
  }

  .demo-placeholder {
    padding: 24px;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 60px;
  }
}

/* SMALL PHONES */
@media (max-width: 420px) {
  .hero {
    padding-inline: 14px;
  }

  .hero-tag {
    padding-inline: 9px;
  }

  .hero-sub {
    font-size: 12px;
  }

  .preview-header strong {
    font-size: 22px;
  }

  .coach-stat strong {
    font-size: 24px;
  }

  .skeleton {
    transform: translate(-50%,-48%) scale(.82);
  }

  .camera-panel {
    min-height: 250px;
  }

  .exercise-visual {
    height: 230px;
  }

  .contact {
    padding-inline: 18px;
  }

  .social-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}



/* ============================================================
   PHOTO-BASED EXERCISE CARDS
   Replaces the old CSS stick-figure exercise visuals.
   ============================================================ */
.image-exercise-grid {
  align-items: start;
  grid-template-columns: repeat(3, 1fr);
}

.image-exercise {
  min-width: 0;
  transform-origin: center top;
}

.image-exercise.wide {
  grid-column: 2 / 3;
  max-width: none;
  margin: 0;
}

.exercise-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #080b0e;
  isolation: isolate;
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
}

.exercise-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .3s ease;
}

.image-exercise:hover .exercise-image-wrap img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.image-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.03), transparent 38%, rgba(0,0,0,.5)),
    linear-gradient(90deg, rgba(0,0,0,.04), transparent 35%, rgba(0,0,0,.05));
}

.exercise-badge,
.exercise-live {
  position: absolute;
  z-index: 3;
  padding: 6px 8px;
  border: 1px solid rgba(245,166,35,.28);
  background: rgba(7,7,7,.70);
  backdrop-filter: blur(8px);
  color: var(--amber);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .13em;
}

.exercise-badge {
  left: 12px;
  bottom: 12px;
}

.exercise-live {
  top: 12px;
  right: 12px;
  border-color: rgba(0,212,255,.24);
  color: var(--cyan);
}

.image-scan {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--amber), var(--cyan), transparent);
  opacity: .68;
  animation: imageScan 3.6s linear infinite;
}

@keyframes imageScan {
  0% { top: 0; opacity: .75; }
  90% { opacity: .08; }
  100% { top: 100%; opacity: 0; }
}

.exercise-copy {
  padding: 18px 6px 0;
}

.exercise-copy > span {
  display: block;
  color: #515151;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
}

.exercise-copy h3 {
  margin-top: 7px;
  font-family: var(--display);
  font-size: 31px;
  line-height: 1;
  font-weight: 400;
}

.exercise-copy p {
  margin-top: 8px;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

.exercise-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.exercise-meta span {
  padding: 5px 7px;
  border: 1px solid var(--border);
  color: #5c5c5c;
  background: rgba(255,255,255,.014);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1020px) {
  .image-exercise-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-exercise.wide {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .image-exercise-grid {
    grid-template-columns: 1fr;
  }

  .image-exercise.wide {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .exercise-image-wrap {
    aspect-ratio: 4 / 3;
  }
}

/* ============================================================
   MOBILE / TABLET IMAGE FIXES
   Paste this at the VERY BOTTOM of style.css (after every other
   rule) so it overrides the earlier crop-based sizing.
   ============================================================ */

@media (max-width: 1020px) {

  /* 1. Hero "Live session" HUD image
     Before: image was position:absolute + object-fit:cover inside a
     fixed-height panel, so the sides were cropped and the
     "KNEE ANGLE" label got cut off.
     Now: the image sits in normal flow, so the panel grows to fit
     the whole picture. */
  .camera-panel {
    min-height: 0;
    align-self: start;   /* panel height = image height, no empty bars */
    line-height: 0;      /* removes the tiny gap under the image */
  }

  .coach-panel {
    min-height: 0;       /* was forcing the whole row taller than the image */
    text-align: left;    /* text was inheriting the hero's centered alignment */
  }

  .camera-panel .live-session-pose-hud {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* 2. Exercise photos (squat, push-up, curl, press, lunge)
     Before: forced 1/1 (or 4/3 on phones) + object-fit:cover, which
     chopped off heads, dumbbells and the "KEEP ELBOWS FIXED" text.
     Now: each image keeps its own natural proportions. */
  .exercise-image-wrap {
    aspect-ratio: auto;
  }

  .exercise-image-wrap img {
    height: auto;
    object-fit: contain;
  }
}