:root {
  --bg:        #08060d;
  --bg-elev:   rgba(20, 16, 32, .55);
  --border:    rgba(168, 85, 247, .14);
  --text:      #f5f3fa;
  --muted:     #8b86a0;
  --accent:    #a855f7;   /* logo purple */
  --accent-hi: #d8b4fe;
  --magenta:   #d946ef;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 18px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
}

/* ---------- Background: aurora blobs + grain + vignette ---------- */

.aurora {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.aurora__blob {
  position: absolute;
  width: 60vmax;
  height: 60vmax;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  will-change: transform;
}
.aurora__blob--1 {
  top: -25vmax;
  left: -12vmax;
  background: radial-gradient(circle at 40% 40%, rgba(168,85,247,.38), transparent 65%);
  animation: drift1 26s ease-in-out infinite alternate;
}
.aurora__blob--2 {
  bottom: -30vmax;
  right: -15vmax;
  background: radial-gradient(circle at 60% 60%, rgba(217,70,239,.22), transparent 65%);
  animation: drift2 32s ease-in-out infinite alternate;
}
.aurora__blob--3 {
  top: 30%;
  left: 50%;
  width: 44vmax;
  height: 44vmax;
  background: radial-gradient(circle at 50% 50%, rgba(99,58,201,.20), transparent 65%);
  animation: drift3 38s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); }    to { transform: translate(9vmax, 7vmax) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.1); }  to { transform: translate(-8vmax, -6vmax) scale(.95); } }
@keyframes drift3 { from { transform: translate(-50%, 0) scale(1); } to { transform: translate(-38%, -8vmax) scale(1.2); } }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.5) 100%);
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vw, 48px);
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  animation: rise .8s var(--ease) both;
}

.hero__avatar {
  position: relative;
  width: clamp(140px, 22vw, 190px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.hero__ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    #a855f7, #d946ef, #7c3aed, #38bdf8, #a855f7
  );
  animation: spin 7s linear infinite;
  filter: drop-shadow(0 0 22px rgba(168,85,247,.5));
}
.hero__ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--bg);
}
.hero__logo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  user-select: none;
  display: block;
}
@property --ring-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes spin {
  to { --ring-angle: 360deg; }
}
/* fallback rotation for browsers without @property */
@supports not (background: conic-gradient(from var(--ring-angle, 0deg), red, blue)) {
  .hero__ring { animation: spinTransform 7s linear infinite; }
  @keyframes spinTransform { to { transform: rotate(360deg); } }
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 10px 0 0;
  position: relative;
  background: linear-gradient(100deg, #f5f3fa 20%, var(--accent-hi) 45%, var(--magenta) 70%, var(--accent) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s var(--ease) infinite;
}
@keyframes shimmer {
  0%, 100% { background-position: 0% 0; }
  50%      { background-position: 100% 0; }
}

.hero__tag {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .85rem;
  letter-spacing: .3em;
  margin: 0;
  text-transform: uppercase;
}

.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elev);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251,191,36,.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.8); }
}

/* ---------- Grid ---------- */

.grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .grid { grid-template-columns: 1fr; } }

/* email tile fills the last row */
.grid > .tile:last-child { grid-column: 1 / -1; }

/* ---------- Tile ---------- */

.tile {
  --brand: var(--accent);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 96px;
  padding: 18px 20px;
  background: var(--bg-elev);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  cursor: pointer;
  overflow: hidden;
  animation: rise .7s var(--ease) both;
  animation-delay: calc(.25s + var(--i, 0) * .07s);
  transition:
    transform .25s var(--ease),
    border-color .25s var(--ease),
    box-shadow .25s var(--ease);
}
.tile.tile--button {
  font: inherit;
  text-align: left;
  width: 100%;
}

/* mouse-follow spotlight */
.tile__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    220px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--brand) 16%, transparent),
    transparent 70%
  );
  transition: opacity .3s var(--ease);
}
.tile:hover .tile__glow,
.tile:focus-visible .tile__glow { opacity: 1; }

.tile__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--brand);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--brand) 45%, transparent));
  transition: transform .3s var(--ease);
}

.tile__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tile__platform {
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.tile__handle {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tile__arrow {
  margin-left: auto;
  font-size: 1rem;
  color: var(--muted);
  opacity: 0;
  transform: translate(-6px, 6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), color .25s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--brand) 25%, transparent),
    0 14px 38px -14px color-mix(in srgb, var(--brand) 55%, transparent);
}
.tile:hover .tile__icon { transform: scale(1.12) rotate(-4deg); }
.tile:hover .tile__arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--brand);
}
.tile:focus-visible {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--brand);
}
.tile:active { transform: translateY(-1px) scale(.99); }

/* Email-copied toast */
.tile__copied {
  position: absolute;
  top: 10px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent-hi);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  pointer-events: none;
}
.tile.is-copied .tile__copied {
  opacity: 1;
  transform: translateY(0);
}
.tile.is-copied .tile__arrow { opacity: 0; }

/* ---------- Footer ---------- */

.footer {
  margin-top: clamp(12px, 3vw, 24px);
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .1em;
  animation: rise .8s var(--ease) both;
  animation-delay: .8s;
}

/* ---------- Animations ---------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Reduced motion ---------- */

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