/* Meetu Registration — AI-Human Institute visual style */
:root {
  --ink: #0e2a47;
  --ink2: #234662;
  --slate: #7e98ac;
  --stone: #d8d1c7;
  --sand: #eee7db;
  --paper: #fbfaf7;
  --line: rgba(14, 42, 71, .14);
  --max: 1200px;
  --header-height: 88px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: Georgia, serif; font-weight: 500; line-height: 1.08; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink2); outline-offset: 4px; }

/* Layout */
.layout {
  width: min(var(--max), calc(100% - 64px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.brand-header {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.65rem;
  font-weight: 350;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.brand-strong { font-weight: 760; }
.brand-period { color: var(--ink2); font-weight: 800; }
.brand-symbol {
  width: 54px;
  height: 34px;
  position: relative;
  flex-shrink: 0;
}
.brand-symbol::before,
.brand-symbol::after {
  content: '';
  position: absolute;
  top: 1px;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  mix-blend-mode: multiply;
}
.brand-symbol::before { left: 2px; background: rgba(126, 152, 172, .66); }
.brand-symbol::after { right: 2px; background: rgba(216, 209, 199, .82); }
.head-tag {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink2);
}

/* Main grid */
.public-page { background: var(--paper); }
.main-grid {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  min-height: calc(100vh - 160px);
  padding: 72px 0 80px;
}

/* Intro section */
.intro { align-self: center; }
.eyebrow {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pulse {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--ink2);
}
.intro h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  letter-spacing: -0.035em;
  max-width: 620px;
  margin: 28px 0 26px;
}
.intro h1 em {
  display: block;
  font-style: normal;
  color: var(--slate);
}
.intro-text {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.7;
  color: #38556c;
  max-width: 520px;
}
.intro-divider {
  border: 0;
  border-top: 1px solid var(--line);
  width: 72%;
  margin: 48px 0 32px;
}
.value-points { display: grid; gap: 20px; }
.value-item {
  display: flex;
  gap: 18px;
  align-items: center;
  color: var(--ink);
  font-size: .95rem;
}
.value-no {
  color: var(--ink2);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
}
.intro-foot {
  margin-top: 56px;
  color: var(--slate);
  font-size: .68rem;
  letter-spacing: .18em;
  font-weight: 700;
}
.intro-foot span { margin: 0 12px; color: var(--stone); }

/* Form card */
.form-card {
  background: rgba(251, 250, 247, .92);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 24px 64px rgba(14, 42, 71, .06);
  padding: 42px 44px 38px;
  max-width: 520px;
  width: 100%;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
}
.card-kicker,
.card-counter {
  font-size: .68rem;
  color: var(--ink2);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.card-counter { color: var(--slate); }
.form-card h2 {
  font-size: 1.85rem;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.card-copy {
  margin: 0 0 28px;
  font-size: .92rem;
  line-height: 1.6;
  color: #405b70;
}

/* Form fields */
.field { margin: 0 0 20px; }
.field label {
  display: block;
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 650;
  color: var(--ink);
}
.field label span { color: var(--ink2); }
.field input,
.field select {
  display: block;
  width: 100%;
  height: 52px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--ink);
  padding: 0 16px;
  font-size: .95rem;
  appearance: none;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: var(--slate); }
.field input:focus,
.field select:focus {
  border-color: var(--ink2);
  box-shadow: 0 0 0 3px rgba(35, 70, 98, .08);
}
.select-wrap { position: relative; }
.select-wrap::after {
  content: "";
  position: absolute;
  pointer-events: none;
  right: 18px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--slate);
  border-bottom: 1.5px solid var(--slate);
  transform: rotate(45deg);
}
.field select:invalid { color: var(--slate); }
.field select option { color: var(--ink); background: #fff; }

/* Consent checkbox */
.consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 8px 0 26px;
  color: #405b70;
  font-size: .82rem;
  line-height: 1.65;
  cursor: pointer;
}
.consent input {
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--ink2);
  margin: 2px 0 0;
}
.consent a {
  color: var(--ink2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.consent a:hover { color: var(--ink); }

/* Primary button */
.primary-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 24px;
  min-height: 54px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  transition: background-color .2s, box-shadow .2s, transform .2s;
}
.primary-button:hover {
  background: var(--ink2);
  box-shadow: 0 8px 24px rgba(14, 42, 71, .14);
  transform: translateY(-1px);
}
.arrow { font-size: 1.4rem; line-height: 1; }
.form-meta {
  display: flex;
  gap: 8px;
  justify-content: center;
  color: var(--slate);
  font-size: .72rem;
  line-height: 1.6;
  text-align: center;
  margin: 18px 0 0;
}
.lock-icon { font-size: .85rem; color: var(--ink2); }
.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--slate);
}
.site-footer a {
  color: var(--ink2);
  text-decoration: none;
}
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-dot { padding: 0 10px; color: var(--stone); }

/* Result/Thank you page */
.result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--sand);
}
.result-card {
  width: min(520px, 100%);
  padding: 56px 48px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 24px 64px rgba(14, 42, 71, .06);
  text-align: center;
}
.result-card .wordmark { justify-content: center; }
.result-card .success-icon {
  display: grid;
  place-items: center;
  margin: 44px auto 22px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--stone);
  color: var(--ink2);
  font-size: 2rem;
  font-weight: 700;
}
.result-card .mini-brand {
  color: var(--ink2);
  font-size: .68rem;
  letter-spacing: .18em;
  font-weight: 700;
}
.result-card h1 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 22px 0;
}
.result-card p {
  color: #405b70;
  line-height: 1.75;
  margin: 0 0 36px;
  font-size: 1rem;
}
.result-card .primary-button { justify-content: center; gap: 12px; }
.anchor-button { text-decoration: none; text-align: center; }

