.free-key-page { min-height: 100vh; }

.free-key-hero {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 145px 0 95px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.free-key-orb { position: absolute; border-radius: 50%; filter: blur(24px); pointer-events: none; }
.free-key-orb-one { top: 100px; left: 5%; width: 420px; height: 420px; background: rgba(255,22,70,.085); }
.free-key-orb-two { right: 2%; bottom: -80px; width: 460px; height: 460px; background: rgba(83,43,255,.05); }

.free-key-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(470px,1.1fr);
  align-items: center;
  gap: 75px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: #7b7b84;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.back-link:hover { color: white; }
.back-link span { color: var(--red-high); }

.free-key-copy h1 {
  margin: 14px 0 20px;
  font-size: clamp(51px,5.2vw,73px);
  line-height: .98;
  letter-spacing: -.068em;
}
.free-key-copy h1 span { color: var(--red); }
.free-key-copy > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

.free-key-facts { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); }
.free-key-facts article { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.free-key-facts article > span { color: var(--red-high); font-size: 10px; font-weight: 850; }
.free-key-facts h2 { margin: -3px 0 6px; font-size: 15px; }
.free-key-facts p { margin: 0; color: #85858e; font-size: 11.5px; line-height: 1.55; }

.key-workflow {
  padding: 31px;
  border: 1px solid var(--line-high);
  border-radius: 23px;
  background: rgba(14,14,17,.93);
  box-shadow: 0 32px 105px rgba(0,0,0,.46), 0 0 60px rgba(255,22,70,.045);
}

#keylessIntro[hidden], #legacyIntro[hidden], #keylessPanel[hidden], #legacyWorkflow[hidden], #accessModeLoading[hidden] { display: none !important; }

.access-mode-loading {
  grid-column: 1 / -1;
  width: min(620px,100%);
  margin: 8vh auto;
  padding: 52px 34px;
  border: 1px solid var(--line-high);
  border-radius: 23px;
  background: rgba(14,14,17,.9);
  box-shadow: 0 32px 105px rgba(0,0,0,.42);
  text-align: center;
}
.access-mode-loading h1 { margin: 14px 0 13px; font-size: clamp(34px,5vw,48px); letter-spacing: -.055em; }
.access-mode-loading p { max-width: 470px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.65; }
.access-loading-mark {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 22px;
  border: 2px solid rgba(255,255,255,.11);
  border-top-color: var(--red-high);
  border-radius: 50%;
  animation: access-spin .75s linear infinite;
}
.access-mode-loading.status-error .access-loading-mark { animation: none; border-color: rgba(255,49,91,.3); background: rgba(255,22,70,.08); }
@keyframes access-spin { to { transform: rotate(360deg); } }

.keyless-workflow { overflow: hidden; }
.keyless-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green) !important;
  border-color: rgba(80,227,148,.25) !important;
  background: rgba(80,227,148,.055) !important;
}
.keyless-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(80,227,148,.08), 0 0 15px rgba(80,227,148,.3);
}
.keyless-status.checking { color: #ffcf68 !important; border-color: rgba(255,207,104,.24) !important; background: rgba(255,207,104,.055) !important; }
.keyless-status.checking i { background: #ffcf68; box-shadow: 0 0 0 4px rgba(255,207,104,.07); }

.loader-command {
  position: relative;
  margin-top: 25px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.095);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(5,5,7,.88), rgba(9,9,12,.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.loader-command::after {
  position: absolute;
  right: -40px;
  bottom: -65px;
  width: 150px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,22,70,.09);
  filter: blur(28px);
  content: "";
  pointer-events: none;
}
.loader-command > span {
  display: block;
  margin-bottom: 11px;
  color: var(--red-high);
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .14em;
}
.loader-command code {
  position: relative;
  z-index: 1;
  display: block;
  overflow-x: auto;
  color: #f1f1f3;
  font: 12px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;
  white-space: nowrap;
  scrollbar-width: thin;
}
.secondary-workflow-button { display: flex; margin-top: 10px; }

.workflow-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.workflow-kicker { color: var(--red-high); font-size: 9px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.workflow-head h2 { margin: 7px 0 0; font-size: 27px; letter-spacing: -.04em; }
.workflow-head > strong { padding: 8px 11px; border: 1px solid rgba(255,49,91,.25); border-radius: 8px; color: #ff8298; background: rgba(255,22,70,.07); font-size: 11px; }

.progress-track { height: 4px; margin: 24px 0; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.075); }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--red-high),#ff6b86); box-shadow: 0 0 16px rgba(255,22,70,.32); transition: width .35s ease; }

.task-list { display: grid; gap: 9px; }
.task-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.022);
  transition: border-color .18s ease, background .18s ease, opacity .18s ease;
}
.task-item.current { border-color: rgba(255,49,91,.35); background: rgba(255,22,70,.045); }
.task-item.locked { opacity: .58; }
.task-item.verified { border-color: rgba(80,227,148,.25); background: rgba(80,227,148,.035); opacity: 1; }
.task-item.ready { border-color: rgba(255,49,91,.35); background: rgba(255,22,70,.045); opacity: 1; }

