:root {
  color-scheme: dark;
  --bg: #06090f;
  --bg-elevated: #0c121b;
  --panel: rgba(12, 18, 27, 0.82);
  --panel-strong: rgba(16, 26, 39, 0.96);
  --border: rgba(155, 176, 205, 0.18);
  --text: #edf4ff;
  --muted: #9ba9ba;
  --soft: #65758a;
  --accent: #42d7c8;
  --accent-strong: #7cf6df;
  --amber: #e8c66d;
  --blue: #6ca8ff;
  --danger: #ff6f8f;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #06090f;
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(6, 9, 15, 0.34), rgba(6, 9, 15, 0.24) 45%, rgba(6, 9, 15, 0.78)),
    linear-gradient(180deg, rgba(6, 9, 15, 0.04), rgba(6, 9, 15, 0.2) 58%, #06090f 92%),
    url("../assets/landing-wormhole-bg.png");
  background-position: left top, left top, left top;
  background-size: cover, cover, cover;
  background-repeat: no-repeat, no-repeat, no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 9, 15, 0.82);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(66, 215, 200, 0.55);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(66, 215, 200, 0.24), rgba(108, 168, 255, 0.08));
  color: var(--accent-strong);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
}

.icon-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(420px, 0.9fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  min-height: calc(100vh - 72px);
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px) 36px;
}

.hero-copy {
  grid-column: 2;
  max-width: 670px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(3.6rem, 8vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 620px;
  margin-bottom: 30px;
  color: #c5d0df;
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.primary-action,
.secondary-action,
.application-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 7px;
  padding: 0 18px;
  cursor: pointer;
  font-size: 0.94rem;
  font-weight: 780;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.primary-action {
  border: 1px solid rgba(124, 246, 223, 0.72);
  background: #42d7c8;
  color: #03100f;
}

.secondary-action {
  border: 1px solid rgba(108, 168, 255, 0.48);
  background: rgba(108, 168, 255, 0.11);
  color: var(--text);
}

.primary-action:hover,
.secondary-action:hover,
.application-card button:hover {
  transform: translateY(-1px);
}

.button-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 6px;
  background: rgba(3, 16, 15, 0.14);
  font-size: 0.82rem;
}

.auth-note {
  max-width: 590px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.public-card,
.workflow-list,
.tool-links {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.public-card {
  grid-column: 2;
  width: min(100%, 560px);
  justify-self: end;
  padding: clamp(18px, 3vw, 26px);
}

.panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.panel-header h2,
.recruiting-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.12;
}

.panel-header span {
  min-width: max-content;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 760;
}

.public-points {
  display: grid;
  gap: 10px;
}

.public-points article,
.status-tile {
  border: 1px solid rgba(155, 176, 205, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
}

.public-points article {
  min-height: 92px;
  padding: 14px;
  min-width: 0;
}

.public-points strong,
.status-tile strong,
.workflow-list strong,
.tool-links span {
  display: block;
  color: var(--text);
  font-size: 0.94rem;
}

.public-points span,
.status-tile small,
.workflow-list span,
.tool-links small,
.application-card p,
.section-heading p {
  color: var(--muted);
  line-height: 1.45;
}

.public-points span {
  display: block;
  margin-top: 9px;
  font-size: 0.84rem;
  overflow-wrap: anywhere;
  word-break: normal;
}

.application-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(66, 215, 200, 0.28);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(66, 215, 200, 0.13), rgba(108, 168, 255, 0.07));
}

.application-card h3,
.workflow-list h3,
.tool-links h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.application-card p {
  margin-bottom: 0;
  font-size: 0.85rem;
}

.application-card button,
.recruitment-actions button {
  min-height: 40px;
  border: 1px solid rgba(124, 246, 223, 0.5);
  background: rgba(6, 9, 15, 0.68);
  color: var(--text);
}

.application-card button:disabled,
.recruitment-actions button:disabled {
  cursor: not-allowed;
  border-color: rgba(155, 176, 205, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--soft);
  transform: none;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(20px, 5vw, 72px) clamp(44px, 6vw, 72px);
}

.status-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  background: rgba(12, 18, 27, 0.72);
  backdrop-filter: blur(14px);
}

