:root {
  color-scheme: dark;
  --ink: #f6f7f3;
  --muted: rgba(246, 247, 243, .68);
  --line: rgba(246, 247, 243, .16);
  --void: #05070a;
  --panel: #10151a;
  --copper: #d7945b;
  --mint: #6ef5c1;
  --sky: #91d7ff;
  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;
  background: var(--void);
  color: var(--ink);
}
a { color: inherit; }

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  background-image: url("/assets/hero-public-key-fabric.png");
  background-size: cover;
  background-position: center right;
  filter: saturate(.95) contrast(1.04);
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, .96), rgba(5, 7, 10, .76) 42%, rgba(5, 7, 10, .18)),
    linear-gradient(180deg, rgba(5, 7, 10, .18), #05070a 100%);
  z-index: -1;
}

.site-header {
  position: relative;
  z-index: 2;
  padding: 18px clamp(20px, 5vw, 72px) 0;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(246, 247, 243, .12);
  border-radius: 8px;
  background: rgba(5, 7, 10, .74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
}
.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(110, 245, 193, .42);
  background: rgba(110, 245, 193, .1);
  color: var(--mint);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  border-radius: 8px;
}
.brand--dark { color: #12171b; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(246, 247, 243, .72);
  font-size: 14px;
}
.nav__links a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  border-radius: 7px;
  text-decoration: none;
}
.nav__links a:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--mint);
}
.nav__links .nav__signin {
  margin-left: 8px;
  padding: 0 16px;
  border: 1px solid rgba(110, 245, 193, .62);
  background: var(--mint);
  color: #06100c;
  font-weight: 800;
}
.nav__links .nav__signin:hover {
  background: #8affd2;
  color: #06100c;
}

.hero__content {
  width: min(760px, calc(100% - 40px));
  padding: clamp(46px, 9vh, 110px) 0 82px clamp(20px, 5vw, 72px);
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--mint);
  font: 700 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: .92;
  letter-spacing: 0;
}
.subhead {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(246, 247, 243, .76);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.button--primary {
  background: var(--mint);
  color: #06100c;
}
.button--secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, .06);
}
.button--signin {
  border-color: rgba(110, 245, 193, .45);
  background: rgba(110, 245, 193, .12);
  color: var(--mint);
}
.button--signin:hover {
  background: rgba(110, 245, 193, .2);
}
.url-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 38px;
}
.url-strip code {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 7, 10, .62);
  color: var(--sky);
}

