/* ==========================================================================
   IMPORTS LIFFE - DESIGN SYSTEM & TOKENS (Regras 16, 19 e 20)
   Zero caixas cinzas de sistema. Cores estritamente derivadas dos tokens.
   ========================================================================== */

/* Fontes Locais (Regra 19 - Uncut.wtf) */
@font-face {
  font-family: 'Karrik';
  src: url('fonts/karrik.woff2') format('woff2');
  font-weight: 500 700;
  font-display: swap;
}

@font-face {
  font-family: 'Violet Sans';
  src: url('fonts/violet-sans.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Sligoil';
  src: url('fonts/sligoil.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Identidade Visual Streetwear / Hype */
  --brand-900: #1a0505;
  --brand-700: #7a0c0c;
  --brand-500: #e52e2e;   /* Cor de ação primária (vermelho streetwear) */
  --brand-300: #ff6b6b;
  --accent-500: #ff8400;  /* Cor de transição e energia */
  
  --ink-900: #08090c;     /* Fundo dominante contínuo */
  --ink-700: #111318;
  --paper: #f5f6f8;       /* Texto / Superfície invertida */
  
  /* Derivados Semânticos (color-mix in oklab) */
  --veil-1: color-mix(in oklab, var(--brand-500) 18%, transparent);
  --veil-2: color-mix(in oklab, var(--accent-500) 14%, transparent);
  --edge:   color-mix(in oklab, var(--paper) 13%, transparent);
  --glow:   color-mix(in oklab, var(--brand-500) 45%, transparent);

  /* Tipografia Autoral (Regra 19) */
  --ff-display: 'Karrik', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-text:    'Violet Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono:    'Sligoil', monospace;

  /* Escala Tipográfica Medida (Regra 19, §G6) */
  --fs-display: clamp(2.6rem, 6.2vw, 4.6rem);  /* H1 tracking -0.035em, lh 1.02 */
  --fs-h2:      clamp(2rem, 3.8vw, 3.2rem);    /* tracking -0.03em, lh 1.08 */
  --fs-h3:      clamp(1.25rem, 1.9vw, 1.6rem);
  --fs-body:    1.0625rem;                     /* 17px, lh 1.65 */
  --fs-small:   0.875rem;                      /* 14px, lh 1.5 */
  --track-wide: 0.16em;                        /* Apenas rótulos em caixa alta */

  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--paper);
  background-color: var(--ink-900);
  overflow-x: hidden !important;
  min-height: 100vh;
}

/* Fundo Global Contínuo Animado (Regra 16.3) */
.field {
  background:
    radial-gradient(60% 45% at 15% 8%, var(--veil-1), transparent 70%),
    radial-gradient(55% 40% at 85% 30%, var(--veil-2), transparent 72%),
    radial-gradient(70% 50% at 50% 100%, var(--veil-1), transparent 75%),
    var(--ink-900);
  background-size: 160% 160%;
  animation: fieldDrift 28s ease-in-out infinite alternate;
}

@keyframes fieldDrift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  to   { background-position: 20% 12%, 80% 18%, 47% 92%, 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .field { animation: none; }
}

/* Container & Grid Global */
.page-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navbar Minimalista (Regra 14.2 & 15.1) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 800;
  height: 56px;
  display: flex;
  align-items: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
  background: color-mix(in oklab, var(--ink-900) 80%, transparent);
}

.nav-container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  text-decoration: none;
  color: var(--paper);
}

.brand-text {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-subtag {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: var(--track-wide);
  opacity: 0.65;
  display: none;
}

@media (min-width: 480px) {
  .brand-subtag { display: inline-block; }
}

.nav-cta-mini {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s var(--ease-smooth), opacity 0.25s;
}

.nav-cta-mini:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

/* Seções & Véus de Transição (Regra 16.3 e 20) */
.section {
  position: relative;
  isolation: isolate;
  padding-block: clamp(48px, 8vw, 84px);
}

.section::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: clamp(100px, 16vh, 220px);
  background: linear-gradient(to bottom, var(--veil-1), transparent);
  pointer-events: none;
  z-index: -1;
}

/* Rótulos de Seção em Caps Puro (Regra 20.1) */
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: var(--track-wide);
  color: var(--brand-300);
  opacity: 0.85;
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

.section-title {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
}

/* Hero Section */
.hero-wrap {
  text-align: left;
  padding-top: clamp(36px, 6vw, 64px);
}

.hero-title {
  font-family: var(--ff-display);
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  color: var(--paper);
}

