/* ==========================================================================
   Chat 145 - Landing Page Stylesheet
   Guia de Identidade Visual Oficial:
   - Tipografia: Poppins (SemiBold, Bold, ExtraBold)
   - Degradê Principal: #2D7BFF (Azul) -> #9B3DFF (Roxo)
   - Cores de Apoio: Vermelho (#FF4D4F), Verde (#2ECC71), Amarelo (#FFC107), Azul (#4DA3FF)
   - Modelo: Apenas por Aplicativo Mobile (iOS & Android)
   ========================================================================== */

:root {
  /* Manual de Identidade Visual Oficial */
  --brand-blue: #2D7BFF;
  --brand-purple: #9B3DFF;
  --brand-gradient: linear-gradient(135deg, #2D7BFF 0%, #9B3DFF 100%);
  --brand-gradient-hover: linear-gradient(135deg, #3D88FF 0%, #AA4FFF 100%);
  --brand-gradient-text: linear-gradient(135deg, #2D7BFF 10%, #9B3DFF 90%);

  /* Cores de Apoio Oficiais */
  --support-red: #FF4D4F;
  --support-green: #2ECC71;
  --support-yellow: #FFC107;
  --support-lightblue: #4DA3FF;

  /* Superfícies e Escuros (Night Dark Mode) */
  --bg-primary: #08090E;
  --bg-secondary: #0E1018;
  --bg-card: rgba(17, 19, 28, 0.82);
  --bg-card-hover: rgba(24, 27, 40, 0.95);
  --border-subtle: #1E2232;
  --border-focus: rgba(45, 123, 255, 0.45);

  /* Texto */
  --text-primary: #FFFFFF;
  --text-secondary: #94A0B8;
  --text-muted: #64748B;

  /* App Mockup Tokens (Flutter App Matching) */
  --app-dark-bg: #0C0D14;
  --app-surface: #141622;
  --app-surface-elevated: #1D2030;
  --app-border: #24273A;

  /* Tipografia Oficial do Manual */
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Transições Suaves */
  --tr-fast: 0.18s ease;
  --tr-normal: 0.28s ease;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Ambient Glows */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 18% 12%, rgba(45, 123, 255, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 82% 24%, rgba(155, 61, 255, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(46, 204, 113, 0.06) 0%, transparent 45%);
  pointer-events: none;
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

/* Container Focado, Centralizado e Não-Esticado */
.container {
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Typography Utilities */
h1, h2, h3, h4 {
  font-family: var(--font-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(8, 9, 14, 0.88);
  border-bottom: 1px solid var(--border-subtle);
  height: 68px;
  display: flex;
  align-items: center;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #FFFFFF;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(45, 123, 255, 0.4));
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  display: inline-flex;
  align-items: baseline;
}

.brand-title span {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 4px;
  font-weight: 800;
}

.nav-center-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

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

.nav-item a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--tr-fast);
}

.nav-item a:hover {
  color: var(--support-lightblue);
}

.nav-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--support-green);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.live-dot {
  width: 6px;
  height: 6px;
  background-color: var(--support-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--support-green);
  animation: pulse-dot 1.8s infinite ease-in-out;
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px var(--support-green); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.nav-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-header-download {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  text-decoration: none;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.82rem;
  border: 1px solid var(--border-subtle);
  transition: var(--tr-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-header-download:hover {
  border-color: var(--brand-blue);
  background: rgba(45, 123, 255, 0.12);
  color: var(--support-lightblue);
}

.btn-header-cta {
  background: var(--brand-gradient);
  color: #FFFFFF;
  text-decoration: none;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 3px 12px rgba(45, 123, 255, 0.35);
  transition: var(--tr-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-header-cta:hover {
  background: var(--brand-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 16px rgba(155, 61, 255, 0.45);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 2.75rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 355px;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45, 123, 255, 0.1);
  border: 1px solid rgba(45, 123, 255, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--support-lightblue);
  margin-bottom: 0.85rem;
}

.hero-status-pill .ping-ring {
  position: relative;
  display: inline-flex;
  width: 8px;
  height: 8px;
}

.ping-ring .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background-color: var(--support-green);
  opacity: 0.8;
  animation: ping-wave 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.ping-ring .dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--support-green);
}

@keyframes ping-wave {
  75%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hero-title {
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: #FFFFFF;
}

.hero-title .highlight-line {
  display: block;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.35rem;
  max-width: 480px;
}

.hero-subtitle strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* ==========================================================================
   App Download Buttons Component (Oficial iOS & Android)
   ========================================================================== */
.hero-download-box {
  width: 100%;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-label-mini {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--support-lightblue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-download-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-app-store, .btn-google-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0E1018;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  color: #FFFFFF;
  transition: var(--tr-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-app-store:hover, .btn-google-play:hover {
  border-color: var(--brand-blue);
  background: #151824;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 123, 255, 0.3);
}

.btn-icon-store {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}

.btn-text-small {
  font-size: 0.6rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.btn-text-large {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.hero-app-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 2px;
}

.meta-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--support-green);
  box-shadow: 0 0 6px var(--support-green);
}

.hero-feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 1rem;
}

.hero-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-pill-item svg {
  color: var(--support-lightblue);
}


/* ==========================================================================
   Hero Visual: Smartphone Frame com Tabs "Sala Geral" e "Desafios"
   ========================================================================== */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 355px;
}

.mockup-tab-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #11131C;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px;
  margin: 0 auto 10px;
  width: max-content;
  position: relative;
  z-index: 5;
}

.mock-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--tr-fast);
}

.mock-tab-btn.active {
  background: var(--brand-gradient);
  color: #FFFFFF;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(45, 123, 255, 0.4);
}

.floating-glow-bg {
  position: absolute;
  inset: 20px -10px -10px;
  background: radial-gradient(circle, rgba(45, 123, 255, 0.22) 0%, rgba(155, 61, 255, 0.15) 50%, transparent 70%);
  filter: blur(30px);
  z-index: 0;
  border-radius: 50%;
}

/* Smartphone Chassis */
.phone-device-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  background: #11131C;
  border: 2px solid #23273A;
  border-radius: 34px;
  padding: 7px;
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(45, 123, 255, 0.15);
  overflow: hidden;
}

/* Notch */
.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  background: #08090E;
  border-radius: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}

.camera-lens {
  width: 6px;
  height: 6px;
  background: #1B1E2E;
  border-radius: 50%;
  border: 1px solid #282D44;
}

/* Phone Status Bar */
.device-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px 2px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFFFFF;
  position: relative;
  z-index: 10;
  background: var(--app-surface);
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.battery-pill {
  width: 16px;
  height: 8px;
  border: 1px solid #FFFFFF;
  border-radius: 2px;
  padding: 1px;
}

.battery-level {
  width: 80%;
  height: 100%;
  background-color: var(--support-green);
  border-radius: 1px;
}

/* App Inner Screen */
.app-screen {
  background-color: var(--app-dark-bg);
  border-bottom-left-radius: 26px;
  border-bottom-right-radius: 26px;
  overflow: hidden;
  position: relative;
  height: 480px;
  display: flex;
  flex-direction: column;
}

/* 1. Flutter AppBar */
.flutter-app-bar {
  background-color: var(--app-surface);
  padding: 6px 12px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-border);
}

.app-bar-venue {
  display: flex;
  flex-direction: column;
}

.app-venue-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.app-venue-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.live-dot-green {
  width: 5px;
  height: 5px;
  background-color: var(--support-green);
  border-radius: 50%;
  box-shadow: 0 0 5px var(--support-green);
}

.app-bar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-gradient);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* 2. Flutter TabBar */
.flutter-tab-bar {
  display: flex;
  background-color: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  padding: 0 8px;
}

.tab-item {
  padding: 7px 8px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--tr-fast);
}

