/* ============================================================
   IRONMAN MMA x GROWTH LAB — impress.js Theme
   3D Spatial Presentation | Dark + Red + White
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* --- TOKENS --- */
:root {
  --bg: #080808;
  --bg2: #111113;
  --bg3: #1a1a1e;
  --red: #E3263A;
  --red-dark: #B81D2E;
  --red-glow: rgba(227, 38, 58, 0.35);
  --red-subtle: rgba(227, 38, 58, 0.07);
  --gold: #D4A843;
  --gold-glow: rgba(212, 168, 67, 0.3);
  --green: #2ECC71;
  --green-glow: rgba(46, 204, 113, 0.25);
  --white: #FFFFFF;
  --gray: #A0A0A8;
  --muted: #55555C;
  --heading: 'Bebas Neue', Impact, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --r: 12px;
}

/* --- GLOBAL --- */
body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  overflow: hidden;
  min-height: 100vh;
}

/* --- IMPRESS OVERRIDES --- */
/* Camera movement is the only transition.
   Steps are always fully opaque — GSAP controls content visibility. */
.impress-enabled .step {
  opacity: 1 !important;
  transition: none !important;
}

/* Hide content until GSAP reveals it */
.impress-enabled .step .content {
  opacity: 0;
}
.impress-enabled .step.anim-done .content {
  opacity: 1;
}

/* Overview mode */
.impress-on-overview .step {
  cursor: pointer;
}
.impress-on-overview .step:not(.active) {
  filter: brightness(0.4);
}
.impress-on-overview .step.active {
  filter: brightness(1);
}

#impress {
  font-size: 18px;
}

/* --- STEP BASE --- */
.step {
  width: 1200px;
  padding: 50px 60px;
  box-sizing: border-box;
  position: relative;
}

.step-compact {
  width: 1000px;
}

/* --- TYPOGRAPHY --- */
h1 {
  font-family: var(--heading);
  font-size: 96px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 0.95;
  margin: 0 0 16px;
  color: var(--white);
}

h2 {
  font-family: var(--heading);
  font-size: 64px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 12px;
  color: var(--white);
}

h3 {
  font-family: var(--heading);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 8px;
  color: var(--red);
}

p {
  color: var(--gray);
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.55;
}

strong { color: var(--white); font-weight: 600; }
em { color: var(--gray); font-style: normal; }

/* --- COLOR HELPERS --- */
.c-red { color: var(--red) !important; }
.c-gold { color: var(--gold) !important; }
.c-green { color: var(--green) !important; }
.c-white { color: var(--white) !important; }
.c-muted { color: var(--muted) !important; }
.c-gray { color: var(--gray) !important; }

/* --- SUBTITLE BAR --- */
.sub {
  font-size: 22px;
  color: var(--gray);
  border-left: 3px solid var(--red);
  padding-left: 16px;
  margin: 0 0 36px;
}
.sub-gold { border-color: var(--gold); }
.sub-green { border-color: var(--green); }

/* --- DIVIDER --- */
.line { width: 80px; height: 3px; background: var(--red); margin: 20px 0; }
.line-gold { background: var(--gold); }
.line-green { background: var(--green); }
.line-center { margin-left: auto; margin-right: auto; }

/* --- CARDS --- */
.card {
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg2) 100%);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--r);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-red { border-left: 4px solid var(--red); }
.card-gold { border-left: 4px solid var(--gold); }
.card-green { border-left: 4px solid var(--green); }

.card-glow-gold {
  border-color: var(--gold);
  box-shadow: 0 0 30px var(--gold-glow), 0 8px 32px rgba(0,0,0,0.3);
}

/* --- TAG --- */
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.tag-red { background: rgba(227,38,58,0.15); color: var(--red); border: 1px solid rgba(227,38,58,0.3); }
.tag-gold { background: rgba(212,168,67,0.15); color: var(--gold); border: 1px solid rgba(212,168,67,0.3); }
.tag-green { background: rgba(46,204,113,0.15); color: var(--green); border: 1px solid rgba(46,204,113,0.3); }

/* --- GRIDS --- */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.g23 { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }

/* --- VALUE LINES --- */
.vline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 19px;
}
.vline .lbl { color: var(--gray); }
.vline .amt { font-family: var(--mono); color: var(--white); font-weight: 600; font-size: 20px; }

.vtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  margin-top: 8px;
  border-top: 2px solid var(--red);
}
.vtotal .amt {
  font-family: var(--mono);
  color: var(--red);
  font-size: 32px;
  font-weight: 700;
}

/* --- PRICE REVEAL --- */
.price-old {
  font-family: var(--mono);
  font-size: 52px;
  color: var(--muted);
  text-decoration: line-through;
}
.price-new {
  font-family: var(--heading);
  font-size: 140px;
  color: var(--red);
  text-shadow: 0 0 60px var(--red-glow);
  line-height: 1;
  letter-spacing: 0.02em;
}
.price-save {
  font-size: 28px;
  color: var(--gold);
  margin-top: 12px;
}

/* --- METRICS --- */
.metric { text-align: center; padding: 20px; }
.metric-val {
  font-family: var(--heading);
  font-size: 72px;
  line-height: 1;
  margin-bottom: 4px;
}
.metric-lbl {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* --- GUARANTEE --- */
.guar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 20px;
  background: var(--bg2);
  border-radius: var(--r);
  border-left: 4px solid var(--gold);
  margin-bottom: 14px;
}
.guar-ico {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,168,67,0.1);
  border-radius: 50%;
}

