:root {
  /* Brand palette derived from the RAKEPRO circuit-R / chrome wordmark. */
  --navy-900: #060f18;
  --navy-800: #0a1622;
  --steel-100: #eaf4ff;
  --steel-300: #bcd6ee;
  --steel-400: #7fb0e0;
  --steel-500: #3f7fc0;
  --steel-700: #1b4377;
  --ink: #cfe0f0;
  --ink-dim: #8aa3bd;
  --glow: rgba(86, 156, 224, 0.45);

  --font-display: 'Chakra Petch', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1000px 600px at 50% -10%, rgba(63, 127, 192, 0.22), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(27, 67, 119, 0.28), transparent 55%),
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* --- Holographic ambience (restrained) ---------------------------------- */
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(127, 176, 224, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 176, 224, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 35%, transparent 100%);
}

.scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0, transparent 2px,
    rgba(6, 15, 24, 0.18) 3px, transparent 4px
  );
  opacity: 0.3;
  mix-blend-mode: overlay;
}

/* --- Landing column ----------------------------------------------------- */
.landing {
  position: relative;
  z-index: 2;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 24px 32px;
  gap: 30px;
}

/* --- Halo visual -------------------------------------------------------- */
.halo {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
}

.halo__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid transparent;
}
.halo__ring--outer {
  inset: 0;
  border-top-color: rgba(127, 176, 224, 0.55);
  border-left-color: rgba(127, 176, 224, 0.20);
  box-shadow: 0 0 40px rgba(63, 127, 192, 0.20) inset;
  animation: spin 18s linear infinite;
}
.halo__ring--mid {
  inset: 32px;
  border-right-color: rgba(63, 127, 192, 0.65);
  border-bottom-color: rgba(63, 127, 192, 0.18);
  animation: spin 12s linear infinite reverse;
}
.halo__ring--inner {
  inset: 64px;
  border-top-color: rgba(234, 244, 255, 0.55);
  box-shadow: 0 0 30px var(--glow);
  animation: spin 8s linear infinite;
}

.halo__core {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px var(--glow));
  animation: float 6s ease-in-out infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float {
  0%, 100% { transform: translateY(-6px); }
  50%      { transform: translateY(6px); }
}

/* --- Wordmark ----------------------------------------------------------- */
.wordmark {
  width: min(420px, 78vw);
  height: auto;
  filter: drop-shadow(0 4px 24px rgba(63, 127, 192, 0.25));
}

/* --- Social chips ------------------------------------------------------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  max-width: 560px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  min-width: 200px;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(15, 34, 54, 0.78), rgba(10, 22, 34, 0.78));
  border: 1px solid rgba(127, 176, 224, 0.16);
  transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.chip:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 176, 224, 0.45);
  box-shadow: 0 10px 30px rgba(6, 15, 24, 0.55), 0 0 18px var(--glow);
}
.chip:focus-visible {
  outline: 2px solid var(--steel-400);
  outline-offset: 2px;
}

.chip__icon {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--steel-400);
}
.chip:hover .chip__icon { color: var(--steel-300); }

.chip__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #eaf2fb;
}
.chip__sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: 2px;
}
.chip__label, .chip__sub { pointer-events: none; }

/* Live stream chip: only rendered server-side when the stream is online. */
.chip--live {
  border-color: rgba(232, 72, 85, 0.55);
  background: linear-gradient(180deg, rgba(54, 18, 24, 0.78), rgba(34, 10, 14, 0.78));
}
.chip--live .chip__icon { color: #ff5c6a; }
.chip--live:hover {
  border-color: rgba(232, 72, 85, 0.85);
  box-shadow: 0 10px 30px rgba(24, 6, 9, 0.55), 0 0 18px rgba(232, 72, 85, 0.4);
}
.chip--live:hover .chip__icon { color: #ff7c87; }
.chip--live .chip__sub { color: #e8a0a6; }

.chip__pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-left: 6px;
  border-radius: 50%;
  background: #ff5c6a;
  vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(255, 92, 106, 0.7);
  animation: live-pulse 1.6s ease-out infinite;
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 92, 106, 0.7); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 92, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 106, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .chip__pulse { animation: none; }
}

/* --- Footer ------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 24px;
  font-size: 0.78rem;
  color: var(--ink-dim);
  border-top: 1px solid rgba(127, 176, 224, 0.10);
}
.footer__build {
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  font-size: 0.7rem;
  opacity: 0.6;
}

/* --- Copy toast --------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 5;
  padding: 10px 18px;
  border-radius: 8px;
  background: rgba(15, 34, 54, 0.96);
  border: 1px solid rgba(127, 176, 224, 0.4);
  color: var(--steel-100);
  font-size: 0.85rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 480px) {
  .halo { width: 200px; height: 200px; }
  .halo__ring--mid { inset: 26px; }
  .halo__ring--inner { inset: 52px; }
  .halo__core { width: 86px; height: 86px; }
  .chip { min-width: 0; width: 100%; }
  .socials { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .halo__ring, .halo__core { animation: none !important; }
}
