:root {
  --ink: #103d46;
  --muted: #4d7680;
  --green: #087f92;
  --green-dark: #075f72;
  --lime: #9cf4b8;
  --cream: #10acd0;
  --white: #fff;
  --line: rgba(255, 255, 255, .32);
  --danger: #b42318;
  --shadow: 0 22px 55px rgba(4, 77, 99, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(155deg, #0b9dcc 0%, #12bed1 36%, #40d1aa 69%, #93ef83 100%);
  background-attachment: fixed;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 36px 36px;
}
button, input { font: inherit; }
button { cursor: pointer; }
.page-glow { position: fixed; border-radius: 50%; filter: blur(2px); pointer-events: none; z-index: -1; }
.page-glow--one { width: 420px; height: 420px; background: rgba(255,255,255,.10); top: -180px; right: -90px; }
.page-glow--two { width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.14); bottom: -160px; left: -100px; }

.site-header {
  max-width: 1180px;
  margin: auto;
  padding: 25px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.24);
}
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand__mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(7, 92, 113, .38); color: white; box-shadow: 0 8px 18px rgba(4, 69, 88, .18); border: 1px solid rgba(255,255,255,.25); }
.brand__mark svg { width: 27px; fill: currentColor; }
.brand strong, .brand small { display: block; }
.brand strong { font: 800 18px/1.1 Manrope, sans-serif; letter-spacing: -.3px; }
.brand small { margin-top: 3px; color: rgba(255,255,255,.78); font-size: 11px; letter-spacing: .04em; }
.secure-pill { display: flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.3); border-radius: 4px; background: rgba(6, 106, 130, .24); color: white; font-size: 12px; font-weight: 600; }
.secure-pill svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }

