:root {
  color-scheme: dark;
  --bg: #0b0f19;
  --bg-deep: #070a11;
  --surface: rgba(20, 27, 42, 0.68);
  --surface-strong: rgba(24, 32, 49, 0.86);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(177, 191, 217, 0.14);
  --line-strong: rgba(177, 191, 217, 0.24);
  --text: #f1f4f8;
  --text-soft: #aab4c5;
  --text-muted: #718097;
  --amber: #ffb347;
  --amber-bright: #ffc96b;
  --amber-soft: rgba(255, 179, 71, 0.13);
  --green: #75d6a0;
  --red: #ff8b78;
  --blue: #86a9ff;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
  --radius-lg: 26px;
  --radius-md: 17px;
  --content-width: 1180px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(1px);
}
body::before {
  width: 36rem;
  height: 36rem;
  top: -19rem;
  right: -12rem;
  background: radial-gradient(
    circle,
    rgba(255, 175, 68, 0.14) 0,
    rgba(255, 175, 68, 0.025) 37%,
    transparent 68%
  );
}
body::after {
  width: 31rem;
  height: 31rem;
  bottom: -16rem;
  left: -11rem;
  background: radial-gradient(
    circle,
    rgba(85, 123, 255, 0.11) 0,
    transparent 67%
  );
}
a {
  color: inherit;
}
button {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--amber-bright);
  outline-offset: 4px;
}
.skip-link {
  position: fixed;
  z-index: 30;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: var(--bg);
  background: var(--amber-bright);
  border-radius: 10px;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 1.25rem;
  border-bottom: 1px solid rgba(177, 191, 217, 0.08);
  animation: enter 700ms ease both;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--amber-bright), #ed8f32);
  border-radius: 11px;
  box-shadow: 0 0 28px rgba(255, 179, 71, 0.22);
}
.brand-copy {
  display: grid;
  gap: 0.05rem;
}
.brand-name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand-caption {
  color: var(--text-muted);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  padding: 0.45rem 0.62rem;
  color: var(--amber-bright);
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.02em;
  background: var(--amber-soft);
  border: 1px solid rgba(255, 179, 71, 0.17);
  border-radius: 999px;
  white-space: nowrap;
}
.system-status[data-state="offline"] {
  color: var(--red);
  background: rgba(255, 139, 120, 0.1);
  border-color: rgba(255, 139, 120, 0.18);
}
.signal-dot,
.status-mini-dot,
.footer-pulse {
  display: inline-block;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.5);
  animation: pulse 2s ease-out infinite;
}
.signal-dot {
  width: 0.42rem;
  height: 0.42rem;
}
.system-status[data-state="offline"] .signal-dot {
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(255, 139, 120, 0.4);
}

