:root {
  --ink: #f6f7ff;
  --muted: #a8b0d4;
  --deep: #070914;
  --deep-2: #0e1328;
  --panel: rgba(14, 19, 40, 0.78);
  --panel-strong: rgba(20, 27, 56, 0.92);
  --line: rgba(160, 174, 255, 0.22);
  --cyan: #6ee7ff;
  --mint: #7bf7bd;
  --pink: #ff7ad9;
  --yellow: #ffd166;
  --blue: #7c9cff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(124, 156, 255, 0.28), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(255, 122, 217, 0.16), transparent 26%),
    radial-gradient(circle at 50% 92%, rgba(110, 231, 255, 0.14), transparent 34%),
    linear-gradient(180deg, #070914 0%, #0c1024 54%, #090b18 100%);
  overflow-x: hidden;
}

body.home-page {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(4, 6, 16, 0.28), rgba(4, 6, 16, 0.78) 72%, #050713 100%),
    radial-gradient(circle at 50% 18%, rgba(110, 231, 255, 0.12), transparent 34%),
    url("../img/home-starry-sky.webp") center top / cover fixed,
    #050713;
  transition:
    color 2100ms ease,
    background-color 2700ms ease;
}

body.home-page.home-sunrise {
  --ink: #071126;
  --muted: #243047;
  --panel: rgba(255, 251, 235, 0.92);
  --panel-strong: rgba(255, 248, 222, 0.97);
  --line: rgba(95, 112, 150, 0.24);
  --cyan: #0b7b91;
  --mint: #0e8b68;
  --pink: #a54882;
  --yellow: #b56a00;
  --blue: #3857ad;
  --shadow: 0 28px 90px rgba(111, 83, 34, 0.2);
  color: var(--ink);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.86) 0 1px, transparent 1.6px),
    radial-gradient(circle, rgba(123, 247, 189, 0.7) 0 1px, transparent 1.8px),
    linear-gradient(rgba(160, 174, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 174, 255, 0.04) 1px, transparent 1px);
  background-position:
    0 0,
    42px 28px,
    0 0,
    0 0;
  background-size:
    120px 120px,
    180px 180px,
    56px 56px,
    56px 56px;
  opacity: 0.62;
}

body.home-page::before {
  inset: auto clamp(22px, 8vw, 150px) auto auto;
  top: clamp(92px, 14vh, 170px);
  width: clamp(136px, 17vw, 258px);
  height: clamp(136px, 17vw, 258px);
  background: url("../img/home-sun-face.png") center / contain no-repeat;
  opacity: 0;
  filter:
    drop-shadow(0 0 20px rgba(255, 240, 184, 0.86))
    drop-shadow(0 0 74px rgba(255, 199, 91, 0.44))
    drop-shadow(0 0 132px rgba(255, 164, 72, 0.28))
    saturate(1.06);
  transform: translate3d(0, 42vh, 0) scale(0.76);
  transition:
    opacity 2700ms ease,
    transform 2700ms cubic-bezier(0.16, 0.84, 0.22, 1);
  pointer-events: none;
}

body.home-page.home-sunrise::before {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

body::after {
  position: fixed;
  inset: auto 0 0;
  z-index: -1;
  height: 42vh;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(7, 9, 20, 0.94));
  pointer-events: none;
}

body.home-page::after {
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 237, 190, 0.62), rgba(255, 199, 91, 0.28) 22%, transparent 48%),
    linear-gradient(115deg, rgba(255, 246, 213, 0.5), rgba(156, 216, 255, 0.26) 36%, rgba(35, 45, 91, 0.08) 68%, transparent 86%),
    linear-gradient(180deg, transparent 52%, rgba(255, 247, 220, 0.5));
  opacity: 0;
  transition: opacity 2700ms ease;
}

body.home-page.home-sunrise::after {
  opacity: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  display: none;
}

