:root {
  color-scheme: light;
  --ink: #15171b;
  --muted: #5b626c;
  --soft: #f6f3ef;
  --paper: #fffcf7;
  --line: #ded8ce;
  --coral: #d95f43;
  --coral-strong: #b7432b;
  --teal: #1f7a76;
  --sky: #315c72;
  --gold: #c8944a;
  --danger: #9f302d;
  --shadow: 0 22px 60px rgba(21, 23, 27, 0.14);
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.admin-page {
  background: #f4f7f6;
}

body.legal-page {
  background: var(--paper);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(255, 252, 247, 0.82);
  border-bottom: 1px solid rgba(222, 216, 206, 0.7);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 0;
  min-height: 68px;
  padding: 0 40px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-mark {
  background:
    radial-gradient(circle at 45% 42%, #fff 0 12%, transparent 13%),
    linear-gradient(135deg, var(--coral), var(--teal));
  border-radius: 50%;
  display: inline-block;
  height: 30px;
  width: 30px;
}

.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav-links a {
  border-radius: 999px;
  color: #303740;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 12px;
}

.nav-links a:hover {
  background: rgba(31, 122, 118, 0.1);
}

.hero {
  align-items: end;
  background:
    linear-gradient(90deg, rgba(10, 12, 14, 0.86), rgba(10, 12, 14, 0.28) 58%, rgba(10, 12, 14, 0.42)),
    url("assets/hero-slow-chat.png?v=20260601-gpt") center / cover;
  color: white;
  display: grid;
  min-height: 92vh;
  padding: 132px 40px 68px;
  position: relative;
}

.hero::after {
  background: linear-gradient(0deg, var(--paper) 0, rgba(255, 252, 247, 0) 100%);
  bottom: 0;
  content: "";
  height: 44px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  z-index: 0;
}

.hero-content {
  max-width: 760px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(72px, 10vw, 148px);
  line-height: 0.9;
  letter-spacing: 0;
  margin: 0 0 24px;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.36);
}

.hero-copy {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 720;
  line-height: 1.25;
  margin: 0 0 32px;
  max-width: 720px;
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

.hero-actions,
.form-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 820;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border 160ms ease;
  white-space: normal;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: progress;
  opacity: 0.62;
  transform: none;
}

.button.primary {
  background: var(--coral);
  color: white;
}

.button.primary:hover {
  background: var(--coral-strong);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.42);
  color: white;
}

.button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.danger {
  background: transparent;
  border-color: rgba(159, 48, 45, 0.25);
  color: var(--danger);
  width: fit-content;
}

.hero-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 42px 0 0;
  max-width: 620px;
}

.hero-metrics div {
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  padding: 4px 0 4px 18px;
}

.hero-metrics dt {
  font-size: 28px;
  font-weight: 850;
}

.hero-metrics dd {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  margin: 4px 0 0;
}

.section {
  padding: 92px 40px;
}

.section-heading,
.apply-intro {
  margin: 0 auto 34px;
  max-width: 880px;
  text-align: center;
}

h2 {
  font-size: clamp(32px, 5vw, 62px);
  letter-spacing: 0;
  line-height: 1.04;
  margin: 0;
}

h3 {
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 12px;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.promise-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.promise-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(21, 23, 27, 0.06);
  min-height: 245px;
  padding: 28px;
}

.kicker {
  color: var(--teal);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 28px;
}

.event-section {
  align-items: stretch;
  background: #19232b;
  color: white;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
}

.event-copy {
  align-self: center;
  justify-self: end;
  max-width: 640px;
}

.event-copy p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 18px;
}

.event-panel {
  align-self: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  display: grid;
  gap: 1px;
  overflow: hidden;
}

.event-panel div {
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 78px;
  padding: 20px 24px;
}

.event-panel span {
  color: rgba(255, 255, 255, 0.58);
}

.event-panel strong {
  text-align: right;
}

.flow-list {
  counter-reset: step;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0;
}

.flow-list li {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 240px;
  padding: 24px;
}

.flow-list span {
  color: var(--coral);
  display: block;
  font-size: 13px;
  font-weight: 850;
  margin-bottom: 28px;
}

.flow-list strong {
  display: block;
  font-size: 22px;
  margin-bottom: 10px;
}

.guardrail-section {
  background: #e9f1ef;
}

.guardrails {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1040px;
}

.guardrails > div {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 122, 118, 0.22);
  border-radius: var(--radius);
  padding: 28px;
}

ul {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
  padding-left: 20px;
}

.apply-section {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1220px;
}

.apply-intro {
  grid-column: 1 / -1;
}

