/* MoreRep Landing — Industrial Athletic / Dark Editorial */

:root {
  --bg: #111113;
  --surface: #1c1c1f;
  --elevated: #2a2a2d;
  --border: #29292a;
  --text: #ffffff;
  --subtext: #b2b2b2;
  --primary: #00bcfc;
  --primary-glow: rgba(0, 188, 252, 0.15);
  --success: #2ecc71;
  --error: #e74c3c;
  --warning: #f1c40f;
  --download-url: 'https://link-my.app/morerep';
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Grain + grid atmosphere */
.lp-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.lp-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 188, 252, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 188, 252, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.lp-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lp-content {
  position: relative;
  z-index: 1;
}

/* Nav */
.lp-nav {
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.lp-nav.scrolled {
  background: rgba(17, 17, 19, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(41, 41, 42, 0.8);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Logo + pulsing dot */
.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.75; }
}

/* CTA button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  color: #0a1a2e;
  background: linear-gradient(135deg, #5cd4ff 0%, var(--primary) 100%);
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 40px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 188, 252, 0.35);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(28, 28, 31, 0.6);
  transition: border-color 0.2s, background 0.2s;
}

.btn-outline:hover {
  border-color: rgba(0, 188, 252, 0.4);
  background: rgba(0, 188, 252, 0.08);
}

/* Store badges — mesma altura (SVGs com height="40") */
.store-badge {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease, opacity 0.2s;
}

.store-badge:hover {
  transform: scale(1.04);
  opacity: 0.92;
}

.store-badge img {
  height: 40px;
  width: auto;
  display: block;
}

.hero-section {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(17, 17, 19, 0.94) 0%, rgba(17, 17, 19, 0.82) 42%, rgba(17, 17, 19, 0.62) 100%),
    linear-gradient(180deg, rgba(17, 17, 19, 0.55) 0%, transparent 28%, rgba(17, 17, 19, 0.72) 88%, var(--bg) 100%),
    radial-gradient(ellipse 70% 55% at 78% 45%, rgba(0, 188, 252, 0.1), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 767px) {
  .hero-bg img {
    object-position: 62% center;
  }

  .hero-bg-overlay {
    background:
      linear-gradient(180deg, rgba(17, 17, 19, 0.88) 0%, rgba(17, 17, 19, 0.72) 45%, rgba(17, 17, 19, 0.92) 100%),
      linear-gradient(to bottom, transparent 65%, var(--bg) 100%);
  }
}

/* Hero rating — 4,9 estrelas amarelas */
.hero-stars {
  display: inline-flex;
  gap: 1px;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0.02em;
}

.hero-star {
  color: var(--warning);
}

.hero-star--partial {
  position: relative;
  color: rgba(241, 196, 15, 0.22);
}

.hero-star--partial::before {
  content: '★';
  position: absolute;
  inset: 0;
  width: 90%;
  overflow: hidden;
  color: var(--warning);
}

.hero-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--subtext);
  background: rgba(28, 28, 31, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.hero-trust-pills svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Hero visual — composição em camadas (desktop) */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-visual-stage {
  position: relative;
  width: min(100%, 520px);
  min-height: 420px;
  margin-inline: auto;
}

.hero-orbit {
  position: absolute;
  width: min(92%, 440px);
  aspect-ratio: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  border: 1px dashed rgba(0, 188, 252, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit::before {
  content: '';
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(0, 188, 252, 0.07);
  border-radius: 50%;
}

.hero-visual-mesh {
  position: absolute;
  inset: 8% 0 12%;
  background:
    radial-gradient(circle at 30% 40%, rgba(0, 188, 252, 0.12), transparent 42%),
    radial-gradient(circle at 72% 58%, rgba(46, 204, 113, 0.08), transparent 38%);
  pointer-events: none;
  z-index: 0;
}

.hero-phone {
  position: absolute;
  width: min(280px, 58vw);
  z-index: 2;
}

.hero-phone img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.55));
}

.hero-phone--main {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(300px, 62vw);
  animation: hero-main-float 7s ease-in-out infinite;
}

.hero-phone--back {
  opacity: 0.62;
  z-index: 1;
  filter: saturate(0.85);
}

.hero-phone--back img {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45));
}