.topbar {
  --header-ink: #f7fbff;
  --header-muted: #c6d2ff;
  --header-line: rgba(172, 206, 255, 0.3);
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 10px 12px;
  overflow: hidden;
  color: var(--header-ink);
  isolation: isolate;
  border: 1px solid var(--header-line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 18%, rgba(110, 231, 255, 0.34), transparent 18%),
    radial-gradient(circle at 72% 16%, rgba(255, 122, 217, 0.26), transparent 22%),
    radial-gradient(circle at 91% 76%, rgba(123, 247, 189, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(3, 5, 18, 0.98), rgba(10, 13, 34, 0.96) 48%, rgba(4, 8, 22, 0.98));
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
}

.topbar::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 1px, transparent 1.7px),
    radial-gradient(circle, rgba(110, 231, 255, 0.78) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 209, 102, 0.78) 0 1.2px, transparent 2px);
  background-position:
    8px 14px,
    72px 38px,
    186px 18px;
  background-size:
    92px 54px,
    148px 72px,
    214px 82px;
  opacity: 0.55;
  pointer-events: none;
}

.home-page .topbar {
  position: sticky;
  top: 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--header-ink);
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(110, 231, 255, 0.48);
  border-radius: 10px;
  color: var(--deep);
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 22px rgba(110, 231, 255, 0.28);
}

.nav-links {
  gap: 6px;
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--header-line);
  border-radius: 13px;
  color: var(--header-ink);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  grid-area: 1 / 1;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: rotate(-45deg);
}

.nav-links a,
.chip,
.button,
.auth-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
}

.nav-links a {
  padding: 9px 14px;
  border-color: var(--header-line);
  color: var(--header-muted);
  font-weight: 500;
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-links a:hover,
.ghost-auth:hover,
.menu-toggle:hover {
  color: var(--header-ink);
  background: rgba(0, 0, 0, 0.38);
}

.chip:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.auth-button:hover {
  color: var(--header-ink);
  background: rgba(255, 255, 255, 0.08);
}

.auth-button:not(.ghost-auth):hover {
  color: #07101a;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.auth-button {
  padding: 8px 13px;
  border-color: var(--header-line);
  color: #07101a;
  font-weight: 500;
  cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.ghost-auth {
  color: var(--header-ink);
  background: rgba(0, 0, 0, 0.3);
}

.auth-user {
  max-width: 160px;
  color: var(--mint);
  font-size: 0.92rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 0.98fr);
  gap: 38px;
  align-items: start;
  padding: clamp(62px, 10vh, 104px) 0 26px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    0 0 28px rgba(110, 231, 255, 0.28),
    0 0 80px rgba(255, 122, 217, 0.18);
  transition:
    color 2100ms ease,
    text-shadow 2100ms ease;
}

h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 0.96;
  letter-spacing: 0;
  transition: color 2100ms ease;
}

h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 1.25rem;
  transition: color 2100ms ease;
}

.lead {
  width: min(650px, 100%);
  margin: 26px 0 0;
  color: #d4d9f7;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
  transition: color 2100ms ease;
}

.home-sunrise h1 {
  color: #fff8db;
  text-shadow:
    0 0 34px rgba(255, 205, 104, 0.56),
    0 14px 38px rgba(51, 42, 30, 0.32);
}

.home-sunrise h2,
.home-sunrise h3,
.home-sunrise .signal-card strong,
.home-sunrise .footer span:first-child {
  color: #071126;
  text-shadow: 0 1px 18px rgba(255, 248, 222, 0.76);
}

.home-sunrise .route-card p,
.home-sunrise .split-section p,
.home-sunrise .feed p,
.home-sunrise .signal-card small,
.home-sunrise .panel-head,
.home-sunrise .footer {
  color: #172033;
}

.home-sunrise .lead {
  color: #d4d9f7;
}

.home-sunrise .eyebrow {
  padding: 3px 7px;
  border-radius: 999px;
  color: #005e50;
  background: rgba(255, 248, 222, 0.72);
  text-shadow: none;
}

