:root {
  color-scheme: dark;
  --bg: #06100f;
  --bg-deep: #030908;
  --panel: rgba(11, 25, 24, 0.76);
  --panel-strong: rgba(13, 31, 29, 0.92);
  --line: rgba(174, 218, 204, 0.14);
  --line-bright: rgba(132, 255, 213, 0.38);
  --text: #f0f5ee;
  --muted: #8fa19b;
  --faint: #64746f;
  --signal: #7cf7cc;
  --signal-bright: #b7ffe6;
  --signal-dark: #164b3d;
  --error: #ff8d7d;
  --error-bg: rgba(255, 113, 95, 0.08);
  --radius: 24px;
  --mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--bg-deep);
}

body {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  flex-direction: column;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 18%, rgba(49, 128, 105, 0.17), transparent 33%),
    radial-gradient(circle at 86% 74%, rgba(43, 105, 88, 0.12), transparent 30%),
    linear-gradient(145deg, #071210 0%, #030807 100%);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(131, 203, 180, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(131, 203, 180, 0.055) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(to right, #000, rgba(0, 0, 0, 0.35));
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.ambient__glow {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.11;
  background: var(--signal);
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient__glow--one {
  top: -18rem;
  left: 12%;
}

.ambient__glow--two {
  right: -16rem;
  bottom: -20rem;
  animation-delay: -5s;
}

.ambient__grain {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 0.5px, transparent 0.5px);
  background-size: 5px 5px;
}

.shell {
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  width: min(1380px, calc(100% - 64px));
  min-height: calc(100vh - 56px);
  min-height: calc(100svh - 56px);
  margin: 0 auto;
  padding: 38px 0 26px;
  gap: clamp(56px, 7vw, 120px);
}

.intro {
  display: flex;
  position: relative;
  min-height: calc(100vh - 120px);
  min-height: calc(100svh - 120px);
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 0 8px;
}

.brand {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 31px;
  height: 31px;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--line-bright);
  border-radius: 9px;
  background: rgba(124, 247, 204, 0.04);
  box-shadow: inset 0 0 12px rgba(124, 247, 204, 0.08);
}

.brand__mark span {
  border-radius: 2px;
  background: var(--signal);
  opacity: 0.78;
}

.brand__mark span:nth-child(2),
.brand__mark span:nth-child(3) {
  opacity: 0.25;
}

.brand__name {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.brand__name b {
  margin: 0 3px;
  color: var(--signal);
  font-weight: 400;
}

.intro__copy {
  max-width: 740px;
  margin: clamp(52px, 10vh, 120px) 0 40px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(124, 247, 204, 0.48);
  animation: pulse 2.4s infinite;
}

h1,
h2,
p {
  margin: 0;
}

.intro h1 {
  max-width: 820px;
  font-size: clamp(3rem, 5.65vw, 6.7rem);
  font-weight: 500;
  line-height: 0.91;
  letter-spacing: -0.065em;
}

.intro h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(226, 244, 237, 0.42);
}

.intro__copy > p {
  max-width: 500px;
  margin-top: 32px;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.7;
}

.signal {
  display: grid;
  position: relative;
  width: min(620px, 94%);
  height: 74px;
  grid-template-columns: auto 1fr 1fr 1fr 76px 1fr auto;
  align-items: center;
  margin: auto 0 clamp(42px, 7vh, 78px);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.signal__label--input {
  padding-right: 13px;
}

.signal__label--output {
  padding-left: 13px;
  color: var(--signal);
}

.signal__track {
  position: relative;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 247, 204, 0.1), rgba(124, 247, 204, 0.55));
}

.signal__track i {
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal-bright);
  box-shadow: 0 0 12px var(--signal);
  animation: travel 2.8s linear infinite;
}

.signal__track--two i {
  animation-delay: -1s;
}

.signal__track--three i {
  animation-delay: -2s;
}

.signal__track--four i {
  animation-duration: 1.9s;
}

