@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@700;800&display=swap");

:root{--fx-duration:1s;--fx-accent:#d6b36c;}

.dh-wordmark {
  margin: 0 0 0.65rem;
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", Georgia, serif;
  font-size: clamp(1.65rem, 4.6vw, 3.55rem);
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1.08;
  text-transform: uppercase;
  background:
    linear-gradient(110deg, transparent 0%, transparent 38%, #fff8d6 50%, transparent 62%, transparent 100%),
    linear-gradient(180deg, #ffe994 0%, #d7a742 48%, #8f651c 100%);
  background-size: 220% 100%, 100% 100%;
  background-position: 200% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 2px 10px rgba(0,0,0,0.75), 0 0 14px rgba(215,167,66,0.22);
}

.fx-text-4 {
  animation: fx-text-4 5.4s linear infinite;
}

@keyframes fx-text-4 {
  to { background-position: -200% 0, 0 0; }
}

.maintenance-copy {
  margin: 0.25rem 0;
  color: rgba(255, 248, 223, 0.66);
  font-size: clamp(0.86rem, 1.9vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fx-load-5 {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;

  background:
    radial-gradient(circle at 50% 0%, #fff 0 4px, transparent 5px),
    conic-gradient(from 0deg, transparent 0 70%, #d6b35c 88%, #fff4bf 94%, transparent 100%);

  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%);
  mask: radial-gradient(circle, transparent 62%, #000 63%);

  filter: drop-shadow(0 0 10px rgba(214, 179, 92, 0.8));
  animation: fx-load-5-spin 1.5s linear infinite;
}

@keyframes fx-load-5-spin {
  to {
    transform: rotate(360deg);
  }
}
:root {
  color-scheme: dark;
  --bg: #020202;
  --bg-soft: #090806;
  --gold: #d7a43b;
  --gold-2: #f4d37d;
  --gold-3: #8f621b;
  --cream: #fff8df;
  --muted: rgba(255, 248, 223, 0.64);
  --line: rgba(244, 211, 125, 0.18);
  --glass: rgba(9, 8, 6, 0.64);
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(215, 164, 59, 0.12), transparent 24rem),
    radial-gradient(circle at 18% 20%, rgba(244, 211, 125, 0.08), transparent 18rem),
    radial-gradient(circle at 82% 18%, rgba(215, 164, 59, 0.06), transparent 20rem),
    linear-gradient(180deg, #050402 0%, #010101 58%, #050301 100%);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.021) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 43%, black 0 36%, transparent 72%);
}

.ambient-canvas,
.grain,
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-canvas {
  z-index: 1;
  opacity: 0.72;
  mix-blend-mode: screen;
}

.grain {
  z-index: 6;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.aurora {
  z-index: 2;
  opacity: 0.72;
  filter: blur(34px);
  transform-origin: center;
}

.aurora-one {
  background: radial-gradient(ellipse at 42% 40%, rgba(244, 211, 125, 0.17), transparent 31%);
  animation: aurora-drift 15s ease-in-out infinite alternate;
}

.aurora-two {
  background: radial-gradient(ellipse at 60% 52%, rgba(143, 98, 27, 0.16), transparent 34%);
  animation: aurora-drift 18s ease-in-out -5s infinite alternate-reverse;
}

.maintenance-shell {
  position: relative;
  z-index: 5;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 2.4vw, 2.25rem) clamp(1.25rem, 3vw, 3rem) clamp(4.8rem, 7vh, 6.5rem);
}

.hero {
  display: grid;
  width: min(100%, 1180px);
  place-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 clamp(1rem, 2.8vh, 2rem);
  color: rgba(244, 211, 125, 0.78);
  font-size: clamp(0.68rem, 1.4vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(215, 164, 59, 0.32);
}

.coin-stage {
  position: relative;
  display: grid;
  width: clamp(21rem, 55vmin, 41rem);
  aspect-ratio: 1;
  place-items: center;
  isolation: isolate;
}

.stage-halo {
  position: absolute;
  inset: 4%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(244, 211, 125, 0.22), transparent 42%),
    radial-gradient(circle, rgba(215, 164, 59, 0.10), transparent 64%);
  filter: blur(18px);
  animation: breathe 4.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(244, 211, 125, 0.18);
  box-shadow: inset 0 0 38px rgba(215, 164, 59, 0.035), 0 0 32px rgba(215, 164, 59, 0.035);
}

.orbit-one {
  inset: 5%;
  animation: orbit-turn 28s linear infinite;
}

.orbit-two {
  inset: 13%;
  border-style: dashed;
  border-color: rgba(244, 211, 125, 0.13);
  animation: orbit-turn 34s linear infinite reverse;
}

.orbit-three {
  inset: 23%;
  border-color: rgba(255, 248, 223, 0.07);
  animation: orbit-turn 22s linear infinite;
}

.coin-wrap {
  position: relative;
  z-index: 4;
  width: 78%;
  height: 78%;
  border-radius: 999px;
  filter: drop-shadow(0 34px 72px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 42px rgba(215, 164, 59, 0.26));
}

.coin-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 12% auto;
  height: 24%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 223, 0.26), transparent);
  filter: blur(12px);
  opacity: 0.36;
  transform: rotate(-14deg);
  z-index: 3;
  pointer-events: none;
}

.coin-fallback,
.coin-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.coin-fallback {
  object-fit: contain;
  opacity: 1;
  transform: scale(1.08);
  transition: opacity 0.48s ease;
}

.coin-canvas {
  opacity: 0;
  transition: opacity 0.48s ease;
}

.coin-ready .coin-fallback {
  opacity: 0;
}

.coin-ready .coin-canvas {
  opacity: 1;
}

.coin-shadow {
  position: absolute;
  z-index: 1;
  bottom: 12%;
  width: 58%;
  height: 11%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.72), transparent 68%);
  filter: blur(10px);
  opacity: 0.72;
}

.copy-card {
  position: relative;
  margin-top: clamp(-4.75rem, -7.2vmin, -2.25rem);
  width: min(100%, 770px);
  padding: clamp(1.2rem, 3vw, 2.15rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 248, 223, 0.07), rgba(255, 248, 223, 0.018)),
    rgba(4, 4, 3, 0.62);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.54),
    inset 0 1px 0 rgba(255, 248, 223, 0.08);
  backdrop-filter: blur(18px) saturate(126%);
}