.hero-phone--left {
  left: -2%;
  top: 14%;
  transform: rotate(-16deg) scale(0.76);
  animation: hero-phone-left 8s ease-in-out infinite;
}

.hero-phone--right {
  right: -4%;
  top: 18%;
  transform: rotate(14deg) scale(0.72);
  animation: hero-phone-right 8.5s ease-in-out infinite;
}

.hero-phone-glow {
  position: absolute;
  inset: -8% 0;
  background: radial-gradient(circle at 50% 38%, rgba(0, 188, 252, 0.22), transparent 62%);
  pointer-events: none;
  z-index: 0;
}

.hero-chip {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(17, 17, 19, 0.88);
  border: 1px solid rgba(41, 41, 42, 0.95);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-chip strong {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.hero-chip small {
  display: block;
  margin-top: 2px;
  color: var(--subtext);
  font-size: 11px;
}

.hero-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 188, 252, 0.12);
  color: var(--primary);
  flex-shrink: 0;
}

.hero-chip-icon--success {
  background: rgba(46, 204, 113, 0.14);
  color: var(--success);
}

.hero-chip-icon--primary {
  background: rgba(0, 188, 252, 0.14);
  color: var(--primary);
}

.hero-chip--set {
  top: 6%;
  left: 0;
  animation: hero-chip-float 6s ease-in-out infinite;
}

.hero-chip--timer {
  bottom: 10%;
  left: 4%;
  animation: hero-chip-float 6.8s ease-in-out 0.8s infinite;
}

.hero-chip--offline {
  top: 18%;
  right: -2%;
  animation: hero-chip-float 7.2s ease-in-out 1.4s infinite;
}

@keyframes hero-main-float {
  0%, 100% { transform: translate(-50%, -50%); }
  50% { transform: translate(-50%, calc(-50% - 10px)); }
}

@keyframes hero-phone-left {
  0%, 100% { transform: rotate(-16deg) scale(0.76) translateY(0); }
  50% { transform: rotate(-16deg) scale(0.76) translateY(-8px); }
}

@keyframes hero-phone-right {
  0%, 100% { transform: rotate(14deg) scale(0.72) translateY(0); }
  50% { transform: rotate(14deg) scale(0.72) translateY(-6px); }
}

@keyframes hero-chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@media (min-width: 1024px) {
  .hero-visual-stage {
    min-height: 520px;
    width: 100%;
  }

  .hero-phone--main {
    width: 300px;
  }

  .hero-phone--left {
    left: 2%;
  }

  .hero-phone--right {
    right: 0;
  }

  .hero-chip--set {
    left: 6%;
  }

  .hero-chip--offline {
    right: 4%;
  }
}

@media (max-width: 767px) {
  .hero-visual {
    margin-top: 2rem;
  }

  .hero-visual-stage {
    min-height: 360px;
    width: min(100%, 320px);
  }

  .hero-phone--back,
  .hero-orbit,
  .hero-chip--timer,
  .hero-chip--offline {
    display: none;
  }

  .hero-phone--main {
    width: min(260px, 72vw);
  }

  .hero-chip--set {
    top: auto;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    animation: hero-chip-float-mobile 6s ease-in-out infinite;
  }
}

@keyframes hero-chip-float-mobile {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

/* Section spacing */
.lp-section {
  padding: 96px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .lp-section {
    padding: 64px 20px;
  }
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* Reveal animations — only hide when JS is active */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal {
  /* visible by default without JS */
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Pain illustration */
.pain-visual {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 360px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.pain-visual-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: linear-gradient(160deg, rgba(231, 76, 60, 0.08) 0%, transparent 50%);
}

/* Feature cards */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(0, 188, 252, 0.3);
  transform: translateY(-4px);
}

/* Feature demos — mini UI animados */
.feature-demo {
  position: relative;
  height: 220px;
  padding: 18px 16px 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, rgba(0, 188, 252, 0.08) 0%, transparent 65%),
    var(--elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-demo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 17, 19, 0.45) 100%);
}