.hero-subtext {
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 58ch;
}

/* Botão de Ação Sólido com Shiny Sweep (Regra 14.8 & 15.2) */
.hero-cta-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--brand-500);
  color: #ffffff;
  font-family: var(--ff-text);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 10px 30px -10px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.32s var(--ease-smooth), box-shadow 0.32s;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: sweep 5s infinite;
}

@keyframes sweep {
  0% { left: -120%; }
  30%, 100% { left: 180%; }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -12px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-arrow {
  transition: transform 0.32s var(--ease-smooth);
}

.btn-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.microcopy {
  font-size: 0.82rem;
  opacity: 0.65;
  line-height: 1.4;
}

/* Links Grid & Cards de Link (Regra 20, H3.2) */
.links-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  min-height: 72px;
  border-radius: 18px;
  border: 1px solid var(--edge);
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--paper);
  transition: transform 0.32s var(--ease-smooth), border-color 0.32s, box-shadow 0.32s;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 18px 40px -20px var(--glow);
}

.link-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--brand-500) 14%, transparent);
  color: var(--brand-300);
  flex-shrink: 0;
}

.link-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-card__title {
  font-family: var(--ff-text);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link-card__desc {
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.4;
}

.link-card__arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--edge);
  flex-shrink: 0;
  transition: transform 0.32s var(--ease-smooth), background 0.32s, color 0.32s;
}

.link-card:hover .link-card__arrow {
  transform: translateX(3px) rotate(-45deg);
  background: var(--brand-500);
  color: #fff;
  border-color: transparent;
}

/* Card Featured Invertido (Regra 20, H3.2) */
.link-card--featured {
  background: var(--paper);
  color: var(--ink-900);
  border-color: transparent;
  box-shadow: 0 12px 32px -10px rgba(255, 255, 255, 0.15);
}

.link-card--featured .link-card__icon {
  background: var(--brand-500);
  color: #fff;
}

.link-card--featured .link-card__title {
  color: var(--ink-900);
  font-weight: 700;
}

.link-card--featured .link-card__desc {
  color: var(--ink-700);
  opacity: 0.85;
}

.link-card--featured .link-card__arrow {
  border-color: color-mix(in oklab, var(--ink-900) 20%, transparent);
  color: var(--ink-900);
}

.link-card--featured:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: 0 20px 48px -12px rgba(255, 255, 255, 0.25);
}

.link-card--featured:hover .link-card__arrow {
  background: var(--ink-900);
  color: #fff;
}

/* Data Block de Dados Reais (Regra 20, H4.3) */
.datablock-section {
  padding-top: 10px;
}

.datablock-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 580px) {
  .datablock-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.datablock-item {
  border-top: 1px solid var(--edge);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.datablock-label {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: var(--track-wide);
  opacity: 0.65;
}

.datablock-val {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.datablock-context {
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.4;
}

/* FAQ Acordeão Acessível (Regra 20, H4.3) */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: border-color 0.25s var(--ease-smooth);
}

.faq-item:focus-within {
  border-color: var(--brand-500);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--paper);
  font-family: var(--ff-text);
  font-size: 0.98rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-family: var(--ff-mono);
  font-size: 1.25rem;
  color: var(--brand-300);
  transition: transform 0.28s var(--ease-smooth);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  color: var(--brand-500);
}

.faq-content {
  padding: 0 20px 18px;
}

.faq-answer {
  font-size: 0.9rem;
  opacity: 0.8;
  line-height: 1.6;
}

/* Rodapé Curto (Regra 20.11) */
.footer {
  border-top: 1px solid var(--edge);
  padding: 36px 20px 48px;
  margin-top: 40px;
  text-align: center;
}

.footer-container {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-brand {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.footer-copy {
  font-size: 0.78rem;
  opacity: 0.6;
}

/* CTA WhatsApp Flutuante Oficial (Regra 16, §3.1 e §3.2) */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: max(20px, env(safe-area-inset-bottom));
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #ffffff;
  z-index: 900;
  text-decoration: none;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.28s var(--ease-smooth), box-shadow 0.28s;
}

.wa-float svg {
  width: 26px;
  height: 26px;
}

.wa-float:hover {
  transform: translateY(-3px) scale(1.04);
}

.wa-float:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .wa-float {
    width: 54px;
    height: 54px;
    right: 16px;
  }
  body {
    padding-bottom: 84px; /* Espaço para não cobrir conteúdo (Regra 16.3.1) */
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float, .btn-primary::after {
    animation: none;
    transition: none;
  }
}