/* --- TIMELINE --- */
.tl { position: relative; padding-left: 36px; }
.tl::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(255,255,255,0.08);
}
.tl-item {
  position: relative;
  margin-bottom: 18px;
  padding-left: 18px;
  font-size: 19px;
}
.tl-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red-glow);
}
.tl-item.good::before {
  background: var(--green);
  box-shadow: 0 0 10px var(--green-glow);
}

/* --- STEP NUMBER --- */
.stepnum {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--heading);
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 0 20px var(--red-glow);
}

/* --- COMPARISON TABLE --- */
.ctable {
  width: 100%;
  border-collapse: collapse;
  font-size: 18px;
}
.ctable th {
  font-family: var(--heading);
  font-size: 24px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 14px 12px;
  border-bottom: 2px solid var(--red);
  text-align: left;
  color: var(--white);
}
.ctable td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--gray);
  vertical-align: top;
}

/* --- COVER --- */
.cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 700px;
}
.cover::before {
  content: '';
  position: absolute;
  inset: -200px;
  background: radial-gradient(ellipse at center, rgba(227,38,58,0.08) 0%, transparent 65%);
  animation: cover-pulse 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes cover-pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.15); }
}
.cover img {
  max-width: 460px;
  filter: drop-shadow(0 0 40px rgba(227,38,58,0.35));
}

/* --- QUOTE BOX --- */
.quote {
  padding: 22px 24px;
  background: var(--red-subtle);
  border-left: 4px solid var(--red);
  border-radius: var(--r);
  font-size: 22px;
  font-style: italic;
  color: var(--white);
}

/* --- CTA BOX --- */
.cta {
  text-align: center;
  padding: 36px 48px;
  background: var(--red-subtle);
  border: 2px solid var(--red);
  border-radius: var(--r);
  box-shadow: 0 0 40px var(--red-glow);
}

/* --- MODEL COLUMNS --- */
.model {
  padding: 32px;
  border-radius: var(--r);
  border: 2px solid rgba(255,255,255,0.06);
  background: var(--bg2);
}
.model-rec {
  border-color: var(--green);
  box-shadow: 0 0 25px var(--green-glow);
}
.model-split {
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.model-pct {
  font-family: var(--heading);
  font-size: 56px;
  line-height: 1;
}

/* --- DASHBOARD MOCKUP --- */
.dash {
  background: var(--bg3);
  border-radius: var(--r);
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.dash-cell {
  background: var(--bg2);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}
.dash-val {
  font-family: var(--heading);
  font-size: 48px;
  line-height: 1;
  margin: 6px 0;
}
.dash-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.dash-bar {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 50px;
  margin-top: 12px;
}
.dash-bar div {
  flex: 1;
  background: var(--red);
  border-radius: 3px 3px 0 0;
  transition: height 0.5s ease;
}

/* --- ANIMATED GLOW --- */
@keyframes glow-r {
  0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
  50% { box-shadow: 0 0 50px var(--red-glow), 0 0 80px rgba(227,38,58,0.12); }
}
.glow-r { animation: glow-r 2s ease-in-out infinite; }

@keyframes glow-g {
  0%, 100% { box-shadow: 0 0 20px var(--green-glow); }
  50% { box-shadow: 0 0 40px var(--green-glow); }
}
.glow-g { animation: glow-g 2.5s ease-in-out infinite; }

/* --- COUNTER --- */
.counter {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* --- PRODUCT ROW --- */
.prod {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg2);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 19px;
}
.prod-ico { font-size: 28px; flex-shrink: 0; }

/* --- CHECK ITEM --- */
.chk {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 19px;
  align-items: flex-start;
}
.chk-ico { color: var(--green); font-size: 22px; flex-shrink: 0; margin-top: 1px; }

/* --- IMPRESS HINT --- */
.hint {
  display: none;
}

/* --- MOBILE NAV BUTTONS --- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 9998;
  justify-content: space-between;
  padding: 0 16px;
  pointer-events: none;
}
.mobile-nav-btn {
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(8,8,8,0.85);
  color: var(--white);
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-nav-btn:active {
  background: var(--red);
  border-color: var(--red);
  transform: scale(0.92);
}

@media screen and (max-width: 1024px) {
  .mobile-nav {
    display: flex;
  }
}

/* --- ROTATE DEVICE OVERLAY --- */
.rotate-device {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 24px;
}
.rotate-device .rotate-icon {
  width: 80px;
  height: 80px;
  border: 3px solid var(--red);
  border-radius: 16px;
  position: relative;
  animation: rotate-hint 2s ease-in-out infinite;
}
.rotate-device .rotate-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 3px solid var(--red);
}
@keyframes rotate-hint {
  0%, 100% { transform: rotate(0deg); }
  25%, 75% { transform: rotate(90deg); }
}
.rotate-device h2 {
  font-size: 36px;
  margin: 0;
}
.rotate-device p {
  font-size: 18px;
  color: var(--gray);
  margin: 0;
  max-width: 280px;
}

@media screen and (max-width: 768px) and (orientation: portrait) {
  .rotate-device {
    display: flex;
  }
  #impress {
    display: none !important;
  }
}

@media screen and (max-width: 768px) and (orientation: landscape) {
  .rotate-device {
    display: none;
  }
  #impress {
    display: block !important;
  }
}
