:root {
  color-scheme: dark;
  --ink: #f4f7f7;
  --muted: #aab8b8;
  --deep: #05090c;
  --panel: #10191d;
  --panel-strong: #16262c;
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #55d8e8;
  --mint: #8cf0cf;
  --red: #ff5b5b;
  --gold: #d9b15f;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--deep);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.055) 0,
      rgba(255, 255, 255, 0.055) 1px,
      rgba(0, 0, 0, 0.12) 2px,
      rgba(0, 0, 0, 0.12) 5px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(85, 216, 232, 0.025) 0,
      rgba(85, 216, 232, 0.025) 1px,
      transparent 1px,
      transparent 9px
    );
  mix-blend-mode: overlay;
  opacity: 0.34;
}

body::after {
  background:
    radial-gradient(circle at center, transparent 0%, transparent 54%, rgba(0, 0, 0, 0.34) 82%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(255, 91, 91, 0.05), transparent 18%, transparent 82%, rgba(85, 216, 232, 0.045));
  animation: crt-flicker 7s steps(1, end) infinite;
  opacity: 0.82;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  min-height: 92svh;
  overflow: hidden;
  isolation: isolate;
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  overflow: hidden;
  background-image: url("assets/abyssal-guardians-portal-hero.png");
  background-position: 62% center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__media::before,
.hero__media::after,
.brand::before,
.brand::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.hero__media::before,
.brand::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.13) 0,
      rgba(255, 255, 255, 0.13) 1px,
      rgba(0, 0, 0, 0.22) 1px,
      rgba(0, 0, 0, 0.22) 4px
    ),
    linear-gradient(90deg, rgba(255, 91, 91, 0.08), transparent 18%, transparent 82%, rgba(85, 216, 232, 0.08));
  mix-blend-mode: overlay;
  opacity: 0.36;
}

.hero__media::after,
.brand::after {
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 58%, rgba(0, 0, 0, 0.28) 78%, rgba(0, 0, 0, 0.58) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.22));
  opacity: 0.72;
}

.hero__overlay {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 8, 12, 0.94) 0%, rgba(3, 8, 12, 0.72) 34%, rgba(3, 8, 12, 0.2) 72%),
    linear-gradient(180deg, rgba(3, 8, 12, 0.08) 0%, rgba(3, 8, 12, 0.58) 80%, var(--deep) 100%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  position: relative;
  overflow: hidden;
  width: min(620px, 58vw);
  border-radius: 4px;
  transform: perspective(900px) rotateX(0.7deg);
}

.brand__logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(-1px 0 rgba(255, 91, 91, 0.22))
    drop-shadow(1px 0 rgba(85, 216, 232, 0.26))
    drop-shadow(0 0 12px rgba(85, 216, 232, 0.14));
}

.nav {
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.nav a {
  padding: 10px 14px;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--cyan);
  color: var(--ink);
}

.hero__content {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 10vw, 132px) 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
}

h1,
h2 {
  max-width: 760px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(4rem, 11vw, 9.4rem);
  text-shadow:
    -2px 0 rgba(255, 91, 91, 0.18),
    2px 0 rgba(85, 216, 232, 0.18),
    0 0 30px rgba(85, 216, 232, 0.18);
}

h2 {
  font-size: clamp(2.8rem, 7vw, 5.8rem);
}

h3 {
  font-size: 1.35rem;
}

.hero__copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: #d9e6e6;
  font-size: clamp(1.04rem, 2vw, 1.3rem);
}

.hero__actions,
.form-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__actions {
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0 20px;
  cursor: pointer;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--red);
  color: #190809;
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.button--full {
  width: 100%;
}

.mission-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(720px, 100%);
  margin: clamp(52px, 9vw, 96px) 0 0;
  border: 1px solid var(--line);
  background: rgba(5, 12, 15, 0.72);
  box-shadow: var(--shadow);
}

.mission-strip div {
  padding: 18px;
}

.mission-strip div + div {
  border-left: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.section,
.recruit-section,
.feature-band,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intel-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  padding: 86px 0 72px;
}

.intel-copy {
  display: grid;
  gap: 20px;
}

.intel-copy > p,
.recruit-copy > p {
  margin: 0;
  color: #cad6d7;
  font-size: 1.08rem;
}

.blueprint-frame {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(85, 216, 232, 0.42);
  border-radius: 8px;
  background: rgba(3, 15, 24, 0.82);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(217, 177, 95, 0.12) inset;
}

.blueprint-frame::before,
.blueprint-frame::after,
.recruit-video::before,
.recruit-video::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
}

