:root {
  --bg: #05050a;
  --bg-soft: #10101a;
  --panel: rgba(10, 12, 18, 0.9);
  --line: rgba(145, 159, 255, 0.26);
  --text: #e8ecff;
  --muted: #a3abc9;
  --accent: #89ffbe;
  --accent-2: #95a2ff;
  --danger: #ff5d6c;
  --warning: #ffb347;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% -10%, rgba(149, 162, 255, 0.2), transparent 38%),
    radial-gradient(circle at 85% 0%, rgba(137, 255, 190, 0.12), transparent 28%),
    radial-gradient(circle at 70% 85%, rgba(149, 162, 255, 0.09), transparent 34%),
    linear-gradient(180deg, #030309 0%, var(--bg) 62%, #060611 100%);
  color: var(--text);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  overflow-x: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
}

.nebula {
  position: fixed;
  inset: -15% -10%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 12%, rgba(111, 122, 255, 0.2), transparent 32%),
    radial-gradient(circle at 78% 10%, rgba(122, 255, 190, 0.14), transparent 28%),
    radial-gradient(circle at 45% 82%, rgba(161, 107, 255, 0.1), transparent 33%);
  filter: blur(18px);
  animation: nebulaDrift 24s linear infinite alternate;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(7, 9, 13, 0.85);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  padding: 0.75rem 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
}

.brand-text {
  position: relative;
}

.brand-text::before,
.brand-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.brand-text::before {
  color: rgba(149, 162, 255, 0.7);
  transform: translate(1px, 0);
}

.brand-text::after {
  color: rgba(137, 255, 190, 0.7);
  transform: translate(-1px, 0);
}

.brand-text.glitch-burst::before,
.brand-text.glitch-burst::after {
  opacity: 0.68;
}

.brand-text.glitch-burst {
  animation: brandGlitch 190ms steps(2, jump-none) 1;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91, 226, 195, 0.17);
  background: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 9px;
  border: 1px solid transparent;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(91, 226, 195, 0.07);
}

.layout {
  padding-block: 1rem 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.stack {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: clamp(1rem, 3vw, 1.8rem);
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.card:hover {
  border-color: rgba(149, 162, 255, 0.5);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.52);
}

.hero-news {
  background:
    linear-gradient(180deg, rgba(10, 14, 24, 0.92), rgba(8, 11, 18, 0.88)),
    radial-gradient(circle at 12% -10%, rgba(137, 255, 190, 0.09), transparent 42%);
}

.card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  border: 1px dashed rgba(149, 162, 255, 0.28);
  opacity: 0.7;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.11em;
  font-size: 0.8rem;
  color: #b7bfff;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin-top: 0.55rem;
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  line-height: 1.15;
  max-width: 22ch;
}

.hero-title {
  position: relative;
}

.hero-title::before,
.hero-title::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.hero-title::before {
  color: rgba(149, 162, 255, 0.8);
  transform: translate(2px, 0);
}

.hero-title::after {
  color: rgba(137, 255, 190, 0.7);
  transform: translate(-2px, 0);
}

.hero-title.glitch-burst::before,
.hero-title.glitch-burst::after {
  opacity: 0.72;
}

.hero-title.glitch-burst {
  animation: glitchShake 180ms steps(2, jump-none) 1;
}

.lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 68ch;
}

.pulse-line {
  margin-top: 0.85rem;
  color: #9ef7c2;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  display: inline-block;
  animation: pulseGlow 2.4s ease-in-out infinite;
}

.hero-meta {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.65rem;
}

