.modal-open {
  overflow: hidden;
}

.api-endpoint-label {
  display: inline-flex;
  align-items: center;
  color: var(--soft);
  font-size: 13px;
}

.result-modal[hidden] {
  display: none;
}

.result-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.result-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(73, 80, 92, 0.2),
      transparent 36rem
    ),
    rgba(3, 4, 6, 0.9);
  backdrop-filter: blur(18px);
}

.result-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border: 1px solid #3a404a;
  border-radius: 24px;
  background: linear-gradient(155deg, #171a20, #0d0f12 72%);
  box-shadow:
    0 34px 140px rgba(0, 0, 0, 0.78),
    inset 0 1px rgba(255, 255, 255, 0.06);
  animation: reveal 0.35s ease both;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid #3d434d;
  border-radius: 11px;
  background: #20242a;
  color: #f4f5f6;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
  border-color: #69717e;
  background: #2a2f37;
}

.result-card .credential code {
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-overflow: clip;
  user-select: all;
}

.result-card .password-value {
  border-color: #59616d;
  color: #fff;
}

.result-guide {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid #2b3038;
  border-radius: 16px;
  background: #0a0c0f;
}

.result-guide h3 {
  margin: 0 0 11px;
  font-size: 16px;
}

.result-guide ol {
  margin: 0;
  padding-left: 20px;
  color: #c5cad2;
  font-size: 14px;
  line-height: 1.6;
}

.result-guide li + li {
  margin-top: 5px;
}

.result-guide strong {
  color: #fff;
}

:root {
  color-scheme: dark;
  --bg: #090a0c;
  --surface: #111317;
  --surface-2: #15181d;
  --line: #272b32;
  --line-soft: #1d2026;
  --text: #f5f6f7;
  --soft: #a2a7af;
  --muted: #6f757e;
  --accent: #fff;
  --danger: #ff9b9b;
  --success: #aef0cb;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, #252932 0, transparent 38rem), var(--bg);
  color: var(--text);
}
button,
input {
  font: inherit;
}
.shell {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: -0.03em;
}
.brand img {
  border-radius: 10px;
}
main {
  flex: 1;
}
.hero {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: 104px 0 72px;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(17, 19, 23, 0.72);
  color: var(--soft);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}
