:root {
  color-scheme: light;
  --ink: #172638;
  --muted: #5f6e7d;
  --blue: #6ea5d3;
  --blue-deep: #356d9f;
  --blue-soft: #eaf4fc;
  --paper: #fffefd;
  --canvas: #f4f8fb;
  --line: #d9e5ee;
  --warm: #fff7e9;
  --warm-line: #efcf93;
  --shadow: 0 18px 52px rgba(45, 80, 112, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 0%, rgba(168, 210, 241, 0.28), transparent 32rem),
    var(--canvas);
  color: var(--ink);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7;
}

a {
  color: var(--blue-deep);
  text-underline-offset: 0.18em;
}

.site-header {
  min-height: 76px;
  padding: 14px max(24px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 254, 253, 0.94);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  letter-spacing: -0.04em;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  min-height: 42px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
nav a[aria-current="page"] {
  background: var(--blue-soft);
}

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

.home-shell {
  min-height: calc(100vh - 154px);
  padding: clamp(72px, 11vw, 132px) 0 100px;
}

.home-hero {
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.13em;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 7vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.home-hero > p:not(.eyebrow),
.support-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2.2vw, 1.28rem);
}

.primary-link {
  min-height: 50px;
  margin-top: 16px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: var(--blue-deep);
  color: white;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(53, 109, 159, 0.22);
}

.primary-link:hover,
.primary-link:focus-visible {
  background: #285c8a;
}

.app-list {
  margin-top: 68px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.support-card,
.disclosure {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.app-card {
  padding: 24px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 20px;
  border-radius: 26px;
}

.app-card img {
  border-radius: 24%;
  box-shadow: 0 10px 28px rgba(55, 107, 156, 0.15);
}

.app-card h2 {
  margin-bottom: 4px;
}

.app-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.support-shell {
  min-height: calc(100vh - 154px);
  padding: clamp(64px, 9vw, 110px) 0 100px;
}

.support-hero {
  margin-bottom: 46px;
}

.support-card {
  margin-bottom: 20px;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 28px;
}

.support-card.quiet {
  box-shadow: none;
}

.card-heading {
  margin-bottom: 12px;
}

.card-heading h2,
.disclosure h2 {
  margin: 8px 0;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  line-height: 1.3;
}

.region-tag {
  padding: 5px 10px;
  display: inline-flex;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.support-card > p {
  color: var(--muted);
}

.support-action {
  margin-top: 24px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--blue-deep);
  border: 1px solid var(--blue-deep);
  border-radius: 17px;
  color: white;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(53, 109, 159, 0.18);
}

.support-action:hover,
.support-action:focus-visible {
  background: #285c8a;
}

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

.disclosure {
  margin-top: 34px;
  padding: clamp(24px, 5vw, 42px);
  border-radius: 28px;
}

.disclosure ul {
  margin: 16px 0 0;
  padding-left: 1.3em;
}

.disclosure li + li {
  margin-top: 10px;
}

footer {
  min-height: 78px;
  padding: 20px max(24px, calc((100vw - 1040px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

:focus-visible {
  outline: 3px solid rgba(53, 109, 159, 0.48);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
  }

  nav a {
    flex: 1;
    justify-content: center;
  }

  .app-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .app-card {
    align-items: start;
  }

  .app-card img {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