.tab-item.active {
  color: #FFFFFF;
  border-bottom: 2px solid var(--support-lightblue);
}

.tab-badge {
  background: var(--brand-purple);
  color: #FFFFFF;
  font-size: 0.58rem;
  padding: 1px 4px;
  border-radius: 999px;
  font-weight: 800;
}

.tab-badge-live {
  background: var(--support-green);
  color: #000;
  font-size: 0.55rem;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 800;
}

/* ─── TAB 1: SALA GERAL ─── */
.chat-tab-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.chat-banner-notice {
  background: rgba(255, 193, 7, 0.1);
  border-bottom: 1px solid rgba(255, 193, 7, 0.2);
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  color: #FFE082;
}

.chat-banner-notice .banner-badge {
  background: var(--support-yellow);
  color: #08090E;
  font-weight: 800;
  font-size: 0.56rem;
  padding: 1px 4px;
  border-radius: 3px;
  text-transform: uppercase;
}

.chat-messages-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-messages-scroll::-webkit-scrollbar {
  width: 3px;
}
.chat-messages-scroll::-webkit-scrollbar-thumb {
  background: var(--app-border);
  border-radius: 3px;
}

.chat-bubble-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  max-width: 88%;
  animation: slideMsg 0.25s ease;
}

@keyframes slideMsg {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-bubble-row.incoming {
  align-self: flex-start;
}

.chat-bubble-row.outgoing {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-bubble {
  padding: 6px 10px;
  font-size: 0.72rem;
  line-height: 1.35;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.chat-bubble-row.incoming .chat-bubble {
  background: var(--app-surface-elevated);
  color: #FFFFFF;
  border-radius: 12px 12px 12px 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-bubble-row.outgoing .chat-bubble {
  background: var(--brand-gradient);
  color: #FFFFFF;
  border-radius: 12px 12px 3px 12px;
}

.chat-sender-name {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--support-lightblue);
  margin-bottom: 2px;
}

.chat-bubble-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 3px;
}

.chat-composer {
  padding: 6px 10px 8px;
  background: var(--app-surface);
  border-top: 1px solid var(--app-border);
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-composer input {
  flex: 1;
  height: 32px;
  background: #0C0D14;
  border: 1px solid var(--app-border);
  border-radius: 16px;
  padding: 0 10px;
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.72rem;
  outline: none;
}

.chat-composer input:focus {
  border-color: var(--brand-blue);
}

.btn-send-chat {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-gradient);
  border: none;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--tr-fast);
}

.btn-send-chat:hover {
  transform: scale(1.06);
}

/* ─── TAB 2: DESAFIOS ─── */
.desafios-tab-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}