.status-tile > span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 20px rgba(232, 198, 109, 0.5);
}

.status-tile.is-ready > span {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(66, 215, 200, 0.58);
}

.recruiting-section {
  padding: clamp(42px, 7vw, 92px) clamp(20px, 5vw, 72px) clamp(64px, 8vw, 108px);
  background: linear-gradient(180deg, rgba(6, 9, 15, 0.18), rgba(8, 13, 20, 0.66) 34%, rgba(8, 13, 20, 0.82));
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 0.55fr);
  gap: clamp(20px, 5vw, 60px);
  align-items: end;
  margin-bottom: 22px;
}

.section-heading p {
  margin-bottom: 0;
}

.recruiting-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr;
  gap: 16px;
}

.recruiting-flow {
  grid-template-columns: minmax(0, 760px);
  justify-content: end;
}

.workflow-list,
.tool-links {
  padding: 22px;
  background: var(--panel-strong);
}

.workflow-list ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}

.recruitment-steps li {
  grid-template-columns: 145px 1fr;
}

.recruitment-panel {
  align-content: start;
  padding: 22px;
  background: var(--panel-strong);
}

.recruitment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recruitment-actions button:first-child {
  border-color: rgba(124, 246, 223, 0.72);
  background: var(--accent);
  color: #03100f;
}

.playstyle-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.playstyle-form > span {
  flex-basis: 100%;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
}

.playstyle-form label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid rgba(155, 176, 205, 0.18);
  border-radius: 7px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.86rem;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.playstyle-form input {
  accent-color: var(--accent);
}

.playstyle-form label:has(input:checked) {
  border-color: rgba(124, 246, 223, 0.5);
  background: rgba(66, 215, 200, 0.12);
  color: var(--text);
}

.security-report {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(232, 198, 109, 0.24);
  border-radius: 7px;
  padding: 14px;
  background: rgba(232, 198, 109, 0.07);
}

.security-report strong {
  color: var(--text);
  font-size: 0.94rem;
}

.security-report span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.security-report.is-running {
  border-color: rgba(108, 168, 255, 0.32);
  background: rgba(108, 168, 255, 0.08);
}

.security-report.is-ready {
  border-color: rgba(66, 215, 200, 0.32);
  background: rgba(66, 215, 200, 0.08);
}

.recruitment-status {
  border-radius: 7px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.tool-links {
  display: grid;
  align-content: start;
  gap: 10px;
}

.tool-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 14px;
  border: 1px solid rgba(155, 176, 205, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.58);
}

.modal[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(480px, 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: #101a27;
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.modal-panel p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-links {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(12, 18, 27, 0.98);
  }

  .nav-links.is-open {
    display: flex;
  }

  .icon-button {
    display: block;
  }

  .hero,
  .section-heading,
  .recruiting-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .public-card {
    grid-column: 1;
  }

  .hero {
    min-height: auto;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  body::before {
    background-image:
      linear-gradient(180deg, rgba(6, 9, 15, 0.26), rgba(6, 9, 15, 0.42) 58%, #06090f 82%),
      url("../assets/landing-wormhole-bg.png");
    background-position: left top, left top;
    background-size: auto 760px, auto 760px;
    background-repeat: no-repeat, no-repeat;
  }

  .topbar {
    height: 64px;
    padding-inline: 16px;
  }

  .nav-links {
    inset: 64px 14px auto;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 4.8rem);
  }

  .public-points,
  .status-strip {
    grid-template-columns: 1fr;
  }

  .application-card,
  .tool-links a {
    align-items: stretch;
  }

  .workflow-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .recruiting-section,
  .status-strip {
    padding-inline: 16px;
  }
}
