:root {
  --bg: #070b16;
  --card: rgba(22, 14, 33, 0.70);
  --card-border: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255,255,255,0.94);
  --shadow: rgba(0,0,0,0.42);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  isolation: isolate;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 10, 18, 0.24), rgba(7, 10, 18, 0.54)),
    url("assets/campnou-bg.jpg") center center / cover no-repeat;
  transform: scale(1.02);
  filter: blur(1.5px) saturate(1.02) brightness(0.84);
  z-index: -2;
}

.page::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 16%, rgba(166, 28, 72, 0.22), transparent 28%),
    radial-gradient(circle at 84% 82%, rgba(63, 76, 190, 0.16), transparent 26%);
  z-index: -1;
}

.card {
  width: min(100%, 760px);
  padding: 38px 28px 30px;
  border-radius: 30px;
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 22px 60px var(--shadow), inset 0 1px 0 rgba(255,255,255,0.06);
  text-align: center;
}

.avatar {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  margin: 0 auto 22px;
  border: 3px solid rgba(255,255,255,0.16);
  box-shadow: 0 14px 30px rgba(0,0,0,0.30);
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 16px rgba(0,0,0,0.26);
}

.accent {
  width: 220px;
  max-width: 56%;
  height: 4px;
  margin: 20px auto 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(211, 55, 99, 0.98), rgba(124, 87, 255, 0.98));
}

.subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-size: clamp(1.12rem, 2.2vw, 1.58rem);
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.socials {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.social {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(215, 52, 104, 0.58);
  background: rgba(10, 14, 25, 0.34);
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}

.social:hover,
.social:focus-visible {
  transform: translateY(-2px);
  background: rgba(19, 24, 39, 0.78);
  border-color: rgba(255,255,255,0.3);
}

.social svg { width: 32px; height: 32px; fill: currentColor; }
.social.instagram svg { width: 34px; height: 34px; }
.social.linkedin svg { width: 30px; height: 30px; }

@media (max-width: 820px) {
  .page { padding-left: 14px; padding-right: 14px; }
  .card { width: min(100%, 600px); }
}

@media (max-width: 700px) {
  .page {
    place-items: center;
    padding: max(18px, env(safe-area-inset-top)) 12px max(20px, env(safe-area-inset-bottom));
  }

  .page::before {
    background-position: center top;
    transform: scale(1.01);
    filter: blur(1.2px) saturate(1.02) brightness(0.82);
  }

  .card {
    width: min(100%, 540px);
    border-radius: 24px;
    padding: 24px 18px 22px;
  }

  .avatar {
    width: 108px;
    height: 108px;
    margin-bottom: 14px;
  }

  h1 { font-size: clamp(2rem, 9vw, 2.5rem); }

  .accent {
    margin: 14px auto 16px;
    width: 138px;
    max-width: 44%;
    height: 4px;
  }

  .subtitle {
    max-width: 30ch;
    font-size: 1.05rem;
    line-height: 1.58;
  }

  .socials {
    margin-top: 22px;
    gap: 12px;
  }

  .social {
    width: 60px;
    height: 60px;
  }

  .social svg { width: 27px; height: 27px; }
  .social.instagram svg { width: 29px; height: 29px; }
  .social.linkedin svg { width: 26px; height: 26px; }
}

@media (max-width: 420px) {
  .page {
    place-items: center;
    padding: max(14px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
  }

  .page::before { background-position: 46% top; }

  .card {
    padding: 20px 16px 18px;
    border-radius: 22px;
    background: rgba(22, 14, 33, 0.76);
  }

  .avatar {
    width: 92px;
    height: 92px;
    margin-bottom: 12px;
  }

  h1 { font-size: 1.88rem; }

  .subtitle {
    max-width: 23ch;
    font-size: 1rem;
    line-height: 1.6;
  }

  .socials {
    gap: 10px;
    margin-top: 18px;
  }

  .social {
    width: 56px;
    height: 56px;
  }
}