.feature-demo > * {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 280px;
}

/* —— Sets (sessão ativa) —— */
.fd-exercise {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.fd-exercise-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.fd-exercise-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 188, 252, 0.1);
  border: 1px solid rgba(0, 188, 252, 0.15);
  flex-shrink: 0;
}

.fd-exercise-name {
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fd-rest-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: rgba(0, 188, 252, 0.08);
  border: 1px solid rgba(0, 188, 252, 0.15);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.fd-set-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 5px;
  border-radius: 9px;
  background: rgba(42, 42, 45, 0.55);
  border: 1px solid var(--border);
  transition: background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.fd-set-row:last-child {
  margin-bottom: 0;
}

.fd-set-num {
  width: 16px;
  font-size: 10px;
  font-weight: 600;
  color: var(--subtext);
  flex-shrink: 0;
}

.fd-set-val {
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.fd-set-val small {
  font-size: 9px;
  font-weight: 500;
  color: var(--subtext);
  margin-left: 1px;
}

.fd-set-check {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fd-set-check svg {
  width: 12px;
  height: 12px;
  color: transparent;
  transition: color 0.2s ease 0.1s;
}

.feature-card.is-playing .fd-set-row.is-checked {
  background: rgba(46, 204, 113, 0.08);
  border-color: rgba(46, 204, 113, 0.25);
}

.feature-card.is-playing .fd-set-row.is-checked .fd-set-check {
  background: var(--success);
  border-color: var(--success);
  transform: scale(1.05);
}

.feature-card.is-playing .fd-set-row.is-checked .fd-set-check svg {
  color: #fff;
}

/* —— Backup —— */
.fd-backup {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fd-backup-cloud {
  position: relative;
  align-self: center;
  width: 44px;
  height: 44px;
  color: var(--primary);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fd-backup-cloud svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(0, 188, 252, 0.35));
}

.fd-backup-beam {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 2px;
  height: 0;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--primary), transparent);
  border-radius: 2px;
  transition: height 0.5s ease;
}

.feature-card.is-playing .fd-backup-cloud {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.is-playing .fd-backup-beam {
  height: 14px;
}

.fd-backup-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fd-backup-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.feature-card.is-playing .fd-backup-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.is-playing .fd-backup-item.is-synced {
  border-color: rgba(0, 188, 252, 0.35);
  box-shadow: 0 0 20px rgba(0, 188, 252, 0.08);
}

.fd-backup-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 188, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.fd-backup-icon svg {
  width: 15px;
  height: 15px;
}

.fd-backup-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fd-backup-copy strong {
  font-size: 11px;
  font-weight: 600;
}

.fd-backup-copy span {
  font-size: 10px;
  color: var(--subtext);
}

.fd-backup-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 188, 252, 0.12);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  flex-shrink: 0;
}

.feature-card.is-playing .fd-backup-item.is-synced .fd-backup-badge {
  opacity: 1;
  transform: scale(1);
}