.night-points-banner {
  margin: 8px 10px 4px;
  padding: 8px 10px;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.trophy-box {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 193, 7, 0.14);
  color: var(--support-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.points-col {
  display: flex;
  flex-direction: column;
}

.points-label {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.points-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.rank-pill {
  margin-left: auto;
  background: var(--brand-purple);
  color: #FFFFFF;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
}

.challenges-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.challenges-scroll-area::-webkit-scrollbar {
  width: 3px;
}
.challenges-scroll-area::-webkit-scrollbar-thumb {
  background: var(--app-border);
  border-radius: 3px;
}

.flutter-challenge-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-body-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.challenge-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.box-accepted {
  background: rgba(46, 204, 113, 0.15);
  color: var(--support-green);
}

.box-pending {
  background: rgba(45, 123, 255, 0.15);
  color: var(--support-lightblue);
}

.challenge-info-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.challenge-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 2px;
}

.challenge-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-accepted {
  background: rgba(46, 204, 113, 0.18);
  color: var(--support-green);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.challenge-desc {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 4px;
}

.challenge-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.points-tag {
  color: var(--support-green);
  font-size: 0.72rem;
  font-weight: 700;
}

.voters-hint {
  font-size: 0.65rem;
  color: var(--support-yellow);
  font-weight: 600;
}

.btn-flutter-action {
  width: 100%;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--tr-fast);
}

.btn-voting-active {
  background: var(--support-green);
  color: #07090E;
}

.btn-voting-active:hover {
  filter: brightness(1.08);
}

.btn-accept-challenge {
  background: var(--brand-gradient);
  color: #FFFFFF;
}

.btn-accept-challenge:hover {
  filter: brightness(1.08);
}

/* Voting Dialog Overlay */
.flutter-voting-dialog-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 9, 14, 0.85);
  backdrop-filter: blur(3px);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.flutter-voting-dialog {
  background: #151824;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  padding: 14px 12px;
  width: 100%;
  max-width: 290px;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.dialog-close-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px;
}

.dialog-avatar-ring {
  width: 44px;
  height: 44px;
  margin: 0 auto 6px;
  border-radius: 50%;
  border: 2px solid var(--brand-purple);
  box-shadow: 0 0 12px rgba(155, 61, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1F2236;
}

.dialog-avatar-inner {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
}

.dialog-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.dialog-subtitle {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 10px;
}

.dialog-stats-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.pct-voted {
  color: var(--support-lightblue);
}

.count-voted {
  color: var(--text-muted);
}

.dialog-progress-track {
  width: 100%;
  height: 5px;
  background: #25293E;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dialog-progress-fill {
  height: 100%;
  background: var(--brand-gradient);
  transition: width 0.35s ease;
}

.dialog-counts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.count-sim { color: var(--support-green); }
.count-nao { color: var(--support-red); }

.dialog-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-dialog-vote {
  border: none;
  outline: none;
  cursor: pointer;
  height: 36px;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #FFFFFF;
  transition: var(--tr-fast);
}

.btn-dialog-sim {
  background: var(--support-green);
  color: #07090E;
}

.btn-dialog-sim:hover { filter: brightness(1.1); }

.btn-dialog-nao {
  background: var(--support-red);
}

.btn-dialog-nao:hover { filter: brightness(1.1); }

.dialog-voted-feedback {
  margin-top: 8px;
  padding: 6px 8px;
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid var(--support-green);
  border-radius: 6px;
  color: var(--support-green);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* ==========================================================================
   Live Marquee Ticker
   ========================================================================== */
.ticker-section {
  background: #0B0C12;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #CBD5E1;
  white-space: nowrap;
}

.ticker-item span.highlight {
  color: var(--support-lightblue);
  font-weight: 700;
}

.ticker-item span.dot-sep {
  width: 4px;
  height: 4px;
  background-color: var(--brand-purple);
  border-radius: 50%;
}

/* ==========================================================================
   Como Funciona (3 Cards)
   ========================================================================== */
.steps-section {
  padding: 3.5rem 0 3rem;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.badge-blue {
  background: rgba(45, 123, 255, 0.1);
  color: var(--support-lightblue);
  border: 1px solid rgba(45, 123, 255, 0.25);
}

.badge-yellow {
  background: rgba(255, 193, 7, 0.1);
  color: var(--support-yellow);
  border: 1px solid rgba(255, 193, 7, 0.25);
}

.section-title {
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 0.65rem;
}

.section-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: var(--tr-fast);
}

.step-card:hover {
  border-color: rgba(45, 123, 255, 0.35);
  transform: translateY(-2px);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.step-number {
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.step-1 .step-number { color: var(--support-lightblue); }
.step-2 .step-number { color: var(--support-yellow); }
.step-3 .step-number { color: var(--brand-purple); }

.step-icon-bubble {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.step-1 .step-icon-bubble {
  background: rgba(45, 123, 255, 0.12);
  color: var(--support-lightblue);
}

.step-2 .step-icon-bubble {
  background: rgba(255, 193, 7, 0.12);
  color: var(--support-yellow);
}

.step-3 .step-icon-bubble {
  background: rgba(155, 61, 255, 0.12);
  color: var(--brand-purple);
}

.step-title {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #FFFFFF;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.15rem;
  flex: 1;
}

.step-micro-preview {
  background: #0B0C12;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: auto;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.mock-text {
  font-size: 0.75rem;
  color: #CBD5E1;
  line-height: 1.35;
}

/* ==========================================================================
   A Experiência (Grid 2x2 Focado)
   ========================================================================== */
.features-section {
  padding: 2.5rem 0 3rem;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 820px;
  margin: 0 auto;
}

.feature-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  transition: var(--tr-fast);
}

.feature-item:hover {
  border-color: rgba(45, 123, 255, 0.25);
  transform: translateY(-2px);
}

.feature-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0E1018;
  border: 1px solid var(--border-subtle);
}

.feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Espaço Dedicado: Download do App (Oficial iOS & Android)
   ========================================================================== */
.download-section {
  padding: 3rem 0 3.5rem;
  position: relative;
}

.download-card {
  background: linear-gradient(135deg, #111422 0%, #090A11 100%);
  border: 1.5px solid rgba(45, 123, 255, 0.35);
  border-radius: 20px;
  padding: 2.75rem 2rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(45, 123, 255, 0.12);
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.download-info {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.download-title {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.download-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 580px;
}

.download-info .app-download-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.download-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 1.5rem;
  font-size: 0.76rem;
  color: var(--text-secondary);
  flex-wrap: wrap;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-star {
  color: var(--support-yellow);
  font-size: 0.85rem;
}

.trust-sep {
  color: var(--border-subtle);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05060A;
  padding: 3rem 0 2rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-sarcastic-quote {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  color: #E2E8F0;
  max-width: 600px;
  line-height: 1.4;
}

.footer-sarcastic-quote span.punchline {
  color: var(--support-yellow);
}

.footer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
}

.footer-copy {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--support-green);
  background: rgba(46, 204, 113, 0.08);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* ==========================================================================
   Mobile Floating Bar & Toast
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(8, 9, 14, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-sticky-bar.visible { transform: translateY(0); }

.mobile-sticky-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
}

.mobile-sticky-text span {
  display: block;
  font-size: 0.68rem;
  color: var(--support-green);
}

.btn-mobile-action {
  background: var(--brand-gradient);
  color: #FFFFFF;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.78rem;
}

.toast-notice {
  position: fixed;
  top: 80px;
  right: 20px;
  background: #141624;
  border: 1px solid var(--brand-purple);
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translateX(120%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast-notice.show { transform: translateX(0); }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    align-items: center;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .app-download-buttons {
    justify-content: center;
  }

  .hero-app-meta {
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .download-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .download-trust-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .mobile-sticky-bar { display: flex; }
  .footer-meta-row {
    flex-direction: column;
    gap: 0.75rem;
  }
}
