:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #0c192b;
  --surface-2: #11233a;
  --line: #243751;
  --text: #f8fafc;
  --muted: #9fb0c5;
  --amber: #f5b942;
  --amber-deep: #d99616;
  --green: #35d49a;
  --red: #fb7185;
}

@font-face {
  font-family: "Great Vibes";
  src: url("fonts/GreatVibes-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(circle at 80% 5%, rgba(245,185,66,.12), transparent 28rem),
    linear-gradient(160deg, #07111f 0%, #081526 56%, #07111f 100%);
  display: flex;
  flex-direction: column;
}

.site-header {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(145deg, #ffd56f, var(--amber-deep)); color: #172033;
  font-size: 15px; font-weight: 800; box-shadow: 0 10px 32px rgba(245,185,66,.18);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 3px; color: var(--amber); font-size: 12px; font-weight: 700; }
.official-pill { color: #dbeafe; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.24); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 800; }

main { width: min(760px, calc(100% - 32px)); margin: 0 auto; flex: 1; padding: 64px 0 70px; }
.intro { text-align: center; margin-bottom: 28px; }
.eyebrow { color: var(--amber); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 10px 0 8px; font-family: "Playfair Display", Georgia, serif; font-size: clamp(36px, 7vw, 58px); line-height: 1.06; }
.intro p { margin: 0; color: var(--muted); font-size: 16px; }

.search-card, .certificate-card, .state-card {
  border: 1px solid var(--line); border-radius: 24px; background: rgba(12,25,43,.9);
  box-shadow: 0 24px 80px rgba(0,0,0,.24); backdrop-filter: blur(14px);
}
.search-card { padding: 24px; }
label { display: block; margin-bottom: 10px; color: #dce6f3; font-size: 14px; font-weight: 800; }
.search-row { display: flex; gap: 10px; }
input, button { min-height: 50px; border-radius: 13px; font: inherit; }
input { width: 100%; min-width: 0; padding: 0 15px; color: var(--text); background: #07111f; border: 1px solid #30445f; outline: none; text-transform: uppercase; }
input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245,185,66,.12); }
button { padding: 0 22px; border: 0; color: #101827; background: linear-gradient(145deg, #ffd56f, var(--amber)); font-weight: 800; cursor: pointer; }
button:hover { filter: brightness(1.05); }
button:disabled { cursor: wait; opacity: .65; }
.input-help { margin: 10px 0 0; color: #7f93ab; font-size: 12px; }
.result-region { margin-top: 22px; }

.state-card { padding: 24px; text-align: center; }
.state-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 25px; background: rgba(245,185,66,.12); color: var(--amber); }
.state-card h2 { margin: 0 0 7px; font-size: 20px; }
.state-card p { margin: 0; color: var(--muted); line-height: 1.55; }

.certificate-card { overflow: hidden; border-color: rgba(53,212,154,.3); }
.verified-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid rgba(53,212,154,.2); background: linear-gradient(120deg, rgba(53,212,154,.14), rgba(17,35,58,.6)); }
.verified-head small { display: block; color: var(--amber); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.verified-head h2 { margin: 4px 0 0; color: var(--green); font-size: 19px; }
.valid-seal { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; border-radius: 50%; color: #06291d; background: var(--green); font-size: 25px; font-weight: 800; }
.certificate-body { padding: 24px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 22px; }
.field.wide { grid-column: 1 / -1; }
.field-label { display: block; margin-bottom: 5px; color: #8195ad; font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.field-value { color: #e7edf6; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.field-value.primary { font-family: "Great Vibes", cursive; font-size: clamp(36px, 6vw, 50px); font-weight: 400; line-height: 1.25; color: white; }
.field-value.code { color: var(--amber); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 800; }
.approval-status { display: inline-flex; margin-top: 8px; padding: 6px 10px; border: 1px solid rgba(53,212,154,.35); border-radius: 999px; color: var(--green); background: rgba(53,212,154,.1); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.teacher { margin-top: 22px; padding: 18px; display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,17,31,.64); }
.teacher.no-photo { grid-template-columns: 1fr; }
.teacher img { width: 92px; height: 92px; border-radius: 16px; object-fit: cover; object-position: center 24%; border: 2px solid rgba(245,185,66,.55); }
.teacher small { display: block; color: var(--amber); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.teacher strong { display: block; margin: 5px 0 3px; font-size: 16px; }
.teacher span { color: var(--muted); font-size: 13px; }
.syllabus { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.syllabus h3 { margin: 0 0 12px; color: var(--amber); font-size: 16px; }
.syllabus-content { display: grid; gap: 9px; }
.syllabus-message { margin: 0; color: var(--muted); font-size: 14px; }
.syllabus-module { padding: 12px 15px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7,17,31,.5); }
.syllabus-module summary { cursor: pointer; color: #e7edf6; font-size: 14px; font-weight: 700; line-height: 1.5; }
.syllabus-module ul { margin: 12px 0 2px; padding-left: 21px; color: #bfccda; font-size: 14px; line-height: 1.55; }
.syllabus-module li + li { margin-top: 6px; }
.status-line { margin: 22px -24px -24px; padding: 15px 24px; text-align: center; color: var(--green); background: rgba(53,212,154,.09); border-top: 1px solid rgba(53,212,154,.2); font-size: 13px; font-weight: 800; letter-spacing: .05em; }
.revoked { border-color: rgba(251,113,133,.38); }
.revoked .state-icon { color: var(--red); background: rgba(251,113,133,.12); }

footer { padding: 26px 16px 34px; display: grid; gap: 4px; text-align: center; color: #71859d; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; }
footer strong { color: #aebdd0; }

@media (max-width: 620px) {
  .site-header { align-items: flex-start; }
  .official-pill { display: none; }
  main { padding-top: 44px; }
  .search-row { flex-direction: column; }
  button { width: 100%; }
  .fields { grid-template-columns: 1fr; }
  .field.wide { grid-column: auto; }
  .teacher { grid-template-columns: 74px 1fr; }
  .teacher img { width: 74px; height: 74px; }
}
