@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Poppins:wght@300;400;500;600&display=swap');

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

:root {
  --bg: #0a0a0a;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.75);
  --muted: rgba(255, 255, 255, 0.5);
  --border: rgba(255, 255, 255, 0.15);
  --shadow: rgba(0, 0, 0, 0.3);
  --accent: #c9a96e;
  --accent-hover: #dabb82;
  --accent-shadow: rgba(201, 169, 110, 0.25);
  --glass-bg: rgba(15, 15, 15, 0.72);
  --glass-blur: 24px;
  --avatar-size: 100px;
  --banner-height: 200px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── Background ─── */
.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.page-background__solid {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    170deg,
    #0d0d0d 0%,
    #111111 40%,
    #0a0a0a 100%
  );
}

/* ─── Main container ─── */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Glass card ─── */
.glass-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

/* ─── Banner ─── */
.banner {
  position: relative;
  width: 100%;
  height: var(--banner-height);
  overflow: hidden;
}

.banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.25) 60%,
    rgba(15, 15, 15, 0.85) 100%
  );
}

/* ─── Avatar ─── */
.avatar-wrapper {
  display: flex;
  justify-content: center;
  margin-top: calc(var(--avatar-size) / -2);
  position: relative;
  z-index: 2;
}

.avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 50%;
  border: 3px solid var(--bg);
  box-shadow:
    0 0 0 1px var(--accent),
    0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

/* ─── Profile header ─── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 28px 0;
  margin-bottom: 24px;
}

.profile__logo {
  width: 140px;
  height: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.profile__name {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 6px;
}

.profile__tagline {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.6;
}

.profile__divider {
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 18px auto 0;
  opacity: 0.6;
}

/* ─── Video section ─── */
.video-section {
  padding: 0 28px;
  margin-bottom: 24px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-container iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─── Link buttons ─── */
.links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 0 28px;
  margin-bottom: 28px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 24px;
  border-radius: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  letter-spacing: 0.01em;
}

.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Primary CTA */
.link-btn--primary {
  background: var(--accent);
  color: #1a1a1a;
  border: 1px solid var(--accent);
  font-weight: 600;
  box-shadow:
    0 4px 16px var(--accent-shadow),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.link-btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px var(--accent-shadow),
    0 2px 6px rgba(0, 0, 0, 0.3);
}

.link-btn--primary:active {
  transform: translateY(0);
  box-shadow:
    0 2px 8px var(--accent-shadow),
    0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Secondary buttons */
.link-btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.link-btn--secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.link-btn--secondary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

/* ─── Trust details ─── */
.trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 28px;
  margin-bottom: 28px;
}

.trust__item {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust__dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ─── Social icons ─── */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 0 28px;
  margin-bottom: 28px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.social-link:active {
  transform: translateY(0);
}

.social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 16px 28px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.footer__link {
  font-size: 0.68rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--accent);
}

.footer__link:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 2px;
}

.footer__separator {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ─── Responsive ─── */
@media (max-width: 420px) {
  :root {
    --banner-height: 170px;
    --avatar-size: 88px;
  }

  .container {
    padding: 16px 12px 24px;
  }

  .glass-card {
    border-radius: 20px;
  }

  .profile {
    padding: 12px 20px 0;
  }

  .profile__logo {
    width: 120px;
  }

  .profile__name {
    font-size: 1.4rem;
  }

  .video-section,
  .links,
  .trust,
  .socials {
    padding-left: 20px;
    padding-right: 20px;
  }

  .footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .link-btn {
    padding: 15px 20px;
    font-size: 0.85rem;
  }
}

@media (min-width: 520px) {
  :root {
    --banner-height: 220px;
    --avatar-size: 110px;
  }

  .container {
    padding: 40px 16px 40px;
  }
}

@media (min-width: 768px) {
  :root {
    --banner-height: 240px;
  }

  .container {
    min-height: auto;
    padding: 60px 24px 60px;
  }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  .link-btn,
  .social-link {
    transition: none;
  }

  .link-btn:hover,
  .link-btn--primary:hover,
  .social-link:hover {
    transform: none;
  }
}
