
/* ============================================================
   HOME PAGE — fit-analyser-home.css
   Adicionado ao final de main.css na versão 0.5.0
   Todos os seletores prefixados com .home- para não colidir
   com os estilos existentes do app.
   ============================================================ */

/* ── Tokens exclusivos da home (dark fixo) ─────────────────── */
.home-layout {
  --h-bg:          #0F1E2E;
  --h-bg-alt:      #0D1A27;
  --h-card:        #1A2D42;
  --h-card-hi:     #1E3450;
  --h-border:      #1E3450;
  --h-blue:        #2563EB;
  --h-blue-light:  #3B82F6;
  --h-sonar:       #60A5FA;
  --h-text:        #E8F0F8;
  --h-muted:       #8EA8C3;
  --h-green:       #22C55E;
}

/* Reset de base para a home */
.home-layout {
  background: var(--h-bg);
  color: var(--h-text);
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────────────────────── */
.home-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 64px;
  background: rgba(13, 26, 39, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--h-border);
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.home-brand-symbol { flex-shrink: 0; }

.home-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.home-wm-main {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--h-text);
}

.home-wm-accent { color: var(--h-blue); }

.home-wm-sub {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-top: 2px;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.home-nav-links a {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--h-muted);
  text-decoration: none;
  transition: color .2s;
}
.home-nav-links a:hover { color: var(--h-text); }

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* ── Botões ───────────────────────────────────────────────── */
.home-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1.4rem;
  border-radius: 6px;
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  border: none;
  white-space: nowrap;
}

.home-btn-primary {
  background: var(--h-blue);
  color: #fff;
}
.home-btn-primary:hover {
  background: var(--h-blue-light);
  color: #fff;
  transform: translateY(-1px);
}

.home-btn-outline {
  background: transparent;
  color: var(--h-text);
  border: 1px solid var(--h-border);
}
.home-btn-outline:hover {
  border-color: var(--h-blue);
  color: var(--h-blue);
}

.home-btn-lg {
  font-size: 15px;
  padding: .7rem 1.7rem;
}

/* ── HERO ─────────────────────────────────────────────────── */
.home-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 100px clamp(1.5rem, 6vw, 5rem) 5rem;
}

.home-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--h-blue);
  margin-bottom: .9rem;
}

.home-h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
  color: var(--h-text);
}

.home-h1 em {
  font-style: normal;
  color: var(--h-blue);
}

.home-hero-sub {
  font-size: 17px;
  color: var(--h-muted);
  max-width: 480px;
  margin-bottom: 2.2rem;
  line-height: 1.7;
}

.home-code {
  font-family: monospace;
  color: var(--h-sonar);
  font-size: 15px;
  background: rgba(96,165,250,.08);
  padding: 1px 5px;
  border-radius: 3px;
}

.home-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Activity Card ────────────────────────────────────────── */
.home-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-activity-card {
  width: 100%;
  max-width: 420px;
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.home-card-glow {
  position: absolute;
  top: -80px; right: -80px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(37,99,235,.18) 0%, transparent 70%);
  pointer-events: none;
}

.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}

.home-card-sport {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.home-sport-icon {
  width: 36px; height: 36px;
  background: rgba(37,99,235,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.home-sport-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .04em;
  color: var(--h-text);
}

.home-sport-date {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  color: var(--h-muted);
  margin-top: 1px;
}

.home-card-te { text-align: right; }

.home-te-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--h-green);
  line-height: 1;
}

.home-te-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-muted);
}

.home-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.4rem;
}

.home-metric {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--h-border);
  border-radius: 8px;
  padding: .7rem .8rem;
}

.home-metric-val {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: .02em;
  line-height: 1;
  color: var(--h-text);
}

.home-metric-unit {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  color: var(--h-blue);
  margin-left: 2px;
}

.home-metric-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-top: 3px;
}

.home-chart-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-bottom: .5rem;
}

.home-chart-wrap {
  position: relative;
  height: 70px;
  margin-bottom: 1rem;
}

