:root {
  --bg: #09090c;
  --glass: rgb(8 8 12 / 58%);
  --glass-border: rgb(255 255 255 / 17%);
  --text: #f4f1eb;
  --muted: #cfc7bd;
  --accent: #ff6a4a;
  --accent-2: #ffc971;
  --shadow: rgb(0 0 0 / 42%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 12% 8%, rgb(255 106 74 / 20%), transparent 28%),
    radial-gradient(circle at 88% 16%, rgb(255 201 113 / 18%), transparent 24%),
    linear-gradient(180deg, rgb(4 4 8 / 62%), rgb(4 4 8 / 84%)),
    url("./bg.jpg") center / cover no-repeat;
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  background: rgb(8 8 12 / 24%);
  z-index: -1;
}

.page-shell {
  min-height: 100dvh;
  width: min(1040px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.2rem;
  padding: 1rem 0 1.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  color: var(--text);
  letter-spacing: 0.14em;
  font-size: 0.88rem;
  font-weight: 700;
}

.lang-switch {
  display: inline-flex;
  gap: 0.4rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgb(0 0 0 / 44%);
  border: 1px solid rgb(255 255 255 / 15%);
}

.lang-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.lang-btn.is-active {
  color: #190f0a;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  font-weight: 700;
}

.lang-btn:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.hero-card {
  align-self: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: clamp(1.4rem, 2.5vw, 3rem);
  box-shadow: 0 22px 60px var(--shadow);
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.9rem, 5.4vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.lead,
.sublead {
  max-width: 66ch;
  margin: 0;
}

.lead {
  color: #f2eee9;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

.sublead {
  margin-top: 0.65rem;
  color: var(--muted);
}

.cta-list {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.cta {
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(0 0 0 / 34%);
  padding: 0.8rem 0.95rem;
  transition: transform 200ms ease, border-color 200ms ease, background-color 200ms ease;
}

.cta:hover {
  transform: translateY(-2px);
  border-color: rgb(255 201 113 / 55%);
  background: rgb(13 13 16 / 68%);
}

.cta-title {
  display: block;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cta-desc {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  body::after {
    backdrop-filter: blur(7px) saturate(112%);
    -webkit-backdrop-filter: blur(7px) saturate(112%);
  }

  .cta-list {
    grid-template-columns: 1fr;
  }

  .brand {
    letter-spacing: 0.08em;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cta {
    transition: none;
  }
}