.blueprint-frame::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.11) 0,
      rgba(255, 255, 255, 0.11) 1px,
      rgba(0, 0, 0, 0.2) 1px,
      rgba(0, 0, 0, 0.2) 4px
    ),
    linear-gradient(90deg, rgba(255, 91, 91, 0.08), transparent 22%, transparent 78%, rgba(85, 216, 232, 0.1));
  mix-blend-mode: overlay;
  opacity: 0.28;
}

.blueprint-frame::after,
.recruit-video::after {
  border: 10px solid rgba(3, 15, 24, 0.3);
  background:
    radial-gradient(ellipse at center, transparent 0%, transparent 62%, rgba(0, 0, 0, 0.3) 84%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 22%, transparent 82%, rgba(0, 0, 0, 0.28));
}

.blueprint-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(1.08) contrast(1.08) drop-shadow(0 0 18px rgba(85, 216, 232, 0.16));
}

.blueprint-frame figcaption {
  position: relative;
  margin: 0;
  border-top: 1px solid rgba(85, 216, 232, 0.28);
  background: rgba(3, 12, 18, 0.9);
  color: #a9d5e7;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 13px 16px;
  text-transform: uppercase;
}

.guardian-blueprint {
  grid-column: 1 / -1;
  margin-top: 10px;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0 70px;
}

.feature-card {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(22, 38, 44, 0.98), rgba(11, 18, 22, 0.98));
  padding: 24px;
}

.feature-card__code {
  display: inline-block;
  margin-bottom: 36px;
  color: var(--gold);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
}

.feature-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.loop-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  padding: 34px 0 88px;
}

.loop-grid {
  display: grid;
  gap: 16px;
}

.loop-grid > div {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.loop-grid__label {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.loop-grid p {
  margin: 8px 0 0;
  color: #cad6d7;
}

.recruit-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  padding: 72px 0 90px;
  border-top: 1px solid var(--line);
}

.recruit-copy {
  display: grid;
  gap: 22px;
}

.signal-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  border-left: 3px solid var(--cyan);
  padding-left: 14px;
  color: #dbe5e4;
  font-weight: 700;
}

.recruit-video {
  position: relative;
  overflow: hidden;
  margin: 8px 0 0;
  border: 1px solid rgba(217, 177, 95, 0.34);
  border-radius: 8px;
  background: rgba(5, 12, 15, 0.92);
  box-shadow: var(--shadow);
}

.recruit-video::before {
  background:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.1) 0,
      rgba(255, 255, 255, 0.1) 1px,
      rgba(0, 0, 0, 0.2) 1px,
      rgba(0, 0, 0, 0.2) 5px
    ),
    linear-gradient(90deg, rgba(255, 91, 91, 0.09), transparent 24%, transparent 76%, rgba(85, 216, 232, 0.1));
  mix-blend-mode: overlay;
  opacity: 0.28;
}

.recruit-video img {
  display: block;
  width: 100%;
  height: auto;
}

.recruit-video figcaption {
  position: relative;
  margin: 0;
  border-top: 1px solid rgba(217, 177, 95, 0.25);
  background: rgba(10, 19, 23, 0.92);
  color: #d7c28b;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 13px 16px;
  text-transform: uppercase;
}

.requirements-brief {
  border-left: 3px solid var(--red);
  padding-left: 18px;
}

.requirements-brief h3 {
  color: var(--gold);
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: 1.7rem;
  text-transform: uppercase;
}

.requirements-brief .signal-list {
  margin-top: 16px;
}

.recruit-form {
  border: 1px solid rgba(85, 216, 232, 0.28);
  border-radius: 8px;
  background: rgba(10, 19, 23, 0.94);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 30px);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  color: #dfe8e9;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

input[type="email"],
input[type="text"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(85, 216, 232, 0.16);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 22px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
  text-transform: none;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--red);
  flex: 0 0 auto;
}

.form-status {
  min-height: 24px;
  margin-top: 16px;
  color: var(--mint);
  font-weight: 700;
}

.form-status.is-error {
  color: #ff9a8e;
}

.form-tools {
  margin-top: 18px;
  justify-content: space-between;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 8px 0;
}

.text-button:hover {
  color: var(--ink);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--mint);
  font-weight: 700;
}

@keyframes crt-flicker {
  0%,
  100% {
    opacity: 0.78;
  }

  36% {
    opacity: 0.86;
  }

  37% {
    opacity: 0.68;
  }

  38%,
  72% {
    opacity: 0.82;
  }

  73% {
    opacity: 0.72;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto;
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand {
    width: min(620px, 100%);
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .nav a {
    padding-inline: 0;
  }

  .hero__content {
    padding-top: 50px;
  }

  .mission-strip,
  .intel-section,
  .loop-section,
  .feature-band,
  .recruit-section {
    grid-template-columns: 1fr;
  }

  .mission-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .feature-band {
    padding-bottom: 58px;
  }

  .footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero__content,
  .section,
  .recruit-section,
  .feature-band,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 96svh;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
