:root {
  --bg: #08090b;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --stroke: rgba(255, 255, 255, 0.09);
  --stroke-hover: rgba(255, 255, 255, 0.18);
  --text: #f4f5f7;
  --muted: #8b8f9a;
  --faint: #5f636d;
  --accent: #6f8cff;

  --brand: var(--accent);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  justify-content: center;
  padding: clamp(1.75rem, 5vh, 5rem) 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  overflow-x: hidden;
}

/* ---------- ambiente ---------- */

.aura {
  position: fixed;
  inset: -30% -10% auto -10%;
  height: 70vh;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(46% 52% at 50% 0%, rgba(111, 140, 255, 0.16), transparent 70%),
    radial-gradient(38% 44% at 82% 8%, rgba(168, 85, 247, 0.10), transparent 72%),
    radial-gradient(34% 40% at 14% 12%, rgba(249, 115, 22, 0.07), transparent 72%);
  filter: blur(6px);
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

/* ---------- layout ---------- */

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 30rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1.375rem, 4vw, 2.25rem);
}

/* ---------- hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
}

.avatar-ring {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  padding: 2px;
  margin-bottom: 0.875rem;
  background: conic-gradient(from 200deg, #6f8cff, #a855f7, #f97316, #6f8cff);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 44px -18px rgba(111, 140, 255, 0.55);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #16181d;
  border: 3px solid var(--bg);
}

h1 {
  font-size: clamp(1.5rem, 6vw, 1.75rem);
  font-weight: 650;
  letter-spacing: -0.022em;
}

.handle {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}

/* ---------- cards ---------- */

.links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.card {
  --glow: color-mix(in srgb, var(--brand) 30%, transparent);

  position: relative;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.9375rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  isolation: isolate;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  background: radial-gradient(120% 140% at 0% 50%, var(--glow), transparent 60%);
  transition: opacity 0.35s var(--ease);
}

.card[data-brand="whatsapp"] { --brand: #25d366; }
.card[data-brand="youtube"] { --brand: #ff3b30; }
.card[data-brand="instagram"] { --brand: #e1306c; }
.card[data-brand="meppyai"] { --brand: #f97316; }
.card[data-brand="meppyhub"] { --brand: #7c3aed; }

.icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}

.text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
  flex: 1;
}

.title {
  font-size: 0.9688rem;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.sub {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--faint);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}

.arrow {
  flex: 0 0 auto;
  color: var(--faint);
  display: grid;
  place-items: center;
  transition: transform 0.35s var(--ease), color 0.35s var(--ease);
}

@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
    background: var(--surface-hover);
    border-color: color-mix(in srgb, var(--brand) 45%, transparent);
    box-shadow: 0 14px 34px -20px var(--brand);
  }

  .card:hover::before { opacity: 1; }
  .card:hover .icon { transform: scale(1.06); }
  .card:hover .arrow { transform: translateX(3px); color: var(--brand); }
}

.card:active {
  transform: scale(0.985);
  background: var(--surface-hover);
  border-color: var(--stroke-hover);
}

.card:focus-visible,
.mail:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- rodapé ---------- */

.foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.5rem;
  text-align: center;
}

.mail {
  font-size: 0.8438rem;
  color: var(--muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color 0.25s var(--ease);
}

.mail:hover { color: var(--text); }

.copy {
  font-size: 0.75rem;
  color: #40434b;
  letter-spacing: 0.02em;
}

@media (max-width: 380px) {
  .card { padding: 0.875rem; gap: 0.75rem; }
  .icon { width: 40px; height: 40px; }
  .sub { font-size: 0.7813rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .card:hover { transform: none; }
}

@media print {
  .aura, .grain { display: none; }
  body { background: #fff; color: #000; }
}
