* {
  box-sizing: border-box;
}

:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(9, 18, 33, 0.62);
  --panel-border: rgba(190, 214, 255, 0.18);
  --text: #eef4ff;
  --muted: #a8b4c9;
  --accent: #7dd3fc;
  --accent-2: #c084fc;
  --success: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.26), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(192, 132, 252, 0.22), transparent 25%),
    radial-gradient(circle at 50% 85%, rgba(52, 211, 153, 0.16), transparent 26%),
    linear-gradient(160deg, #040814 0%, #091524 50%, #05070d 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
}

.hero {
  position: relative;
  padding: 40px;
  border-radius: 28px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(125, 211, 252, 0.3), transparent 64%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.18);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1 {
  margin: 22px 0 14px;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.92rem;
}

.pill.success {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
  color: #d1fae5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.card,
.footer {
  border-radius: 24px;
  padding: 24px;
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
}

.card p,
.footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.footer {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color: var(--accent);
  white-space: nowrap;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
  opacity: 0.8;
}

.bg-orb-a {
  top: 10%;
  left: -5%;
  width: 220px;
  height: 220px;
  background: rgba(125, 211, 252, 0.14);
}

.bg-orb-b {
  right: -4%;
  bottom: 4%;
  width: 280px;
  height: 280px;
  background: rgba(192, 132, 252, 0.12);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 20px, 1100px);
    padding: 20px 0 32px;
  }

  .hero,
  .card,
  .footer {
    padding: 20px;
    border-radius: 22px;
  }

  h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }
}


/* Gotham mode */
.hero {
  min-height: 430px;
}

.hero h1,
.hero .lede,
.hero .status-row,
.hero .eyebrow {
  position: relative;
  z-index: 2;
}

.bat-signal {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.bat-signal .moon {
  position: absolute;
  right: clamp(22px, 6vw, 76px);
  top: 36px;
  width: clamp(150px, 24vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 38% 35%, #fff7b8 0 10%, #fde68a 18%, #facc15 44%, #b45309 100%);
  box-shadow:
    0 0 42px rgba(250, 204, 21, 0.8),
    0 0 110px rgba(250, 204, 21, 0.38),
    inset -22px -20px 34px rgba(120, 53, 15, 0.28);
  animation: signalPulse 3.8s ease-in-out infinite;
}

.bat-signal .bat {
  font-size: clamp(4.5rem, 13vw, 9rem);
  line-height: 1;
  color: #05070d;
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.42));
  transform: rotate(-8deg);
  animation: batDrift 4.8s ease-in-out infinite;
}

.bat-signal .beam {
  position: absolute;
  right: clamp(70px, 15vw, 180px);
  top: 230px;
  width: clamp(180px, 36vw, 430px);
  height: 360px;
  transform: rotate(18deg);
  transform-origin: top center;
  background: linear-gradient(to bottom, rgba(250, 204, 21, 0.24), rgba(250, 204, 21, 0));
  clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
  filter: blur(5px);
  opacity: 0.9;
}

.bat-console {
  margin-top: 18px;
  border-radius: 24px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.bat-console::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(125, 211, 252, 0.07) 0,
    rgba(125, 211, 252, 0.07) 1px,
    transparent 1px,
    transparent 10px
  );
  opacity: 0.45;
  pointer-events: none;
}

.console-header,
.console-grid {
  position: relative;
  z-index: 1;
}

.console-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: 0 0 16px currentColor;
}

.dot.red { background: #fb7185; color: #fb7185; }
.dot.yellow { background: #facc15; color: #facc15; }
.dot.green { background: #34d399; color: #34d399; }
.console-title { margin-left: 8px; }

.console-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.console-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.48);
  border: 1px solid rgba(125, 211, 252, 0.16);
}

.console-grid span,
.console-grid strong {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.console-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.console-grid strong {
  margin-top: 8px;
  color: #fde68a;
  font-size: 1rem;
}

@keyframes signalPulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.035); filter: saturate(1.25); }
}

@keyframes batDrift {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-7px) rotate(5deg); }
}

@media (max-width: 900px) {
  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bat-signal .moon {
    opacity: 0.58;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 500px;
  }

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