.task-number { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #ff8298; background: rgba(255,22,70,.09); font-size: 12px; font-weight: 850; }
.task-item.verified .task-number { color: var(--green); background: rgba(80,227,148,.09); }
.task-item h3 { margin: 0 0 5px; font-size: 14px; }
.task-item p { margin: 0; color: #85858e; font-size: 10.5px; line-height: 1.45; }
.task-item > strong { color: #a8a8b0; font-size: 10.5px; white-space: nowrap; }
.task-item.verified > strong { color: var(--green) !important; }
.task-item.ready > strong { color: #ff8298 !important; }

.workflow-button { width: 100%; margin-top: 18px; }
.workflow-button:disabled { cursor: wait; opacity: .58; transform: none; box-shadow: none; }

.key-result { margin-top: 18px; padding: 18px; border: 1px solid rgba(80,227,148,.22); border-radius: 15px; background: rgba(80,227,148,.035); }
.key-result[hidden] { display: none; }
.key-result-head, .key-expiry { display: flex; align-items: center; justify-content: space-between; gap: 15px; font-size: 11.5px; }
.key-result-head span, .key-expiry span { color: #7a7a83; }
.key-result-head strong { color: var(--green); }
.key-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 13px 0; }
.key-box code { min-width: 0; padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; color: #e8e8eb; background: #08080a; font: 12.5px ui-monospace,SFMono-Regular,Consolas,monospace; text-overflow: ellipsis; white-space: nowrap; }
.key-box .button { min-height: 43px; }
.key-expiry { padding-top: 12px; border-top: 1px solid rgba(255,255,255,.06); }

.workflow-note { min-height: 34px; margin: 16px 4px 0; color: #85858e; font-size: 10.5px; line-height: 1.55; text-align: center; }
.workflow-foot { display: flex; justify-content: space-between; gap: 15px; margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }
.workflow-foot span, .workflow-foot a { color: #7d7d86; font-size: 9.5px; font-weight: 750; }
.workflow-foot span { display: inline-flex; align-items: center; gap: 7px; }
.workflow-foot span i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(80,227,148,.08); }
.workflow-foot a:hover, .workflow-foot a b { color: white; }

@media (max-width: 980px) {
  .free-key-hero { min-height: auto; }
  .free-key-grid { grid-template-columns: 1fr; gap: 48px; }
  .free-key-copy { max-width: 720px; margin-inline: auto; text-align: center; }
  .free-key-copy > p { margin-inline: auto; }
  .free-key-facts { max-width: 620px; margin-inline: auto; margin-top: 36px; text-align: left; }
  .key-workflow { width: min(620px,100%); margin-inline: auto; }
}

@media (max-width: 760px) {
  .free-key-hero { padding: 112px 0 72px; }
  .back-link { margin-bottom: 27px; }
  .free-key-copy h1 { font-size: 47px; }
  .free-key-copy > p { font-size: 14px; }
  .key-workflow { padding: 24px 20px; border-radius: 19px; }
  .workflow-foot { display: grid; justify-items: center; }
}

@media (max-width: 440px) {
  .free-key-copy h1 { font-size: 41px; }
  .task-item { grid-template-columns: auto 1fr; }
  .task-item > strong { grid-column: 2; }
  .key-box { grid-template-columns: 1fr; }
  .key-box .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .progress-track span, .task-item { transition: none; }
}
