/*
 * =============================================================
 * Arquivo: css/styles.css
 * Projeto: /turmadeeventos — jhonsrodrigues.com
 * Autor: Jhons Rodrigues
 * Data: Agosto de 2026
 * Propósito: Estilos da landing page de onboarding da Turma de
 *            Eventos (IFRN) no Notion. Paleta e tipografia
 *            espelham o site institucional jhonsrodrigues.com.
 * =============================================================
 */

/* ════════════════════════════════════════════════════════════
   DESIGN TOKENS — espelham a paleta do site jhonsrodrigues.com
   ════════════════════════════════════════════════════════════ */
:root {
  /* Cores base */
  --color-bg:           #17191C;
  --color-surface:      #1E2025;
  --color-surface-2:    #252830;
  --color-border:       rgba(255, 255, 255, 0.08);

  /* Texto */
  --color-text-primary: #F0F2F5;
  --color-text-muted:   #8B92A5;
  --color-text-subtle:  #5A6073;

  /* Marca — gradiente azul → verde → laranja */
  --color-blue:         #3B82F6;
  --color-green:        #10B981;
  --color-orange:       #F97316;

  /* Gradientes */
  --grad-brand:         linear-gradient(135deg, #3B82F6 0%, #10B981 50%, #F97316 100%);
  --grad-brand-text:    linear-gradient(90deg, #3B82F6, #10B981, #F97316);
  --grad-glow-blue:     radial-gradient(ellipse at 30% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 60%);
  --grad-glow-green:    radial-gradient(ellipse at 70% 100%, rgba(16, 185, 129, 0.10) 0%, transparent 60%);

  /* Tipografia */
  --font-base:          'Manrope', system-ui, -apple-system, sans-serif;

  /* Espaçamento */
  --section-pad-v:      clamp(4rem, 10vw, 7rem);
  --section-pad-h:      clamp(1.75rem, 6vw, 2.5rem);
  --container-max:      720px;

  /* Transições */
  --transition-base:    0.25s ease;
  --transition-slow:    0.45s cubic-bezier(0.4, 0, 0.2, 1);

  /* Raios */
  --radius-sm:          0.5rem;
  --radius-md:          0.875rem;
  --radius-lg:          1.25rem;
  --radius-xl:          1.75rem;
  --radius-pill:        999px;

  /* Sombras */
  --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.35);
  --shadow-btn:         0 4px 16px rgba(59, 130, 246, 0.30);
  --shadow-btn-orange:  0 4px 16px rgba(249, 115, 22, 0.30);
}

/* ════════════════════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-base);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100dvh;
  /* Glows de fundo decorativos — sem imagem rasterizada */
  background-image:
    var(--grad-glow-blue),
    var(--grad-glow-green);
  background-attachment: fixed;
}

/* Foco visível — acessibilidade (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ════════════════════════════════════════════════════════════
   UTILITÁRIOS
   ════════════════════════════════════════════════════════════ */

/* Container centralizado com padding responsivo */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--section-pad-h);
}

/* Texto com gradiente de marca */
.text-gradient {
  background: var(--grad-brand-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Destaques de cor inline — substituem style="color: var(--color-*)" no HTML */
.highlight-blue   { color: var(--color-blue); }
.highlight-green  { color: var(--color-green); }
.highlight-orange { color: var(--color-orange); }

/* Indicador de scroll abaixo do banner */
.scroll-hint {
  color: var(--color-text-subtle);
  font-size: 0.78rem;
  margin-top: -0.5rem;
}

/* Revelação por scroll (controlada via IntersectionObserver em main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Escalonamento de animação via atributo data-delay (zero inline styles) */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.15s; }
.reveal[data-delay="3"] { transition-delay: 0.2s; }
.reveal[data-delay="4"] { transition-delay: 0.25s; }

/* Wrapper centralizado para CTAs */
.cta-wrapper {
  text-align: center;
}

/* ════════════════════════════════════════════════════════════
   BOTÕES
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-base);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base),
    opacity var(--transition-base);
  white-space: nowrap;
}

/* Botão primário (gradiente de marca azul → verde → laranja) */
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.45);
}
.btn-primary:active {
  transform: translateY(0);
}