main { width: min(100% - 40px, 920px); margin: 52px auto 80px; }
.hero { max-width: 860px; margin-bottom: 38px; }
.hero__heading { display: flex; align-items: center; gap: clamp(20px, 4vw, 38px); }
.hero__heading > div { min-width: 0; }
.school-logo {
  flex: 0 0 clamp(118px, 18vw, 170px);
  width: clamp(118px, 18vw, 170px);
  height: clamp(118px, 18vw, 170px);
  object-fit: contain;
  filter: drop-shadow(0 15px 18px rgba(23, 53, 47, .14));
}
.eyebrow { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.eyebrow span { width: 25px; height: 2px; background: white; }
.hero h1 { margin: 16px 0 0; color: white; font: 800 clamp(38px, 6vw, 64px)/.98 Manrope, sans-serif; letter-spacing: -.055em; text-shadow: 0 5px 22px rgba(0,72,93,.17); }
.hero h1 em { color: #d8ffd9; font-style: normal; }
.hero h1 .school-name { display: inline-block; margin-top: 8px; font-size: .47em; line-height: 1.15; letter-spacing: -.025em; }
.hero > p { max-width: 660px; margin: 24px 0 0 calc(clamp(118px, 18vw, 170px) + clamp(20px, 4vw, 38px)); color: rgba(255,255,255,.88); font-size: 17px; line-height: 1.65; }

.search-card, .result {
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.search-card { padding: 30px; }
.search-card__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.step { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 2px; background: linear-gradient(145deg, #0789a5, #22bea9); color: white; font: 700 12px Manrope, sans-serif; }
h2 { margin: 0; font: 800 23px Manrope, sans-serif; letter-spacing: -.03em; }
.search-card__head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
form label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; width: 21px; left: 17px; top: 50%; transform: translateY(-50%); fill: none; stroke: #83928f; stroke-width: 1.7; }
input { width: 100%; height: 56px; padding: 0 18px 0 50px; border: 1.5px solid #c8e1df; border-radius: 3px; outline: none; color: var(--ink); background: rgba(255,255,255,.88); font-size: 16px; font-weight: 600; letter-spacing: .06em; transition: .2s; }
input:focus { border-color: var(--green); background: white; box-shadow: 0 0 0 4px rgba(12, 91, 78, .08); }
input::placeholder { color: #a0aaa7; font-weight: 400; letter-spacing: 0; }
.search-button { height: 56px; padding: 0 22px; border: 0; border-radius: 3px; display: flex; align-items: center; gap: 18px; background: linear-gradient(135deg, #087f9c, #0da797); color: white; font-weight: 700; box-shadow: 0 10px 22px rgba(5, 103, 127, .22); transition: transform .2s, background .2s; }
.search-button:hover { transform: translateY(-2px); background: var(--green-dark); }
.search-button:disabled { cursor: wait; opacity: .7; transform: none; }
.search-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.form-meta { display: flex; justify-content: space-between; margin-top: 8px; color: #8c9996; font-size: 11px; }

.status { margin-top: 20px; padding: 16px 18px; border: 1px solid #f2c7c2; border-radius: 4px; background: #fff3f1; color: var(--danger); font-size: 14px; font-weight: 600; animation: rise .35s ease; }
.status.loading { border-color: var(--line); background: white; color: var(--muted); }
.result { margin-top: 28px; padding: 34px; animation: rise .45s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.result__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.eyebrow--small { margin-bottom: 7px; font-size: 9px; }
.text-button { padding: 8px 0; border: 0; border-bottom: 1px solid var(--green); background: none; color: var(--green); font-size: 12px; font-weight: 700; }
.student-profile { display: flex; align-items: center; gap: 17px; padding: 22px; border: 1px solid rgba(3,119,139,.13); border-radius: 4px; background: linear-gradient(105deg, rgba(5,159,184,.11), rgba(40,203,162,.13)); }
.avatar { flex: 0 0 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #078eaa, #24c39f); color: white; font: 800 16px Manrope, sans-serif; }
.student-profile > div:nth-child(2) { min-width: 0; flex: 1; }
.record-label { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.student-profile h3 { margin: 4px 0 3px; overflow: hidden; text-overflow: ellipsis; font: 800 18px Manrope, sans-serif; }
.student-profile p { margin: 0; color: var(--muted); font-size: 13px; letter-spacing: .04em; }
.verified { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-radius: 2px; background: #d8f7df; color: #28714b; font-size: 10px; font-weight: 700; }
.verified svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.credential-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 15px; }
.credential-card { padding: 22px; border-radius: 4px; color: white; box-shadow: 0 12px 25px rgba(6,108,128,.12); }
.credential-card--student { background: linear-gradient(145deg, rgba(8,139,166,.9), rgba(26,184,178,.88)); }
.credential-card--guardian { background: linear-gradient(145deg, rgba(21,165,170,.9), rgba(56,203,141,.88)); }
.credential-card__header { display: flex; align-items: center; gap: 11px; margin-bottom: 21px; }
.role-icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); color: white; }
.role-icon svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.credential-card__header span:not(.role-icon) { color: rgba(255,255,255,.72); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.credential-card__header h3 { margin: 2px 0 0; font: 800 17px Manrope, sans-serif; }
.field + .field { margin-top: 13px; }
.field label { display: block; margin-bottom: 6px; color: rgba(255,255,255,.82); font-size: 10px; font-weight: 600; }
.field > div { min-height: 43px; padding: 0 8px 0 12px; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; background: rgba(255,255,255,.88); }
.field code { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font: 700 13px "DM Sans", sans-serif; letter-spacing: .02em; white-space: nowrap; }
.icon-button { flex: 0 0 29px; height: 29px; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: #788783; transition: background .2s, color .2s; }
.icon-button:hover { background: #e5ece9; color: var(--green); }
.icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.privacy-note { margin-top: 18px; padding: 13px 15px; display: flex; align-items: center; gap: 10px; border-radius: 3px; background: rgba(8,139,166,.08); color: var(--muted); font-size: 11px; }
.privacy-note svg { flex: 0 0 18px; width: 18px; fill: none; stroke: var(--green); stroke-width: 1.7; }
.privacy-note strong { color: var(--ink); }
footer { width: min(100% - 40px, 1120px); margin: 0 auto; padding: 24px 0 30px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.82); font-size: 10px; }
.toast { position: fixed; left: 50%; bottom: 25px; z-index: 10; padding: 11px 18px; border-radius: 999px; background: var(--ink); color: white; font-size: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 650px) {
  .site-header { padding: 19px 20px; }
  .secure-pill { padding: 8px; font-size: 0; }
  main { width: min(100% - 28px, 920px); margin-top: 38px; }
  .hero__heading { align-items: flex-start; gap: 15px; }
  .school-logo { flex-basis: 82px; width: 82px; height: 82px; }
  .hero h1 { margin-top: 10px; font-size: clamp(30px, 9.4vw, 45px); }
  .hero .eyebrow { font-size: 8px; gap: 6px; }
  .hero .eyebrow span { width: 15px; }
  .hero > p { margin-left: 0; margin-top: 22px; }
  .hero > p { font-size: 15px; }
  .search-card, .result { padding: 21px; border-radius: 19px; }
  .input-row { grid-template-columns: 1fr; }
  .search-button { justify-content: center; }
  .credential-grid { grid-template-columns: 1fr; }
  .student-profile { align-items: flex-start; flex-wrap: wrap; }
  .verified { margin-left: 70px; margin-top: -12px; }
  .result__top { align-items: flex-end; }
  footer { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