/* —— Routines —— */
.fd-routines {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fd-routine-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  transform: translateX(-16px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card.is-playing .fd-routine-card.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.fd-routine-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 188, 252, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.fd-routine-icon svg {
  width: 15px;
  height: 15px;
}

.fd-routine-copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.fd-routine-copy strong {
  font-size: 11px;
  font-weight: 600;
}

.fd-routine-copy span {
  font-size: 10px;
  color: var(--subtext);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fd-routine-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(0, 188, 252, 0.12);
  flex-shrink: 0;
}

.fd-routine-card--new {
  border-style: dashed;
  border-color: rgba(0, 188, 252, 0.35);
  background: rgba(0, 188, 252, 0.04);
}

.fd-routine-plus {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: rgba(0, 188, 252, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.fd-routine-plus svg {
  width: 14px;
  height: 14px;
}

/* —— Custom exercises —— */
.fd-library {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.fd-library-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(42, 42, 45, 0.65);
  border: 1px solid var(--border);
  color: var(--subtext);
}

.fd-library-search svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.fd-library-query {
  font-size: 11px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid var(--primary);
  animation: fd-cursor-blink 1s step-end infinite;
}

.fd-library-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 6px;
  font-size: 11px;
  color: var(--subtext);
  border-radius: 8px;
  opacity: 0.45;
  transition: opacity 0.35s ease, background 0.35s ease;
}

.fd-library-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.fd-library-dot--custom {
  background: var(--primary);
  box-shadow: 0 0 8px rgba(0, 188, 252, 0.5);
}

.fd-library-item--custom {
  opacity: 0;
  transform: translateY(6px);
  background: rgba(0, 188, 252, 0.08);
  border: 1px solid rgba(0, 188, 252, 0.2);
  color: var(--text);
  font-weight: 500;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.35s ease;
}

.feature-card.is-playing .fd-library-item--custom.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fd-library-tag {
  margin-left: auto;
  font-size: 9px;
  font-weight: 600;
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 188, 252, 0.12);
}

@keyframes fd-cursor-blink {
  50% { border-color: transparent; }
}

/* —— History —— */
.fd-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fd-history-item {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-card.is-playing .fd-history-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fd-history-date {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  flex-shrink: 0;
  opacity: 0.85;
}

.fd-history-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fd-history-body strong {
  font-size: 11px;
  font-weight: 600;
}

.fd-history-body span {
  font-size: 10px;
  color: var(--subtext);
}

/* —— Stats —— */
.fd-stats {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.fd-stats-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  color: var(--subtext);
}

.fd-stats-head strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

.fd-stats-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  height: 72px;
  margin-bottom: 8px;
}

.fd-stats-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 4px;
}

.fd-stats-bar::before {
  content: '';
  width: 100%;
  max-width: 22px;
  height: var(--h, 40%);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(0, 188, 252, 0.5) 0%, rgba(0, 188, 252, 0.12) 100%);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 0.7s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.feature-card.is-playing .fd-stats-bar.is-grown::before {
  transform: scaleY(1);
}

.fd-stats-bar--peak::before {
  background: linear-gradient(180deg, #5cd4ff 0%, var(--primary) 100%);
  box-shadow: 0 0 16px rgba(0, 188, 252, 0.35);
}

.fd-stats-bar span {
  font-size: 8px;
  color: var(--subtext);
}

.fd-stats-bar--peak span {
  color: var(--primary);
  font-weight: 600;
}

.fd-stats-trend {
  height: 28px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s;
}

.fd-stats-trend svg {
  width: 100%;
  height: 100%;
}

.fd-stats-trend path {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
}

.feature-card.is-playing .fd-stats-trend.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card.is-playing .fd-stats-trend.is-visible path {
  animation: fd-trend-draw 1.2s ease forwards 0.5s;
}

@keyframes fd-trend-draw {
  to { stroke-dashoffset: 0; }
}

/* How it works */
.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  position: relative;
  flex: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 188, 252, 0.12);
  color: var(--primary);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-connector {
  display: none;
}

@media (min-width: 768px) {
  .step-connector {
    display: block;
    position: absolute;
    top: 52px;
    right: -24px;
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    z-index: 2;
  }

  .step-card:last-child .step-connector {
    display: none;
  }
}

/* Demo section */
.demo-section {
  position: relative;
}

.demo-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 920px;
  margin: 0 auto;
}

.demo-device {
  order: -1;
  margin: 0;
  width: min(280px, 72vw);
  margin-inline: auto;
}

@media (min-width: 768px) {
  .demo-layout {
    grid-template-columns: 1fr 280px;
    gap: 72px;
  }

  .demo-device {
    order: unset;
    margin-inline: 0;
    justify-self: end;
  }
}

.demo-copy {
  text-align: center;
}

@media (min-width: 768px) {
  .demo-copy {
    text-align: left;
  }
}

.demo-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  max-width: 320px;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .demo-highlights {
    margin-inline: 0;
  }
}

.demo-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--subtext);
}

.demo-highlight-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(0, 188, 252, 0.1);
  border: 1px solid rgba(0, 188, 252, 0.2);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}


