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

:root {
  --deep-purple:   #1a0a2e;
  --rich-purple:   #2d1054;
  --violet:        #4a1a8a;
  --gold:          #c9a84c;
  --gold-light:    #e8c97a;
  --gold-dim:      #8a6a20;
  --silver:        #c0c0c8;
  --silver-light:  #e8e8f0;
  --silver-dim:    #808090;
  --cream:         #f5f0e8;
}

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background-color: var(--deep-purple);
  color: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  position: relative;
  overflow-x: hidden;
}

/* ── Velvet texture overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.012) 0px,
      rgba(255,255,255,0.012) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.06) 0px,
      rgba(0,0,0,0.06) 1px,
      transparent 1px,
      transparent 4px
    );
  pointer-events: none;
  z-index: 0;
}

/* ── Radial vignette ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(10, 2, 20, 0.65) 100%
  );
  pointer-events: none;
  z-index: 0;
}

/* ── Background logo watermark ── */
.bg-watermark {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}

.bg-watermark img {
  width: min(70vw, 70vh);
  opacity: 0.04;
  filter: invert(1) sepia(1) saturate(2) hue-rotate(245deg) brightness(1.6);
  user-select: none;
}

/* ── Main card ── */
.card {
  position: relative;
  z-index: 1;
  width: min(680px, 92vw);
  text-align: center;
  padding: 3.5rem 3rem 3rem;
  background: linear-gradient(
    160deg,
    rgba(74, 26, 138, 0.28) 0%,
    rgba(26, 10, 46, 0.55) 50%,
    rgba(45, 16, 84, 0.38) 100%
  );
  border: 1px solid rgba(201, 168, 76, 0.35);
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(192, 192, 200, 0.08) inset,
    0 8px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(74, 26, 138, 0.15);
  backdrop-filter: blur(6px);
  margin: auto 0;
}

/* Gold corner ornaments */
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--gold-dim);
  border-style: solid;
  opacity: 0.7;
}
.card::before {
  top: 12px; left: 12px;
  border-width: 1px 0 0 1px;
}
.card::after {
  bottom: 12px; right: 12px;
  border-width: 0 1px 1px 0;
}

/* ── Logo ── */
.logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.logo-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(
    from 0deg,
    var(--gold-dim),
    var(--gold-light),
    var(--silver),
    var(--gold-light),
    var(--gold-dim)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 24px rgba(201, 168, 76, 0.3),
    0 0 6px rgba(201, 168, 76, 0.15) inset;
}

.logo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #2d1054, #1a0a2e);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-inner img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  filter: invert(1) sepia(1) saturate(3) hue-rotate(245deg) brightness(1.8);
}

/* ── Gold divider ── */
.divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.4rem auto;
  width: 80%;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* ── Typography ── */
.brand-name {
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(1.3rem, 4.5vw, 2rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.3;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.brand-sub {
  font-family: 'Cinzel', serif;
  font-size: clamp(0.65rem, 2vw, 0.8rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-top: 0.3rem;
}

.headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--cream);
  margin: 0.8rem 0 0.5rem;
}

.headline span {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: normal;
  font-weight: 400;
}

.body-text {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.78);
  max-width: 460px;
  margin: 0 auto;
}

/* ── Contact section ── */
.contact-wrap {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.contact-label {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.contact-items {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 1px;
  background: rgba(74, 26, 138, 0.18);
  color: var(--cream);
  text-decoration: none;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.contact-pill:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.12);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
}

.contact-pill--whatsapp {
  border-color: rgba(37, 211, 102, 0.3);
}

.contact-pill--whatsapp:hover {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.18);
  color: #7ee8a2;
}

.contact-pill svg {
  flex-shrink: 0;
  opacity: 0.75;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(192, 192, 200, 0.3);
  font-family: 'Cinzel', serif;
  text-transform: uppercase;
}

/* ── Ambient glow particles ── */
.glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-1 {
  width: 500px; height: 500px;
  top: -150px; left: -150px;
  background: radial-gradient(circle, rgba(74, 26, 138, 0.25) 0%, transparent 70%);
  animation-duration: 20s;
}
.glow-2 {
  width: 400px; height: 400px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.1) 0%, transparent 70%);
  animation-duration: 25s;
  animation-delay: -8s;
}
.glow-3 {
  width: 300px; height: 300px;
  top: 40%; right: 10%;
  background: radial-gradient(circle, rgba(138, 26, 138, 0.12) 0%, transparent 70%);
  animation-duration: 30s;
  animation-delay: -14s;
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.08); }
}

/* ── 404-specific ── */
.error-code {
  font-family: 'Cinzel', serif;
  font-size: clamp(4rem, 15vw, 6.5rem);
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold-light) 60%, var(--gold-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.65;
  margin-bottom: 0.3rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.6rem;
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 1px;
  background: rgba(74, 26, 138, 0.18);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.back-link:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.2);
  color: var(--gold-light);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .card {
    padding: 2.5rem 1.6rem 2rem;
  }
  .contact-pill {
    width: 100%;
    justify-content: center;
  }
}
