@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/syne-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/syne-600-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syne-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Syne;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/syne-700-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plex-mono-400-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #06101c;
  --panel: #081526;
  --text: #d6f4ff;
  --muted: #7fa3b8;
  --cyan: #3ec8ff;
  --green: #7dffce;
  --line: rgba(62, 200, 255, 0.28);
  --wrap: 1040px;
  --mx: 50%;
  --my: 20%;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --display: Syne, var(--mono);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--mono);
  background: #03080f;
  color: var(--text);
  line-height: 1.55;
}

::selection {
  background: var(--cyan);
  color: #06101c;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
.btn:focus-visible {
  outline: 1px solid var(--cyan);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 50;
  padding: 0.4rem 0.8rem;
  background: var(--cyan);
  color: #06101c;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(26rem circle at var(--mx) var(--my), rgba(62, 200, 255, 0.12), transparent 55%);
}

.scan {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 2px, rgba(0, 0, 0, 0.14) 2px 3px),
    linear-gradient(180deg, rgba(62, 200, 255, 0.05), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.35));
  mix-blend-mode: multiply;
  animation: scan-move 9s linear infinite;
}

.term {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow:
    0 0 0 1px #03080f,
    0 0 50px rgba(62, 200, 255, 0.08),
    inset 0 0 80px rgba(0, 0, 0, 0.28);
}

.titlebar,
.statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #050d18;
  border-bottom: 1px solid var(--line);
}

.statusbar {
  margin-top: auto;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.statusbar p {
  margin: 0;
}

.win-dots {
  display: flex;
  gap: 0.35rem;
}

.win-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1b4ed8;
}

.win-dots i:first-child {
  background: #3ec8ff;
}

.win-dots i:last-child {
  background: #7dffce;
}

.host {
  color: var(--cyan);
}

.clock,
.uptime {
  font-variant-numeric: tabular-nums;
  color: var(--green);
}

html.is-locked .term {
  opacity: 0;
  transform: translateY(28px) scale(0.96);
  filter: blur(10px);
}

html.is-ready .term {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.login {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background:
    radial-gradient(28rem circle at 50% 28%, rgba(62, 200, 255, 0.16), transparent 58%),
    #03080f;
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

html.is-ready .login {
  opacity: 0;
  transform: scale(1.06);
  filter: blur(16px);
  pointer-events: none;
}

.login[hidden] {
  display: none;
}

.login-card {
  width: min(22rem, 100%);
  padding: 1.6rem 1.5rem 1.3rem;
  border: 1px solid var(--line);
  background: rgba(8, 21, 38, 0.88);
  box-shadow: 0 0 40px rgba(62, 200, 255, 0.12), inset 0 0 30px rgba(0, 0, 0, 0.25);
}

.login-card img {
  display: block;
  width: min(220px, 70%);
  margin: 0 auto 1.1rem;
  filter: drop-shadow(0 0 16px rgba(62, 200, 255, 0.3));
}

.login-kicker,
.login-status,
.login-hint,
.login-card label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-kicker {
  margin: 0 0 1.1rem;
  text-align: center;
  color: var(--cyan);
}

.login-card label {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.login-field {
  min-height: 2.15rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: none;
  font-size: 0.9rem;
}

.login-track {
  height: 3px;
  margin: 0.9rem 0 0.7rem;
  background: rgba(62, 200, 255, 0.15);
  overflow: hidden;
}

.login-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #3ec8ff, #7dffce);
  transition: width 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.login-track.is-full i {
  width: 100%;
}

.login-status {
  margin: 0;
  color: var(--green);
}

.login-hint {
  margin: 0.55rem 0 0;
  color: var(--muted);
  opacity: 0.7;
}

.wrap {
  width: min(var(--wrap), calc(100% - 2.4rem));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px dashed var(--line);
}

.header-inner,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  min-height: 4.2rem;
}

.brand img {
  display: block;
  width: 128px;
  height: auto;
  filter: drop-shadow(0 0 10px rgba(62, 200, 255, 0.25));
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
}

.nav a {
  color: var(--text);
  font-size: 0.8rem;
  text-decoration: none;
}

.nav a::before {
  content: "./";
  color: var(--cyan);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--cyan);
  text-decoration: none;
}

.prompt-inline {
  margin: 0;
}

.ok-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.4rem;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.prompt .user {
  color: var(--cyan);
}

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1em;
  margin-left: 0.12em;
  background: var(--cyan);
  vertical-align: -0.12em;
  animation: blink 1.05s steps(1) infinite;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 0 2.8rem;
}

.circuit {
  position: absolute;
  inset: 6% -6% auto;
  width: 112%;
  height: 70%;
  stroke: rgba(62, 200, 255, 0.2);
  stroke-width: 1.1;
  stroke-dasharray: 5 10;
  animation: circuit 22s linear infinite;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 0.85rem;
}

.hero-logo {
  width: min(340px, 76vw);
  margin: 0.2rem 0;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

h1 {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.85rem, 5.2vw, 3.4rem);
  text-shadow: 0 0 18px rgba(62, 200, 255, 0.25);
}

h2 {
  margin: 0 0 1.1rem;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
}

.hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--cyan);
  background: rgba(62, 200, 255, 0.12);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

button.btn {
  appearance: none;
}

.btn:hover {
  text-decoration: none;
  background: rgba(62, 200, 255, 0.22);
  box-shadow: 0 0 16px rgba(62, 200, 255, 0.25);
}

.btn-ghost {
  background: transparent;
}

.section {
  padding: 2.2rem 0 2.6rem;
  scroll-margin-top: 1rem;
  border-top: 1px dashed var(--line);
}

.protocol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.protocol li {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(62, 200, 255, 0.12);
}

.idx {
  color: var(--green);
}

.protocol p,
.channel p,
.legal p {
  margin: 0;
  color: var(--muted);
}

.channel {
  padding: 1rem 0 0;
}

.channel header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem 1rem;
  margin-bottom: 0.6rem;
}

.channel h2 {
  margin: 0;
}

.ch-id {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0 auto;
  color: var(--green);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.live i {
  width: 7px;
  height: 7px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: blink 1.6s steps(1) infinite;
}

.section h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.4rem;
}

.contact-form {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form .opt {
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  opacity: 0.75;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: rgba(3, 8, 15, 0.55);
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
  line-height: 1.5;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 1px solid var(--cyan);
  outline-offset: 2px;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 0.2rem;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.consent input {
  width: auto;
  margin-top: 0.2rem;
}

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.form-msg {
  margin: 0;
  color: var(--green);
}

.form-errors {
  margin: 0;
  padding-left: 1.1rem;
  color: #ff9a9a;
}

.form-errors li + li {
  margin-top: 0.25rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.spec-wrap {
  display: grid;
  gap: 1.2rem;
}

.spec {
  margin: 0;
}

.spec > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 0.6rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(62, 200, 255, 0.12);
}

.spec dt {
  margin: 0;
  color: var(--cyan);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
}

.footer-links {
  justify-content: flex-end;
  min-height: 0;
}

.legal h1 {
  max-width: none;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.legal h2 {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
}

.legal .lead {
  margin-bottom: 1rem;
}

.js .reveal {
  opacity: 0;
  transform: translateY(12px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes circuit {
  to {
    stroke-dashoffset: -320;
  }
}

@keyframes scan-move {
  to {
    background-position: 0 12px, 0 0;
  }
}

@media (max-width: 800px) {
  .term {
    margin: 0;
    border-left: 0;
    border-right: 0;
  }

  .spec > div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .live {
    margin-left: 0;
  }

  .titlebar span:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .login {
    display: none;
  }

  html.is-locked .term {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