.home-sunrise .split-section p,
.home-sunrise .feed p {
  text-shadow: 0 1px 16px rgba(255, 248, 222, 0.82);
}

.home-sunrise .split-section h2 {
  color: #f6f7ff;
  text-shadow:
    0 0 18px rgba(246, 247, 255, 0.34),
    0 12px 34px rgba(4, 7, 18, 0.56);
}

.home-sunrise .split-section p {
  color: #d4d9f7;
  text-shadow: 0 8px 24px rgba(4, 7, 18, 0.42);
}

.home-sunrise time {
  color: #071126;
}

.theme-orbit {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: min(390px, 100%);
  min-height: 66px;
  margin-top: 26px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(160, 174, 255, 0.2);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)),
    rgba(6, 9, 24, 0.58);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  transition:
    color 2100ms ease,
    background 2100ms ease,
    border-color 2100ms ease,
    box-shadow 2100ms ease;
}

.theme-orbit-track {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 92px;
  height: 46px;
  border: 1px solid rgba(110, 231, 255, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at 24% 50%, rgba(255, 255, 255, 0.82) 0 2px, transparent 3px),
    radial-gradient(circle at 58% 32%, rgba(123, 247, 189, 0.72) 0 1px, transparent 2px),
    linear-gradient(135deg, rgba(6, 10, 28, 0.96), rgba(25, 34, 72, 0.86));
  overflow: hidden;
  transition:
    border-color 2100ms ease,
    background 2100ms ease;
}

.theme-orbit-star {
  position: absolute;
  top: 8px;
  left: 9px;
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 32%, #fff, #b9c8ff 42%, #5d72c8 76%);
  box-shadow: 0 0 20px rgba(160, 174, 255, 0.7);
  transition:
    transform 2280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    background 2280ms ease,
    box-shadow 2280ms ease;
}

.theme-orbit-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.theme-orbit-copy span {
  font-weight: 800;
}

.theme-orbit-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 2100ms ease;
}

