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

:root {
  color-scheme: dark;
  --color-background: #090807;
  --color-surface: rgba(18, 15, 13, 0.88);
  --color-surface-soft: rgba(255, 255, 255, 0.045);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-text: #f8f5f0;
  --color-text-muted: #aaa29b;
  --color-gold: #d6af6e;
  --color-gold-light: #f0d7a4;
  --color-gold-dark: #9a7140;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shadow-card: 0 32px 80px rgba(0, 0, 0, 0.48);
  --radius-card: 32px;
  --radius-action: 18px;
}

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

html {
  min-width: 280px;
  min-height: 100%;
  background: var(--color-background);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.page-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #090807;
}

.page-background__image {
  position: absolute;
  inset: -24px;
  background: url("assets/hero-itallian.png") center 24% / cover no-repeat;
  filter: blur(12px) saturate(0.72);
  opacity: 0.36;
  transform: scale(1.04);
}

.page-background__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 5, 4, 0.66), rgba(9, 8, 7, 0.95)),
    radial-gradient(circle at 50% 10%, transparent 0, rgba(7, 6, 5, 0.5) 58%, #070605 100%);
}

.page-background__glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(214, 175, 110, 0.18);
  border-radius: 50%;
  opacity: 0.55;
}

.page-background__glow--one {
  top: -120px;
  left: calc(50% - 240px);
}

.page-background__glow--two {
  right: calc(50% - 310px);
  bottom: -170px;
  width: 360px;
  height: 360px;
}

.linkbio-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 24px 16px;
}

.linkbio-card {
  position: relative;
  width: min(100%, 480px);
  padding: 32px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  isolation: isolate;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.linkbio-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 175, 110, 0.11), transparent 38%),
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 28%);
  content: "";
}

.linkbio-card::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 64%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 215, 164, 0.9), transparent);
  content: "";
  transform: translateX(-50%);
}

.share-button {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, transform 180ms ease;
}

.share-button:hover {
  border-color: rgba(214, 175, 110, 0.42);
  color: var(--color-gold-light);
  background: rgba(214, 175, 110, 0.08);
  transform: translateY(-2px);
}

.share-button__icon {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1.5px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.share-button__icon::before {
  position: absolute;
  top: -5px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  content: "";
  transform: translateX(-50%) rotate(45deg);
}

.share-button__icon::after {
  position: absolute;
  top: -7px;
  left: 50%;
  width: 1.5px;
  height: 10px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}

.share-button__label {
  font-size: 0.73rem;
  font-weight: 600;
}

.brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 12px 14px 0;
  text-align: center;
}

.brand__logo-wrap {
  position: relative;
  width: 116px;
  height: 116px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid rgba(214, 175, 110, 0.38);
  border-radius: 50%;
  background: rgba(7, 6, 5, 0.92);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38), 0 0 0 8px rgba(214, 175, 110, 0.035);
}

.brand__logo {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.brand__status {
  position: absolute;
  right: 3px;
  bottom: 7px;
  display: grid;
  width: 24px;
  height: 24px;
  border: 3px solid #12100e;
  border-radius: 50%;
  background: var(--color-gold);
  place-items: center;
}

.brand__status::before {
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #18110a;
  border-left: 2px solid #18110a;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 7px;
  color: var(--color-gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 16px;
  height: 1px;
  background: currentColor;
}

.brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 11vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.brand h1 em {
  color: var(--color-gold-light);
  font-weight: 600;
}

.brand__tagline {
  margin: 16px 0 0;
  color: #e6ded5;
  font-family: var(--font-display);
  font-size: 0.99rem;
  font-style: italic;
  letter-spacing: 0.015em;
}

.brand__description {
  max-width: 310px;
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 0.79rem;
  line-height: 1.65;
}

.actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.action-card {
  position: relative;
  display: grid;
  min-height: 82px;
  align-items: center;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  gap: 11px;
  padding: 15px 16px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-action);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease, background 200ms ease;
}

.action-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--color-gold);
  content: "";
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 200ms ease, transform 200ms ease;
}

.action-card:hover,
.action-card:focus-visible {
  border-color: rgba(214, 175, 110, 0.5);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  transform: translateY(-3px);
}

.action-card:hover::before,
.action-card:focus-visible::before {
  opacity: 1;
  transform: scaleY(1);
}

.action-card--primary {
  border-color: rgba(214, 175, 110, 0.32);
  background: linear-gradient(120deg, rgba(214, 175, 110, 0.18), rgba(214, 175, 110, 0.07));
}

.action-card--secondary {
  background: var(--color-surface-soft);
}

.action-card__number {
  color: var(--color-gold);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.action-card__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.action-card__content strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.2;
}

.action-card__content small {
  overflow: hidden;
  color: var(--color-text-muted);
  font-size: 0.66rem;
  line-height: 1.4;
  text-overflow: ellipsis;
}

.action-card__arrow {
  position: relative;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(214, 175, 110, 0.32);
  border-radius: 50%;
  transition: background 200ms ease, transform 200ms ease;
}

.action-card__arrow::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--color-gold-light);
  border-right: 1px solid var(--color-gold-light);
  content: "";
  transform: translate(-65%, -50%) rotate(45deg);
}

.action-card:hover .action-card__arrow,
.action-card:focus-visible .action-card__arrow {
  background: rgba(214, 175, 110, 0.14);
  transform: translateX(2px);
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 20px 0 0;
  padding: 14px 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #8f8881;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-strip__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold-dark);
}

.footer {
  margin-top: 22px;
  text-align: center;
}

.footer p {
  margin: 0;
  color: #756f69;
  font-size: 0.59rem;
  letter-spacing: 0.06em;
}

.footer__brand {
  margin-top: 7px !important;
  font-size: 0.52rem !important;
  letter-spacing: 0.19em !important;
}

.footer__brand span {
  color: var(--color-gold-dark);
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 10;
  max-width: calc(100vw - 32px);
  padding: 11px 16px;
  border: 1px solid rgba(214, 175, 110, 0.34);
  border-radius: 999px;
  color: var(--color-text);
  background: rgba(18, 15, 13, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript-message {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 20;
  margin: 0 auto;
  max-width: 480px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-muted);
  background: #12100e;
  font: 0.72rem/1.5 var(--font-body);
  text-align: center;
}

:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 3px;
}

@media (max-width: 540px) {
  .linkbio-shell {
    display: block;
    padding: 0;
  }

  .linkbio-card {
    min-height: 100svh;
    padding: 28px 20px 24px;
    border-width: 0;
    border-radius: 0;
    background: rgba(13, 11, 10, 0.88);
    box-shadow: none;
  }

  .share-button {
    top: 18px;
    right: 16px;
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
  }

  .share-button__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .brand {
    padding-top: 18px;
  }

  .brand__logo-wrap {
    width: 110px;
    height: 110px;
  }

  .brand__description {
    max-width: 270px;
  }

  .actions {
    margin-top: 25px;
  }
}

@media (max-width: 350px) {
  .linkbio-card {
    padding-right: 14px;
    padding-left: 14px;
  }

  .brand {
    padding-right: 8px;
    padding-left: 8px;
  }

  .action-card {
    grid-template-columns: 25px minmax(0, 1fr) 24px;
    gap: 8px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .action-card__content strong {
    font-size: 0.95rem;
  }
}

@media (min-height: 850px) and (max-width: 540px) {
  .linkbio-card {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
