:root {
  --ink: #10111a;
  --paper: #f6f4ed;
  --white: #ffffff;
  --blue: #3248ff;
  --blue-dark: #2032d6;
  --acid: #ccff00;
  --muted: #666875;
  --line: #d9d7d0;
  --danger: #a4272b;
  --shadow: 0 28px 70px rgba(16, 17, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--acid); padding: .75rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1440px, 100%);
  min-height: 82px;
  margin: 0 auto;
  padding: 0 clamp(1.2rem, 4vw, 4.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; width: fit-content; font-weight: 800; letter-spacing: .04em; }
.brand-mark { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; color: var(--acid); background: var(--ink); font-weight: 900; line-height: 1; }
nav { display: flex; gap: 2.25rem; font-size: .9rem; font-weight: 600; }
nav a { position: relative; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -.35rem; height: 2px; background: var(--blue); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.member-button { justify-self: end; border: 1px solid var(--ink); background: transparent; padding: .65rem 1rem; font-weight: 700; cursor: pointer; }
.member-button:hover { background: var(--ink); color: var(--white); }

.hero {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 7rem) clamp(1.2rem, 7vw, 8rem) clamp(3.5rem, 7vw, 7rem);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .7fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: center;
  background-image: linear-gradient(rgba(16,17,26,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(16,17,26,.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.eyebrow { display: flex; align-items: center; gap: .8rem; font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.demo-pill { color: var(--paper); background: var(--blue); padding: .15rem .45rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin: 1.5rem 0; font-size: clamp(3.4rem, 7.4vw, 7.3rem); line-height: .97; letter-spacing: -.06em; font-weight: 900; }
h1 em { color: var(--blue); font-style: normal; }
.hero-lede { max-width: 42rem; color: #40414c; font-size: clamp(1.08rem, 1.45vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; gap: 1.5rem; margin: 2rem 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .75rem; min-height: 3.25rem; border: 0; padding: .8rem 1.2rem; font-weight: 800; cursor: pointer; }
.button.primary { color: var(--white); background: var(--blue); box-shadow: .4rem .4rem 0 var(--ink); }
.button.primary:hover { background: var(--blue-dark); transform: translate(-1px, -1px); box-shadow: .5rem .5rem 0 var(--ink); }
.text-link { border-bottom: 1px solid currentColor; font-weight: 700; }
.trust-list { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; margin: 2.5rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .9rem; }
.trust-list li::before { content: "✓"; margin-right: .45rem; color: var(--blue); font-weight: 900; }

.booking-card { position: relative; padding: clamp(1.4rem, 3vw, 2.25rem); color: var(--ink); background: var(--white); border: 1px solid var(--ink); box-shadow: var(--shadow); }
.booking-card::before { content: ""; position: absolute; z-index: -1; inset: .85rem -.85rem -.85rem .85rem; background: var(--acid); border: 1px solid var(--ink); }
.card-topline { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; font-family: "Space Grotesk", sans-serif; font-size: .72rem; letter-spacing: .08em; font-weight: 700; }
.live-label { display: flex; align-items: center; gap: .4rem; }
.live-label i { width: .5rem; height: .5rem; border-radius: 99px; background: #2fac66; box-shadow: 0 0 0 .22rem #d9f4e4; }
.booking-card h2 { margin-bottom: .35rem; font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -.035em; }
.booking-card > p { color: var(--muted); }
label, legend { display: block; margin: .9rem 0 .4rem; font-size: .88rem; font-weight: 700; }
.optional { color: var(--muted); font-size: .75rem; font-weight: 500; }
input, select, textarea { width: 100%; color: var(--ink); background: #fbfaf7; border: 1px solid #c7c5bd; border-radius: 0; padding: .78rem .85rem; outline: 0; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(50,72,255,.13); }
.field-row { display: grid; grid-template-columns: 1fr .72fr; gap: .8rem; }
fieldset { margin: .8rem 0 0; padding: 0; border: 0; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; background: #e9e8e2; }
.segmented label { margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: .55rem; text-align: center; cursor: pointer; }
.segmented input:checked + span { color: var(--white); background: var(--ink); }
.button.submit { width: 100%; margin-top: 1rem; color: var(--white); background: var(--ink); }
.button.submit:hover { color: var(--ink); background: var(--acid); }
.button:disabled { cursor: wait; opacity: .58; }
.form-hint, .form-message { margin: .7rem 0 0; color: var(--muted); font-size: .78rem; text-align: center; }

.ticker { overflow: hidden; display: flex; justify-content: center; gap: clamp(1rem, 3vw, 3rem); padding: 1rem; color: var(--acid); background: var(--ink); font-family: "Space Grotesk", "Noto Sans TC", sans-serif; font-weight: 700; white-space: nowrap; }
.ticker span { color: var(--blue); }
.section { width: min(1280px, calc(100% - 2.4rem)); margin: 0 auto; padding: clamp(5rem, 9vw, 9rem) 0; }
.section-index, .overline { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.about { display: grid; grid-template-columns: .45fr .9fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); }
.about-intro h2 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.05; letter-spacing: -.05em; }
.about-intro h2 span { color: var(--muted); font-size: .42em; letter-spacing: 0; }
.about-copy .lead { font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 600; line-height: 1.5; }
.about-copy > p:not(.lead) { color: var(--muted); }
.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.expertise-grid strong, .expertise-grid span { display: block; }
.expertise-grid strong { margin-bottom: .5rem; font-size: .82rem; }
.expertise-grid span { color: var(--muted); font-size: .9rem; }

.services { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-heading h2 { margin: .8rem 0 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.1; letter-spacing: -.055em; }
.section-heading > p { max-width: 25rem; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card { min-height: 25rem; padding: 1.8rem; display: flex; flex-direction: column; border: 1px solid var(--ink); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: .45rem .45rem 0 var(--blue); }
.service-card:nth-child(2) { color: var(--white); background: var(--blue); }
.service-number { font-family: "Space Grotesk", sans-serif; font-size: .78rem; font-weight: 700; }
.service-card h3 { margin: auto 0 1rem; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.2; letter-spacing: -.035em; }
.service-card p { min-height: 4.8rem; color: inherit; opacity: .72; }
.service-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid currentColor; font-size: .86rem; font-weight: 700; }
.service-book { margin-top: 1.5rem; background: var(--acid); color: var(--ink); }
.skeleton-card span, .skeleton-card h3, .skeleton-card p { display: block; min-height: 1rem; background: #e8e7e2; animation: pulse 1.2s infinite alternate; }
.skeleton-card h3 { width: 65%; margin-top: auto; min-height: 2.5rem; }
.skeleton-card p { width: 90%; }
@keyframes pulse { to { opacity: .35; } }
.data-status { margin-top: 1rem; color: var(--muted); font-size: .85rem; }

.process { display: grid; grid-template-columns: .45fr .8fr 1fr; gap: clamp(2rem, 5vw, 5.5rem); border-top: 1px solid var(--line); }
.process-title h2 { font-size: clamp(2.3rem, 4.3vw, 4.4rem); line-height: 1.08; letter-spacing: -.05em; }
.process-list { margin: 0; padding: 0; list-style: none; }
.process-list li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.process-list li:last-child { border-bottom: 1px solid var(--line); }
.process-list > li > span { color: var(--blue); font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.process-list strong { font-size: 1.1rem; }
.process-list p { margin: .35rem 0 0; color: var(--muted); }

footer { padding: 2rem clamp(1.2rem, 4vw, 4.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; color: var(--white); background: var(--ink); }
footer > div { display: flex; align-items: center; gap: .7rem; }
footer p { margin: 0; color: #a9abb6; }
footer a { color: var(--acid); font-weight: 800; }

dialog { width: min(92vw, 31rem); padding: 0; border: 1px solid var(--ink); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(16,17,26,.68); backdrop-filter: blur(4px); }
.dialog-shell { position: relative; padding: 2rem; }
.dialog-shell h2 { margin: .45rem 0; font-size: 2.1rem; letter-spacing: -.04em; }
.dialog-shell > p:not(.overline) { color: var(--muted); }
.icon-button { position: absolute; top: 1rem; right: 1rem; width: 2.5rem; height: 2.5rem; border: 1px solid var(--line); background: transparent; font-size: 1.5rem; cursor: pointer; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 1.5rem 0; border-bottom: 1px solid var(--line); }
.auth-tabs button { padding: .7rem; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-selected="true"] { color: var(--ink); border-bottom: 3px solid var(--blue); font-weight: 800; }
.form-message.error { color: var(--danger); }
.form-message.success { color: #137641; }
.booking-list { display: grid; gap: .75rem; margin: 1.5rem 0; }
.booking-item { padding: 1rem; border: 1px solid var(--line); }
.booking-item strong, .booking-item span { display: block; }
.booking-item span { color: var(--muted); font-size: .85rem; }
.booking-item button { margin-top: .75rem; border: 0; background: transparent; color: var(--danger); padding: 0; text-decoration: underline; cursor: pointer; }
.empty-state { padding: 2rem 1rem; color: var(--muted); background: #f5f4ef; text-align: center; }
.text-button { border: 0; background: transparent; padding: 0; font-weight: 700; text-decoration: underline; cursor: pointer; }
.danger { color: var(--danger); }
.toast { position: fixed; z-index: 50; right: 1.25rem; bottom: 1.25rem; max-width: 24rem; padding: .9rem 1.1rem; color: var(--white); background: var(--ink); box-shadow: var(--shadow); transform: translateY(8rem); opacity: 0; transition: .25s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 940px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .booking-card { max-width: 42rem; }
  .about, .process { grid-template-columns: 1fr 1fr; }
  .about .section-index, .process .section-index { grid-column: 1 / -1; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 19rem; }
}

@media (max-width: 640px) {
  .site-header { min-height: 68px; }
  .brand > span:last-child { font-size: .92rem; }
  .member-button { padding: .5rem .65rem; font-size: .82rem; }
  .hero { padding-top: 3.5rem; }
  h1 { font-size: clamp(3rem, 15vw, 4.3rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .text-link { width: fit-content; }
  .trust-list { display: grid; }
  .ticker { justify-content: flex-start; }
  .about, .process { grid-template-columns: 1fr; }
  .about .section-index, .process .section-index { grid-column: auto; }
  .section-heading { align-items: start; flex-direction: column; }
  .field-row, .expertise-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
}

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

