﻿:root {
  color-scheme: dark;
  --bg: #08090b;
  --surface: #121417;
  --surface-hi: #191c21;
  --line: #23272e;
  --ink: #f4f5f7;
  --muted: #8b929d;
  --accent: #c3f24a;
  --accent-ink: #0b0d06;
  --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Inter", system-ui, sans-serif;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4ef;
  --surface: #ffffff;
  --surface-hi: #fafaf5;
  --line: #e2e2da;
  --ink: #101114;
  --muted: #6c7279;
  --accent: #3f7d0d;
  --accent-ink: #ffffff;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  inset: -14% 50% auto;
  width: 760px;
  height: 560px;
  translate: -50% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 9%, transparent), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  padding: 34px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
}

/* ——— header ——— */

.head {
  display: grid;
  justify-items: center;
  text-align: center;
}

.avatar {
  position: relative;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(160deg, var(--accent), transparent 62%);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--surface);
  object-fit: cover;
  background: var(--surface-hi);
}

.status {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--surface);
}

.nameRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.name {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.tagline {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.copy {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-hi);
  color: var(--muted);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.copy:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.copy:active { transform: scale(0.94); }

/* ——— links ——— */

.links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.link {
  display: grid;
  grid-template-columns: 40px 1fr 20px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-hi);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface);
}

.link:active { transform: translateY(0) scale(0.995); }

.link .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.link .txt {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.link .txt strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.link .txt small {
  color: var(--muted);
  font-size: 12.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link .go {
  color: var(--muted);
  transition: color 160ms ease, transform 160ms ease;
}

.link:hover .go { color: var(--accent); transform: translate(1px, -1px); }

/* ——— footer ——— */

.note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}

.inline {
  color: var(--muted);
  text-underline-offset: 3px;
  transition: color 160ms ease;
}

.inline:hover { color: var(--ink); }

/* ——— a11y ——— */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ——— toast ——— */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  translate: -50% 16px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font: 500 13px/1 var(--font);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, translate 200ms ease;
  z-index: 5;
}

.toast.on { opacity: 1; translate: -50% 0; }

/* ——— entrance ——— */

.rise {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 620ms cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes rise {
  to { opacity: 1; transform: none; }
}

.head { animation-delay: 40ms; }
.links .link:nth-child(1) { animation-delay: 120ms; }
.links .link:nth-child(2) { animation-delay: 190ms; }
.links .link:nth-child(3) { animation-delay: 260ms; }
.note { animation-delay: 330ms; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; opacity: 1; transform: none; }
  .link, .copy, .go { transition: none; }
  .link:hover { transform: none; }
}

@media (max-width: 400px) {
  .card { padding: 26px 16px 22px; }
  .avatar { width: 112px; height: 112px; }
}
