:root {
  --black: #050504;
  --ink: #0b0906;
  --gold: #c7a35c;
  --gold-bright: #e0c27d;
  --gold-deep: #6c5128;
  --paper: #e7dfcf;
  --muted: #a59c8d;
  --line: rgba(211, 174, 100, 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 24%, rgba(123, 87, 35, 0.13), transparent 34%),
    linear-gradient(145deg, #020202 0%, #090704 52%, #030303 100%);
  font-family: "Inter", system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.01) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.22;
}

.noise {
  position: fixed;
  inset: -50%;
  z-index: 5;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  animation: grain 0.18s steps(2) infinite;
}

.scanline {
  position: fixed;
  left: 0;
  right: 0;
  top: -12%;
  height: 8%;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(217, 185, 118, 0.035), transparent);
  animation: scan 10s linear infinite;
}

.orb {
  position: fixed;
  width: 32vw;
  height: 32vw;
  min-width: 280px;
  min-height: 280px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.08;
  pointer-events: none;
  background: #b98c3e;
  animation: drift 16s ease-in-out infinite alternate;
}

.orb-one {
  top: -18vw;
  left: -10vw;
}

.orb-two {
  right: -14vw;
  bottom: -18vw;
  animation-delay: -8s;
}

.shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 42px 20px;
}

.landing {
  width: min(880px, 100%);
  text-align: center;
  animation: reveal 1.8s ease both;
}

.sigil-wrap {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto -18px;
  display: grid;
  place-items: center;
}

.logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 0 16px rgba(202, 163, 89, 0.18))
    drop-shadow(0 28px 34px rgba(0,0,0,0.75));
  animation: breathe 5.5s ease-in-out infinite;
}

.halo {
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  border: 1px solid rgba(221, 189, 120, 0.18);
  box-shadow:
    0 0 50px rgba(183, 137, 57, 0.12),
    inset 0 0 50px rgba(183, 137, 57, 0.08);
  animation: halo 6s ease-in-out infinite;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.38em;
  font-weight: 500;
}

h1,
h2 {
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
}

h1 {
  margin: 0;
  color: var(--paper);
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.85);
}

.manifesto {
  margin: 22px auto 0;
  max-width: 640px;
  color: #d7d0c2;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.32rem);
  line-height: 1.8;
  letter-spacing: 0.035em;
}

.manifesto span {
  color: var(--gold-bright);
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(520px, 88%);
  margin: 28px auto;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line));
}

.divider::after {
  background: linear-gradient(90deg, var(--line), transparent);
}

.divider span {
  width: 8px;
  height: 8px;
  margin: 0 14px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
  box-shadow: 0 0 12px rgba(211, 174, 100, 0.28);
}

.status-panel {
  width: min(650px, 100%);
  margin: 0 auto;
}

.terminal-line {
  margin: 0;
  color: var(--gold-bright);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 12px rgba(224, 194, 125, 0.9);
  animation: pulse 1.8s ease-in-out infinite;
}

.cursor {
  animation: blink 0.85s steps(1) infinite;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(201, 164, 92, 0.18);
  background: rgba(196, 159, 88, 0.14);
}

.metrics div {
  padding: 16px 12px;
  background: rgba(7, 6, 4, 0.74);
}

.metrics span,
.coming-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.19em;
}

.metrics strong {
  color: #d9c49d;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.archive-button {
  position: relative;
  margin-top: 30px;
  padding: 15px 29px;
  border: 1px solid rgba(220, 184, 111, 0.65);
  color: var(--gold-bright);
  background: linear-gradient(180deg, rgba(116, 81, 31, 0.16), rgba(24, 17, 8, 0.28));
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  cursor: pointer;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.archive-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(236, 207, 146, 0.15), transparent);
  transition: transform .6s ease;
}

.archive-button:hover,
.archive-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  box-shadow: 0 0 25px rgba(173, 126, 49, 0.17);
  outline: none;
}

.archive-button:hover::before {
  transform: translateX(110%);
}

.footer-code {
  margin: 28px 0 0;
  color: #6f685f;
  font-size: 0.62rem;
  letter-spacing: 0.27em;
}

.archive-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  border: 1px solid rgba(214, 177, 105, 0.45);
  color: var(--paper);
  background: rgba(7, 6, 4, 0.96);
  box-shadow: 0 34px 100px rgba(0,0,0,0.85), 0 0 50px rgba(137, 96, 35, 0.12);
}

.archive-dialog::backdrop {
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(7px);
}

.dialog-frame {
  position: relative;
  padding: 48px;
  text-align: left;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.008) 1px, transparent 1px);
  background-size: 28px 28px;
}

.dialog-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(193, 151, 77, 0.14);
  pointer-events: none;
}

.dialog-frame h2 {
  margin: 0 0 16px;
  color: var(--gold-bright);
  font-size: clamp(1.55rem, 4vw, 2.35rem);
  letter-spacing: 0.05em;
}

.dialog-frame > p:not(.eyebrow):not(.dialog-note) {
  color: #c6bdad;
  line-height: 1.7;
}

.close-button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 18px;
  border: 0;
  color: #aa9270;
  background: transparent;
  font-size: 1.7rem;
  cursor: pointer;
}

.coming-list {
  margin: 28px 0;
  border-top: 1px solid var(--line);
}

.coming-list div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.coming-list strong {
  font-family: "Cinzel", Georgia, serif;
  color: #ded4c1;
  font-size: 0.86rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.dialog-note {
  color: #756d61;
  font-size: 0.64rem;
  letter-spacing: 0.17em;
}

@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(2%, -1%); }
  50% { transform: translate(-1%, 2%); }
  75% { transform: translate(1%, 1%); }
  100% { transform: translate(-2%, -1%); }
}

@keyframes scan {
  to { transform: translateY(125vh); }
}

@keyframes drift {
  to { transform: translate(7vw, 5vw) scale(1.12); }
}

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

@keyframes breathe {
  50% { transform: scale(1.012); filter: drop-shadow(0 0 25px rgba(202, 163, 89, 0.24)) drop-shadow(0 28px 34px rgba(0,0,0,0.75)); }
}

@keyframes halo {
  50% { transform: scale(1.04); opacity: 0.7; }
}

@keyframes pulse {
  50% { opacity: 0.38; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 640px) {
  .shell {
    padding: 22px 16px 34px;
  }

  .sigil-wrap {
    width: min(330px, 82vw);
    margin-bottom: -8px;
  }

  h1 {
    letter-spacing: 0.04em;
  }

  .eyebrow {
    letter-spacing: 0.26em;
  }

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

  .metrics div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
  }

  .metrics span {
    margin: 0;
  }

  .dialog-frame {
    padding: 42px 26px 30px;
  }
}

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