:root {
  --ink: #102226;
  --ink-soft: #3a4d52;
  --muted: #5d7176;
  --line: #d7e1e2;
  --paper: #f4f7f6;
  --white: #ffffff;
  --teal: #0d9b8a;
  --teal-dark: #0a7a6d;
  --teal-soft: #d7f4ef;
  --navy: #0b1f24;
  --navy-2: #122b31;
  --gold: #c4a35a;
  --danger: #9b2c2c;
  --ok: #1b7a4a;
  --shadow: 0 10px 30px rgba(11, 31, 36, 0.08);
  --radius: 14px;
  --max: 1120px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 96px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand img { height: 72px; width: auto; display: block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 11px;
  border-radius: 8px;
}
.nav a:hover, .nav a.active { color: var(--navy); background: var(--teal-soft); }
.nav .cta {
  background: var(--teal);
  color: white !important;
  margin-left: 6px;
}
.nav .cta:hover { background: var(--teal-dark); }
.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
}

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(20, 212, 192, 0.16), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: white;
  padding: 72px 0 64px;
}
.hero .kicker {
  color: #7fe3d6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 14px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 600;
  max-width: 16ch;
}
.hero p.lead { max-width: 62ch; color: #d5e4e6; font-size: 19px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.badge {
  border: 1px solid rgba(127, 227, 214, 0.28);
  color: #c9ece7;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--teal); color: white !important; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { background: transparent; color: white !important; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-outline { background: white; color: var(--ink) !important; border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal-dark) !important; }

/* Layout blocks */
section { padding: 68px 0; }
.section-head { max-width: 70ch; margin-bottom: 28px; }
.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 38px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.kicker {
  color: var(--teal-dark);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 8px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card .method { color: var(--teal-dark); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.meta { color: var(--muted); font-size: 14px; }

.callout {
  background: var(--navy);
  color: white;
  border-radius: var(--radius);
  padding: 28px;
}
.callout h2, .callout h3 { margin-top: 0; }
.callout p { color: #d5e4e6; }

.notice {
  border-left: 4px solid var(--gold);
  background: #fff8ea;
  padding: 14px 16px;
  border-radius: 0 10px 10px 0;
  color: #5a4718;
  font-size: 15px;
}
.notice strong { color: #3d3010; }

.iso-banner {
  background: var(--teal-soft);
  border: 1px solid #b7e6de;
  border-radius: var(--radius);
  padding: 18px 20px;
}

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: white; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #e8f4f2; color: var(--navy); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }

/* Forms */
form { display: grid; gap: 12px; }
label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: white;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.step .n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal-dark);
  display: grid; place-items: center; font-weight: 800; margin-bottom: 10px;
}

/* Status chips */
.chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700; }
.chip-wait { background: #fff1d6; color: #8a5b00; }
.chip-recv { background: #e4f3ff; color: #0b4f86; }
.chip-run { background: #e7e0ff; color: #3d2d86; }
.chip-done { background: #def6e8; color: #146337; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #c9d7d9;
  padding: 42px 0 24px;
  margin-top: 20px;
}
.site-footer a { color: #9fe6db; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer h4 { color: white; margin: 0 0 10px; }
.legal { border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; padding-top: 16px; font-size: 13px; color: #8aa0a4; }

/* Verify result */
.coa-sheet {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
}
.coa-head { display: flex; justify-content: space-between; gap: 16px; align-items: start; border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px; }
.qrbox { width: 124px; text-align: center; }
.qrbox canvas, .qrbox img { width: 124px; height: 124px; }
.chroma { margin: 18px 0 8px; }
.chroma img { width: 100%; max-height: 420px; object-fit: contain; background: #f8fafa; border: 1px solid var(--line); border-radius: 10px; }
.chroma figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Admin / portal tables */
.toolbar { display: flex; justify-content: space-between; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .steps, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .nav.open { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .hero { padding: 48px 0 40px; }
}
