/* ==========================================================================
   ConcreJota — Página de Links (bio / link na bio)
   Identidade: laranja institucional #F39200 + dark #0E0E10 + cimento #EDE9DF
   Tipografia: Darky ConcreJota (fontes locais da marca)
   Abordagem: mobile-first, carregamento leve, 100% responsiva
   ========================================================================== */

/* ---------- 1. Tokens da marca ---------- */
:root {
  --orange:        #F39200;
  --orange-soft:   #FFB13C;
  --orange-deep:   #D87A00;

  --dark:          #0E0E10;
  --dark-2:        #15151A;
  --card:          #17171C;
  --card-hover:    #1E1E25;

  --cement:        #EDE9DF;
  --cement-soft:   rgba(237, 233, 223, 0.62);
  --cement-mute:   rgba(237, 233, 223, 0.40);

  --line:          rgba(255, 255, 255, 0.08);
  --line-strong:   rgba(255, 255, 255, 0.14);

  --font: 'Darky ConcreJota', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --radius:        20px;
  --radius-sm:     14px;
  --shadow-card:   0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-orange: 0 14px 34px rgba(243, 146, 0, 0.34);

  --t:  260ms cubic-bezier(.2, .7, .3, 1);
  --t-fast: 160ms cubic-bezier(.2, .7, .3, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px 40px;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--cement);
  background-color: var(--dark);
  background-image:
    radial-gradient(820px 460px at 50% -6%, rgba(243, 146, 0, 0.18), transparent 70%),
    radial-gradient(680px 520px at 50% 108%, rgba(243, 146, 0, 0.07), transparent 72%),
    linear-gradient(180deg, #0E0E10 0%, #141418 52%, #0E0E10 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.14; letter-spacing: -0.015em; }
p { margin: 0; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 3. Texturas decorativas de fundo ---------- */
/* Granulado sutil "cimento" — dá textura premium sem peso de imagem */
.bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Marca d'água do ícone da ConcreJota ao fundo */
.bg-mark {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  width: 460px;
  height: 460px;
  left: 50%;
  bottom: -160px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(243, 146, 0, 0.10), transparent 66%);
  filter: blur(10px);
}

/* ---------- 4. Wrapper da página ---------- */
.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
}

/* ---------- 5. Topo / Branding ---------- */
.brand {
  text-align: center;
  margin-bottom: 30px;
  animation: rise 620ms cubic-bezier(.2, .7, .3, 1) both;
}

.brand-logo {
  display: inline-block;
  transition: transform var(--t);
}
.brand-logo img {
  width: 232px;
  max-width: 72vw;
  margin: 0 auto;
  filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.45));
}
.brand-logo:hover { transform: translateY(-2px); }

.brand-tagline {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: var(--cement);
}

.brand-intro {
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--cement-soft);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 6. Pílula da seção ---------- */
.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: center;
  margin-bottom: 18px;
  padding: 9px 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-soft);
  background: rgba(243, 146, 0, 0.09);
  border: 1px solid rgba(243, 146, 0, 0.20);
  border-radius: 999px;
  animation: rise 620ms cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: 60ms;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.65);
  animation: pulse 2.2s infinite;
}

/* ---------- 7. Cards / botões de contato ---------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 18px;
  min-height: 78px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t),
              background var(--t), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent;
  animation: rise 600ms cubic-bezier(.2, .7, .3, 1) both;
}

/* Faixa de destaque que surge à esquerda no hover */
.link-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--t);
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-3px);
  background: var(--card-hover);
  border-color: rgba(243, 146, 0, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42),
              0 0 0 1px rgba(243, 146, 0, 0.18);
  outline: none;
}
.link-card:hover::before,
.link-card:focus-visible::before { transform: scaleY(1); }

.link-card:active { transform: translateY(-1px) scale(0.992); }

/* Stagger de entrada dos cards */
.link-card:nth-child(1) { animation-delay: 130ms; }
.link-card:nth-child(2) { animation-delay: 200ms; }
.link-card:nth-child(3) { animation-delay: 270ms; }
.link-card:nth-child(4) { animation-delay: 340ms; }

