:root {
  --purple: #5a35b5;
  --purple-dark: #452589;
  --purple-soft: #f1ecfb;
  --ink: #171321;
  --muted-light: #676270;
  --line-light: #dedbe3;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.landing-body {
  background: #fff;
  color: var(--ink);
}

.site-header {
  max-width: var(--max);
  height: 88px;
  margin: auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  display: block;
  width: auto;
  height: 38px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #3f3948;
  font-size: .92rem;
  font-weight: 650;
}
.site-nav a:hover { color: var(--purple); }
.site-nav .sign-in-link {
  padding: 10px 22px;
  border: 2px solid var(--purple);
  border-radius: 4px;
  color: var(--purple);
}
.site-nav .sign-in-link:hover {
  background: var(--purple);
  color: #fff;
}

.landing {
  max-width: var(--max);
  margin: auto;
  padding: 0 28px;
}
.hero {
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.eyebrow {
  margin: 0;
  color: var(--purple);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 850px;
  margin: 22px 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1;
  letter-spacing: -.06em;
}
.hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted-light);
  font-size: 1.18rem;
}
.search-form {
  width: min(740px, 100%);
  display: flex;
  margin-top: 38px;
  padding: 7px;
  background: #fff;
  box-sizing: border-box;
  border: 1px solid rgb(115, 115, 115);
  border-radius: 16px;
  box-shadow: 0 15px 45px rgba(43, 27, 73, .12);
}
.search-form:focus-within {
  border-color: var(--purple);
  box-shadow: 0 15px 45px rgba(75, 46, 146, .18);
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 14px 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.search-form button,
.secondary-button {
  padding: 13px 25px;
  border: 0;
  border-radius: 4px;
  background: var(--purple);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.search-form button:hover,
.secondary-button:hover { background: var(--purple-dark); }
.search-hint {
  margin-top: 13px;
  color: #827d89;
  font-size: .8rem;
}
.search-results {
  width: min(740px, 100%);
  display: grid;
  gap: 9px;
}
.result-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: 5px;
  text-align: left;
  box-shadow: 0 7px 20px rgba(43, 27, 73, .06);
}
.result-card:hover { border-color: var(--purple); }
.result-card span:first-child { display: grid; }
.result-card small { color: var(--muted-light); }
.result-action {
  color: var(--purple);
  font-size: .86rem;
  font-weight: 750;
}
.empty-result {
  padding: 14px;
  border: 1px solid #e7bcbc;
  border-radius: 5px;
  background: #fff2f2;
  color: #702b2b;
}
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 34px;
  border-top: 1px solid var(--line-light);
  border-bottom: 1px solid var(--line-light);
}
.trust-strip div { padding: 38px 35px; }
.trust-strip div + div { border-left: 1px solid var(--line-light); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong {
  color: var(--purple);
  font-size: 1.05rem;
}
.trust-strip span {
  color: var(--muted-light);
  font-size: .84rem;
}

footer {
  max-width: var(--max);
  margin: 54px auto 0;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  color: #77717f;
  font-size: .78rem;
}

.badge-body {
  --bg: #f7f6f9;
  --panel: #fff;
  --text: var(--ink);
  --muted: #686271;
  --line: #dedbe3;
  background: var(--bg);
  color: var(--text);
}
.badge-body .site-header { border-bottom-color: var(--line); }
.verified-label {
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .04em;
}
.verified-label span { color: var(--purple); }
.badge-page {
  max-width: var(--max);
  min-height: 720px;
  margin: auto;
  padding: 72px 28px;
}
.credential-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 72px;
}
.badge-aside { text-align: center; }
.badge-image-wrap {
  width: 270px;
  height: 270px;
  margin: 0 auto 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0, #eeeaf5 72%);
  box-shadow: 0 15px 35px rgba(43, 27, 73, .1);
}
.badge-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
}
.awarded-to {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.badge-aside h2 {
  margin: 2px;
  font-size: 1.35rem;
}
.muted {
  color: var(--muted);
  font-size: .84rem;
}
.linkedin-button {
  width: 100%;
  margin: 22px 0;
  padding: 13px;
  border: 0;
  border-radius: 4px;
  background: var(--purple);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}
.linkedin-button:hover { background: var(--purple-dark); }
.linkedin-button span {
  margin-right: 8px;
  font-family: Arial, sans-serif;
  font-weight: 900;
}
.credential-id {
  padding-top: 17px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.credential-id > div + div {
  margin-top: 14px;
}
.credential-id span, .credential-id code { display: block; }
.credential-id span {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.credential-id code {
  overflow-wrap: anywhere;
  color: #46404e;
  font-size: .75rem;
}
.verified-pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--purple-soft);
  color: var(--purple);
  font-size: .74rem;
  font-weight: 800;
}
.credential-content h1 {
  max-width: 730px;
  margin: 18px 0 5px;
  font-size: clamp(2.45rem, 5vw, 4.65rem);
  line-height: 1.03;
  letter-spacing: -.055em;
}
.issued-by { color: var(--muted); }
.issued-by strong { color: var(--text); }
.divider {
  height: 1px;
  margin: 34px 0;
  background: var(--line);
}
.credential-content h3 {
  margin: 28px 0 8px;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.description {
  max-width: 750px;
  color: #504a57;
  font-size: 1.02rem;
}
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skills span {
  padding: 7px 12px;
  border: 1px solid #cbbce9;
  border-radius: 99px;
  background: var(--purple-soft);
  color: var(--purple-dark);
  font-size: .82rem;
  font-weight: 650;
}
.criteria {
  display: flex;
  gap: 18px;
  margin-top: 42px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.criteria h3 { margin: 0; }
.criteria p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.criteria-icon {
  flex: 0 0 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 900;
}
.status-card, .not-found {
  max-width: 620px;
  margin: 100px auto;
  color: var(--muted);
  text-align: center;
}
.not-found h1 {
  color: var(--text);
  font-size: 2.5rem;
}
.not-found-icon {
  width: 70px;
  height: 70px;
  margin: auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--purple);
  border-radius: 50%;
  color: var(--purple);
  font-size: 2rem;
}
.secondary-button {
  display: inline-block;
  margin-top: 17px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] { display: none !important; }

@media (max-width: 760px) {
  .site-header {
    height: 74px;
    padding: 0 18px;
  }
  .brand-logo { height: 32px; }
  .site-nav { gap: 12px; }
  .site-nav > a:first-child { display: none; }
  .site-nav .sign-in-link { padding: 7px 14px; }
  .verified-label { font-size: .7rem; }
  .landing { padding: 0 18px; }
  .hero { min-height: 590px; }
  .hero h1 { font-size: 3.35rem; }
  .search-form {
    display: block;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
  .search-form input {
    width: 100%;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid rgb(115, 115, 115);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(43, 27, 73, .09);
  }
  .search-form button {
    width: 100%;
    margin-top: 9px;
  }
  .result-card {
    align-items: flex-start;
    gap: 10px;
  }
  .result-action { white-space: nowrap; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { padding: 22px 4px; }
  .trust-strip div + div {
    border-top: 1px solid var(--line-light);
    border-left: 0;
  }
  .badge-page { padding: 42px 20px; }
  .credential-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .badge-image-wrap {
    width: 220px;
    height: 220px;
  }
  .badge-aside {
    width: 100%;
    max-width: 360px;
    margin: auto;
  }
  .credential-content { text-align: left; }
  .credential-content h1 { font-size: 2.55rem; }
  footer {
    display: grid;
    gap: 6px;
    margin-top: 35px;
    padding: 22px 18px;
  }
}
