:root {
  color-scheme: dark;
  --bg: #05080b;
  --panel: rgba(10, 16, 22, 0.82);
  --panel-solid: #0b1117;
  --line: rgba(184, 224, 230, 0.13);
  --line-bright: rgba(75, 238, 229, 0.34);
  --text: #f4faf9;
  --muted: #87989d;
  --quiet: #5e7076;
  --aqua: #43e8de;
  --aqua-soft: #b7fff9;
  --blue: #52a9ff;
  --green: #79ecb4;
  --gold: #f6ca68;
  font-family: Inter, Avenir Next, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(46, 156, 166, 0.09), transparent 42rem),
    linear-gradient(180deg, #060a0e 0%, var(--bg) 72%);
  color: var(--text);
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.018), transparent 32%, rgba(67, 232, 222, 0.018) 66%, transparent);
  content: "";
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.grid-backdrop {
  position: fixed;
  z-index: -3;
  inset: 0;
  background-image:
    linear-gradient(rgba(114, 168, 175, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(114, 168, 175, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.7;
  pointer-events: none;
}

.ambient-one {
  top: -16rem;
  right: -10rem;
  background: radial-gradient(circle, rgba(39, 190, 200, 0.18), rgba(39, 190, 200, 0) 68%);
}

.ambient-two {
  bottom: -22rem;
  left: -13rem;
  background: radial-gradient(circle, rgba(42, 105, 193, 0.14), rgba(42, 105, 193, 0) 68%);
}

.topbar,
.shell,
.footer {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.topbar {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

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

.brand-glyph {
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border: 1px solid rgba(67, 232, 222, 0.28);
  border-radius: 11px;
  background:
    linear-gradient(135deg, rgba(67, 232, 222, 0.15), rgba(82, 169, 255, 0.04)),
    #091116;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 8px 28px rgba(40, 219, 215, 0.08);
  color: var(--aqua-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  object-fit: cover;
}

.brand > span:last-child {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 0.86rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.system-badge,
.state-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #9aabb0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-badge {
  padding: 8px 12px;
  background: rgba(10, 16, 21, 0.58);
}

.system-pulse,
.state-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(121, 236, 180, 0.08), 0 0 14px rgba(121, 236, 180, 0.45);
}

.shell {
  min-height: calc(100vh - 180px);
  padding: 76px 0 68px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  min-height: 590px;
  align-items: center;
  gap: clamp(56px, 8vw, 118px);
}

.hero-copy {
  position: relative;
}

.eyebrow {
  display: flex;
  margin: 0 0 22px;
  align-items: center;
  gap: 12px;
  color: var(--aqua);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  width: 28px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(67, 232, 222, 0.23);
  border-radius: 6px;
  background: rgba(67, 232, 222, 0.05);
  font-size: 0.58rem;
}

h1,
h2,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  letter-spacing: -0.065em;
}

h1 {
  max-width: 760px;
  font-size: clamp(4rem, 7.2vw, 7.25rem);
  font-weight: 720;
  line-height: 0.87;
}

h1 em {
  background: linear-gradient(100deg, #d8ffff 0%, var(--aqua) 42%, #67b6ff 95%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4.9rem);
  line-height: 0.95;
}

.lede {
  max-width: 600px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.14rem);
  line-height: 1.72;
}

.trust-row {
  display: flex;
  margin-top: 35px;
  flex-wrap: wrap;
  gap: 22px;
  color: #a3b3b7;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

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

.trust-row i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 12px rgba(67, 232, 222, 0.62);
}

.access-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 430px;
  padding: 25px;
  border: 1px solid var(--line-bright);
  border-radius: 27px;
  background:
    linear-gradient(145deg, rgba(18, 29, 37, 0.94), rgba(7, 12, 17, 0.94)),
    var(--panel-solid);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.07),
    inset 0 0 64px rgba(27, 139, 148, 0.035),
    0 34px 100px rgba(0, 0, 0, 0.44),
    0 0 80px rgba(37, 218, 211, 0.045);
}

.access-card::before,
.access-card::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.access-card::before {
  width: 180px;
  height: 180px;
  top: -90px;
  right: -70px;
  border: 1px solid rgba(67, 232, 222, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(67, 232, 222, 0.025), 0 0 0 56px rgba(67, 232, 222, 0.018);
}

.access-card::after {
  right: 24px;
  bottom: 23px;
  width: 28px;
  height: 28px;
  border-right: 1px solid rgba(67, 232, 222, 0.2);
  border-bottom: 1px solid rgba(67, 232, 222, 0.2);
}

.card-sheen {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, 0.022) 50%, transparent 74%);
  transform: translateX(-100%);
  pointer-events: none;
}

.access-card[data-state="checking"] .card-sheen {
  animation: scan-card 3.4s ease-in-out infinite;
}

.access-card > :not(.card-sheen) {
  position: relative;
  z-index: 1;
}

.gateway-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.gateway-header > span:first-child {
  display: grid;
  gap: 5px;
}

.gateway-header small {
  color: var(--quiet);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.gateway-header strong {
  font-size: 1rem;
  letter-spacing: -0.025em;
}

.state-chip {
  padding: 7px 10px;
  background: rgba(67, 232, 222, 0.04);
  border-color: rgba(67, 232, 222, 0.13);
  color: var(--aqua-soft);
  font-size: 0.57rem;
}

.state-chip b {
  font: inherit;
}

.access-card[data-state="checking"] .state-chip i,
.access-card[data-state="signin"] .state-chip i {
  animation: pulse-dot 1.7s ease-out infinite;
}

.access-card[data-state="denied"] .state-chip,
.access-card[data-state="unavailable"] .state-chip {
  border-color: rgba(255, 112, 123, 0.18);
  background: rgba(255, 112, 123, 0.05);
  color: #ffc4c9;
}

.access-card[data-state="denied"] .state-chip i,
.access-card[data-state="unavailable"] .state-chip i {
  background: #ff707b;
  box-shadow: 0 0 0 4px rgba(255, 112, 123, 0.08), 0 0 14px rgba(255, 112, 123, 0.35);
}

.verification-status {
  display: flex;
  min-height: 150px;
  align-items: center;
  gap: 19px;
}

.status-visual {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(67, 232, 222, 0.17);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(67, 232, 222, 0.095), rgba(35, 86, 104, 0.025));
  color: var(--aqua-soft);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.status-visual::after {
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(67, 232, 222, 0.07);
  border-radius: 22px;
  content: "";
}

.status-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(173, 255, 249, 0.13);
  border-top-color: var(--aqua);
  border-right-color: rgba(82, 169, 255, 0.72);
  border-radius: 50%;
  animation: spin 0.82s linear infinite;
  box-shadow: 0 0 18px rgba(67, 232, 222, 0.12);
}

.status-check,
.status-lock,
.status-alert {
  display: none;
}

.access-card:not([data-state="checking"]) .status-spinner {
  display: none;
}

.access-card[data-state="verified"] .status-check {
  display: block;
}

.access-card[data-state="signin"] .status-lock,
.access-card[data-state="denied"] .status-alert,
.access-card[data-state="unavailable"] .status-alert {
  display: block;
}

.access-card[data-state="verified"] .status-visual {
  border-color: rgba(121, 236, 180, 0.2);
  background: rgba(121, 236, 180, 0.075);
  color: var(--green);
}

.access-card[data-state="denied"] .status-visual,
.access-card[data-state="unavailable"] .status-visual {
  border-color: rgba(255, 112, 123, 0.22);
  background: rgba(255, 112, 123, 0.06);
  color: #ff9ba4;
}

.operator-avatar {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(67, 232, 222, 0.31);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(0, 222, 232, 0.13);
}

.operator-verified .status-visual::before {
  position: absolute;
  z-index: 2;
  right: -6px;
  bottom: -5px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 3px solid #0d151b;
  border-radius: 50%;
  background: var(--green);
  color: #07100c;
  content: "✓";
  font-size: 0.65rem;
  font-weight: 950;
}

.status-copy {
  display: grid;
  gap: 6px;
}

.status-copy strong {
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.status-copy small {
  max-width: 285px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.verification-track {
  position: relative;
  display: grid;
  margin: 0;
  padding: 0 3px 26px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.verification-track::before {
  position: absolute;
  top: 6px;
  right: 16.66%;
  left: 16.66%;
  height: 1px;
  background: rgba(153, 184, 188, 0.13);
  content: "";
}

.verification-track li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 9px;
  color: #52646a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.verification-track i {
  z-index: 1;
  width: 12px;
  height: 12px;
  border: 3px solid var(--panel-solid);
  border-radius: 50%;
  background: #29363b;
  box-shadow: 0 0 0 1px rgba(151, 183, 188, 0.12);
}

.verification-track li.is-active,
.verification-track li.is-complete {
  color: #a8bbbF;
}

.verification-track li.is-active i {
  background: var(--aqua);
  box-shadow: 0 0 0 1px rgba(67, 232, 222, 0.24), 0 0 14px rgba(67, 232, 222, 0.6);
  animation: pulse-track 1.5s ease-out infinite;
}

.verification-track li.is-complete i {
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(121, 236, 180, 0.2);
}

.error {
  max-width: 100%;
  margin: -3px 0 22px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 112, 123, 0.25);
  border-radius: 11px;
  background: rgba(255, 112, 123, 0.07);
  color: #ffc4c9;
  font-size: 0.76rem;
  line-height: 1.55;
}

.sign-in {
  display: flex;
  width: 100%;
  min-height: 360px;
  margin: 4px 0 20px;
  justify-content: center;
  align-items: flex-start;
}

.sign-in[hidden],
.operator-user[hidden] {
  display: none;
}

.gateway-footer {
  display: flex;
  padding-top: 19px;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: #56686d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operator-user {
  position: absolute !important;
  top: 24px;
  right: 25px;
  transform: translateY(45px);
}

.apps {
  padding: 104px 0 20px;
  border-top: 1px solid var(--line);
}

.apps[hidden] {
  display: none;
}

.apps-heading {
  display: flex;
  margin-bottom: 38px;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.apps-heading .eyebrow {
  margin-bottom: 15px;
}

.apps-summary {
  max-width: 300px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: right;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card {
  --card-accent: var(--aqua);
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: 272px;
  padding: 23px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 21px;
  background:
    radial-gradient(circle at 110% -10%, color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 48%),
    linear-gradient(145deg, rgba(17, 26, 33, 0.88), rgba(8, 13, 18, 0.92));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045), 0 20px 55px rgba(0, 0, 0, 0.2);
  color: var(--text);
  text-decoration: none;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.app-card::after {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 90px;
  height: 90px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 14%, transparent);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 17px color-mix(in srgb, var(--card-accent) 2.5%, transparent);
  transition: transform 300ms ease;
}

.app-card:hover,
.app-card:focus-visible {
  border-color: color-mix(in srgb, var(--card-accent) 43%, transparent);
  outline: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.07), 0 28px 70px rgba(0, 0, 0, 0.32), 0 0 42px color-mix(in srgb, var(--card-accent) 6%, transparent);
  transform: translateY(-6px);
}

.app-card:hover::after,
.app-card:focus-visible::after {
  transform: scale(1.13);
}

.app-rally {
  --card-accent: var(--gold);
}

.app-routedrop {
  --card-accent: var(--blue);
}

.app-custom-war-minis {
  --card-accent: #ba8dff;
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.app-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 20%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--card-accent) 8%, transparent);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
  font-size: 1.35rem;
}