.signal__core {
  display: grid;
  position: relative;
  width: 62px;
  height: 62px;
  place-items: center;
  margin: auto;
  border: 1px solid rgba(124, 247, 204, 0.22);
  border-radius: 19px;
  transform: rotate(45deg);
  background: rgba(124, 247, 204, 0.035);
  box-shadow: inset 0 0 24px rgba(124, 247, 204, 0.06), 0 0 44px rgba(124, 247, 204, 0.04);
}

.signal__core::before {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(124, 247, 204, 0.18);
  border-radius: 12px;
  content: "";
}

.signal__core b {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 16px rgba(124, 247, 204, 0.7);
  animation: core 2.6s ease-in-out infinite;
}

.signal__core span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--signal);
}

.signal__core span:nth-child(1) { top: 14px; left: 19px; }
.signal__core span:nth-child(2) { top: 20px; right: 14px; }
.signal__core span:nth-child(3) { right: 20px; bottom: 13px; }

.system-state {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.system-state span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.system-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}

.system-state__code {
  margin-left: auto;
}

.access {
  align-self: center;
  position: relative;
  width: min(100%, 520px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.025), transparent 48%),
    var(--panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(22px);
}

.access::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(124, 247, 204, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 247, 204, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

.access__topline {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal) 45%, rgba(124, 247, 204, 0.1));
  box-shadow: 0 0 30px rgba(124, 247, 204, 0.4);
}

.access__header,
.access__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access__header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
}

.access__secure {
  color: var(--signal);
}

.access__body {
  padding: clamp(34px, 5vw, 58px) clamp(26px, 5vw, 52px) clamp(38px, 5vw, 54px);
}

.access__heading {
  margin-bottom: 40px;
}

.access__heading p {
  margin-bottom: 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.access h2 {
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.form {
  display: grid;
  gap: 23px;
}

.field {
  display: grid;
  gap: 9px;
}

.field label {
  color: #a9b9b3;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field__control {
  display: flex;
  position: relative;
  height: 58px;
  align-items: center;
  border: 1px solid rgba(184, 220, 208, 0.15);
  border-radius: 12px;
  background: rgba(2, 10, 9, 0.48);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field__control:focus-within {
  border-color: rgba(124, 247, 204, 0.58);
  background: rgba(5, 16, 14, 0.8);
  box-shadow: 0 0 0 3px rgba(124, 247, 204, 0.07), inset 0 0 20px rgba(124, 247, 204, 0.025);
}

.field input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 58px 0 17px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  caret-color: var(--signal);
  font-size: 0.94rem;
}

.field input::placeholder {
  color: #52635d;
}

.field__index,
.field__toggle {
  position: absolute;
  right: 15px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.07em;
}

.field__toggle {
  padding: 7px 0 7px 10px;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  text-transform: uppercase;
}

.field__toggle:hover {
  color: var(--signal);
}

.field__toggle:focus-visible,
.brand:focus-visible,
.submit:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}

.form__message {
  display: none;
  min-height: 40px;
  align-items: center;
  padding: 10px 13px;
  border: 1px solid rgba(255, 141, 125, 0.22);
  border-radius: 10px;
  color: var(--error);
  background: var(--error-bg);
  font-size: 0.76rem;
  line-height: 1.4;
}

.form__message.is-visible {
  display: flex;
  animation: reveal 220ms ease-out;
}

.form__message::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  margin-right: 9px;
  border-radius: 50%;
  background: currentColor;
  content: "";
  box-shadow: 0 0 8px currentColor;
}

.submit {
  display: grid;
  position: relative;
  height: 60px;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 4px;
  padding: 0 18px 0 22px;
  overflow: hidden;
  border: 1px solid var(--signal);
  border-radius: 12px;
  color: #05100d;
  background: var(--signal);
  box-shadow: 0 13px 35px rgba(66, 185, 145, 0.13);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.submit::before {
  position: absolute;
  top: 0;
  left: -40%;
  width: 32%;
  height: 100%;
  content: "";
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 430ms ease;
}

.submit:hover {
  transform: translateY(-2px);
  background: var(--signal-bright);
  box-shadow: 0 17px 42px rgba(66, 185, 145, 0.2);
}

.submit:hover::before {
  left: 115%;
}

.submit:active {
  transform: translateY(0);
}

.submit:disabled {
  cursor: wait;
  transform: none;
  color: var(--signal);
  background: rgba(124, 247, 204, 0.07);
  box-shadow: inset 0 0 0 1px rgba(124, 247, 204, 0.12);
}

.submit__arrow {
  font-size: 1.25rem;
  font-weight: 400;
}

.submit__loading {
  display: none;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
}

.submit__loading i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
  animation: loading 0.85s ease-in-out infinite alternate;
}

