:root {
  --bg: #080807;
  --bg-elevated: rgba(15, 16, 13, 0.72);
  --panel: rgba(19, 21, 16, 0.78);
  --line: rgba(215, 222, 188, 0.12);
  --text: #f6efdf;
  --muted: #b9b09b;
  --acid: #d3ff56;
  --ember: #ff7a2f;
  --shadow: rgba(0, 0, 0, 0.36);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Azeret Mono", monospace;
  background:
    radial-gradient(circle at 15% 20%, rgba(211, 255, 86, 0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 47, 0.18), transparent 22%),
    radial-gradient(circle at 50% 85%, rgba(255, 245, 210, 0.08), transparent 28%),
    linear-gradient(135deg, #050505 0%, #0d0d0c 55%, #11110f 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 34%, transparent 100%);
  opacity: 0.55;
}

body::after {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.06), transparent 14%, transparent 86%, rgba(255, 255, 255, 0.05));
  opacity: 0.35;
}

.noise {
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px);
  background-size: 120px 120px, 160px 160px, 200px 200px;
  mix-blend-mode: soft-light;
  opacity: 0.28;
  pointer-events: none;
}

.shell {
  position: relative;
  width: min(calc(100% - 2.5rem), var(--max-width));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.topbar,
.footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - 10rem);
  padding: 2rem 0 4rem;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.kicker,
.panel-label,
.signal-card-label,
.section-index {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: var(--acid);
}

.eyebrow {
  margin: 0 0 1.4rem;
  font-size: 0.82rem;
}

.title {
  display: block;
  white-space: nowrap;
  margin: 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(3.1rem, 10.5vw, 8.4rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--ember);
}

.lede {
  max-width: 36rem;
  margin: 1.8rem 0 0;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12rem;
  padding: 1rem 1.35rem;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(211, 255, 86, 0.45);
  outline: none;
}

.button-primary {
  background: linear-gradient(135deg, rgba(211, 255, 86, 0.14), rgba(255, 122, 47, 0.12));
}

.button-primary:hover,
.button-primary:focus-visible {
  background: linear-gradient(135deg, rgba(211, 255, 86, 0.24), rgba(255, 122, 47, 0.18));
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel {
  position: relative;
  min-height: 38rem;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(20, 22, 17, 0.84), rgba(12, 13, 11, 0.92));
  box-shadow: 0 30px 80px var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(211, 255, 86, 0.18);
}

.hero-panel::before {
  width: 38rem;
  height: 38rem;
  top: -18rem;
  right: -7rem;
  animation: orbit 18s linear infinite;
}

.hero-panel::after {
  width: 22rem;
  height: 22rem;
  bottom: -9rem;
  left: -7rem;
  border-color: rgba(255, 122, 47, 0.2);
  animation: orbitReverse 22s linear infinite;
}

.panel-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(211, 255, 86, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(211, 255, 86, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.38;
}

.panel-content {
  position: absolute;
  top: 2rem;
  left: 2rem;
  max-width: 18rem;
}

.panel-time {
  margin: 0.6rem 0 1rem;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(3rem, 9vw, 6.5rem);
  letter-spacing: -0.05em;
}

.panel-copy {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.signal-card {
  position: absolute;
  width: min(18rem, calc(100% - 2rem));
  padding: 1.1rem 1.2rem;
  background: var(--bg-elevated);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.signal-card ul {
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.signal-card-top {
  top: 14rem;
  right: 1.25rem;
}

.signal-card-bottom {
  bottom: 1.25rem;
  left: 1.25rem;
}

.signal-card-value {
  margin: 0.7rem 0 0;
  font-family: "Bodoni Moda", serif;
  font-size: 2rem;
  color: var(--ember);
}

.signal-section {
  display: grid;
  grid-template-columns: 15rem 1fr;
  gap: 2rem;
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--line);
}

.signal-header h2 {
  margin: 0.7rem 0 0;
  font-family: "Bodoni Moda", serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 600;
}

.signal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.signal-text {
  margin: 0;
  padding: 1.4rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  line-height: 1.9;
  color: var(--muted);
}

.footer {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  animation: reveal 800ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitReverse {
  from {
    transform: rotate(360deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@media (max-width: 980px) {
  .hero,
  .signal-section,
  .signal-columns {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  .hero-panel {
    min-height: 32rem;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 1.25rem), var(--max-width));
    padding-top: 1rem;
  }

  .topbar,
  .footer {
    flex-direction: column;
  }

  .title {
    font-size: clamp(2.25rem, 14.2vw, 3.95rem);
    letter-spacing: 0.03em;
  }

  .panel-content,
  .signal-card-top,
  .signal-card-bottom {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: auto;
    margin: 1rem;
  }

  .panel-content {
    margin-top: 1.5rem;
  }

  .hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}