/* Botão secundário — estado pós-download (neutro/apagado) */
.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  box-shadow: none;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--color-surface);
  color: var(--color-text-primary);
}

/* Botão laranja — CTA final / WhatsApp */
.btn-orange {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #fff;
  box-shadow: var(--shadow-btn-orange);
}
.btn-orange:hover,
.btn-orange:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45);
}
.btn-orange:active {
  transform: translateY(0);
}

/* Botão verde — "Continuar com o Tutorial" */
.btn-green {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #fff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.30);
}
.btn-green:hover,
.btn-green:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45);
}
.btn-green:active {
  transform: translateY(0);
}

/* Estado oculto → revelado (main.js adiciona .is-visible via JS) */
.btn-reveal {
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.btn-reveal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════
   SEÇÃO GENÉRICA
   ════════════════════════════════════════════════════════════ */
.section {
  padding-block: var(--section-pad-v);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-body {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════════════════════════
   SEÇÃO 1 — BANNER DE BOAS-VINDAS
   ════════════════════════════════════════════════════════════ */
#secao-boas-vindas {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding-block: var(--section-pad-v);
  overflow: hidden;
}

/* Orbes de fundo — CSS puro, sem JS */
#secao-boas-vindas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(16, 185, 129, 0.09) 0%, transparent 50%),
    radial-gradient(ellipse at 60% 10%, rgba(249, 115, 22, 0.07) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ── Faixa colorida animada ao redor do card ──
   Usa conic-gradient no pseudo-elemento ::before + @keyframes rotation.
   100% CSS — sem JS, sem setInterval, sem overhead de memória. */
.banner-card-wrapper {
  position: relative;
  padding: 2px; /* Espessura da borda */
  border-radius: var(--radius-xl);
  overflow: hidden; /* Esconde a sobra do quadrado giratório para ficar só na borda */
  width: 100%;
  max-width: 560px;
}

.banner-card-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 270deg,
    #3B82F6 300deg,
    #10B981 330deg,
    #F97316 360deg
  );
  animation: rotateBorder 4s linear infinite;
  z-index: 0;
}

@keyframes rotateBorder {
  to { transform: rotate(360deg); }
}

.banner-card {
  background: var(--color-surface);
  border-radius: calc(var(--radius-xl) - 2px);
  padding: clamp(2rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  position: relative;
  z-index: 1; /* Mantém o card por cima do fundo animado */
}

/* Logo do curso (acima da dobra — sem lazy) */
.banner-logo {
  width: clamp(180px, 55vw, 280px);
  height: auto;
}

.banner-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.banner-title {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
}

.banner-subtitle {
  font-size: clamp(0.9375rem, 2vw, 1.0625rem);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 420px;
}

/* Caixinha de créditos fixa (bottom-right) */
.credits-badge {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  background: rgba(30, 32, 37, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.875rem 0.4rem 0.4rem;
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: background var(--transition-base), color var(--transition-base);
  z-index: 100;
}

.credits-badge:hover,
.credits-badge:focus-visible {
  background: rgba(37, 40, 48, 0.95);
  color: var(--color-text-primary);
}

.credits-badge__photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--color-border);
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   SEÇÃO 2 — O QUE É O NOTION
   ════════════════════════════════════════════════════════════ */
#secao-notion {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.notion-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.75rem;
}

/* Ícone do Notion (SVG inline no HTML — sem CDN) */
.notion-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.notion-brand-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-text-primary);
}

/* Grid de cards de benefício */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-block: 1.75rem;
}

.feature-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-card__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.feature-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.feature-card__desc {
  font-size: 0.8rem;
  color: var(--color-text-subtle);
  line-height: 1.5;
}