.demo-device-shell {
  position: relative;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 48px -12px rgba(0, 0, 0, 0.65),
    0 48px 80px -24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.demo-device-shell:hover {
  border-color: rgba(0, 188, 252, 0.25);
}

.demo-device-shell.is-playing {
  border-color: rgba(0, 188, 252, 0.3);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 0 0 1px rgba(0, 188, 252, 0.08),
    0 24px 48px -12px rgba(0, 0, 0, 0.65);
}

.demo-video-player {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
  background: #000;
  cursor: pointer;
}

.demo-video-player::-webkit-media-controls {
  display: none !important;
}

.demo-video-player::-webkit-media-controls-enclosure {
  display: none !important;
}

.demo-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(17, 17, 19, 0.45);
  backdrop-filter: blur(2px);
  cursor: pointer;
  color: var(--text);
  transition: opacity 0.3s ease, visibility 0.3s ease, background 0.2s ease;
}

.demo-play-btn:hover {
  background: rgba(17, 17, 19, 0.55);
}

.demo-play-btn:hover .demo-play-ring {
  transform: scale(1.06);
  box-shadow: 0 8px 32px rgba(0, 188, 252, 0.35);
}

.demo-play-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5cd4ff 0%, var(--primary) 100%);
  color: #0a1a2e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 188, 252, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.demo-play-ring svg {
  position: relative;
  left: 2px;
}

.demo-device-shell.is-playing .demo-play-btn {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.demo-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(178, 178, 178, 0.6);
  letter-spacing: 0.02em;
}

/* Evolution section */
.evolution-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .evolution-layout {
    grid-template-columns: 1fr 1.15fr;
    gap: 64px;
  }
}

.evolution-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 520px) {
  .evolution-stats {
    grid-template-columns: 1fr;
  }
}

.evolution-stat {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.25s;
}

.evolution-stat:hover {
  border-color: rgba(0, 188, 252, 0.25);
}

.evolution-stat-value {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}

.evolution-stat-label {
  display: block;
  font-size: 11px;
  color: var(--subtext);
  line-height: 1.35;
}

.evolution-disclaimer {
  font-size: 11px;
  color: rgba(178, 178, 178, 0.55);
}

.evolution-panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px 24px 28px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 24px 48px -16px rgba(0, 0, 0, 0.5);
}

.evolution-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.evolution-panel-label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.evolution-panel-period {
  font-size: 12px;
  color: var(--subtext);
}

.evolution-trend {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--success);
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.22);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.evolution-chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 210px;
  padding: 8px 88px 0 4px;
}

.evolution-chart::before {
  content: '';
  position: absolute;
  inset: 0 88px 26px 4px;
  background-image: linear-gradient(to bottom, rgba(41, 41, 42, 0.8) 1px, transparent 1px);
  background-size: 100% 33.33%;
  opacity: 0.55;
  pointer-events: none;
  border-radius: 8px;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

.chart-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.chart-bar-wrap.visible .chart-value {
  opacity: 1;
  transform: translateY(0);
}

.chart-bar-wrap:nth-child(1) .chart-value { transition-delay: 0.15s; }
.chart-bar-wrap:nth-child(2) .chart-value { transition-delay: 0.27s; }
.chart-bar-wrap:nth-child(3) .chart-value { transition-delay: 0.39s; }
.chart-bar-wrap:nth-child(4) .chart-value { transition-delay: 0.51s; }

.chart-bar {
  width: 100%;
  max-width: 44px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(0, 188, 252, 0.55) 0%, rgba(0, 188, 252, 0.15) 100%);
  transform-origin: bottom;
  transform: scaleY(0);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar-wrap.is-current .chart-bar {
  background: linear-gradient(180deg, #5cd4ff 0%, var(--primary) 100%);
  box-shadow: 0 0 24px rgba(0, 188, 252, 0.3);
}

.chart-bar-wrap.visible .chart-bar {
  transform: scaleY(1);
}

.chart-label {
  font-size: 10px;
  color: var(--subtext);
  text-align: center;
  white-space: nowrap;
}

.chart-bar-wrap.is-current .chart-label {
  color: var(--primary);
  font-weight: 600;
}

.evolution-phone {
  position: absolute;
  right: 12px;
  bottom: 16px;
  width: 108px;
  pointer-events: none;
}

.evolution-phone img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.55));
}

