:root {
  --blue: #0b2f6b;
  --blue-2: #154b9b;
  --blue-3: #071a3a;
  --silver: #b7c0cb;
  --silver-2: #e5e9ee;
  --white: #ffffff;
  --ink: #0f1721;
  --muted: #5d6875;
  --line: #d9dfe6;
  --panel: #f5f7fa;
  --shadow: 0 24px 65px rgba(5, 20, 45, 0.16);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.site-header {
  height: 82px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(11,47,107,.10);
}

.brand { display: inline-flex; flex-direction: column; line-height: 1; }
.brand-kga {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  letter-spacing: .07em;
  font-size: 30px;
  color: var(--blue);
}
.brand-sub {
  margin-top: 4px;
  font-size: 8px;
  letter-spacing: .18em;
  font-weight: 800;
  color: #384456;
}

.main-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 650; }
.main-nav a { transition: color .2s ease; }
.main-nav a:hover { color: var(--blue-2); }
.nav-contact {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 750;
}
.nav-contact:hover { background: var(--blue); color: white; }
.menu-btn { display: none; }

.section-dark {
  color: white;
  background:
    radial-gradient(circle at 75% 30%, rgba(38,89,165,.30), transparent 32%),
    linear-gradient(135deg, #06152f 0%, #0b2f6b 58%, #071a3a 100%);
}
.hero {
  min-height: 700px;
  padding: clamp(58px, 8vw, 100px) clamp(22px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(35px, 6vw, 90px);
  align-items: center;
  overflow: hidden;
}
.hero-copy { max-width: 690px; }
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  letter-spacing: .2em;
  font-weight: 800;
  color: #c9d4e5;
}
.eyebrow.blue { color: var(--blue-2); }
.hero h1, .section-heading h2, .contact-cta h2 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  line-height: .98;
  letter-spacing: .015em;
}
.hero h1 {
  max-width: 740px;
  font-size: clamp(55px, 7vw, 98px);
  margin: 0;
}
.hero-lead {
  max-width: 620px;
  margin: 28px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: #d5deea;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.btn {
  border: 0;
  border-radius: 9px;
  padding: 14px 20px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  transition: transform .15s ease, background .15s ease, color .15s ease, border .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--blue-2); box-shadow: 0 10px 25px rgba(12,56,122,.20); }
.btn-primary:hover { background: #1c58ad; }
.btn-ghost { color: white; border: 1px solid rgba(255,255,255,.45); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-light { background: white; color: var(--blue); }

.trust-row {
  display: flex;
  gap: 0;
  margin-top: 42px;
  flex-wrap: wrap;
  color: #c9d4e5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}
.trust-row span { padding: 0 15px; border-right: 1px solid rgba(255,255,255,.22); }
.trust-row span:first-child { padding-left: 0; }
.trust-row span:last-child { border-right: 0; }

.hero-media { display: flex; justify-content: center; }
.photo-frame {
  position: relative;
  max-width: 480px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.32);
  padding: 10px;
  background: rgba(255,255,255,.08);
  box-shadow: 0 35px 85px rgba(0,0,0,.38);
  transform: rotate(1.2deg);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(183,192,203,.28);
  pointer-events: none;
}
.photo-frame img { width: 100%; height: auto; }

.intro-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px clamp(22px, 6vw, 90px);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
  align-items: center;
}
.intro-strip strong { display: block; margin-top: 6px; font-size: clamp(18px, 2vw, 25px); }
.intro-strip p { margin: 0; color: var(--muted); line-height: 1.6; }
.mini-label { font-size: 10px; color: var(--blue-2); letter-spacing: .18em; font-weight: 800; }

.section { padding: clamp(72px, 9vw, 120px) clamp(22px, 6vw, 90px); }
.light-section { background: #fff; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  color: var(--ink);
}
.section-heading p:last-child {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.core-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 44px;
}
.core-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  padding: 24px;
  background: #fff;
  min-height: 190px;
}
.core-card span { font-size: 11px; color: var(--blue-2); font-weight: 800; letter-spacing: .12em; }
.core-card h3 { margin: 18px 0 10px; font-family: "Oswald", sans-serif; font-size: 26px; text-transform: uppercase; }
.core-card p { margin: 0; color: var(--muted); line-height: 1.6; font-size: 14px; }

