/* ===== Tiago Dionísio — página pública ===== */
:root {
  --bg: #050a16;
  --navy: #0a1a3a;
  --navy-2: #10295a;
  --blue: #2d6bff;
  --blue-2: #6f9bff;
  --ice: #d1edff;
  --white: #ffffff;
  --muted: rgba(209, 237, 255, 0.7);
  --card: rgba(13, 30, 66, 0.62);
  --card-hover: rgba(22, 46, 98, 0.78);
  --line: rgba(209, 237, 255, 0.14);
  --radius: 18px;
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bg-opacity: 0.22;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--white);
  font: 400 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Fundo ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 80% 0%, #0f2a63 0%, var(--bg) 60%); }
.bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; filter: grayscale(1) contrast(1.15) brightness(0.9);
  mix-blend-mode: luminosity; transition: opacity 1.2s ease;
}
.bg-video.on { opacity: var(--bg-opacity); }
.bg-marquee {
  position: absolute; inset: -20% -10%; display: flex; flex-direction: column; justify-content: center; gap: 2vh;
  transform: rotate(-9deg); opacity: 0.075;
}
.has-video .bg-marquee { opacity: 0.035; }
.bg-marquee .row { display: flex; width: max-content; white-space: nowrap; animation: marquee 60s linear infinite; }
.bg-marquee .row.rev { animation-direction: reverse; animation-duration: 75s; }
.bg-marquee span {
  font: 800 clamp(64px, 14vw, 190px)/1 var(--display); letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 2px var(--ice); padding-right: 0.3em;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.bg-glow {
  position: absolute; width: 70vmax; height: 70vmax; left: -25vmax; top: 30vh; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 107, 255, 0.28), transparent 62%);
  animation: float 14s ease-in-out infinite alternate;
}
.bg-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 22, 0.15) 0%, rgba(5, 10, 22, 0.55) 70%, var(--bg) 100%); }
@keyframes float { to { transform: translate(18vmax, -14vh) scale(1.1); } }

.page { position: relative; z-index: 1; }

/* ---------- Bloco 1: hero + links ---------- */
.top { max-width: 1180px; margin: 0 auto; padding: 0 16px 56px; }

/* Celular: balão > foto > nome > frase. O nome sobe e fica na frente do esfumaçado da parte de baixo da foto. */
.hero {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 18px;
}
.hero-copy { display: contents; }
.hero-figure {
  order: 2; position: relative; z-index: 1; width: 100%; height: clamp(240px, 35svh, 320px); margin: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 97%);
          mask-image: linear-gradient(180deg, #000 58%, transparent 97%);
}
.hero-figure img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
  opacity: 0; transform: translateY(14px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 1.3, 0.3, 1);
}
.hero-figure img.on { opacity: 1; transform: none; }

.bubble {
  order: 1; position: relative; z-index: 2; display: inline-block; margin: 0 0 10px; padding: 9px 14px;
  background: var(--white); color: var(--bg); border-radius: 16px;
  font: 700 13px/1.3 var(--text); box-shadow: 0 10px 30px rgba(45, 107, 255, 0.35);
  transform-origin: 50% 100%; animation: pop 0.6s 0.35s cubic-bezier(0.3, 1.6, 0.4, 1) both, wiggle 5s 2s ease-in-out infinite;
}
.bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 14px; height: 14px; background: var(--white);
  border-radius: 2px; transform: translateX(-50%) rotate(45deg);
}
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-4deg); } }
@keyframes wiggle { 0%, 92%, 100% { transform: rotate(0); } 94% { transform: rotate(-3deg); } 96% { transform: rotate(3deg); } 98% { transform: rotate(-2deg); } }

.name {
  order: 3; position: relative; z-index: 2; margin: -54px 0 0; text-shadow: 0 6px 28px rgba(5, 10, 22, 0.75); font: 800 clamp(32px, 9.6vw, 76px)/0.95 var(--display); letter-spacing: -0.035em;
  text-wrap: balance;
}
.tagline { order: 4; position: relative; z-index: 2; margin: 8px auto 0; color: var(--muted); font-size: 14px; max-width: 32ch; }