/* Card de engajamento (fundo gradiente sutil) */
.engagement-card {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}

.engagement-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.5rem;
}

.engagement-card__text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Aviso de "voltar após instalar" */
.return-notice {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-block: 1.5rem;
}

.return-notice__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.return-notice__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.return-notice__text strong {
  color: var(--color-blue);
  font-weight: 700;
}

/* Wrapper dos botões de download */
.download-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-block: 1.5rem;
}

.store-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* ════════════════════════════════════════════════════════════
   SEÇÃO 3 — CRIANDO A CONTA
   ════════════════════════════════════════════════════════════ */
#secao-criar-conta {
  background: var(--color-bg);
}

.step-block {
  margin-bottom: 2.5rem;
}

.step-block:last-child {
  margin-bottom: 0;
}

/* Número do passo (círculo com gradiente de marca) */
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--grad-brand);
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.step-body {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

/* Wrapper da imagem de tutorial */
.tutorial-img-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  max-width: 280px;
  margin: 0 auto;
  cursor: zoom-in;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tutorial-img-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.tutorial-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ════════════════════════════════════════════════════════════
   MODAL DE IMAGEM (LIGHTBOX)
   ════════════════════════════════════════════════════════════ */
.image-modal {
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
}

.image-modal::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: zoom-out;
}

.image-modal img {
  max-height: 90vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: block;
  cursor: zoom-out;
}

.modal-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 100;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.img-caption {
  font-size: 0.75rem;
  color: var(--color-text-subtle);
  text-align: center;
  margin-top: 0.5rem;
}

/* Divisor vertical entre passos */
.step-separator {
  width: 2px;
  height: 2rem;
  background: linear-gradient(to bottom, #3B82F6, #10B981);
  border-radius: 1px;
  margin: 1.25rem 0 1.25rem 0.9375rem;
}

/* ════════════════════════════════════════════════════════════
   SEÇÃO 4 — WORKSPACE E CONVITE
   ════════════════════════════════════════════════════════════ */
#secao-workspace {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* Card com lista de passos do workspace */
.workspace-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-card);
}

.workspace-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.workspace-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.workspace-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.workspace-step__content {
  padding-top: 0.2rem;
}

.workspace-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 0.2rem;
}

.workspace-step__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Aviso de suporte */
.support-notice {
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.support-notice__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.support-notice__text {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Dica abaixo do botão WhatsApp */
.whatsapp-hint {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-subtle);
}

/* ════════════════════════════════════════════════════════════
   RODAPÉ
   ════════════════════════════════════════════════════════════ */
.page-footer {
  text-align: center;
  padding: 2rem var(--section-pad-h);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-subtle);
  font-size: 0.8rem;
}

.page-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-footer a:hover {
  color: var(--color-text-primary);
}

.page-footer__noindex {
  margin-top: 0.375rem;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVIDADE — Mobile first
   ════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  /* Botões de loja empilham verticalmente */
  .store-btns {
    flex-direction: column;
    width: 100%;
  }

  .store-btns .btn,
  #btn-continuar {
    width: 100%;
  }

  /* Caixinha de créditos menor */
  .credits-badge {
    bottom: 0.75rem;
    right: 0.75rem;
    font-size: 0.72rem;
  }

  /* Grid de features: 2 colunas no mobile */
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  /* Grid de features: coluna única em telas muito pequenas */
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ════════════════════════════════════════════════════════════
   PREFERÊNCIA DE MOVIMENTO REDUZIDO (acessibilidade)
   Remove animações para usuários que optaram por menos movimento
   ════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* Revela elementos imediatamente, sem transição nem delay */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
    transition-delay: 0s !important;
  }

  /* Para a animação da faixa colorida */
  .banner-card-wrapper::before {
    animation: none;
  }

  /* Remove hover/active transforms dos botões */
  .btn {
    transition: none;
  }
}
