:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --bg: #f2f5fa;
  --surface: #ffffff;
  --accent: #3157e9;
  --accent-soft: #eef2ff;
  --line: #e4e8ef;
  --page-pad: clamp(1.25rem, 4vw, 4.75rem);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 20rem;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 4%, rgba(49, 87, 233, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 90%, rgba(77, 197, 255, 0.12), transparent 25rem),
    var(--bg);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100svh - 2rem);
  margin: 1rem;
  padding: 0 var(--page-pad);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 1.5rem 5rem rgba(30, 46, 85, 0.1);
}

.site-header,
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 6.5rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.wordmark-dot,
.status span {
  display: block;
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.35rem var(--accent-soft);
}

.status {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin: 0;
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  background: #f8f9fc;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.status > span:first-child {
  animation: pulse 2s ease-in-out infinite;
}

.status > span:last-child {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero {
  align-self: center;
  width: min(100%, 69rem);
  padding: clamp(4rem, 9vh, 8rem) 0;
}

.eyebrow {
  margin: 0 0 clamp(1.5rem, 4vh, 3.4rem);
  display: inline-flex;
  margin-bottom: clamp(1.5rem, 4vh, 3.4rem);
  padding: 0.65rem 0.9rem;
  color: var(--accent);
  font: 700 0.76rem/1.4 ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.19em;
  background: var(--accent-soft);
  border-radius: 999px;
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.55rem, 9.8vw, 8.7rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.title-first {
  color: var(--ink);
}

.title-accent {
  color: var(--accent);
}

.intro {
  max-width: 32rem;
  margin: clamp(2rem, 5vh, 3.6rem) 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.signal {
  width: min(100%, 31rem);
  margin-top: clamp(2.5rem, 7vh, 5rem);
  padding: 1.15rem 1.25rem 1rem;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  box-shadow: 0 0.8rem 2.4rem rgba(31, 50, 91, 0.06);
}

.signal-track {
  height: 0.42rem;
  overflow: hidden;
  background: #e9edf5;
  border-radius: 999px;
}

.signal-track span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  box-shadow: 0 0 1.6rem rgba(49, 87, 233, 0.28);
  animation: scan 3.8s ease-in-out infinite alternate;
}

.signal-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  color: var(--muted);
  font: 600 0.72rem/1.4 ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.12em;
}

footer {
  min-height: 5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

.ambient {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(49, 87, 233, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  top: 15%;
  right: -22rem;
  width: 54rem;
  height: 54rem;
  box-shadow:
    0 0 0 5rem rgba(49, 87, 233, 0.018),
    0 0 0 11rem rgba(49, 87, 233, 0.012);
}

.ambient-two {
  right: 14%;
  bottom: 18%;
  width: 0.55rem;
  height: 0.55rem;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 4rem 1.4rem rgba(49, 87, 233, 0.16);
}

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.78);
  }
}

@keyframes scan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(164%);
  }
}

@media (max-width: 42rem) {
  .page-shell {
    min-height: calc(100svh - 1rem);
    margin: 0.5rem;
    border-radius: 1.25rem;
  }

  .site-header {
    min-height: 5.25rem;
  }

  .status {
    font-size: 0;
  }

  .status {
    padding: 0.65rem;
  }

  .status > span:first-child {
    width: 0.65rem;
    height: 0.65rem;
  }

  .hero {
    padding: 4rem 0 5rem;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.3rem);
    letter-spacing: -0.065em;
  }

  .intro br {
    display: none;
  }

  .signal-meta {
    font-size: 0.65rem;
  }

  .ambient-one {
    right: -32rem;
  }
}

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