/* ============================================================
   KARTÃO DIGITAL — style.css
   Estrutura:
     1. Variáveis
     2. Reset
     3. Layout
     4. Componentes: Perfil, Botões, Benefícios, CTA, Rodapé
     5. Animações
     6. Acessibilidade
   ============================================================ */


/* ── 1. Variáveis ─────────────────────────────────────────── */
:root {
  /* Cores de fundo */
  --bg:            #07001f;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --bg-btn:        rgba(255, 255, 255, 0.07);
  --bg-benefits:   rgba(124, 58, 237, 0.07);

  /* Bordas */
  --border:        rgba(255, 255, 255, 0.08);
  --border-hover:  rgba(255, 255, 255, 0.18);
  --border-accent: rgba(124, 58, 237, 0.25);

  /* Acentos */
  --accent:        #7c3aed;
  --accent-light:  #9d5cf6;
  --neon:          #38bdf8;
  --whatsapp:      #25d366;
  --whatsapp-dark: #1da851;

  /* Texto */
  --text-primary:   #f0f0ff;
  --text-secondary: rgba(240, 240, 255, 0.6);
  --text-muted:     rgba(240, 240, 255, 0.35);

  /* Tipografia */
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Espaçamento */
  --space-xs:  0.5rem;   /*  8px */
  --space-sm:  0.75rem;  /* 12px */
  --space-md:  1rem;     /* 16px */
  --space-lg:  1.5rem;   /* 24px */
  --space-xl:  2rem;     /* 32px */

  /* Bordas arredondadas */
  --radius-sm:   0.5rem;
  --radius-md:   0.875rem;
  --radius-lg:   1.25rem;
  --radius-full: 9999px;

  /* Transições */
  --transition: 200ms ease;
}


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

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

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg);
  /* Gradiente de fundo: topo roxo + canto inferior azul */
  background-image:
    radial-gradient(ellipse 70% 45% at 50% -5%, rgba(124, 58, 237, 0.35), transparent),
    radial-gradient(ellipse 40% 30% at 85% 90%, rgba(56, 189, 248, 0.08), transparent);
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ── 3. Layout ────────────────────────────────────────────── */
.layout {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--space-lg) var(--space-md);
}

.card {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}


/* ── 4a. Perfil ───────────────────────────────────────────── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  animation: fade-up 0.5s 0.1s ease both;
}

/* Anel gradiente ao redor da foto */
.profile__avatar {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(135deg, var(--accent), var(--neon));
  flex-shrink: 0;
}

.profile__avatar img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  /* Borda escura cria separação visual entre foto e anel */
  border: 2px solid var(--bg);
}

/* Nome com gradiente de texto */
.profile__name {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 40%, var(--neon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile__tagline {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 28ch;
  line-height: 1.4;
}


/* ── 4b. Botões ───────────────────────────────────────────── */
.links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  animation: fade-up 0.5s 0.2s ease both;
}

/* Base comum a todos os botões */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background  var(--transition),
    border-color var(--transition),
    box-shadow   var(--transition),
    transform    var(--transition);
}

.btn svg {
  flex-shrink: 0;
}

/* Variante WhatsApp */
.btn--whatsapp {
  background: var(--whatsapp);
  border-color: var(--whatsapp);
  color: #fff;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.25);
  animation: fade-up 0.5s 0.2s ease both, pulse-glow 3s 1.5s ease-in-out infinite;
}

.btn--whatsapp:is(:hover, :focus-visible) {
  background: var(--whatsapp-dark);
  border-color: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  animation: none; /* Para o pulse no hover */
}

/* Variante secundária */
.btn--secondary {
  background: var(--bg-btn);
  color: var(--text-primary);
}

.btn--secondary:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

/* Modificador largura total (usado no CTA) */
.btn--full {
  width: 100%;
}


/* ── 4c. Benefícios ───────────────────────────────────────── */
.benefits {
  padding: var(--space-lg);
  background: var(--bg-benefits);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  animation: fade-up 0.5s 0.3s ease both;
}

.benefits__title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: var(--space-md);
}

.benefits__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.benefits__list li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Ponto decorativo via pseudo-elemento — sem HTML extra */
.benefits__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  flex-shrink: 0;
}


/* ── 4d. CTA ──────────────────────────────────────────────── */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  text-align: center;
  animation: fade-up 0.5s 0.4s ease both;
}

.cta__heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.cta__sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}


/* ── 4e. Rodapé ───────────────────────────────────────────── */
.footer {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  animation: fade-up 0.5s 0.5s ease both;
}


/* ── 5. Animações ─────────────────────────────────────────── */

/* Entrada do card: sobe levemente e aparece */
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Entrada dos elementos internos com delay escalonado */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Pulsação sutil no botão WhatsApp para chamar atenção */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(37, 211, 102, 0.25); }
  50%       { box-shadow: 0 0 36px rgba(37, 211, 102, 0.5);  }
}


/* ── 6. Acessibilidade ────────────────────────────────────── */

/* Foco visível para navegação por teclado */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Respeita preferência do usuário por menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration:        0.01ms !important;
    animation-iteration-count: 1      !important;
    transition-duration:       0.01ms !important;
  }
}
