:root {
  --mouse-x: -999px;
  --mouse-y: -999px;
}

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

/* Grid background */
.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Faint grid visible everywhere */
.grid-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Strong grid revealed only at mouse cursor */
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle 220px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
  mask-image: radial-gradient(circle 220px at var(--mouse-x) var(--mouse-y), black 0%, transparent 100%);
}

body {
  background-color: #fff;
  color: #1f2937;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2.5rem;
  min-height: 100vh;
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 42rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

p {
  font-size: 1.5rem;
  font-weight: 300;
  color: #1f2937;
}

/* Lines that mix text and images use flex for perfect vertical centering */
p.inline-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #9333ea;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer p {
  font-size: 1.125rem;
  font-weight: 300;
  color: #6b7280;
}

.footer a {
  color: #2563eb;
}

.footer a:hover {
  color: #9333ea;
}

/* Avatar */
.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  flex-shrink: 0;
}

/* App icon — PNG already has rounded corners baked in, no extra frame needed */
.icon-link {
  display: flex;
  align-self: center;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s ease-out;
}

.icon-link:hover {
  transform: scale(1.08);
}

.app-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

/* Platform icons */
.platforms {
  margin-left: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.platform-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.625rem;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.platform-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Brand colors */
.platform-instagram {
  background: linear-gradient(135deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
  border-color: transparent;
  color: #fff;
}

.platform-tiktok {
  background: #000;
  border-color: transparent;
  color: #fff;
}

.platform-youtube {
  background: #ff0000;
  border-color: transparent;
  color: #fff;
}

/* Default: icons fanned like a hand of cards */
.platform-icon:nth-child(1) { transform: rotate(-6deg); }
.platform-icon:nth-child(2) { transform: rotate(3deg); }
.platform-icon:nth-child(3) { transform: rotate(6deg); }

/* Hover on group: straighten and spread apart */
.platforms:hover .platform-icon:nth-child(1) {
  transform: rotate(0deg) translateX(-0.4rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.platforms:hover .platform-icon:nth-child(2) {
  transform: rotate(0deg) translateX(0);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.platforms:hover .platform-icon:nth-child(3) {
  transform: rotate(0deg) translateX(0.4rem);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Pill tooltips on hover */
.platform-icon,
.icon-link {
  position: relative;
}

.platform-icon::before,
.icon-link::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  z-index: 10;
}

.platform-icon:hover::before,
.icon-link:hover::before {
  opacity: 1;
}