/* Ícone */
.link-card__icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(243, 146, 0, 0.10);
  border: 1px solid rgba(243, 146, 0, 0.20);
  color: var(--orange);
  transition: background var(--t), color var(--t), transform var(--t);
}
.link-card__icon svg { width: 24px; height: 24px; }
.link-card__icon--mail svg { width: 25px; height: 25px; }

.link-card:hover .link-card__icon,
.link-card:focus-visible .link-card__icon {
  background: var(--orange);
  color: #fff;
  transform: scale(1.05);
}

/* Texto */
.link-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.link-card__city {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--cement);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.link-card__city .uf {
  font-size: 11px;
  font-weight: 700;
  color: var(--orange-soft);
  background: rgba(243, 146, 0, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  vertical-align: 1px;
  margin-left: 4px;
  letter-spacing: 0.04em;
}

.link-card__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card__channel {
  color: var(--cement-mute);
  font-weight: 400;
}

/* Seta */
.link-card__arrow {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--cement-soft);
  transition: background var(--t), color var(--t),
              border-color var(--t), transform var(--t);
}
.link-card__arrow svg { width: 16px; height: 16px; }

.link-card:hover .link-card__arrow,
.link-card:focus-visible .link-card__arrow {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: translateX(3px);
}

/* ---------- 8. Chamada de ação ---------- */
.cta {
  margin-top: 28px;
  padding: 26px 22px;
  text-align: center;
  background: linear-gradient(165deg, #1B1B21 0%, #141417 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  animation: rise 600ms cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: 400ms;
}

.cta-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--cement);
  letter-spacing: -0.015em;
}

.cta-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cement-soft);
}

/* ---------- 9. Link para o site oficial ---------- */
.site-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--cement-soft);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: color var(--t), border-color var(--t),
              background var(--t), transform var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  animation: rise 600ms cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: 460ms;
}
.site-link svg { width: 18px; height: 18px; }
.site-link:hover,
.site-link:focus-visible {
  color: var(--cement);
  border-color: rgba(243, 146, 0, 0.5);
  background: rgba(243, 146, 0, 0.06);
  transform: translateY(-2px);
  outline: none;
}

/* ---------- 10. Rodapé ---------- */
.footer {
  margin-top: 36px;
  text-align: center;
  animation: rise 600ms cubic-bezier(.2, .7, .3, 1) both;
  animation-delay: 520ms;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--cement);
}
.footer-mark {
  width: 26px;
  height: auto;
}

.footer-copy {
  margin-top: 12px;
  font-size: 12px;
  color: var(--cement-mute);
}

.footer-faj {
  margin-top: 4px;
  font-size: 12px;
  color: var(--cement-mute);
}
.footer-faj a {
  color: var(--orange-soft);
  font-weight: 700;
  transition: color var(--t-fast);
}
.footer-faj a:hover { color: var(--orange); }

/* ---------- 11. Animações ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(243, 146, 0, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(243, 146, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(243, 146, 0, 0); }
}

/* ---------- 12. Responsividade ---------- */

/* Telas muito pequenas (≤ 360px) */
@media (max-width: 360px) {
  body { padding: 36px 14px 32px; }
  .link-card { padding: 14px 14px; gap: 12px; }
  .link-card__icon { width: 46px; height: 46px; }
  .link-card__city { font-size: 15px; }
  .link-card__arrow { width: 30px; height: 30px; }
  .brand-logo img { width: 200px; }
}

/* Tablet / desktop — mantém formato de "link na bio", com mais respiro */
@media (min-width: 600px) {
  body { padding: 64px 24px 56px; align-items: center; }
  .brand-logo img { width: 256px; }
  .brand-tagline { font-size: 17px; }
  .link-card { min-height: 82px; }
}

/* ---------- 13. Acessibilidade — reduzir movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  .brand, .section-pill, .link-card, .cta, .site-link, .footer {
    animation: none !important;
  }
  .pulse-dot { animation: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