.home-sunrise .theme-orbit {
  color: #172038;
  border-color: rgba(181, 106, 0, 0.28);
  background:
    linear-gradient(135deg, rgba(255, 253, 238, 0.86), rgba(255, 221, 151, 0.56)),
    rgba(255, 248, 222, 0.72);
  box-shadow:
    0 20px 54px rgba(181, 106, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.home-sunrise .theme-orbit-track {
  border-color: rgba(181, 106, 0, 0.3);
  background:
    radial-gradient(circle at 74% 42%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    linear-gradient(135deg, #ccecff, #ffe2a0 56%, #ffd07a);
}

.home-sunrise .theme-orbit-star {
  transform: translateX(45px);
  background: radial-gradient(circle at 34% 32%, #fff8d8, #ffd166 48%, #f28c28 78%);
  box-shadow:
    0 0 18px rgba(255, 209, 102, 0.9),
    0 0 44px rgba(255, 164, 72, 0.52);
}

.home-sunrise .theme-orbit-copy small {
  color: #5f5a47;
}

.hero-actions,
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 32px;
}

.button,
.chip {
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.primary {
  color: #07101a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow: 0 0 26px rgba(110, 231, 255, 0.24);
}

.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.home-sunrise .ghost {
  color: #172038;
  background: rgba(255, 248, 222, 0.72);
}

.cosmic-panel {
  position: relative;
  min-height: 340px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(18px);
  transition:
    background 2100ms ease,
    border-color 2100ms ease,
    box-shadow 2100ms ease;
}

.cosmic-panel::before {
  position: absolute;
  inset: 14px;
  content: "";
  border: 1px solid rgba(110, 231, 255, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(110, 231, 255, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(110, 231, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
  pointer-events: none;
}

.home-sunrise .cosmic-panel {
  border-color: rgba(40, 53, 86, 0.28);
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 209, 102, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 248, 222, 0.92) 48%, rgba(255, 252, 239, 0.96)),
    rgba(255, 248, 222, 0.96);
  box-shadow:
    0 28px 84px rgba(35, 43, 66, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.home-sunrise .cosmic-panel::before {
  border-color: rgba(11, 123, 145, 0.2);
  background:
    linear-gradient(90deg, rgba(11, 123, 145, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(11, 123, 145, 0.1) 1px, transparent 1px);
}

.hero-stats-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: auto;
}

.telemetry-orbit {
  position: relative;
  z-index: 1;
  height: 186px;
  border: 1px solid rgba(160, 174, 255, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(110, 231, 255, 0.22), transparent 18%),
    radial-gradient(circle at 78% 24%, rgba(255, 122, 217, 0.18), transparent 24%),
    radial-gradient(circle at 24% 76%, rgba(123, 247, 189, 0.14), transparent 26%),
    linear-gradient(145deg, rgba(124, 156, 255, 0.14), rgba(255, 122, 217, 0.08));
  overflow: hidden;
}

.telemetry-orbit::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: rotate(-12deg) scaleX(1.32);
}

.orbit-ring,
.orbit-core,
.orbit-node {
  position: absolute;
  display: grid;
  place-items: center;
}

.orbit-ring {
  left: 50%;
  top: 50%;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg) scaleX(1.42);
}

.ring-one {
  width: min(54%, 290px);
  height: 132px;
}

.ring-two {
  width: min(76%, 410px);
  height: 188px;
  border-color: rgba(255, 209, 102, 0.18);
}

.orbit-core {
  left: 50%;
  top: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(110, 231, 255, 0.34);
  border-radius: 50%;
  color: #07101a;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
  box-shadow:
    0 0 34px rgba(110, 231, 255, 0.42),
    0 0 88px rgba(123, 247, 189, 0.2);
  transform: translate(-50%, -50%);
}

.orbit-node {
  min-width: 78px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f6f7ff;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  background: rgba(7, 9, 20, 0.66);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.orbit-users {
  left: 12%;
  top: 27%;
  border-color: rgba(110, 231, 255, 0.5);
}

.orbit-visitors {
  right: 10%;
  top: 22%;
  border-color: rgba(123, 247, 189, 0.5);
}

.orbit-projects {
  left: 50%;
  bottom: 12%;
  border-color: rgba(255, 209, 102, 0.5);
  transform: translateX(-50%);
}

.hero-stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 13px;
}

.hero-stat-card strong {
  max-width: 100%;
  letter-spacing: 0;
  white-space: nowrap;
}

.hero-stat-card span {
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.home-sunrise .telemetry-orbit {
  border-color: rgba(11, 123, 145, 0.28);
  background:
    radial-gradient(circle at 50% 50%, rgba(11, 123, 145, 0.24), transparent 18%),
    radial-gradient(circle at 76% 24%, rgba(255, 209, 102, 0.46), transparent 24%),
    linear-gradient(145deg, rgba(172, 226, 255, 0.86), rgba(255, 238, 176, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -30px 60px rgba(11, 123, 145, 0.1);
}

.home-sunrise .telemetry-orbit::before {
  border-color: rgba(7, 17, 38, 0.16);
}

.home-sunrise .orbit-ring {
  border-color: rgba(11, 123, 145, 0.24);
}

.home-sunrise .ring-two {
  border-color: rgba(181, 106, 0, 0.24);
}

.home-sunrise .orbit-node {
  color: #071126;
  border-color: rgba(7, 17, 38, 0.22);
  background: rgba(255, 252, 239, 0.82);
}

.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid rgba(123, 247, 189, 0.32);
  border-radius: 999px;
  color: var(--mint);
  background: rgba(123, 247, 189, 0.08);
}

.signal-map {
  position: relative;
  z-index: 1;
  height: 280px;
  margin: 24px 0 18px;
  border: 1px solid rgba(160, 174, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 50%, rgba(110, 231, 255, 0.18), transparent 18%),
    linear-gradient(145deg, rgba(124, 156, 255, 0.14), rgba(255, 122, 217, 0.08));
  overflow: hidden;
  transition:
    background 2100ms ease,
    border-color 2100ms ease;
}

.home-sunrise .signal-map {
  border-color: rgba(11, 123, 145, 0.28);
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 209, 102, 0.58), transparent 20%),
    radial-gradient(circle at 28% 36%, rgba(110, 231, 255, 0.5), transparent 28%),
    linear-gradient(145deg, rgba(172, 226, 255, 0.86), rgba(255, 238, 176, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    inset 0 -30px 60px rgba(11, 123, 145, 0.1);
}

.signal-map::before {
  position: absolute;
  inset: 34px;
  content: "";
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  transform: skewY(-5deg);
}

.scan-line {
  position: absolute;
  inset: 0 auto 0 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.2), transparent);
  animation: scan 5s ease-in-out infinite;
}

.star-node {
  position: absolute;
  display: block;
  width: 13px;
  height: 13px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(110, 231, 255, 0.72);
}

.node-one {
  left: 18%;
  top: 32%;
}

.node-two {
  left: 42%;
  top: 58%;
  background: var(--mint);
}

.node-three {
  left: 68%;
  top: 28%;
  background: var(--pink);
}

.node-four {
  left: 78%;
  top: 70%;
  background: var(--yellow);
}

.star-path {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform-origin: left center;
}

.path-one {
  left: 20%;
  top: 36%;
  width: 30%;
  rotate: 28deg;
}

.path-two {
  left: 44%;
  top: 58%;
  width: 30%;
  rotate: -36deg;
}

.path-three {
  left: 69%;
  top: 32%;
  width: 26%;
  rotate: 62deg;
}

.signal-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.signal-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  padding: 13px 14px;
  border: 1px solid rgba(160, 174, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  transition:
    color 2100ms ease,
    background 2100ms ease,
    border-color 2100ms ease;
}

.signal-card span {
  grid-row: span 2;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 900;
}

.signal-card strong {
  color: #fff;
}

.signal-card small {
  color: var(--muted);
  line-height: 1.35;
}

.signal-card.active {
  border-color: rgba(110, 231, 255, 0.42);
  background: rgba(110, 231, 255, 0.1);
}

.home-sunrise .signal-card {
  border-color: rgba(40, 53, 86, 0.2);
  background: rgba(255, 252, 239, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.home-sunrise .signal-card.active {
  border-color: rgba(0, 137, 165, 0.58);
  background:
    linear-gradient(90deg, rgba(0, 137, 165, 0.14), transparent 38%),
    rgba(214, 246, 255, 0.96);
  box-shadow:
    0 14px 34px rgba(0, 137, 165, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.section,
.split-section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

#routes {
  padding-top: 34px;
}

.section-title {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 26px;
}

.filter-row {
  margin-bottom: 18px;
}

.chip {
  padding: 9px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.home-sunrise .chip {
  color: #172033;
  background: rgba(255, 248, 222, 0.82);
}

.chip.active {
  color: #07101a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

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

.route-card {
  display: block;
  min-height: 250px;
  padding: 16px;
  border: 1px solid rgba(160, 174, 255, 0.18);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  transition:
    transform 180ms ease,
    opacity 180ms ease,
    background 2100ms ease,
    border-color 2100ms ease;
}

.route-card-link {
  cursor: pointer;
}

.route-card-link:focus-visible {
  border-color: rgba(110, 231, 255, 0.62);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.18),
    0 0 0 4px rgba(110, 231, 255, 0.16);
  outline: 0;
}

.home-sunrise .route-card-link:focus-visible {
  border-color: rgba(11, 123, 145, 0.52);
  box-shadow:
    0 18px 48px rgba(111, 83, 34, 0.16),
    0 0 0 4px rgba(11, 123, 145, 0.14);
}

.home-sunrise .route-card {
  border-color: rgba(95, 112, 150, 0.2);
  background: var(--panel);
}

.route-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 18px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
}

.route-card:hover {
  transform: translateY(-4px);
  border-color: rgba(110, 231, 255, 0.34);
  background: var(--panel-strong);
}

.home-sunrise .route-card:hover {
  border-color: rgba(11, 123, 145, 0.34);
  background: var(--panel-strong);
}

.route-card.hidden {
  display: none;
}

.card-code {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: #07101a;
  font-weight: 900;
  background: var(--yellow);
}

.route-card:nth-child(3) .card-code {
  background: var(--mint);
}

.route-card:nth-child(4) .card-code {
  background: var(--blue);
}

.route-card p,
.split-section p,
.feed p {
  color: var(--muted);
  line-height: 1.55;
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.route-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 999px;
  color: var(--cyan);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  background: rgba(110, 231, 255, 0.08);
}

.home-sunrise .route-tags span {
  color: #006f82;
  border-color: rgba(11, 123, 145, 0.22);
  background: rgba(206, 241, 255, 0.62);
}

.route-card a,
.route-card-cta {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-weight: 900;
}

.stats-section {
  position: relative;
}

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

.stat-card {
  position: relative;
  min-height: 138px;
  padding: 20px;
  border: 1px solid rgba(160, 174, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(110, 231, 255, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
    var(--panel);
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.stat-card::before {
  position: absolute;
  inset: 0;
  content: "";
  border-left: 4px solid var(--cyan);
  opacity: 0.86;
  pointer-events: none;
}

.stat-card:nth-child(2)::before {
  border-left-color: var(--mint);
}

.stat-card:nth-child(3)::before {
  border-left-color: var(--yellow);
}

.stat-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 900;
  line-height: 0.95;
}

.hero-stat-card strong {
  font-size: clamp(1.35rem, 2.15vw, 2.05rem);
}

.stat-card p {
  max-width: 240px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.home-sunrise .stat-card {
  border-color: rgba(40, 53, 86, 0.22);
  background:
    radial-gradient(circle at 90% 16%, rgba(255, 209, 102, 0.34), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 222, 0.9)),
    rgba(255, 252, 239, 0.94);
  box-shadow:
    0 22px 58px rgba(35, 43, 66, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.home-sunrise .stat-card span {
  color: #006f82;
}

.home-sunrise .stat-card strong {
  color: #071126;
  text-shadow: 0 1px 18px rgba(255, 248, 222, 0.72);
}

.home-sunrise .stat-card p {
  color: #243047;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.mini-console {
  padding: 22px;
  border: 1px solid rgba(110, 231, 255, 0.24);
  border-radius: 20px;
  color: #eff7ff;
  background:
    linear-gradient(rgba(110, 231, 255, 0.06) 1px, transparent 1px),
    #090d1b;
  background-size: 100% 44px;
  box-shadow: var(--shadow);
  font-family: "SFMono-Regular", Consolas, monospace;
  transition:
    color 2100ms ease,
    background 2100ms ease,
    border-color 2100ms ease,
    box-shadow 2100ms ease;
}

.home-sunrise .mini-console {
  color: #172038;
  border-color: rgba(95, 112, 150, 0.2);
  background:
    linear-gradient(rgba(11, 123, 145, 0.08) 1px, transparent 1px),
    rgba(255, 248, 222, 0.82);
  background-size: 100% 44px;
}

.home-sunrise .console-line,
.home-sunrise .console-result {
  border-bottom-color: rgba(95, 112, 150, 0.2);
}

.console-line,
.console-result {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.console-line span {
  color: var(--yellow);
}

.console-result {
  color: var(--mint);
  border-bottom: 0;
}

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

.feed article {
  padding: 18px;
  border: 1px solid rgba(160, 174, 255, 0.16);
  border-left: 4px solid var(--pink);
  border-radius: 0 16px 16px 0;
  background: rgba(255, 255, 255, 0.06);
  transition:
    background 2100ms ease,
    border-color 2100ms ease;
}

.home-sunrise .feed article {
  border-color: rgba(95, 112, 150, 0.2);
  background: rgba(255, 251, 235, 0.72);
}

.feed article:nth-child(2) {
  border-left-color: var(--mint);
}

.feed article:nth-child(3) {
  border-left-color: var(--cyan);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.auth-modal.open {
  display: flex;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 14, 0.72);
  backdrop-filter: blur(12px);
}

.auth-dialog {
  --auth-ink: #f6f7ff;
  --auth-muted: #a8b0d4;
  --auth-field: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: calc(100dvh - 36px);
  padding: 22px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(160, 174, 255, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 40%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(160, 174, 255, 0.24);
  border-radius: 50%;
  color: var(--auth-ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.auth-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(160, 174, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--auth-muted);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  background: transparent;
}

.auth-tab.active {
  color: #07101a;
  background: linear-gradient(135deg, var(--cyan), var(--mint));
}

.auth-dialog h2 {
  margin-top: 24px;
  color: var(--auth-ink);
  font-size: 2.2rem;
}

.auth-step {
  margin: 10px 0 20px;
  color: var(--auth-muted);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
  color: var(--auth-muted);
  font-weight: 900;
}

.auth-field input {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(160, 174, 255, 0.24);
  border-radius: 14px;
  color: var(--auth-ink);
  caret-color: var(--cyan);
  font: inherit;
  font-size: 16px;
  background: var(--auth-field);
  outline: 0;
}

.auth-field input::placeholder {
  color: rgba(246, 247, 255, 0.48);
}

.auth-field input:focus {
  border-color: rgba(110, 231, 255, 0.62);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.12);
}

.pin-entry {
  display: grid;
  gap: 14px;
}

.pin-units {
  display: grid;
  gap: 10px;
}

.pin-unit {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(110, 231, 255, 0.24);
  border-radius: 18px;
  color: var(--auth-ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  touch-action: manipulation;
  user-select: none;
  transition:
    border-color 180ms ease,
    opacity 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.pin-unit:focus,
.pin-unit.active {
  border-color: rgba(110, 231, 255, 0.68);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.12);
  outline: 0;
}

.pin-unit.complete {
  border-color: rgba(123, 247, 189, 0.42);
}

.pin-unit.collapsed {
  grid-template-columns: auto 1fr;
  align-items: center;
  opacity: 0.72;
}

.pin-unit.collapsed:hover {
  opacity: 1;
}

.pin-unit-title {
  grid-column: 1 / -1;
  color: var(--auth-muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: left;
}

.pin-unit.collapsed .pin-unit-title {
  grid-column: auto;
  min-width: 72px;
}

.pin-display {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.pin-unit.collapsed .pin-display {
  grid-column: auto;
}

.pin-display span {
  display: grid;
  min-height: 48px;
  place-items: center;
  border: 1px solid rgba(160, 174, 255, 0.18);
  border-radius: 14px;
  color: var(--mint);
  font-size: 1.5rem;
  font-weight: 900;
  background: rgba(7, 9, 20, 0.42);
}

.pin-unit.collapsed .pin-display span {
  min-height: 34px;
  border-radius: 10px;
  font-size: 1rem;
}

.pin-display span.filled {
  border-color: rgba(123, 247, 189, 0.5);
  background: rgba(123, 247, 189, 0.1);
  box-shadow: inset 0 0 18px rgba(123, 247, 189, 0.08);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pin-pad button {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(160, 174, 255, 0.22);
  border-radius: 18px;
  color: var(--auth-ink);
  font: inherit;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.06);
  touch-action: manipulation;
  user-select: none;
}

.pin-pad button:hover {
  border-color: rgba(110, 231, 255, 0.46);
  background: rgba(110, 231, 255, 0.12);
}

.pin-pad button:active {
  transform: translateY(1px);
}

.pin-pad button:focus {
  border-color: rgba(110, 231, 255, 0.68);
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.12);
  outline: 0;
}

.auth-message {
  min-height: 22px;
  margin: 0;
  color: var(--auth-muted);
  font-weight: 800;
}

.auth-message[data-type="error"] {
  color: #ff9aa9;
}

.auth-message[data-type="warning"] {
  color: var(--yellow);
}

.auth-submit {
  position: sticky;
  bottom: 0;
  width: 100%;
  box-shadow: 0 -12px 22px rgba(14, 19, 40, 0.72);
}

.auth-submit:disabled {
  cursor: progress;
  opacity: 0.7;
}

time {
  color: #fff;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer span:first-child {
  color: #fff;
  font-weight: 900;
}

@keyframes scan {
  0%,
  100% {
    translate: -50% 0;
    opacity: 0;
  }
  35%,
  65% {
    opacity: 1;
  }
  50% {
    translate: 210% 0;
  }
}

@media (max-width: 880px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    align-items: center;
    padding: 9px;
  }

  .topbar-actions {
    grid-row: 1;
    grid-column: 2;
    justify-content: flex-end;
    min-width: 0;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .nav-links {
    grid-row: 2;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
      max-height 220ms ease,
      opacity 160ms ease;
  }

  .menu-open .nav-links {
    max-height: 72px;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    display: grid;
    min-width: 0;
    place-items: center;
    padding: 10px 8px;
  }

  .hero,
  .section-title,
  .split-section,
  .stats-grid,
  .feed {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .cosmic-panel {
    min-height: auto;
  }

  .telemetry-orbit {
    height: 184px;
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  body.home-page {
    background-attachment: scroll, scroll, scroll, scroll;
  }

  main,
  .topbar,
  .footer {
    width: min(100% - 22px, 1120px);
  }

  .nav-links {
    width: 100%;
  }

  .auth-actions {
    min-width: 0;
  }

  .auth-button {
    flex: 1;
  }

  .nav-links a {
    text-align: center;
  }

  .auth-modal {
    align-items: flex-start;
    padding: 8px;
  }

  .auth-dialog {
    width: 100%;
    max-height: calc(100dvh - 16px);
    padding: 14px;
    border-radius: 18px;
  }

  .auth-close {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .auth-tabs {
    max-width: calc(100% - 42px);
  }

  .auth-tab {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 0.92rem;
  }

  .auth-dialog h2 {
    margin: 14px 0 0;
    font-size: 1.55rem;
  }

  .auth-step {
    margin: 6px 0 10px;
    font-size: 0.92rem;
  }

  .auth-form,
  .pin-entry {
    gap: 9px;
  }

  .auth-field {
    gap: 5px;
    font-size: 0.88rem;
  }

  .auth-field input {
    min-height: 40px;
    padding: 9px 11px;
    border-radius: 12px;
  }

  .pin-units {
    gap: 7px;
  }

  .pin-unit {
    gap: 5px;
    padding: 7px;
    border-radius: 14px;
  }

  .pin-unit-title {
    font-size: 0.76rem;
  }

  .pin-unit.collapsed .pin-unit-title {
    min-width: 58px;
  }

  .pin-display {
    gap: 6px;
  }

  .pin-display span {
    min-height: 34px;
    border-radius: 10px;
    font-size: 1.12rem;
  }

  .pin-unit.collapsed .pin-display span {
    min-height: 28px;
    font-size: 0.88rem;
  }

  .pin-pad {
    gap: 7px;
  }

  .pin-pad button {
    min-height: 44px;
    border-radius: 13px;
    font-size: 1.12rem;
  }

  .auth-message {
    min-height: 18px;
    font-size: 0.86rem;
  }

  .auth-submit {
    min-height: 42px;
    margin-top: 0;
    padding: 9px 12px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 3.1rem);
  }

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

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-stat-card {
    min-height: 82px;
  }

  .telemetry-orbit {
    height: 172px;
  }

  .orbit-node {
    min-width: 68px;
    font-size: 0.66rem;
  }

  .signal-map {
    height: 230px;
  }

  .footer {
    flex-direction: column;
  }
}