.home-chart-wrap svg { width: 100%; height: 100%; overflow: visible; }

/* Animação da linha de FC */
.home-hr-path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: homeDrawLine 2.2s ease .4s forwards;
}

@keyframes homeDrawLine {
  from { stroke-dashoffset: 600; }
  to   { stroke-dashoffset: 0; }
}

/* Barras de zona */
.home-zone-bars {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 48px;
  margin-bottom: .5rem;
}

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

.home-zone-bar {
  width: 100%;
  border-radius: 3px 3px 0 0;
  height: 0%;
}

.home-zone-lbl {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--h-muted);
}

/* ── Seções genéricas ─────────────────────────────────────── */
.home-section {
  padding: 6rem clamp(1.5rem, 6vw, 5rem);
}

.home-section-alt {
  background: var(--h-bg-alt);
  border-top: 1px solid var(--h-border);
  border-bottom: 1px solid var(--h-border);
}

.home-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.home-section-header {
  margin-bottom: 3rem;
}

.home-h2 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin-bottom: .8rem;
  color: var(--h-text);
}

.home-section-desc {
  color: var(--h-muted);
  max-width: 520px;
  font-size: 16px;
}

/* ── Steps ────────────────────────────────────────────────── */
.home-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.home-step {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 12px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.home-step:hover {
  border-color: var(--h-blue);
  transform: translateY(-3px);
}

.home-step-num {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 52px;
  color: rgba(37,99,235,.1);
  line-height: 1;
  position: absolute;
  top: 1rem; right: 1.2rem;
  user-select: none;
}

.home-step-icon {
  width: 44px; height: 44px;
  background: rgba(37,99,235,.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1.1rem;
}

.home-step h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .03em;
  margin-bottom: .5rem;
  color: var(--h-text);
}

.home-step p {
  font-size: 14px;
  color: var(--h-muted);
  line-height: 1.65;
}

/* ── Sports ───────────────────────────────────────────────── */
.home-sports-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.home-sport-tag {
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 6px;
  padding: .5rem 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--h-muted);
  transition: all .2s;
}

.home-sport-tag:hover {
  border-color: var(--h-blue);
  color: var(--h-sonar);
}

.home-sport-tag--hi {
  border-color: rgba(37,99,235,.4);
  color: var(--h-blue-light);
  background: rgba(37,99,235,.07);
}

/* ── Metrics showcase ─────────────────────────────────────── */
.home-metrics-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.home-metrics-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-metric-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--h-card);
  border: 1px solid var(--h-border);
  border-radius: 10px;
  transition: border-color .2s;
}

.home-metric-row:hover { border-color: var(--h-blue); }

.home-metric-row-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: rgba(37,99,235,.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.home-metric-row-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 2px;
  color: var(--h-text);
}

.home-metric-row-desc {
  font-size: 13px;
  color: var(--h-muted);
  line-height: 1.55;
}

/* ── CTA Final ────────────────────────────────────────────── */
.home-cta {
  text-align: center;
  padding: 7rem clamp(1.5rem, 6vw, 5rem);
}

.home-cta-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--h-text);
}

.home-cta-desc {
  font-size: 17px;
  color: var(--h-muted);
  margin-bottom: 2.2rem;
}

.home-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── Footer ───────────────────────────────────────────────── */
.home-footer {
  background: var(--h-bg-alt);
  border-top: 1px solid var(--h-border);
  padding: 2rem clamp(1.5rem, 6vw, 5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-footer-copy {
  font-size: 12px;
  color: var(--h-muted);
}

/* ── Responsivo ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }
  .home-hero-visual { order: -1; }
  .home-metrics-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 640px) {
  .home-nav-links { display: none; }
  .home-nav-actions .home-btn-outline { display: none; }
}

/* ── Redução de movimento ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .home-hr-path { animation: none; stroke-dashoffset: 0; }
  .home-btn, .home-step, .home-metric-row, .home-sport-tag { transition: none; }
}