/* Admin pages */
.admin-page { background: var(--paper); }
.admin-shell { width: min(1320px, calc(100% - 64px)); margin: auto; }
.admin-header {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.admin-label {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink2);
}
.admin-login {
  width: min(460px, 100%);
  margin: 9vh auto;
  padding: 44px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 24px 64px rgba(14, 42, 71, .06);
}
.admin-login h1 {
  font-size: 2rem;
  letter-spacing: -0.03em;
  margin: 22px 0 10px;
}
.admin-login p {
  color: #405b70;
  line-height: 1.6;
  margin: 0 0 32px;
}
.error-label {
  background: #fdf2f2;
  color: #9b2c2c;
  border: 1px solid #e8b4b4;
  border-radius: 3px;
  padding: 12px 14px;
  font-size: .82rem;
  margin: 16px 0;
}
.admin-content { padding: 52px 0 72px; }
.admin-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.admin-heading h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: -0.035em;
  margin: 16px 0 0;
}
.admin-heading p { color: #405b70; margin: 10px 0 0; }
.admin-actions { display: flex; gap: 12px; }
.admin-actions form { margin: 0; }
.small-btn,
.status-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  background: var(--ink);
  border: 1px solid var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0 18px;
  font-size: .85rem;
  font-weight: 700;
  transition: background-color .2s, box-shadow .2s;
}
.small-btn:hover,
.status-form button:hover {
  background: var(--ink2);
  box-shadow: 0 4px 16px rgba(14, 42, 71, .12);
}
.ghost-btn {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.ghost-btn:hover {
  background: var(--sand);
  border-color: var(--stone);
  box-shadow: none;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 36px 0 44px;
}
.stat {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}
.stat span {
  display: block;
  color: var(--slate);
  font-size: .78rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}
.stat strong {
  font-family: Georgia, serif;
  font-size: 2.2rem;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.table-heading h2 {
  font-size: 1.4rem;
  margin: 0;
}
.table-heading span,
.admin-footnote {
  font-size: .78rem;
  color: var(--slate);
}
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.records {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 1040px;
}
.records th {
  padding: 18px 20px;
  background: var(--sand);
  color: var(--ink2);
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
}
.records td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink);
  vertical-align: middle;
}
.records td a {
  display: block;
  line-height: 1.8;
  color: var(--ink2);
  text-decoration: none;
}
.records td a:hover { text-decoration: underline; }
.records td small {
  display: block;
  color: var(--slate);
  font-size: .75rem;
  margin-top: 4px;
}
.records .name-cell { font-weight: 700; font-size: .92rem; }
.records .date-cell { white-space: nowrap; }
.status-form { display: flex; gap: 10px; }
.status-form select {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 12px;
  height: 38px;
  font-size: .82rem;
  min-width: 155px;
}
.status-form button { min-height: 38px; font-size: .8rem; padding: 0 14px; }
.empty-state {
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 44px;
  text-align: center;
  border-radius: 3px;
  color: #405b70;
}
.admin-footnote { margin-top: 22px; }

/* Responsive */
@media (max-width: 1060px) {
  .main-grid { grid-template-columns: 1fr 440px; gap: 40px; }
  .form-card { padding: 36px 34px; }
}
@media (max-width: 860px) {
  :root { --header-height: 78px; }
  .layout { width: min(560px, calc(100% - 40px)); }
  .brand-header { height: var(--header-height); }
  .head-tag { font-size: .68rem; letter-spacing: .14em; }
  .main-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: 0;
    padding: 48px 0 56px;
  }
  .intro h1 { font-size: clamp(2.4rem, 8vw, 3.4rem); margin: 22px 0 20px; }
  .intro-text { font-size: 1rem; line-height: 1.7; }
  .intro-divider, .value-points, .intro-foot { display: none; }
  .form-card { max-width: none; }
  .site-footer { min-height: 80px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-heading { align-items: start; flex-direction: column; }
  .admin-shell { width: calc(100% - 36px); }
}
@media (max-width: 480px) {
  .layout { width: calc(100% - 28px); }
  .brand-header { height: 72px; }
  .wordmark { font-size: 1.35rem; gap: 10px; }
  .brand-symbol { width: 40px; height: 28px; }
  .brand-symbol::before, .brand-symbol::after { width: 25px; height: 25px; }
  .head-tag { max-width: 100px; text-align: right; font-size: .58rem; line-height: 1.5; }
  .main-grid { padding: 36px 0 44px; }
  .intro h1 { font-size: 2.6rem; letter-spacing: -0.04em; }
  .intro-text { font-size: .95rem; }
  .form-card { padding: 28px 22px; }
  .form-card h2 { font-size: 1.6rem; }
  .field { margin-bottom: 18px; }
  .field input, .field select { height: 50px; }
  .site-footer {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: .72rem;
    padding: 20px 0;
  }
  .footer-dot { padding: 0 6px; }
  .admin-header { height: 72px; }
  .admin-label { font-size: .62rem; letter-spacing: .1em; }
  .stat-grid { gap: 12px; }
  .stat { padding: 20px; }
  .stat strong { font-size: 1.8rem; }
  .admin-actions { width: 100%; }
  .admin-actions > *:first-child { flex: 1; }
  .table-heading { align-items: start; flex-direction: column; }
  .result-card { padding: 36px 26px; }
  .result-card h1 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