/* Lista de links */
.links-panel { position: relative; z-index: 3; margin-top: -6px; }
.links-title {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font: 800 13px/1 var(--text); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ice);
}
.links-title::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--blue); }
.links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.link {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 14px 10px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.2, 1), background 0.22s, border-color 0.22s, box-shadow 0.22s;
  opacity: 0; transform: translateY(14px); animation: cardIn 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 150ms);
}
.link:hover { background: var(--card-hover); border-color: rgba(111, 155, 255, 0.55); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35); }
.link:active { transform: scale(0.985); }
@keyframes cardIn { to { opacity: 1; transform: none; } }

.link .thumb { flex: none; width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--navy-2); }
.link .thumb.ph { display: grid; place-items: center; font: 800 20px var(--display); color: var(--ice); }
.link-body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.link-title { font: 600 15px/1.25 var(--text); }
.link a.stretch { text-decoration: none; }
.link a.stretch::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.link a.stretch:focus-visible { outline: none; }
.link:has(a.stretch:focus-visible) { outline: 2px solid var(--blue-2); outline-offset: 2px; }
.link .arrow { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform 0.2s, color 0.2s; }
.link:hover .arrow { transform: translateX(3px); color: var(--white); }

.coupon {
  position: relative; z-index: 2; justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px; border: 1px dashed rgba(111, 155, 255, 0.8); border-radius: 8px; cursor: pointer;
  background: rgba(45, 107, 255, 0.16); color: var(--ice); font: 700 11px/1 var(--text); letter-spacing: 0.04em;
  transition: background 0.2s;
}
.coupon:hover { background: rgba(45, 107, 255, 0.32); }
.coupon svg { width: 12px; height: 12px; }

/* Link destacado: um "laser" neon que fica circulando a borda + brilho suave pulsando */
@property --laser { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.link.highlight {
  border: 2px solid transparent;
  background:
    linear-gradient(#0c1c40, #0c1c40) padding-box,
    conic-gradient(from var(--laser), rgba(111, 155, 255, 0.22) 0deg, rgba(111, 155, 255, 0.22) 200deg,
      #2d6bff 260deg, #39e6ff 315deg, #ffffff 335deg, #39e6ff 345deg, rgba(111, 155, 255, 0.22) 360deg) border-box;
  animation: cardIn 0.5s cubic-bezier(0.2, 0.9, 0.2, 1) forwards, laser 3.2s linear infinite, neonGlow 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 45ms + 150ms), 0s, 0s;
}
.link.highlight:hover { border-color: transparent; }
.link.highlight .link-title { font-weight: 700; }
.link.highlight .arrow { color: #39e6ff; }
@keyframes laser { to { --laser: 360deg; } }
@keyframes neonGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(57, 230, 255, 0), 0 0 18px rgba(45, 107, 255, 0.18); }
  50% { box-shadow: 0 0 22px rgba(57, 230, 255, 0.28), 0 0 42px rgba(45, 107, 255, 0.22); }
}

.link.skeleton { animation: shimmer 1.2s ease-in-out infinite alternate; opacity: 0.5; transform: none; }
@keyframes shimmer { from { opacity: 0.25; } to { opacity: 0.55; } }

/* ---------- Bloco 2: números ---------- */
.numbers { max-width: 1180px; margin: 0 auto; padding: 64px 16px 24px; }
.eyebrow { margin: 0 0 8px; color: var(--blue-2); font: 800 12px/1 var(--text); letter-spacing: 0.16em; text-transform: uppercase; }
.section-title { margin: 0; font: 800 clamp(30px, 7vw, 56px)/0.98 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0 26px; color: var(--muted); }
/* Contador: cor sólida (o degradê recortado no texto piscava no iPhone durante a animação) e números de largura fixa */
.total .count {
  font: 800 clamp(56px, 16vw, 128px)/0.9 var(--display); letter-spacing: -0.04em; color: var(--white);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 40px rgba(45, 107, 255, 0.55); white-space: nowrap;
}
.total span { flex-basis: 100%; }
.social-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.social-card {
  position: relative; display: grid; gap: 14px; padding: 18px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform 0.22s, border-color 0.22s, background 0.22s;
}
.social-card:hover { transform: translateY(-3px); border-color: rgba(111, 155, 255, 0.55); background: var(--card-hover); }
.social-card .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--bg); }
.social-card .icon svg { width: 22px; height: 22px; }
.social-card .num { font: 800 40px/1 var(--display); letter-spacing: -0.03em; }
.social-card .net { font: 700 14px/1.2 var(--text); }
.social-card .handle { color: var(--muted); font-size: 13px; }