main {
  padding: 3.75rem 0 2.5rem;
}
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: 32rem;
  padding: 1rem 0 4.6rem;
}
.hero-copy {
  max-width: 38rem;
  animation: enter 780ms 80ms ease both;
}
.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.eyebrow-line {
  width: 1.8rem;
  height: 1px;
  background: var(--amber);
  box-shadow: 0 0 13px var(--amber);
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.9rem, 11vw, 6.2rem);
  font-weight: 500;
  letter-spacing: -0.085em;
  line-height: 0.96;
}
h1 em {
  color: var(--amber-bright);
  font-style: normal;
}
.hero-lead {
  max-width: 35rem;
  margin-bottom: 2rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: fit-content;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.meta-item {
  display: grid;
  gap: 0.12rem;
}
.meta-key {
  color: var(--text-muted);
  font-size: 0.61rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.meta-value {
  font-size: 0.8rem;
  font-weight: 650;
}
.meta-value--accent {
  color: var(--amber-bright);
}
.meta-divider {
  width: 1px;
  height: 1.75rem;
  background: var(--line-strong);
}

.signal-card {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
  padding: 1.5rem;
  background: linear-gradient(
    145deg,
    rgba(27, 35, 55, 0.82),
    rgba(13, 19, 31, 0.72)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  isolation: isolate;
  animation: enter 800ms 200ms ease both;
}
.signal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.48;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.035) 45%,
    transparent 64%
  );
  background-size: 220% 100%;
  animation: sheen 8s ease-in-out infinite;
}
.signal-card-glow {
  position: absolute;
  z-index: -1;
  width: 17rem;
  height: 17rem;
  top: -5.5rem;
  right: -4rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 179, 71, 0.21),
    transparent 66%
  );
  filter: blur(2px);
}
.signal-orbit {
  position: absolute;
  border: 1px solid rgba(255, 179, 71, 0.14);
  border-radius: 50%;
  transform: rotate(-24deg);
}
.signal-orbit--outer {
  width: 19rem;
  height: 12rem;
  top: 1.75rem;
  left: 50%;
  translate: -50% 0;
  animation: orbit 13s linear infinite;
}
.signal-orbit--inner {
  width: 13rem;
  height: 8rem;
  top: 3.75rem;
  left: 50%;
  translate: -50% 0;
  border-color: rgba(255, 179, 71, 0.2);
  animation: orbit 9s linear reverse infinite;
}
.signal-core {
  position: absolute;
  top: 5.7rem;
  left: 50%;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  color: var(--bg);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  background: linear-gradient(145deg, #ffd789, #ed9138);
  border: 6px solid rgba(255, 210, 126, 0.12);
  border-radius: 50%;
  translate: -50% 0;
  box-shadow:
    0 0 0 1px rgba(255, 212, 132, 0.55),
    0 0 45px rgba(255, 179, 71, 0.36);
  animation: float 5s ease-in-out infinite;
}
.signal-card-content {
  position: absolute;
  right: 1.5rem;
  bottom: 1.45rem;
  left: 1.5rem;
}
.card-kicker {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--amber);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.status-mini-dot {
  width: 0.38rem;
  height: 0.38rem;
}
.signal-card h2 {
  margin: 0.6rem 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.signal-card-content p {
  max-width: 19rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
  font-size: 0.79rem;
  line-height: 1.55;
}
.progress-track {
  height: 0.28rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}
.progress-track span {
  display: block;
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), #ffe5a6);
  border-radius: inherit;
  box-shadow: 0 0 17px rgba(255, 179, 71, 0.58);
  animation: progress 4.5s ease-in-out infinite alternate;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.63rem;
}
.progress-label strong {
  color: var(--green);
  font-weight: 650;
}

.diagnostics-section,
.contact-panel {
  border-top: 1px solid var(--line);
}
.diagnostics-section {
  padding: 2.7rem 0 0;
  animation: enter 800ms 300ms ease both;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.3rem;
}
.section-kicker {
  margin-bottom: 0.45rem;
  font-size: 0.61rem;
}
.section-heading h2,
.contact-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  font-weight: 540;
  letter-spacing: -0.06em;
  line-height: 1.05;
}
.section-note {
  max-width: 15rem;
  margin-bottom: 0.15rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-align: right;
}
.diagnostic-grid {
  display: grid;
  gap: 0.75rem;
}
.diagnostic-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 7.4rem;
  padding: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}