.trust-band, .product {
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}
.trust-band {
  display: grid;
  gap: 32px;
  background: #07100d;
  border-top: 1px solid rgba(110, 245, 193, .16);
}
.trust-band h2, .product h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid rgba(246, 247, 243, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}
.trust-grid span {
  color: var(--copper);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.trust-grid h3 {
  margin: 34px 0 12px;
  font-size: 21px;
}
.trust-grid p, .product p {
  color: var(--muted);
  line-height: 1.7;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(360px, .65fr);
  gap: clamp(28px, 6vw, 80px);
  background: #f6f7f3;
  color: #10151a;
}
.product .eyebrow { color: #137855; }
.product p { color: #4d5954; }
.status-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}
.status-list div {
  padding: 14px 0;
  border-top: 1px solid rgba(16, 21, 26, .14);
}
.status-list dt {
  font-weight: 800;
}
.status-list dd {
  margin: 4px 0 0;
  color: #59625e;
}
.claim {
  display: grid;
  gap: 16px;
  align-self: start;
  padding: 24px;
  border: 1px solid rgba(16, 21, 26, .16);
  border-radius: 8px;
  background: #fff;
}
.auth-panel__heading {
  display: grid;
  gap: 6px;
}
.auth-panel__heading .eyebrow {
  margin: 0;
}
.auth-panel h3 {
  margin: 0;
  color: #10151a;
  font-size: 24px;
  line-height: 1.15;
}
.auth-stack {
  display: grid;
  gap: 12px;
}
.auth-option {
  width: 100%;
  gap: 12px;
  min-height: 54px;
}
.auth-option__text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.auth-option__tag {
  margin-left: auto;
  padding: 4px 7px;
  border: 1px solid rgba(16, 21, 26, .16);
  border-radius: 7px;
  font-size: 12px;
  line-height: 1;
}
.auth-option--sso .auth-option__tag {
  background: rgba(6, 16, 12, .1);
}
.auth-option--passkey {
  color: #10151a;
}
.auth-option--passkey:disabled {
  cursor: wait;
  opacity: .72;
}
.password-toggle {
  min-height: 44px;
  border: 0;
  border-top: 1px solid rgba(16, 21, 26, .12);
  background: transparent;
  color: #4d5954;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}
.password-toggle:hover {
  color: #10151a;
}
.password-fallback {
  display: grid;
  gap: 14px;
}
.password-fallback[hidden] {
  display: none;
}
.sso-email {
  display: grid;
  gap: 14px;
}
.claim label {
  display: grid;
  gap: 8px;
  color: #25302b;
  font-size: 14px;
  font-weight: 800;
}
.claim input, .claim textarea {
  width: 100%;
  border: 1px solid rgba(16, 21, 26, .18);
  border-radius: 8px;
  padding: 13px 14px;
  color: #10151a;
  background: #f8faf7;
  font: inherit;
}
.claim textarea {
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.form-note {
  margin: 0;
  font-size: 14px;
}
.form-note[data-kind="ok"] { color: #137855; }
.form-note[data-kind="error"] { color: #a12626; }

.key-shell {
  min-height: 100vh;
  padding: 30px clamp(20px, 5vw, 72px);
  background: #f6f7f3;
  color: #10151a;
}
.login-shell {
  min-height: 100vh;
  padding: 30px clamp(20px, 5vw, 72px);
  background: #f6f7f3;
  color: #10151a;
}
.key-view, .empty {
  margin-top: clamp(60px, 10vh, 120px);
  max-width: 980px;
}
.login-view {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(360px, 480px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  margin-top: clamp(60px, 10vh, 120px);
}
.login-copy h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .98;
}
.login-copy .eyebrow {
  color: #137855;
}
.login-copy p:not(.eyebrow) {
  max-width: 600px;
  color: #59625e;
  font-size: 18px;
  line-height: 1.6;
}
.login-panel {
  box-shadow: 0 22px 80px rgba(16, 21, 26, .12);
}
.back-link {
  color: #137855;
  font-weight: 800;
  text-decoration: none;
}
.key-view .eyebrow, .empty .eyebrow { color: #137855; }
.key-view h1, .empty h1 {
  font-size: clamp(42px, 7vw, 84px);
}
.key-view h1 span {
  color: #63706a;
}
.key-block {
  margin: 30px 0 0;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid rgba(16, 21, 26, .16);
  border-radius: 8px;
  background: #10151a;
  color: var(--mint);
  white-space: pre-wrap;
  word-break: break-all;
}
.key-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.key-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(16, 21, 26, .15);
  border-radius: 8px;
  color: #3d4944;
  font-size: 13px;
}
.url-strip--light code {
  background: #fff;
  color: #0f6f51;
  border-color: rgba(16, 21, 26, .14);
}
.empty p {
  max-width: 640px;
  color: #59625e;
  line-height: 1.7;
}
.site-footer {
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(246, 247, 243, .12);
  background: #05070a;
  color: rgba(246, 247, 243, .64);
  font-size: 14px;
}
.site-footer a {
  color: var(--mint);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}
.key-shell .site-footer {
  margin: clamp(70px, 12vh, 130px) calc(clamp(20px, 5vw, 72px) * -1) -30px;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }
  .nav__links {
    flex-wrap: wrap;
  }
  .nav__links .nav__signin {
    margin-left: 0;
  }
  .hero__content {
    padding-top: 36px;
  }
  .trust-grid, .product {
    grid-template-columns: 1fr;
  }
  .login-view {
    grid-template-columns: 1fr;
  }
  .product {
    padding-bottom: 64px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: 860px;
  }
  h1 {
    font-size: 52px;
  }
  .actions .button {
    width: 100%;
  }
  .claim {
    padding: 18px;
  }
  .auth-option {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 14px;
  }
  .auth-option__tag {
    margin-left: 0;
  }
}