@media (min-width: 768px) {
  .evolution-phone {
    width: 120px;
    right: 16px;
    bottom: 12px;
  }
}

/* Compare table */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-col {
  padding: 32px 24px;
}

.compare-col.without {
  background: rgba(231, 76, 60, 0.06);
  border-right: 1px solid var(--border);
}

.compare-col.with {
  background: rgba(0, 188, 252, 0.06);
}

.compare-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 14px;
}

.compare-item:last-child {
  border-bottom: none;
}

/* Emotional benefits scroll */
.benefits-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.benefits-scroll::-webkit-scrollbar {
  height: 4px;
}

.benefits-scroll::-webkit-scrollbar-thumb {
  background: var(--elevated);
  border-radius: 4px;
}

.benefit-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.benefit-card:hover {
  border-color: rgba(0, 188, 252, 0.35);
  transform: translateY(-2px);
}

/* Audience tags */
.audience-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.audience-tag:hover {
  border-color: rgba(0, 188, 252, 0.35);
  background: rgba(0, 188, 252, 0.06);
}

/* Testimonials */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #0a1a2e;
  flex-shrink: 0;
}

.avatar--photo {
  padding: 0;
  overflow: hidden;
  background: var(--text);
}

.avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

/* Social proof counters */
.stat-card {
  text-align: center;
  padding: 24px 16px;
}

.stat-value {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--subtext);
  margin-top: 8px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding-bottom: 20px;
  color: var(--subtext);
  font-size: 14px;
  line-height: 1.65;
}

/* CTA final */
.cta-final {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 188, 252, 0.15), transparent 70%);
  pointer-events: none;
}

/* Footer */
.lp-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0;
  background: rgba(17, 17, 19, 0.98);
  backdrop-filter: blur(16px);
  z-index: 40;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  padding: 14px 16px;
  font-weight: 500;
  border-radius: 10px;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: var(--surface);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Solution section phone */
.solution-phone {
  width: min(280px, 70vw);
}

.solution-phone img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .logo-dot,
  .chart-bar,
  .chart-value,
  .hero-phone--main,
  .hero-phone--left,
  .hero-phone--right,
  .hero-chip {
    animation: none;
    transform: none;
    opacity: 1;
  }

  .hero-phone--main {
    transform: translate(-50%, -50%);
  }

  .hero-phone--left {
    transform: rotate(-16deg) scale(0.76);
  }

  .hero-phone--right {
    transform: rotate(14deg) scale(0.72);
  }

  .hero-chip--set {
    transform: none;
  }

  .feature-card.is-playing .fd-set-row,
  .feature-card.is-playing .fd-backup-item,
  .feature-card.is-playing .fd-routine-card,
  .feature-card.is-playing .fd-history-item,
  .feature-card.is-playing .fd-library-item--custom,
  .feature-card.is-playing .fd-backup-cloud,
  .feature-card.is-playing .fd-stats-trend {
    opacity: 1;
    transform: none;
  }

  .feature-card.is-playing .fd-set-row.is-checked .fd-set-check {
    background: var(--success);
    border-color: var(--success);
    transform: none;
  }

  .feature-card.is-playing .fd-set-row.is-checked .fd-set-check svg {
    color: #fff;
  }

  .feature-card.is-playing .fd-stats-bar::before {
    transform: scaleY(1);
  }

  .feature-card.is-playing .fd-stats-trend path {
    stroke-dashoffset: 0;
    animation: none;
  }

  .feature-card.is-playing .fd-backup-cloud {
    opacity: 1;
    transform: none;
  }

  .feature-card.is-playing .fd-backup-beam {
    height: 14px;
  }

  .feature-card.is-playing .fd-backup-item.is-synced .fd-backup-badge {
    opacity: 1;
    transform: none;
  }

  .fd-library-query {
    animation: none;
    border-color: transparent;
  }

  @media (max-width: 767px) {
    .hero-chip--set {
      transform: translateX(-50%);
    }
  }

  .chart-bar {
    transform: scaleY(1);
  }
}