.app-number {
  color: #4d5f64;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.app-copy {
  display: block;
  margin-top: 35px;
}

.app-copy strong,
.app-copy small {
  display: block;
}

.app-copy strong {
  margin-bottom: 10px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.app-copy small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.58;
}

.app-action {
  display: flex;
  margin-top: auto;
  padding-top: 26px;
  align-items: center;
  justify-content: space-between;
  color: color-mix(in srgb, var(--card-accent) 75%, white);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-action b {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, transparent);
  border-radius: 50%;
  font-size: 0.9rem;
  transition: transform 220ms ease, background 220ms ease;
}

.app-card:hover .app-action b,
.app-card:focus-visible .app-action b {
  background: color-mix(in srgb, var(--card-accent) 10%, transparent);
  transform: translateX(3px);
}

.footer {
  display: flex;
  min-height: 92px;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  color: #4f6065;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(121, 236, 180, 0.28), 0 0 14px rgba(121, 236, 180, 0.45); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(121, 236, 180, 0), 0 0 14px rgba(121, 236, 180, 0.35); }
}

@keyframes pulse-track {
  0% { box-shadow: 0 0 0 1px rgba(67, 232, 222, 0.24), 0 0 0 0 rgba(67, 232, 222, 0.26); }
  70%, 100% { box-shadow: 0 0 0 1px rgba(67, 232, 222, 0.18), 0 0 0 7px rgba(67, 232, 222, 0); }
}

