:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #0f2d52;
  background: #f5f8f9;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  color: #f5f8f9;
  background: #081827;
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  min-height: 100vh;
  min-height: 100svh;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 48px);
  text-align: center;
}

.logo {
  display: block;
  width: min(100%, 440px);
  height: auto;
}

h1 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.025em;
  overflow-wrap: break-word;
}

.construction-title {
  display: block;
  font-size: clamp(1.125rem, 5vw, 2.5rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  white-space: nowrap;
  animation: reveal 900ms 150ms both;
}

.construction-label {
  color: #aebfd0;
}

.construction-emphasis {
  color: #69dfef;
  text-shadow: 0 0 36px #00b8d918;
}

:root[data-theme="dark"] body {
  background: radial-gradient(ellipse at 50% 45%, #00b8d90a, transparent 65%);
}

:root[data-theme="dark"] .page {
  gap: clamp(32px, 5vw, 48px);
}

:root[data-theme="dark"] .logo {
  animation: reveal 1100ms both;
}

.connection-animation {
  display: block;
  width: min(100%, 260px);
  height: auto;
  margin-top: -16px;
  animation: reveal 900ms 300ms both;
}

.connection-tracks,
.connection-signals {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.connection-tracks {
  stroke: #245264;
  stroke-width: 1.5;
}

.connection-signals {
  stroke: #69dfef;
  stroke-width: 2;
  filter: drop-shadow(0 0 3px #00b8d980);
}

.connection-signal {
  stroke-dasharray: 12 188;
  animation: signal-travel 4200ms linear infinite;
}

.signal-middle { animation-delay: -1400ms; }
.signal-lower { animation-delay: -2800ms; }

.connection-nodes {
  fill: #081827;
  stroke: #00b8d9;
  stroke-width: 1.5;
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes signal-travel {
  0% { stroke-dashoffset: 12; opacity: 0; }
  12%, 85% { opacity: 1; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  :root[data-theme="dark"] .logo,
  .construction-title,
  .connection-animation,
  .connection-signal {
    animation: none;
  }

  .connection-signal {
    display: none;
  }
}
