:root {
  --bg: #000000;
  --card: rgba(255, 255, 255, 0.015);
  --border: rgba(201, 167, 95, 0.18);
  --text: #f3efe6;
  --muted: #8a8475;
  --gold: #c9a75f;
  --gold-soft: #e7d3a1;
}

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

body {
  font-family: "Jost", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: max(32px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  /* min-height (not height) + only horizontal clip = content taller than the
     screen makes the page scroll instead of getting cut off (landscape/short) */
  overflow-x: hidden;
  position: relative;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

/* Background — single warm gold glow + grain */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 700px;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle,
    rgba(201, 167, 95, 0.12) 0%,
    rgba(201, 167, 95, 0.04) 35%,
    transparent 70%
  );
  animation: breathe 9s ease-in-out infinite;
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
  }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 580px;
  text-align: center;
  padding: 64px 48px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Thin gold corner accents */
.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid var(--gold);
  opacity: 0.6;
}

.card::before {
  top: 14px;
  left: 14px;
  border-right: 0;
  border-bottom: 0;
}

.card::after {
  bottom: 14px;
  right: 14px;
  border-left: 0;
  border-top: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 34px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 167, 95, 0.6);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 167, 95, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(201, 167, 95, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 167, 95, 0);
  }
}

h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.accent {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 60%, #9c7d3c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.01em;
  min-height: 1.6em;
  margin-bottom: 44px;
}

.cursor {
  display: inline-block;
  width: 1px;
  height: 1.05em;
  margin-left: 3px;
  vertical-align: text-bottom;
  background: var(--gold);
  animation: blink 1s steps(1, end) infinite;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  font-family: "Jost", sans-serif;
  font-size: clamp(0.85rem, 3.4vw, 0.95rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-decoration: none;
  color: var(--gold-soft);
  padding: 17px 36px;
  min-height: 52px;
  word-break: break-word;
  border: 1px solid var(--gold);
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(201, 167, 95, 0.08),
    rgba(201, 167, 95, 0.02)
  );
  position: relative;
  overflow: hidden;
  transition: color 0.4s ease, border-color 0.4s ease;
}

/* Keep label + icon above the sweep */
.cta svg,
.cta span {
  position: relative;
  z-index: 2;
}

.cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Gold sweep on hover — sits above the button's own faint fill */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  transform: translateX(-101%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.cta:hover {
  color: #0a0a0a;
  border-color: var(--gold-soft);
}

.cta:hover::before {
  transform: translateX(0);
}

.hint {
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.social {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(201, 167, 95, 0.1);
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.3s ease;
}

.social a:hover {
  color: var(--gold-soft);
}

.social svg {
  width: 16px;
  height: 16px;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(138, 132, 117, 0.5);
}

.sep {
  opacity: 0.4;
}

@media (max-width: 600px) {
  .card {
    padding: 52px 28px;
  }

  .glow {
    width: 460px;
    height: 460px;
  }
}

@media (max-width: 400px) {
  .card {
    padding: 44px 22px;
  }

  .card::before,
  .card::after {
    width: 20px;
    height: 20px;
  }

  .badge {
    letter-spacing: 0.2em;
    padding: 7px 14px;
  }

  .cta {
    width: 100%;
    padding: 16px 20px;
  }
}

/* Avoid the gold sweep being stuck on touch devices (no hover) */
@media (hover: none) {
  .cta:active::before {
    transform: translateX(0);
  }
  .cta:active {
    color: #0a0a0a;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