.eyebrow span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 14px #fff;
  animation: pulse 2.2s ease-in-out infinite;
}
.hero h1 {
  margin: 30px 0 22px;
  font-size: clamp(48px, 7.2vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 780;
}
.hero h1 em {
  color: #949aa4;
  font-style: normal;
  font-weight: 670;
}
.lead {
  width: min(620px, 100%);
  margin: 0 auto;
  color: var(--soft);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  letter-spacing: -0.015em;
}
.activation-wrap {
  position: relative;
  width: min(690px, 100%);
  margin: 54px auto 0;
}
.activation {
  position: relative;
  z-index: 2;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(24, 27, 32, 0.96),
    rgba(14, 16, 19, 0.98)
  );
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.38),
    inset 0 1px rgba(255, 255, 255, 0.04);
  text-align: left;
}
.activation label {
  display: block;
  margin: 0 0 10px 4px;
  color: #c7cad0;
  font-size: 12px;
  font-weight: 650;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.input-row input {
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #30343c;
  border-radius: 13px;
  outline: 0;
  background: #0b0d10;
  color: #fff;
  font:
    620 16px/1 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.055em;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.input-row input::placeholder {
  color: #555b64;
}
.input-row input:focus {
  border-color: #777e89;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.055);
}
.input-row button {
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: #f5f6f7;
  color: #0b0d10;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s;
}
.input-row button:hover {
  transform: translateY(-1px);
  background: #fff;
}
.input-row button:active {
  transform: translateY(0);
}
.input-row button:disabled {
  cursor: wait;
  opacity: 0.65;
}
.input-row button b {
  font-size: 19px;
}
.activation > p {
  margin: 11px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.status {
  min-height: 0;
  margin: 0 4px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.45;
}
.status:not(:empty) {
  margin-top: 9px;
}
.status.is-loading {
  color: var(--soft);
}
.orbit {
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  filter: blur(18px);
  opacity: 0.55;
  background: conic-gradient(
    from var(--angle),
    transparent 0 28%,
    rgba(255, 255, 255, 0.32) 35%,
    transparent 44% 72%,
    rgba(124, 132, 145, 0.24) 80%,
    transparent 90%
  );
  animation: orbit 8s linear infinite;
}
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 12px;
}
.trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust i {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid #363b44;
  border-radius: 50%;
  color: #dfe2e7;
  font-style: normal;
  font-size: 10px;
}
.result {
  width: min(690px, 100%);
  margin: -24px auto 82px;
  padding: 26px;
  border: 1px solid #303640;
  border-radius: 22px;
  background: linear-gradient(150deg, #171a1f, #0f1114);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  animation: reveal 0.45s ease both;
}
.result-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
  padding-right: 48px;
}
.success-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid #466153;
  border-radius: 12px;
  background: #17271f;
  color: var(--success);
  font-weight: 800;
}
.result-head small {
  display: block;
  margin-bottom: 3px;
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.result-head h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.035em;
}
.credentials-grid {
  display: grid;
  gap: 12px;
}
.credential {
  padding: 15px;
  border: 1px solid #2d323a;
  border-radius: 15px;
  background: #0a0c0f;
}
.credential > span {
  display: block;
  margin: 0 0 9px 2px;
  color: #aeb4bd;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.credential-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}
.credential code {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #414852;
  border-radius: 11px;
  background: #060709;
  color: #fff;
  font:
    700 16px/1.45 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.02em;
}
.credential button {
  min-width: 126px;
  padding: 0 15px;
  border: 1px solid #444b56;
  border-radius: 11px;
  background: #23272e;
  color: #f3f5f7;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.credential button:hover {
  border-color: #69717d;
  background: #30353d;
  transform: translateY(-1px);
}
.credential button b {
  margin-right: 4px;
  font-size: 15px;
}
.result-note {
  margin: 14px 2px 0;
  color: #9aa1ab;
  font-size: 12px;
  line-height: 1.55;
}
.open-dashboard {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 0 20px;
  border: 1px solid #fff;
  border-radius: 13px;
  background: #fff;
  color: #0b0d10;
  text-decoration: none;
  font-size: 14px;
  font-weight: 780;
  box-shadow: 0 10px 35px rgba(255, 255, 255, 0.08);
  transition:
    transform 0.18s,
    background 0.18s;
}
.open-dashboard:hover {
  background: #e8eaed;
  transform: translateY(-1px);
}
.dashboard-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.dashboard-label b {
  font: inherit;
}
.manifesto {
  width: min(690px, 100%);
  margin: 0 auto 110px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  text-align: left;
}
.manifesto span {
  color: #f2f3f4;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}
.manifesto p {
  margin: 0;
  color: var(--soft);
  font-size: 15px;
  line-height: 1.65;
}
footer {
  min-height: 95px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}
footer p {
  max-width: 620px;
  margin: 0;
}
.ambient {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.ambient i {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
}
.ambient i:nth-child(1) {
  width: 44vw;
  height: 44vw;
  min-width: 480px;
  min-height: 480px;
  left: -20vw;
  top: 24vh;
}
.ambient i:nth-child(2) {
  width: 34vw;
  height: 34vw;
  min-width: 380px;
  min-height: 380px;
  right: -15vw;
  top: -12vh;
}
.ambient i:nth-child(3) {
  width: 5px;
  height: 5px;
  left: 72%;
  top: 22%;
  border: 0;
  background: #fff;
  box-shadow: 0 0 30px 5px rgba(255, 255, 255, 0.2);
}
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes orbit {
  to {
    --angle: 360deg;
  }
}
@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .result-modal {
    padding: 10px;
  }
  .result-card {
    max-height: calc(100vh - 20px);
    padding: 22px 14px 16px;
  }
  .modal-close {
    top: 11px;
    right: 11px;
  }
  .result-guide {
    padding: 14px;
  }
  .shell {
    width: min(100% - 24px, 1120px);
  }
  .topbar {
    height: 72px;
  }
  .hero {
    padding: 72px 0 58px;
  }
  .hero h1 {
    font-size: clamp(44px, 15vw, 68px);
  }
  .lead {
    font-size: 15px;
  }
  .activation-wrap {
    margin-top: 40px;
  }
  .activation {
    padding: 13px;
    border-radius: 18px;
  }
  .input-row {
    grid-template-columns: 1fr;
  }
  .input-row input,
  .input-row button {
    height: 54px;
  }
  .input-row button {
    gap: 12px;
  }
  .trust {
    display: grid;
    justify-items: start;
    width: max-content;
    margin: 20px auto 0;
  }
  .credential {
    padding: 12px;
  }
  .credential-value {
    grid-template-columns: 1fr;
  }
  .credential code {
    min-height: 50px;
    font-size: 14px;
  }
  .credential button {
    min-height: 44px;
    width: 100%;
  }
  .manifesto {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 72px;
  }
  footer {
    padding: 24px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
