:root {
  color-scheme: dark;
  --bg: #050b12;
  --panel: rgba(7, 18, 31, 0.76);
  --panel-strong: rgba(6, 15, 27, 0.94);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f4fbff;
  --muted: #a9b8c8;
  --cyan: #55f0f0;
  --rose: #ff6fae;
  --gold: #f2c16f;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 76% 7%, rgba(255, 111, 174, 0.24), transparent 26rem),
    radial-gradient(circle at 16% 25%, rgba(85, 240, 240, 0.2), transparent 30rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", Arial, sans-serif;
  line-height: 1.5;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: url("assets/hero-orb.jpeg") center top / cover no-repeat;
  opacity: 0.7;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 11, 18, 0.96), rgba(5, 11, 18, 0.72) 48%, rgba(5, 11, 18, 0.9)),
    linear-gradient(180deg, rgba(5, 11, 18, 0.28), #050b12 88%);
}

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

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  padding: 30px 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 52px;
}

.header-logo {
  width: min(320px, 72vw);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 0 22px rgba(85, 240, 240, 0.2));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 480px);
  align-items: center;
  gap: 46px;
}

.intro {
  max-width: 680px;
}

.orb-visual {
  width: min(560px, 100%);
  aspect-ratio: 16 / 7;
  margin: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #06111d;
  box-shadow: 0 22px 70px rgba(85, 240, 240, 0.18), 0 18px 64px rgba(255, 111, 174, 0.14);
}

.orb-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1.42);
  transform-origin: center bottom;
}

.event-wordmark {
  width: min(520px, 100%);
  max-height: 156px;
  object-fit: contain;
  object-position: left center;
  margin: 0 0 18px;
  filter: drop-shadow(0 12px 38px rgba(85, 240, 240, 0.18));
}

.eyebrow,
.section-heading p,
.form-heading p {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  max-width: 780px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: 0;
}

.tagline {
  margin-bottom: 26px;
  color: var(--gold);
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 750;
}

.lede {
  max-width: 650px;
  margin-bottom: 14px;
  color: rgba(244, 251, 255, 0.88);
  font-size: 17px;
}

.english {
  color: var(--muted);
}

.detail-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.detail-strip div {
  min-width: 0;
  padding: 18px;
  background: rgba(5, 14, 24, 0.84);
}

.detail-strip span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-strip strong {
  display: block;
  color: var(--text);
  font-size: 15px;
}

.rsvp-card,
.agenda-grid article,
.parking-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(7, 18, 31, 0.9), rgba(10, 23, 39, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.rsvp-card {
  padding: 26px;
}

.form-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.form-heading h2,
.section-heading h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.1;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label,
.radio-group {
  min-width: 0;
}

label span,
legend {
  display: block;
  margin-bottom: 8px;
  color: rgba(244, 251, 255, 0.78);
  font-size: 12px;
  font-weight: 750;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
  padding: 11px 12px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

textarea {
  resize: vertical;
}

select {
  appearance: none;
  color: var(--text);
  background:
    linear-gradient(45deg, transparent 50%, rgba(244, 251, 255, 0.78) 50%) calc(100% - 18px) 19px / 6px 6px no-repeat,
    linear-gradient(135deg, rgba(244, 251, 255, 0.78) 50%, transparent 50%) calc(100% - 12px) 19px / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.07);
  padding-right: 36px;
}

select option {
  color: #06111d;
  background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(85, 240, 240, 0.76);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(85, 240, 240, 0.12);
}

.wide {
  grid-column: 1 / -1;
}

.radio-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.radio-group label,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.radio-group input,
.consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.radio-group span,
.consent span {
  margin: 0;
}

.field-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-hint {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(85, 240, 240, 0.18);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(85, 240, 240, 0.07);
  font-size: 12px;
}

.consent {
  margin: 18px 0 18px;
}

.consent span {
  color: var(--muted);
  font-size: 12px;
}

.submit-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #041019;
  background: linear-gradient(90deg, var(--cyan), #ffffff 50%, var(--rose));
  cursor: pointer;
  font-weight: 850;
  letter-spacing: 0.04em;
  transition: transform 160ms ease, filter 160ms ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.submit-button:disabled {
  cursor: wait;
  filter: grayscale(0.5) brightness(0.82);
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.success {
  color: #83f7c7;
}

.form-status.error {
  color: #ff9fbd;
}

.thank-you-page {
  min-height: 100vh;
}

.thank-you-panel {
  max-width: 720px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(7, 18, 31, 0.9), rgba(10, 23, 39, 0.72));
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 56px);
}

.return-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 8px;
  padding: 0 18px;
  color: #041019;
  background: linear-gradient(90deg, var(--cyan), #ffffff 50%, var(--rose));
  font-weight: 850;
  text-decoration: none;
}

.agenda-section,
.info-section,
footer {
  margin: 0 0 28px;
}

.agenda-section,
.info-section {
  padding-top: 18px;
}

.section-heading {
  margin-bottom: 20px;
}

.agenda-grid,
.info-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.agenda-grid article,
.parking-card {
  padding: 24px;
}

.agenda-grid h3,
.parking-card h3 {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 22px;
}

dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

dl div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

dt {
  color: var(--cyan);
  font-weight: 850;
}

dd {
  margin: 0;
  color: rgba(244, 251, 255, 0.82);
}

.agenda-detail {
  display: grid;
  gap: 10px;
}

.agenda-detail strong {
  color: var(--text);
  font-size: 16px;
}

.agenda-detail span {
  display: block;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list p {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.info-list strong {
  color: var(--cyan);
}

.info-list span,
.parking-card p {
  color: rgba(244, 251, 255, 0.82);
}

.parking-map-link {
  display: block;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.parking-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  background: #ffffff;
  object-fit: contain;
}

.parking-card p {
  margin: 0;
}

.partner-footer {
  padding: 24px 0 46px;
}

.partner-footer h2 {
  margin: 0 0 18px;
  color: rgba(244, 251, 255, 0.72);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.logo-rail {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(5, 12, 21, 0.96), rgba(11, 24, 40, 0.9));
  padding: 14px 16px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
}

.logo-cluster {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.logo-cluster span {
  flex: 0 0 auto;
  color: rgba(244, 251, 255, 0.58);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-cluster img {
  width: auto;
  max-width: 72px;
  max-height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.08));
}

.organizers {
  flex: 0 0 auto;
}

.coorganizers {
  flex: 1 1 auto;
}

.strategic {
  flex: 0 0 auto;
  padding-left: 2px;
}

.logo-cluster .hkic-logo {
  max-width: 78px;
  max-height: 26px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .brand-row {
    margin-bottom: 34px;
  }

  .hero-grid,
  .agenda-grid,
  .info-section {
    grid-template-columns: 1fr;
  }

  .rsvp-card {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 22px;
  }

  h1 {
    font-size: 41px;
  }

  .detail-strip,
  .field-grid,
  dl div {
    grid-template-columns: 1fr;
  }

  .detail-strip div {
    padding: 15px;
  }

  .rsvp-card,
  .agenda-grid article,
  .parking-card {
    padding: 18px;
  }

  .form-heading {
    display: block;
  }

  .form-heading h2,
  .section-heading h2 {
    font-size: 28px;
  }

  .logo-rail {
    align-items: flex-start;
    flex-direction: column;
  }

  .logo-cluster {
    flex-wrap: wrap;
  }

  .logo-cluster span {
    width: 100%;
  }
}
