:root {
  color-scheme: dark;
  font-family: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  color: #f6f8fb;
  background: #030912;
  font-synthesis: none;
  --cyan: #25ebff;
  --violet: #8176ff;
  --panel: rgba(2, 11, 22, 0.78);
  --line: rgba(37, 235, 255, 0.72);
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  background: #030912;
}

.landing {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.altar,
.atmosphere {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.altar {
  background: url("./assets/trakaha-altar.png") center center / cover no-repeat;
  transform: scale(1.015);
  will-change: transform;
  animation: altar-breathe 40s ease-in-out infinite;
}

.atmosphere {
  z-index: -1;
  background:
    radial-gradient(circle at 58% 42%, rgba(17, 118, 214, 0.05), transparent 31%),
    linear-gradient(90deg, rgba(1, 5, 11, 0.9) 0%, rgba(1, 7, 15, 0.45) 32%, transparent 62%),
    linear-gradient(180deg, rgba(0, 4, 10, 0.66) 0%, transparent 24%, transparent 66%, rgba(0, 4, 10, 0.76) 100%),
    radial-gradient(ellipse at center, transparent 42%, rgba(0, 3, 8, 0.58) 100%);
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: clamp(22px, 3.5vw, 52px) clamp(22px, 4vw, 68px);
  font-size: clamp(0.62rem, 0.75vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand,
.status {
  display: inline-flex;
  align-items: center;
}

.brand {
  grid-column: 1;
  justify-self: start;
  gap: 15px;
  text-shadow: 0 2px 18px #000;
}

.graph-mark {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(37, 235, 255, 0.16));
}

.graph-nodes {
  fill: #d5e8f8;
  opacity: 0.72;
}

.signal-nodes,
.runner {
  fill: #1785ff;
}

.signal-nodes {
  opacity: 0.88;
}

.runner {
  stroke: #b9fbff;
  stroke-width: 0.7;
}

.runner-soft {
  opacity: 0.72;
}

.status {
  grid-column: 2;
  justify-self: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #7cf5ff;
  background: rgba(1, 8, 16, 0.72);
  box-shadow: inset 0 0 20px rgba(37, 235, 255, 0.04);
  backdrop-filter: blur(14px);
}

.status b {
  color: transparent;
  background: linear-gradient(90deg, #6ff7ff 0%, #1785ff 24%, #9b7bff 48%, #ff63bd 68%, #f2fbff 84%, #6ff7ff 100%);
  background-size: 260% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  font: inherit;
  animation: status-text-flow 4.5s ease-in-out infinite alternate;
}

.status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.hero {
  display: flex;
  align-items: flex-start;
  padding: clamp(4px, 1.4vh, 16px) clamp(22px, 4vw, 68px) 42px;
}

.hero-panel {
  width: min(520px, 43vw);
  padding: clamp(29px, 3vw, 48px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(8, 24, 40, 0.16), transparent 38%),
    var(--panel);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.42),
    inset 0 0 50px rgba(20, 72, 110, 0.08);
  backdrop-filter: blur(16px) saturate(120%);
  animation: panel-arrive 900ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.card-brand {
  margin: 0 0 8px;
  color: #f5fbff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-align: center;
  text-shadow: 0 0 18px rgba(37, 235, 255, 0.25);
}

.kicker {
  margin: 0 0 20px;
  color: #7cf5ff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: center;
}

h1 {
  max-width: 460px;
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(3rem, 4.9vw, 5.35rem);
  font-weight: 900;
  line-height: 0.99;
  letter-spacing: -0.025em;
  text-wrap: balance;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.58);
}

.signal {
  display: block;
  width: 42px;
  height: 3px;
  margin: clamp(26px, 3vw, 38px) auto 23px;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(37, 235, 255, 0.72);
}

.intro {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.65;
  letter-spacing: 0.055em;
  text-shadow: 0 2px 16px #000;
}

.card-signoff {
  margin: 30px 0 0;
  padding-top: 19px;
  border-top: 1px solid rgba(124, 245, 255, 0.2);
  text-align: center;
  color: rgba(238, 244, 250, 0.82);
  font-size: clamp(0.57rem, 0.68vw, 0.69rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.55;
  text-shadow: 0 2px 16px #000;
}

.heart {
  color: #ff526f;
  font-family: Arial, sans-serif;
  font-size: 1.05em;
  text-shadow: 0 0 12px rgba(255, 82, 111, 0.78);
}

@keyframes altar-breathe {
  0%, 100% { transform: scale(1.015); }
  50% { transform: scale(1.075); }
}

@keyframes status-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes panel-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes status-text-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@media (max-width: 900px) {
  .altar {
    background-position: center center;
  }

  .atmosphere {
    background:
      linear-gradient(180deg, rgba(0, 4, 10, 0.38), rgba(0, 5, 12, 0.15) 28%, rgba(0, 5, 12, 0.78) 68%, rgba(0, 3, 8, 0.96)),
      radial-gradient(ellipse at center, transparent 30%, rgba(0, 3, 8, 0.45) 100%);
  }

  .hero {
    align-items: end;
  }

  .hero-panel {
    width: min(610px, 100%);
    margin-bottom: clamp(18px, 5vh, 42px);
  }
}

@media (max-width: 620px) {
  .landing {
    min-height: 100svh;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 6px;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
    max-width: 160px;
    gap: 10px;
    line-height: 1.5;
  }

  .graph-mark {
    width: 46px;
    height: 46px;
  }

  .status {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    padding: 9px 10px;
    font-size: 0.53rem;
    letter-spacing: 0.08em;
  }

  .hero {
    padding-top: 24vh;
    padding-bottom: 14px;
  }

  .hero-panel {
    padding: 26px 24px;
    border-radius: 10px;
    backdrop-filter: blur(13px) saturate(115%);
  }

  .kicker {
    margin-bottom: 15px;
    font-size: 0.56rem;
    line-height: 1.5;
  }

  h1 {
    font-size: clamp(2.65rem, 13.4vw, 4rem);
  }

  .signal {
    margin: 24px 0 18px;
  }

  .intro {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .card-signoff {
    margin-top: 22px;
    padding-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .signal-runners {
    display: none;
  }
}