.copy-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(244, 211, 125, 0.12) 48%, transparent 64% 100%);
  transform: translateX(-100%);
  animation: glass-sweep 6.5s cubic-bezier(0.2, 0.7, 0.2, 1) infinite;
  pointer-events: none;
}

.status-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
  color: rgba(255, 248, 223, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.status-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--gold-2);
  box-shadow: 0 0 0 0 rgba(244, 211, 125, 0.46), 0 0 22px rgba(244, 211, 125, 0.76);
  animation: pulse-dot 2s ease-in-out infinite;
}

h1 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(2.9rem, 6.5vw, 5.95rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-wrap: balance;
  text-shadow:
    0 2px 0 rgba(255, 248, 223, 0.12),
    0 24px 80px rgba(215, 164, 59, 0.24);
}

.lede {
  max-width: 56rem;
  margin: 1.15rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.28rem);
  line-height: 1.72;
  text-wrap: balance;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: clamp(1.2rem, 3vw, 2rem);
}

.system-grid div {
  min-height: 5.2rem;
  padding: 1rem;
  border: 1px solid rgba(244, 211, 125, 0.13);
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(244, 211, 125, 0.075), rgba(255, 255, 255, 0.018));
}

.system-grid span,
.system-grid strong {
  display: block;
}

.system-grid span {
  color: rgba(255, 248, 223, 0.45);
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.system-grid strong {
  margin-top: 0.56rem;
  color: var(--gold-2);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 700;
}

.page-foot {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(0.9rem, 3vw, 1.7rem);
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 248, 223, 0.42);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.divider {
  width: 2.6rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244, 211, 125, 0.54), transparent);
}

@keyframes aurora-drift {
  0% { transform: translate3d(-2%, -1%, 0) scale(1); }
  100% { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

@keyframes orbit-turn {
  to { transform: rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.94); opacity: 0.62; }
  50% { transform: scale(1.04); opacity: 0.95; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 211, 125, 0.38), 0 0 22px rgba(244, 211, 125, 0.72); }
  50% { transform: scale(1.14); box-shadow: 0 0 0 10px rgba(244, 211, 125, 0), 0 0 34px rgba(244, 211, 125, 0.92); }
}

@keyframes glass-sweep {
  0%, 38% { transform: translateX(-100%); }
  68%, 100% { transform: translateX(100%); }
}

@media (max-width: 760px) {
  .maintenance-shell {
    align-items: start;
    padding-top: 1.35rem;
    padding-bottom: 5rem;
  }

  .coin-stage {
    width: min(96vw, 25rem);
  }

  .copy-card {
    margin-top: clamp(-2.2rem, -7vw, -1.15rem);
    padding-inline: 1.05rem;
  }

  h1 {
    font-size: clamp(2.15rem, 10vw, 2.55rem);
    letter-spacing: -0.045em;
    line-height: 0.94;
  }

  .lede {
    font-size: 0.98rem;
    line-height: 1.72;
  }

  .coin-wrap {
    width: 82%;
    height: 82%;
  }

  .copy-card {
    border-radius: 1.45rem;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-grid div {
    min-height: auto;
    padding: 0.9rem 1rem;
  }

  .page-foot {
    display: none;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .coin-stage {
    width: clamp(19rem, 48vmin, 34rem);
  }

  .copy-card {
    margin-top: -3rem;
  }
}

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