/* ---------- Bloco 3: seções de texto ---------- */
.sections { max-width: 1180px; margin: 0 auto; padding: 24px 16px 24px; display: grid; gap: 18px; }
.block {
  position: relative; display: grid; align-items: end; overflow: hidden; min-height: 300px; border-radius: 26px;
  background: linear-gradient(135deg, var(--navy-2), #081430 70%); border: 1px solid var(--line);
}
/* Celular: foto centralizada com brilho azul atrás e o título entrando no esfumaçado (igual ao topo) */
.block::before {
  content: ""; position: absolute; left: 50%; top: 40px; width: 300px; height: 300px; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 107, 255, 0.45), rgba(45, 107, 255, 0) 68%); pointer-events: none;
}
.block:not(.has-img)::before { display: none; }
.block .block-img {
  position: absolute; left: 50%; top: 16px; height: 270px; width: auto; max-width: 96%; object-fit: contain; object-position: bottom center;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 96%); mask-image: linear-gradient(180deg, #000 62%, transparent 96%);
}
.block.reveal.in .block-img { animation: bob 5s ease-in-out 0.8s infinite; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.block .block-copy { position: relative; z-index: 1; padding: 26px 22px; max-width: 34rem; }
.block.has-img .block-copy { padding-top: 238px; text-align: center; margin: 0 auto; }
.block h3, .block p { text-shadow: 0 2px 16px rgba(5, 10, 22, 0.8); }
.block h3 { margin: 0 0 10px; font: 800 clamp(26px, 6vw, 44px)/1 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.block p { margin: 0 0 10px; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 13px 18px; border-radius: 14px;
  background: var(--white); color: var(--bg); font: 800 15px/1 var(--text); text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(45, 107, 255, 0.45); }
.btn svg { width: 18px; height: 18px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.9, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }

.footer { max-width: 1180px; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); color: rgba(209, 237, 255, 0.45); font-size: 13px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 20px);
  padding: 12px 16px; border-radius: 14px; background: var(--white); color: var(--bg); font: 700 14px/1.2 var(--text);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Telas médias ---------- */
@media (min-width: 600px) {
  .top { padding-inline: 24px; }
  .hero-figure { height: 330px; }
  .tagline { font-size: 15px; }
  .numbers, .sections { padding-inline: 24px; }
  .block { min-height: 340px; }
  /* Tablet/desktop: foto ao lado do texto */
  .block::before { left: auto; right: -40px; top: auto; bottom: -60px; transform: none; width: 380px; height: 380px; }
  .block .block-img {
    left: auto; top: auto; bottom: 0; right: 0; height: 92%; max-height: 420px; max-width: 50%; object-position: bottom right; transform: none;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%);
  }
  .block.has-img .block-copy { padding-top: 26px; padding-right: 48%; text-align: left; margin: 0; }
}

/* ---------- Desktop: foto à esquerda, links à direita ---------- */
@media (min-width: 960px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; padding-bottom: 80px; }
  /* Desktop: coluna da esquerda fixa com texto em cima e foto embaixo (sem sobrepor) */
  .hero { position: sticky; top: 0; height: 100svh; min-height: 620px; padding: 56px 0 0; align-items: flex-start; text-align: left; }
  .hero-copy { display: block; position: relative; z-index: 2; }
  .bubble { font-size: 15px; padding: 11px 16px; transform-origin: 20% 100%; }
  .bubble::after { left: 34px; }
  .name { margin-top: 18px; }
  .tagline { margin: 12px 0 0; font-size: 17px; max-width: 34ch; }
  .hero-figure { flex: 1; min-height: 0; height: auto; margin-top: 20px; }
  .links-panel { margin-top: 0; padding-top: 56px; }
  .links-title { margin-bottom: 16px; }
  .link { min-height: 78px; }
  .link .thumb { width: 56px; height: 56px; }
  .numbers { padding-top: 40px; }
  .sections { grid-template-columns: 1fr 1fr; }
  .block { min-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Dois botões lado a lado nos blocos (ex.: Falar com o TD + Conhecer o mídia kit) */
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.block.has-img .btns { justify-content: center; }
.btns .btn { margin-top: 0; }
.btn.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(209, 237, 255, 0.55); }
.btn.btn-ghost:hover { background: rgba(209, 237, 255, 0.1); box-shadow: inset 0 0 0 2px var(--white), 0 12px 30px rgba(45, 107, 255, 0.35); }
@media (min-width: 600px) { .block.has-img .btns { justify-content: flex-start; } }
