:root {
  --bg: #000;
  --fg: #fff;
  --muted: #8a8a8a;
  --line: #262626;
  --line-hover: #5a5a5a;
  --card: #0b0b0b;
  --font-title: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 255, 255, .07), transparent 70%),
    var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 16px 40px;
}

/* Perfil */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #2a2a2a;
  background: #1a1a1a;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0 4px;
  font: 600 24px/1.2 var(--font-title);
  letter-spacing: -.5px;
}

.verified { width: 22px; height: 22px; flex: none; }

.handle {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color .18s;
}
.handle:hover { color: var(--fg); }

/* Cards */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cada card tem o tema do seu projeto (variáveis abaixo) */
.card {
  --card-bg: var(--card);
  --card-border: linear-gradient(var(--line), var(--line));
  --card-border-hover: linear-gradient(var(--line-hover), var(--line-hover));
  --card-glow: none;
  --title: linear-gradient(var(--fg), var(--fg));
  --desc: var(--muted);
  --arrow-bg: var(--fg);
  --arrow-fg: #000;

  display: block;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    var(--card-border) border-box;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  transform: translateY(-2px);
  background:
    linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
    var(--card-border-hover) border-box;
  box-shadow: var(--card-glow);
}
.card:active { transform: scale(.985); }

/* Influencer Viral IA — roxo da plataforma */
.card--viral {
  --card-bg: #1c1a27;
  --card-border: linear-gradient(#7a35ff, #7a35ff);
  --card-border-hover: linear-gradient(#9159ff, #9159ff);
  --card-glow: 0 12px 34px #7a35ff40;
  --title: #a66bff;
  --desc: #b3acdb;
  --arrow-bg: linear-gradient(135deg, #9159ff, #7a35ff);
  --arrow-fg: #fff;
  --shade: 10, 8, 20;
  --btn-bg: linear-gradient(180deg, #9159ff, #7a35ff);
  --btn-shadow: 0 3px 0 #4c1caa, 0 8px 20px #7a35ff40;
}

/* Cards em formato de hero (texto sobre a imagem, à esquerda) */
.card--hero {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 16 / 9;
  container-type: inline-size; /* textos e botão escalam com a largura do card */
}
.card--hero .card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-position: 72% center;
  transition: transform .5s ease;
}
.card--hero:hover .card-img { transform: scale(1.03); }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--shade), .94) 0%, rgba(var(--shade), .78) 40%, rgba(var(--shade), 0) 74%);
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  max-width: 62%;
  padding: 4cqw 4.5cqw;
}
.hero-copy .card-title { font-size: clamp(17px, 5.4cqw, 25px); line-height: 1.1; letter-spacing: -.5px; background: none; color: #fff; }
.hero-copy .card-desc { font-size: clamp(11px, 2.9cqw, 13px); line-height: 1.35; color: #d6d1ee; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: clamp(38px, 10.5cqw, 48px);
  margin-top: clamp(10px, 3.4cqw, 16px);
  padding: 0 clamp(14px, 4.2cqw, 20px);
  border-radius: 10px;
  background: var(--btn-bg);
  color: #fff;
  font: 800 clamp(12.5px, 3.3cqw, 15px)/1 var(--font-body);
  white-space: nowrap;
  box-shadow: var(--btn-shadow);
  transition: filter .18s, transform .18s;
}
.hero-btn svg { width: 1.2em; height: 1.2em; }
.card--hero:hover .hero-btn { filter: brightness(1.1); transform: translateY(-1px); }

/* Fábrica de UGC — degradê roxo → pink */
.card--fabrica {
  --card-bg: #0a0a0a;
  --card-border: linear-gradient(135deg, rgba(139, 92, 246, .85), rgba(236, 72, 153, .85));
  --card-border-hover: linear-gradient(135deg, #8b5cf6, #ec4899);
  --card-glow: 0 12px 34px rgba(139, 92, 246, .28);
  --desc: #a1a1aa;
  --arrow-bg: linear-gradient(135deg, #8b5cf6, #ec4899);
  --arrow-fg: #fff;
  --title: linear-gradient(135deg, #8b5cf6, #ec4899);
  --shade: 0, 0, 0;
  --btn-bg: linear-gradient(135deg, #8b5cf6, #ec4899);
  --btn-shadow: 0 3px 0 #5b2aa8, 0 8px 20px rgba(139, 92, 246, .35);
}

.card-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #161616;
}

.card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 16px;
}

.card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

.card-title {
  align-self: flex-start;
  font: 600 18px/1.25 var(--font-title);
  letter-spacing: -.3px;
  background: var(--title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-desc {
  color: var(--desc);
  font-size: 13.5px;
  line-height: 1.4;
}

.card-arrow {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--arrow-bg);
  color: var(--arrow-fg);
  transition: transform .2s ease;
}
.card-arrow svg { width: 18px; height: 18px; }
.card:hover .card-arrow { transform: translate(2px, -2px); }

/* Rodapé */
.footer {
  margin-top: 36px;
  color: #5c5c5c;
  font-size: 12.5px;
  text-align: center;
}

/* Acessibilidade */
a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
}

/* Entrada */
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.profile { animation: rise .5s ease both; }
.card    { animation: rise .5s ease both; animation-delay: calc(.12s + var(--i, 0) * .08s); }

@media (prefers-reduced-motion: reduce) {
  .profile, .card { animation: none; }
  .card, .card-arrow { transition: none; }
}

@media (min-width: 600px) {
  .page { padding-top: 72px; }
}