.grade-list { border-top: 1px solid var(--line); }
.grade-row {
  display: grid;
  grid-template-columns: 90px 1fr 230px;
  gap: 24px;
  align-items: center;
  padding: 24px 12px;
  border-bottom: 1px solid var(--line);
}
.grade-row.featured { background: linear-gradient(90deg, #f0f5ff, white); }
.grade-number {
  font-family: "Oswald", sans-serif;
  font-size: 56px;
  line-height: 1;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
}
.grade-row h3 { margin: 0 0 6px; font-size: 19px; }
.grade-row p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 14px; }
.centering { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.centering strong { color: var(--ink); margin-bottom: 3px; }
.standards-note { margin: 24px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.pricing-section {
  color: white;
  background:
    linear-gradient(rgba(6,21,47,.93), rgba(6,21,47,.96)),
    radial-gradient(circle at top right, #1b59b3, transparent 40%);
}
.pricing-section .section-heading h2 { color: white; }
.pricing-section .section-heading p:last-child { color: #c7d1dd; }
.pricing-grid { max-width: 850px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.price-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.055);
  min-height: 420px;
}
.price-card.highlight { border: 1px solid #7faeff; background: rgba(28,88,173,.15); }
.price-label { letter-spacing: .18em; font-size: 11px; font-weight: 800; color: #cbd5e1; }
.price { font-family: "Oswald", sans-serif; font-size: 86px; font-weight: 700; line-height: .95; margin-top: 30px; }
.price span { font-size: 36px; vertical-align: top; margin-right: 3px; }
.per { color: #cbd5e1; margin: 8px 0 28px; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: #dbe4ee; font-size: 14px; }
.price-card li::before { content: "✓"; color: #91b8ff; margin-right: 10px; font-weight: 900; }
.badge {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 9px; font-weight: 900; letter-spacing: .16em;
  padding: 7px 9px;
  color: white;
  background: var(--blue-2);
}
.coming-soon {
  margin: 24px auto 0;
  width: fit-content;
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.2);
  color: #dbe4ee;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.search-bar, .verify-form {
  display: flex;
  gap: 10px;
  max-width: 820px;
}
.search-bar input, .verify-form input, .contact-modal input, .contact-modal textarea, .admin-shell input, .admin-shell select {
  width: 100%;
  border: 1px solid #cdd5df;
  border-radius: 9px;
  background: white;
  padding: 14px 15px;
  color: var(--ink);
  outline: none;
}
.search-bar input:focus, .verify-form input:focus, .contact-modal input:focus, .contact-modal textarea:focus, .admin-shell input:focus, .admin-shell select:focus {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(21,75,155,.10);
}
.status-line { min-height: 24px; padding: 16px 0 8px; color: var(--muted); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; min-width: 820px; background: white; }
.data-table th {
  text-align: left;
  padding: 14px 16px;
  background: #f1f4f8;
  color: #394657;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.data-table td { padding: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.data-table tbody tr:hover { background: #fafcff; }

.verify-section {
  color: white;
  background:
    radial-gradient(circle at 85% 20%, rgba(49,111,201,.25), transparent 30%),
    #071a3a;
}
.verify-panel { max-width: 980px; margin: 0 auto; }
.verify-panel .section-heading h2 { color: white; }
.verify-panel .section-heading p:last-child { color: #c7d1dd; }
.verify-form { max-width: 650px; }
.verify-result { margin-top: 26px; }
.cert-card {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 25px;
  padding: 26px;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  max-width: 760px;
}
.cert-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 28px; }
.cert-meta div { display: flex; flex-direction: column; gap: 4px; }
.cert-meta span { color: #aebdce; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.cert-meta strong { font-size: 14px; }
.cert-grade {
  border-left: 1px solid rgba(255,255,255,.18);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.cert-grade span { font-size: 11px; letter-spacing: .12em; color: #aebdce; }
.cert-grade strong { font-family: "Oswald", sans-serif; font-size: 74px; line-height: 1; }
.not-found, .error-box { padding: 18px; border: 1px solid rgba(255,255,255,.18); color: #d5deea; max-width: 650px; }

.contact-cta {
  padding: 45px clamp(22px, 6vw, 90px);
  background: var(--blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact-cta .eyebrow { margin-bottom: 10px; }
.contact-cta h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); }

footer {
  min-height: 130px;
  padding: 30px clamp(22px, 6vw, 90px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}
.footer-brand { justify-self: start; }
.admin-link { justify-self: end; color: #8893a0; font-size: 11px; }

.contact-modal {
  width: min(680px, calc(100% - 30px));
  border: 0;
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-modal::backdrop { background: rgba(2,11,27,.72); backdrop-filter: blur(5px); }
.contact-modal h2 { margin: 0 0 24px; font-family: "Oswald", sans-serif; text-transform: uppercase; font-size: 38px; }
.modal-close {
  position: absolute; right: 18px; top: 15px;
  border: 0; background: transparent; font-size: 30px; color: #647181;
}
.contact-modal form { display: grid; gap: 15px; }
.contact-modal label { font-size: 12px; font-weight: 700; display: grid; gap: 7px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-modal textarea { resize: vertical; }
.form-status { margin: 0; font-size: 12px; color: var(--muted); min-height: 16px; }
.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; }

/* Admin */
.admin-body { background: #f3f6fa; min-height: 100vh; }
.admin-header {
  height: 74px; padding: 0 28px;
  background: #071a3a; color: white;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-header .brand-kga, .admin-header .brand-sub { color: white; }
.admin-header a { font-size: 12px; color: #d7e0ec; }
.admin-shell { max-width: 1250px; margin: 0 auto; padding: 42px 24px 80px; }
.admin-panel {
  background: white; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; box-shadow: 0 16px 40px rgba(9,33,68,.06);
}
.admin-panel + .admin-panel { margin-top: 22px; }
.admin-panel h1, .admin-panel h2 { margin-top: 0; font-family: "Oswald", sans-serif; text-transform: uppercase; }
.login-box { max-width: 480px; margin: 60px auto; }
.login-box form { display: grid; gap: 14px; }
.login-box label, .card-form label { font-size: 12px; font-weight: 700; display: grid; gap: 7px; }
.admin-topline { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.admin-topline p { margin: 0; color: var(--muted); font-size: 13px; }
.card-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card-form .span-2 { grid-column: span 2; }
.card-form .form-actions { grid-column: 1/-1; display: flex; gap: 10px; }
.btn-secondary { background: #e8edf3; color: #1d2a3b; }
.btn-danger { background: #8e1a27; color: white; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.action-btn { border: 1px solid #cbd3dd; background: white; padding: 7px 9px; border-radius: 6px; font-size: 11px; }
.action-btn.danger { color: #8e1a27; border-color: #dfbbc0; }
.demo-banner { padding: 12px 14px; background: #fff3cd; border: 1px solid #ffe69c; color: #6e5500; border-radius: 8px; font-size: 12px; margin-bottom: 18px; }

/* KGA certification prefix fields */
.cert-number-field {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cdd5df;
  border-radius: 9px;
  background: white;
}
.cert-number-field:focus-within {
  border-color: var(--blue-2);
  box-shadow: 0 0 0 3px rgba(21,75,155,.10);
}
.cert-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid #d7dee7;
  background: #eef2f7;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
}
.cert-number-field input,
.cert-number-field input:focus {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.admin-cert-field {
  width: 100%;
}

@media (max-width: 980px) {
  .main-nav { gap: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; }
  .photo-frame { max-width: 410px; }
  .core-grid { grid-template-columns: 1fr 1fr; }
  .grade-row { grid-template-columns: 70px 1fr; }
  .centering { grid-column: 2; }
  .card-form { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 760px) {
  .site-header { height: 72px; }
  .menu-btn {
    display: block;
    border: 1px solid var(--line); background: white;
    border-radius: 7px; padding: 9px 11px; font-size: 12px; font-weight: 750;
  }
  .main-nav {
    display: none;
    position: absolute; top: 71px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    padding: 20px 22px; background: white; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 35px rgba(0,0,0,.08);
  }
  .main-nav.open { display: flex; }
  .main-nav a, .nav-contact { padding: 11px 0; }
  .nav-contact { text-align: left; border: 0; }
  .nav-contact:hover { background: transparent; color: var(--blue-2); }

  .hero { min-height: 0; padding-top: 58px; }
  .hero h1 { font-size: clamp(50px, 16vw, 74px); }
  .hero-lead { font-size: 17px; }
  .trust-row { gap: 10px 0; }
  .trust-row span { width: 100%; border: 0; padding: 0; }
  .intro-strip { grid-template-columns: 1fr; }
  .core-grid { grid-template-columns: 1fr; }
  .grade-row { grid-template-columns: 55px 1fr; gap: 14px; padding-left: 0; padding-right: 0; }
  .grade-number { font-size: 42px; }
  .grade-row p { font-size: 13px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .search-bar, .verify-form { flex-direction: column; }
  .cert-card { grid-template-columns: 1fr; }
  .cert-grade { border-left: 0; border-top: 1px solid rgba(255,255,255,.18); padding-top: 18px; }
  .contact-cta { align-items: flex-start; flex-direction: column; }
  footer { grid-template-columns: 1fr; text-align: left; }
  .footer-brand, .admin-link { justify-self: start; }
  .field-grid { grid-template-columns: 1fr; }
  .card-form { grid-template-columns: 1fr; }
  .card-form .span-2 { grid-column: span 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}


.legal-disclaimer {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 18px;
  color: #7a8592;
  font-size: 10px;
  line-height: 1.65;
  max-width: 1180px;
}
.legal-disclaimer p {
  margin: 0 0 8px;
}
.legal-disclaimer p:last-child {
  margin-bottom: 0;
}
.legal-disclaimer strong {
  color: #5f6a77;
}