.signup-form,
.submission-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.signup-form {
  display: grid;
  gap: 20px;
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label,
fieldset {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

label > span,
legend {
  color: #343b44;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 46px;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

textarea {
  min-height: 122px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 122, 118, 0.12);
}

.segmented,
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.segmented label {
  display: inline-flex;
}

.segmented input {
  inline-size: 1px;
  opacity: 0;
  position: absolute;
}

.segmented span,
.chip-group button {
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 780;
  min-height: 38px;
  padding: 8px 13px;
}

.segmented input:checked + span,
.chip-group button.is-selected {
  background: rgba(31, 122, 118, 0.1);
  border-color: var(--teal);
  color: var(--teal);
}

.file-input small,
.form-status {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.form-status[data-tone="success"] {
  color: var(--teal);
}

.form-status[data-tone="danger"] {
  color: var(--danger);
}

.checkbox-row {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
}

.checkbox-row input {
  height: 18px;
  margin-top: 3px;
  min-height: 0;
  width: 18px;
}

.submission-panel {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 92px;
}

.submission-panel h3 {
  margin-bottom: 0;
}

.submission-list {
  display: grid;
  gap: 10px;
  list-style: none;
  min-height: 110px;
  padding: 0;
}

.submission-list li {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.submission-list strong {
  font-size: 15px;
}

.submission-list span {
  color: var(--muted);
  font-size: 13px;
}

.privacy-note {
  background: rgba(31, 122, 118, 0.08);
  border: 1px solid rgba(31, 122, 118, 0.16);
  border-radius: 8px;
  color: #33504e;
  font-size: 13px;
  margin: 0;
  padding: 12px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 40px;
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  margin: 0;
}

.footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
}

.footer-links a {
  color: #3d454e;
  font-size: 13px;
  font-weight: 760;
  padding: 6px 8px;
}

.footer-links a:hover {
  color: var(--teal);
}

.legal-shell {
  display: grid;
  gap: 34px;
  margin: 0 auto;
  max-width: 1080px;
  padding: 124px 28px 72px;
}

.legal-hero {
  background: #17242b;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: white;
  padding: clamp(28px, 6vw, 58px);
}

.legal-hero h1 {
  font-size: clamp(46px, 8vw, 86px);
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 0 20px;
}

.legal-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  margin: 0;
  max-width: 820px;
}

.legal-section {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(21, 23, 27, 0.07);
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
}

.legal-section h2 {
  font-size: clamp(28px, 4vw, 46px);
}

.legal-section p {
  margin: 0;
}

.legal-section a {
  color: var(--teal);
  font-weight: 820;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.legal-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 160px;
  padding: 18px;
}

.legal-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.legal-card p {
  font-size: 14px;
}

.legal-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.legal-list li {
  color: var(--muted);
  line-height: 1.72;
}

.contact-panel {
  background: #e8f2ef;
  border-color: rgba(31, 122, 118, 0.22);
}

.admin-shell {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 116px 28px 60px;
}

.admin-hero {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.admin-hero h1 {
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: 0;
  line-height: 0.92;
  margin: 0;
}

.admin-hero p {
  max-width: 720px;
}

.admin-auth,
.admin-summary,
.admin-toolbar,
.admin-table-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 42px rgba(21, 23, 27, 0.08);
}

.admin-auth {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.admin-summary {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
}

.admin-summary div {
  background: #fbfaf8;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 20px;
}

.admin-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.admin-summary strong {
  font-size: 34px;
  line-height: 1;
}

.admin-toolbar {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.admin-search {
  max-width: 540px;
}

.admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-table-panel {
  overflow: hidden;
}

.table-heading {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 22px;
}

.table-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
}

.table-heading p {
  font-size: 13px;
  margin: 0;
  max-width: 430px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  border-collapse: collapse;
  min-width: 1120px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f7f3ec;
  color: #3c424a;
  font-size: 12px;
  font-weight: 850;
  position: sticky;
  top: 0;
  white-space: nowrap;
}

.admin-table td {
  color: #303740;
  line-height: 1.5;
}

.admin-table td:nth-child(3),
.admin-table td:nth-child(7) {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.empty-cell {
  color: var(--muted);
  height: 96px;
  text-align: center !important;
  vertical-align: middle !important;
}

.status-pill {
  background: rgba(31, 122, 118, 0.1);
  border: 1px solid rgba(31, 122, 118, 0.2);
  border-radius: 999px;
  color: var(--teal);
  display: inline-flex;
  font-size: 12px;
  font-weight: 820;
  padding: 5px 9px;
}

@media (max-width: 980px) {
  .site-header {
    padding: 0 20px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 22px 54px;
  }

  .hero-metrics,
  .promise-grid,
  .event-section,
  .flow-list,
  .guardrails,
  .apply-section,
  .legal-grid,
  .admin-hero,
  .admin-summary,
  .admin-toolbar,
  .form-row.two,
  .form-row.three {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 22px;
  }

  .event-copy {
    justify-self: start;
  }

  .submission-panel {
    position: static;
  }

  .admin-shell {
    padding: 100px 20px 44px;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions .button {
    flex: 1;
  }

  .table-heading {
    align-items: start;
    display: grid;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 74px;
  }

  .hero-copy {
    font-size: 24px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .form-actions {
    align-items: stretch;
  }

  .signup-form,
  .submission-panel,
  .admin-auth {
    padding: 20px;
  }

  .admin-summary div {
    min-height: 90px;
  }
}