.submit__loading i:nth-child(2) { animation-delay: 140ms; }
.submit__loading i:nth-child(3) { margin-right: 5px; animation-delay: 280ms; }

.submit.is-loading .submit__label,
.submit.is-loading .submit__arrow {
  display: none;
}

.submit.is-loading .submit__loading {
  display: flex;
}

.access__footer {
  padding: 18px 28px 20px;
  border-top: 1px solid var(--line);
}

.access__footer span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.access__footer i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--signal);
}

.site-footer {
  flex: 0 0 auto;
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  padding: 17px 0 20px;
  border-top: 1px solid rgba(174, 218, 204, 0.1);
  color: rgba(143, 161, 155, 0.64);
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.09em;
  line-height: 1.5;
  text-transform: uppercase;
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(124, 247, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 247, 204, 0); }
}

@keyframes travel {
  from { left: 0; opacity: 0; }
  14% { opacity: 1; }
  88% { opacity: 1; }
  to { left: calc(100% - 5px); opacity: 0; }
}

@keyframes core {
  50% { transform: scale(1.35); box-shadow: 0 0 28px rgba(124, 247, 204, 0.9); }
}

@keyframes loading {
  from { transform: translateY(2px); opacity: 0.35; }
  to { transform: translateY(-2px); opacity: 1; }
}

@keyframes reveal {
  from { transform: translateY(-4px); opacity: 0; }
}

@keyframes drift {
  to { transform: translate3d(60px, 40px, 0) scale(1.08); }
}

@media (max-width: 1060px) {
  .shell {
    width: min(100% - 48px, 1040px);
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
    gap: 44px;
  }

  .intro h1 {
    font-size: clamp(3rem, 6.8vw, 5.3rem);
  }

  .signal {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .shell {
    width: min(100% - 40px, 680px);
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 28px 0 42px;
    gap: 52px;
  }

  .intro {
    min-height: auto;
    padding: 0;
  }

  .intro__copy {
    margin: 88px 0 22px;
  }

  .intro h1 {
    font-size: clamp(3.2rem, 11vw, 5.2rem);
  }

  .signal {
    margin: 48px 0;
  }

  .access {
    justify-self: center;
  }

  .site-footer {
    width: min(100% - 40px, 680px);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 28px, 500px);
    padding: 19px 0 28px;
    gap: 34px;
  }

  body::before {
    background-size: 44px 44px;
  }

  .brand__name {
    font-size: 0.68rem;
  }

  .intro__copy {
    margin: 62px 0 14px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 0.58rem;
  }

  .intro h1 {
    font-size: clamp(2.4rem, 12vw, 4.2rem);
    line-height: 0.94;
  }

  .intro__copy > p {
    margin-top: 24px;
    font-size: 0.9rem;
    line-height: 1.62;
  }

  .signal {
    grid-template-columns: 1fr 1fr 56px 1fr;
    width: 100%;
    margin: 39px 0 34px;
  }

  .signal__track--three,
  .signal__label--input,
  .signal__label--output {
    display: none;
  }

  .signal__core {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }

  .system-state {
    justify-content: space-between;
    gap: 12px;
    font-size: 0.51rem;
  }

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

  .system-state__code {
    margin-left: 0;
  }

  .access {
    border-radius: 19px;
  }

  .access__header,
  .access__footer {
    padding-right: 20px;
    padding-left: 20px;
  }

  .access__body {
    padding: 34px 20px 38px;
  }

  .access__heading {
    margin-bottom: 31px;
  }

  .field__control {
    height: 56px;
  }

  .submit {
    height: 58px;
  }

  .site-footer {
    width: min(100% - 28px, 500px);
    padding: 16px 0 18px;
    font-size: 0.5rem;
    text-align: center;
  }
}

@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;
  }
}