.diagnostic-card:hover {
  background: var(--surface-strong);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.diagnostic-card[data-state="offline"] {
  border-color: rgba(255, 139, 120, 0.22);
}
.diagnostic-card[data-state="ready"] {
  border-color: rgba(117, 214, 160, 0.21);
}
.diagnostic-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(255, 179, 71, 0.15);
  border-radius: 12px;
}
.diagnostic-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}
.diagnostic-content {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}
.diagnostic-label {
  color: var(--text-muted);
  font-size: 0.63rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.diagnostic-content strong {
  font-size: 0.96rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.diagnostic-content p {
  overflow: hidden;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-indicator {
  flex: 0 0 auto;
  width: 0.52rem;
  height: 0.52rem;
  margin-left: auto;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 13px rgba(255, 179, 71, 0.65);
}
.diagnostic-card[data-state="offline"] .mini-indicator {
  background: var(--red);
  box-shadow: 0 0 13px rgba(255, 139, 120, 0.5);
}
.diagnostic-card[data-state="ready"] .mini-indicator {
  background: var(--green);
  box-shadow: 0 0 13px rgba(117, 214, 160, 0.48);
}
.diagnostics-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
}
.last-check {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.69rem;
}
.last-check time {
  color: var(--text-soft);
}
.verify-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 750;
  background: var(--amber-bright);
  border: 1px solid var(--amber-bright);
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}
.verify-button:hover {
  background: #ffd584;
  box-shadow: 0 8px 24px rgba(255, 179, 71, 0.22);
  transform: translateY(-1px);
}
.verify-button:active {
  transform: translateY(0);
}
.verify-button[aria-busy="true"] {
  opacity: 0.72;
  cursor: wait;
}
.verify-button svg {
  width: 1rem;
  height: 1rem;
}

.contact-panel {
  display: grid;
  gap: 1.2rem;
  margin-top: 4rem;
  padding: 2.4rem 0;
  animation: enter 800ms 400ms ease both;
}
.contact-panel > p {
  max-width: 26rem;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: 0.85rem;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.72rem 0.85rem;
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 650;
  text-decoration: none;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}
.social-link:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}
.social-link svg {
  width: 1rem;
  height: 1rem;
}
.external-arrow {
  color: var(--amber);
  font-size: 0.9rem;
  line-height: 1;
}
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1.7rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  border-top: 1px solid var(--line);
}
.site-footer p {
  margin: 0;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-soft);
  font-weight: 650;
}
.footer-pulse {
  width: 0.4rem;
  height: 0.4rem;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(117, 214, 160, 0.42);
}
.runtime-error {
  position: fixed;
  z-index: 20;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: min(calc(100% - 2rem), 28rem);
  padding: 0.82rem;
  color: #ffeae6;
  background: rgba(68, 28, 31, 0.92);
  border: 1px solid rgba(255, 139, 120, 0.32);
  border-radius: 13px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
  animation: enter 260ms ease both;
}
.runtime-error[hidden] {
  display: none;
}
.runtime-error-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  color: #401b1c;
  font-weight: 800;
  background: var(--red);
  border-radius: 50%;
}
.runtime-error-copy {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
}
.runtime-error-copy strong {
  font-size: 0.72rem;
}
.runtime-error-copy span {
  overflow: hidden;
  color: #e4b8b3;
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.runtime-error button {
  margin-left: auto;
  padding: 0.1rem 0.35rem;
  color: #f4bfba;
  font-size: 1.25rem;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.noscript-message {
  position: fixed;
  z-index: 20;
  inset: auto 1rem 1rem;
  padding: 0.8rem 1rem;
  color: var(--bg);
  font-size: 0.75rem;
  background: var(--amber-bright);
  border-radius: 10px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 currentColor;
  }
  60% {
    box-shadow: 0 0 0 7px transparent;
  }
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes orbit {
  to {
    transform: rotate(336deg);
  }
}
@keyframes sheen {
  0%,
  42% {
    background-position: 220% 0;
  }
  70%,
  100% {
    background-position: -40% 0;
  }
}
@keyframes progress {
  from {
    width: 57%;
  }
  to {
    width: 82%;
  }
}

@media (min-width: 680px) {
  .page-shell {
    width: min(100% - 4rem, var(--content-width));
  }
  .site-header {
    padding-top: 2rem;
  }
  main {
    padding-top: 5.4rem;
  }
  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(19rem, 0.72fr);
    gap: 4rem;
    padding-bottom: 6.8rem;
  }
  .diagnostic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .contact-panel {
    grid-template-columns: 1.1fr 1fr auto;
    align-items: end;
    gap: 2rem;
  }
}

@media (min-width: 980px) {
  .hero {
    gap: 8rem;
  }
  .signal-card {
    min-height: 24rem;
  }
  .contact-panel {
    gap: 4rem;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 1.4rem, var(--content-width));
  }
  .site-header {
    align-items: flex-start;
  }
  .system-status {
    max-width: 9.1rem;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }
  main {
    padding-top: 2.8rem;
  }
  .hero {
    min-height: 0;
    padding-bottom: 3.4rem;
  }
  .hero-copy h1 {
    max-width: 9.5ch;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }
  .section-note {
    max-width: 20rem;
    text-align: left;
  }
  .diagnostics-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .verify-button {
    width: 100%;
    justify-content: center;
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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