/* ============================================================
   BASE — Reset, tipografia global, utilitários
============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background .4s var(--ease), color .4s var(--ease);
}

/*
  Textura de ruído orgânico — gerada via SVG feTurbulence inline.
  Remove a planura "digital" do fundo escuro e adiciona profundidade
  físico-perceptual similar ao grain fotográfico de alta-fidelidade.
  position:fixed garante que a textura cobre TODA a viewport sem scroll.
*/
body::after {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  background-repeat: repeat;
}

img    { display: block; max-width: 100%; }
a      { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: var(--font); }
svg    { display: block; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar       { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 99px; }

/* ---------- Utilitários ---------- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Classe base para animações de scroll (GSAP injeta os valores) */
.reveal {
  opacity: 0;
  transform: translateY(32px);
}

/* ---------- Tipografia reutilizável ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: clamp(10px, 0.8vw, 12px);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* Tight tracking + line-height <1 = assinatura tipográfica de marcas premium */
.section-title {
  font-size: clamp(38px, 5vw, 66px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--text);
  margin-bottom: 20px;
}

/* Peso 300 cria contraste sofisticado contra o 900 do título */
.section-desc {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  color: var(--text2);
  line-height: 1.7;
  max-width: 520px;
  letter-spacing: -0.01em;
}

/* Media queries estão em css/responsive.css */

/* ============================================================
   LUCIDE ICONS — Configuração global de iconografia
   stroke-width base definido via createIcons({ attrs })
   Cor herdada via currentColor; tamanhos por contexto.
============================================================ */

/* Base: bloqueia o SVG gerado pelo Lucide como elemento inline-flex */
.lucide {
  display: inline-flex;
  flex-shrink: 0;
  vertical-align: middle;
  pointer-events: none;
}

/* Feature cards — ícone destaque verde, 24px */
.feature-icon .lucide {
  width: 24px !important;
  height: 24px !important;
  stroke: var(--accent);
}

/* Estrelas de avaliação — preenchidas em dourado */
.testimonial-star .lucide {
  width: 13px !important;
  height: 13px !important;
  stroke: #f5a623;
  fill: #f5a623;
}

/* Achievements dentro do mockup do app */
.app-achieve-icon .lucide {
  width: 15px !important;
  height: 15px !important;
  stroke: var(--accent);
}

/* Badge Premium no perfil */
.app-profile-badge .lucide {
  width: 11px !important;
  height: 11px !important;
  stroke: #f5a623;
  fill: #f5a623;
  margin-right: 3px;
}

/* Settings list — ícones de menu no app mockup */
.app-settings-name .lucide {
  width: 12px !important;
  height: 12px !important;
  stroke: var(--text3);
  margin-right: 5px;
}

/* Refeições — ícone à esquerda do nome */
.app-meal-name .lucide {
  width: 11px !important;
  height: 11px !important;
  stroke: var(--text3);
  margin-right: 4px;
}

/* Label de água */
.app-water-label .lucide {
  width: 11px !important;
  height: 11px !important;
  stroke: #0a84ff;
  margin-right: 4px;
}

/* Timer no cabeçalho de treino */
.app-workout-meta .lucide {
  width: 10px !important;
  height: 10px !important;
  stroke: var(--text3);
  margin-right: 3px;
}

/* Título de card dentro do app (streak, treino) */
.app-card-title .lucide {
  width: 13px !important;
  height: 13px !important;
  stroke: var(--accent);
  margin-right: 4px;
}

/* Notificação toast */
.notif-title .lucide {
  width: 12px !important;
  height: 12px !important;
  stroke: var(--accent);
  margin-right: 3px;
}

/* Status bar — battery */
.app-status-icons .lucide {
  width: 11px !important;
  height: 11px !important;
  stroke: currentColor;
}

/* CTA phones — ícone grande centralizado na tela */
.cta-screen-icon .lucide {
  width: 28px !important;
  height: 28px !important;
  stroke: var(--accent);
}