.news-head {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.hero-meta > div {
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(149, 162, 255, 0.06);
}

.meta-label {
  display: block;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.pill {
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  padding: 0.36rem 0.65rem;
  border: 1px solid currentColor;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
}

.pill-online {
  color: var(--accent);
  background: rgba(137, 255, 190, 0.1);
}

.pill-issues {
  color: var(--warning);
  background: rgba(255, 179, 71, 0.09);
}

.pill-down {
  color: var(--danger);
  background: rgba(255, 93, 108, 0.09);
}

.status-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.7rem;
}

.status-side {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.status-side .status-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.5rem;
}

.status-side .status-item {
  padding: 0.55rem 0.7rem;
  background: rgba(9, 14, 22, 0.88);
}

.status-side .status-item h3 {
  font-size: 0.84rem;
  margin-bottom: 0.42rem;
}

.status-side .status-item p {
  display: none;
}

.status-side .pill {
  font-size: 0.68rem;
  padding: 0.24rem 0.45rem;
}

.status-item,
.contact-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(8, 11, 16, 0.8);
}

.status-item h3,
.contact-item h3 {
  font-size: 0.95rem;
}

.status-item p,
.contact-item p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-value-wrap {
  margin-top: 0.45rem;
}

.contact-value {
  color: #b9ffda;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(185, 255, 218, 0.35);
  transition: color 140ms ease, border-color 140ms ease, text-shadow 140ms ease;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

a.contact-value:hover {
  color: #d3ffe8;
  border-color: rgba(211, 255, 232, 0.7);
  text-shadow: 0 0 10px rgba(137, 255, 190, 0.45);
}

.contact-item-session .contact-value-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.84rem;
  line-height: 1.35;
  color: #cafee3;
  border: 1px solid rgba(137, 255, 190, 0.26);
  border-radius: 10px;
  background: rgba(137, 255, 190, 0.08);
  padding: 0.42rem 0.52rem;
  border-bottom-width: 1px;
}

.contact-copy-btn {
  margin-top: 0.52rem;
  border: 1px solid rgba(185, 255, 218, 0.45);
  background: rgba(137, 255, 190, 0.12);
  color: #d6ffeb;
  border-radius: 9px;
  padding: 0.28rem 0.55rem;
  font-family: "Share Tech Mono", "JetBrains Mono", monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 120ms ease;
}

.contact-copy-btn:hover {
  background: rgba(137, 255, 190, 0.2);
  border-color: rgba(211, 255, 232, 0.72);
}

.contact-copy-btn:active {
  transform: translateY(1px);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  border-left: 2px solid var(--line);
  padding-left: 0.85rem;
  position: relative;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(137, 255, 190, 0.9);
  box-shadow: 0 0 0 5px rgba(137, 255, 190, 0.13);
}

.timeline time {
  display: block;
  color: var(--accent-2);
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
}

.timeline p {
  margin: 0;
  color: var(--text);
}

.note {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.84rem;
  padding-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.noise,
.grid,
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.12;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0.35px, transparent 0.35px);
  background-size: 2px 2px;
}

.grid {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(149, 162, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(149, 162, 255, 0.26) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 15%, black 20%, transparent 80%);
}

.scanlines {
  z-index: 1;
  opacity: 0.14;
  background: repeating-linear-gradient(
    to bottom,
    rgba(130, 145, 255, 0.11) 0,
    rgba(130, 145, 255, 0.11) 1px,
    transparent 2px,
    transparent 4px
  );
  mix-blend-mode: screen;
  animation: scanShift 7s linear infinite;
}

@keyframes pulseGlow {
  0% {
    opacity: 0.65;
    text-shadow: 0 0 6px rgba(137, 255, 190, 0.32);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(137, 255, 190, 0.72);
  }

  100% {
    opacity: 0.65;
    text-shadow: 0 0 6px rgba(137, 255, 190, 0.32);
  }
}

@keyframes nebulaDrift {
  0% {
    transform: translate3d(-1.5%, -1.2%, 0) scale(1);
  }

  100% {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes scanShift {
  0% {
    transform: translateY(-6%);
  }

  100% {
    transform: translateY(6%);
  }
}

@keyframes glitchShake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); }
  40% { transform: translate(1px, -1px); }
  60% { transform: translate(-1px, 0); }
  80% { transform: translate(1px, 1px); }
  100% { transform: translate(0, 0); }
}

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

@media (max-width: 720px) {
  .topbar {
    position: static;
  }

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

  .footer {
    flex-direction: column;
    gap: 0.4rem;
  }
}
