:root {
  color-scheme: dark;
  --bg: #08060f;
  --text: #f3ead6;
  --amber: #ff7a1a;
  --magenta: #c14bff;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--amber); color: var(--bg); }

a { color: var(--amber); }
a:hover { color: var(--magenta); }

/* --- background atmosphere --- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .6;
  background-image:
    radial-gradient(1.6px 1.6px at 24px 32px, rgba(243,234,214,.9), transparent),
    radial-gradient(1.2px 1.2px at 140px 90px, rgba(243,234,214,.55), transparent),
    radial-gradient(1px 1px at 220px 180px, rgba(193,75,255,.7), transparent),
    radial-gradient(1.4px 1.4px at 300px 60px, rgba(243,234,214,.7), transparent),
    radial-gradient(1px 1px at 80px 240px, rgba(255,122,26,.6), transparent);
  background-size: 340px 300px;
  animation: drift 90s linear infinite;
}
.glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(55px);
}
.glow--amber {
  top: -160px; left: -120px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,122,26,.5), transparent 62%);
  animation: glowpulse 9s ease-in-out infinite;
}
.glow--magenta {
  bottom: -200px; right: -160px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(193,75,255,.42), transparent 62%);
  animation: glowpulse 11s ease-in-out infinite reverse;
}

/* --- layout --- */
.wrap {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

/* --- ticker --- */
.ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(243,234,214,.5);
  padding-bottom: 40px;
}
.ticker__mark { color: var(--amber); }
.ticker__live { display: inline-flex; align-items: center; gap: 7px; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
}

/* --- hero --- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: 8px 0 64px;
}
.avatar {
  position: relative;
  flex: 0 0 auto;
  width: clamp(180px, 32vw, 300px);
  aspect-ratio: 1;
  animation: floaty 7s ease-in-out infinite;
}
.avatar__ring {
  position: absolute;
  border-radius: 50%;
}
.avatar__ring--dash {
  inset: -14px;
  border: 1.5px dashed rgba(255,122,26,.5);
  animation: ringspin 26s linear infinite;
}
.avatar__ring--solid {
  inset: -30px;
  border: 1px solid rgba(193,75,255,.28);
  animation: ringspin 40s linear infinite reverse;
}
.avatar__disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: #100a1f;
  box-shadow: 0 0 0 3px rgba(243,234,214,.08), 0 24px 70px rgba(255,122,26,.35);
}
.avatar__disc img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hero__body { flex: 1; min-width: 280px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--magenta);
  border: 1px solid rgba(193,75,255,.4);
  border-radius: 999px;
  padding: 6px 13px;
  margin-bottom: 18px;
}
h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 4.35vw, 68px);
  line-height: .92;
  letter-spacing: -.02em;
  margin: 0;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: keep-all;
  background: linear-gradient(96deg, #f3ead6 0%, var(--amber) 52%, var(--magenta) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 span {
  display: block;
  white-space: nowrap;
}
.tagline {
  font-family: 'Space Mono', monospace;
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.5;
  color: rgba(243,234,214,.82);
  margin: 22px 0 0;
  max-width: 44ch;
}
.accent { color: var(--amber); }

/* --- section head --- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.section-head h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 38px);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.section-head__note {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(243,234,214,.4);
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* --- beacons --- */
.beacon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: 14px;
}
.beacon {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(243,234,214,.11);
  border-radius: 15px;
  padding: 15px 17px;
  background: rgba(243,234,214,.02);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.beacon:hover {
  transform: translateY(-3px);
  border-color: var(--c);
  background: rgba(243,234,214,.05);
  color: var(--text);
}
.beacon__mono {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--bg);
  background: var(--c);
}
.beacon__text { flex: 1; min-width: 0; }
.beacon__name { display: block; font-weight: 600; font-size: 15px; }
.beacon__handle {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: rgba(243,234,214,.45);
  margin-top: 2px;
}
.beacon__arrow { flex: 0 0 auto; font-size: 16px; color: rgba(243,234,214,.4); }

/* --- footer --- */
.foot {
  text-align: center;
  padding: 60px 0 12px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(243,234,214,.35);
  line-height: 1.9;
}
.foot__mark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .02em;
  color: rgba(243,234,214,.6);
  text-transform: uppercase;
}

/* --- animations --- */
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes ringspin { to { transform: rotate(360deg); } }
@keyframes glowpulse { 0%,100% { opacity: .4; transform: scale(1); } 50% { opacity: .85; transform: scale(1.08); } }
@keyframes drift { to { background-position: 340px 180px; } }

@media (max-width: 700px) {
  .ticker__mid {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .starfield, .glow, .avatar, .avatar__ring { animation: none; }
}
