@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --admiral-blue:     #4954F1;
  --admiral-blue-dim: #2156e9;
  --bg:               #0a0a0f;
  --surface:          #111118;
  --surface-hover:    #1a1a2e;
  --border:           rgba(255,255,255,0.08);
  --border-hover:     rgba(73,84,241,0.5);
  --text-primary:     #ffffff;
  --text-secondary:   #999999;
  --radius-card:      20px;
  --radius-btn:       14px;
  --transition:       all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', 'SF-Pro-Display', -apple-system, BlinkMacSystemFont,
               'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 48px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Ambient glow (matches admrl.co hero) ── */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow::before {
  content: '';
  position: absolute;
  width: 70vw;
  height: 50vh;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--admiral-blue-dim);
  filter: blur(120px);
  opacity: 0.18;
  border-radius: 50%;
}

.bg-glow::after {
  content: '';
  position: absolute;
  width: 40vw;
  height: 30vh;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--admiral-blue);
  filter: blur(100px);
  opacity: 0.08;
  border-radius: 50%;
}

/* ── Card wrapper ── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* ── Logo ── */
.card__logo {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__logo img {
  height: 28px;
  width: auto;
  opacity: 0.9;
}

/* ── Avatar ── */
.card__avatar-wrap {
  position: relative;
  margin-bottom: 20px;
}

.card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid rgba(255,255,255,0.12);
  display: block;
  background: var(--surface);
}

/* subtle blue ring glow on avatar */
.card__avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(
    from 180deg,
    var(--admiral-blue) 0deg,
    transparent 120deg,
    var(--admiral-blue) 360deg
  );
  opacity: 0.35;
  z-index: -1;
  filter: blur(4px);
}

/* ── Identity ── */
.card__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 32px;
}

.card__role {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

.card__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.5;
  flex-shrink: 0;
}

.card__company {
  font-size: 14px;
  font-weight: 600;
  color: var(--admiral-blue);
  letter-spacing: 0.01em;
}

/* ── Links list ── */
.card__links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

/* ── Individual link button ── */
.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* shimmer layer */
.link-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.03) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.link-btn:hover,
.link-btn:focus-visible {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(73,84,241,0.15),
    0 2px 8px rgba(0,0,0,0.4);
  outline: none;
}

.link-btn:active {
  transform: translateY(0px);
  transition-duration: 0.1s;
}

/* ── Primary CTA (filled blue) ── */
.link-btn--primary {
  background: var(--admiral-blue);
  border-color: transparent;
  font-weight: 600;
}

.link-btn--primary::before {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12) 0%,
    transparent 60%
  );
}

.link-btn--primary:hover,
.link-btn--primary:focus-visible {
  background: #5a64f3;
  border-color: transparent;
  box-shadow:
    0 8px 32px rgba(73,84,241,0.4),
    0 2px 8px rgba(0,0,0,0.4);
}

/* ── Icon container ── */
.link-btn__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.link-btn--primary .link-btn__icon {
  background: rgba(255,255,255,0.15);
}

.link-btn__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Text block inside button ── */
.link-btn__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.link-btn__label {
  font-size: 15px;
  font-weight: 600;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-btn__sub {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-btn--primary .link-btn__sub {
  color: rgba(255,255,255,0.7);
}

/* ── Chevron ── */
.link-btn__arrow {
  flex-shrink: 0;
  opacity: 0.35;
  transition: var(--transition);
}

.link-btn:hover .link-btn__arrow,
.link-btn:focus-visible .link-btn__arrow {
  opacity: 0.7;
  transform: translateX(2px);
}

.link-btn__arrow svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Footer ── */
.card__footer {
  margin-top: 40px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.02em;
}

.card__footer a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.card__footer a:hover {
  color: rgba(255,255,255,0.6);
}

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .card__name {
    font-size: 22px;
  }

  .link-btn {
    padding: 14px 16px;
  }

  .link-btn__icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .link-btn__icon svg {
    width: 16px;
    height: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-btn {
    transition: none;
  }

  .link-btn:hover {
    transform: none;
  }
}