@keyframes scan-card {
  0%, 15% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

@media (max-width: 980px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 54px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .access-card {
    max-width: 580px;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .app-card {
    min-height: 235px;
  }
}

@media (max-width: 680px) {
  .topbar,
  .shell,
  .footer {
    width: min(100% - 36px, 1180px);
  }

  .topbar {
    min-height: 76px;
  }

  .system-badge {
    padding-inline: 9px;
    font-size: 0;
  }

  .system-badge::after {
    content: "Private";
    font-size: 0.58rem;
  }

  .shell {
    padding-top: 54px;
  }

  .intro {
    min-height: 0;
    gap: 45px;
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 5.4rem);
  }

  .lede {
    margin-top: 24px;
  }

  .trust-row {
    margin-top: 27px;
    gap: 14px;
  }

  .access-card {
    min-height: 410px;
    padding: 20px;
    border-radius: 22px;
  }

  .gateway-header {
    padding-right: 0;
  }

  .verification-status {
    min-height: 140px;
  }

  .status-visual,
  .operator-avatar {
    width: 52px;
    height: 52px;
  }

  .gateway-footer {
    display: grid;
    justify-content: start;
    gap: 7px;
  }

  .operator-user {
    top: 18px;
    right: 20px;
  }

  .apps {
    padding-top: 78px;
  }

  .apps-heading {
    display: grid;
    gap: 18px;
  }

  .apps-summary {
    text-align: left;
  }

  .footer {
    min-height: 82px;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.5;
  }
}

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