@import url('/athena-theme.css');

header {
  height: var(--nav-h);
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

header a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .16em;
}

header img { width: 26px; height: 26px; display: block; }
header b { font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .14em; }

main {
  position: relative;
  isolation: isolate;
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: 72px 0 96px;
}
main::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(75% 65% at 50% 0%, #2c2e35 0%, rgba(44, 46, 53, 0) 70%);
  pointer-events: none;
}

.intro { text-align: center; margin-bottom: 44px; }
.intro > p, .gateway-card small {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ink-3);
}
.intro h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
  margin: 14px 0 18px;
}
.intro > span {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  color: var(--ink-2);
  font-size: 16px;
}

.gateway-card {
  background: rgba(26, 27, 30, .86);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 34px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.card-head, .progress-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.card-head h2, .step-body h2, #complete-view h2 {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.025em;
  margin: 4px 0 18px;
}

.card-head > span, .progress-head {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}

.key-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 22px;
}

.key-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(19, 20, 22, .75);
  color: var(--ink);
  text-align: left;
  padding: 20px;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, transform .16s ease;
}

.key-option:hover {
  border-color: rgba(255, 255, 255, .35);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.key-option.active {
  border-color: #14e0a3;
  background: rgba(20, 224, 163, .08);
  box-shadow: 0 0 0 1px rgba(20, 224, 163, .35);
}

.key-option strong { display: block; font-size: 16px; font-weight: 600; }
.key-option span { display: block; color: var(--ink-3); font-size: 13px; margin-top: 4px; }

.primary, .secondary {
  width: 100%;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--r-btn);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s;
}

.primary { background: var(--ink); color: var(--on-white); border: 0; }
.primary:hover { background: rgba(255, 255, 255, .86); }
.primary:disabled, .secondary:disabled { opacity: .35; cursor: not-allowed; }
.secondary {
  background: rgba(255, 255, 255, .08);
  color: var(--ink);
  border: 1px solid var(--line);
  margin-top: 10px;
}

.progress { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, .1); margin: 14px 0 36px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .35s ease; }

.step-body { text-align: center; }
.step-body p { color: var(--ink-2); max-width: 500px; margin: 0 auto 24px; }
.step-body #timer { display: block; color: var(--ink-3); font-size: 13px; margin-top: 14px; }

.notice {
  border: 1px solid rgba(248, 113, 113, .35);
  background: rgba(248, 113, 113, .1);
  color: #fca5a5;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14px;
}

#complete-view { text-align: center; }
.complete-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin: 0 auto 20px;
  font-size: 22px;
  color: #14e0a3;
}

.key-output {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  margin: 22px auto 16px;
  max-width: 600px;
  overflow: hidden;
}
.key-output code { flex: 1; padding: 14px 16px; overflow: auto; font-size: 14px; }
.key-output button { border: 0; border-left: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--ink); padding: 0 18px; font-weight: 600; cursor: pointer; }

.fine-print { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 24px; }

@media (max-width: 620px) {
  .key-types { grid-template-columns: 1fr; }
  .gateway-card { padding: 22px; }
}
