:root {
  --ink: #10213d;
  --muted: #5c6d85;
  --blue: #155eef;
  --blue-dark: #0c47c8;
  --ice: #edf5ff;
  --mint: #2dbb9a;
  --line: rgba(20, 49, 91, 0.12);
  --paper: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(86, 158, 255, 0.19), transparent 25rem),
    linear-gradient(180deg, #f7fbff 0, #fff 35rem);
  color: var(--ink);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang TC",
    "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 760;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(22, 88, 196, 0.2);
}

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

nav a {
  color: #445873;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--blue);
}

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.hero-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 21px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  box-shadow: 0 14px 32px rgba(21, 94, 239, 0.23);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.response-note {
  margin-top: 16px;
  color: #76859a;
  font-size: 13px;
}

.hero-art {
  position: relative;
  min-height: 510px;
  filter: drop-shadow(0 28px 36px rgba(34, 91, 178, 0.18));
}

.photo-card {
  position: absolute;
  width: 330px;
  height: 390px;
  border: 18px solid rgba(255, 255, 255, 0.94);
  border-radius: 34px;
  background: #bcd9ff;
  box-shadow: inset 0 0 0 1px rgba(26, 86, 180, 0.05);
}

.card-back {
  top: 48px;
  right: 22px;
  transform: rotate(9deg);
  opacity: 0.6;
}

.card-middle {
  top: 42px;
  right: 62px;
  transform: rotate(3deg);
  background: #d7e8ff;
}

.card-front {
  top: 56px;
  right: 104px;
  overflow: hidden;
  background: linear-gradient(#bddcff 0 58%, #86b5fb 58%);
}

.sun {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.mountain {
  position: absolute;
  bottom: 76px;
  width: 260px;
  height: 170px;
  transform: rotate(45deg);
  border-radius: 30px;
}

.mountain-one {
  left: -80px;
  background: linear-gradient(135deg, #4e91f4, #1f65de);
}

.mountain-two {
  right: -112px;
  bottom: 35px;
  background: linear-gradient(135deg, #87b6fb, #4386ec);
}

.number-stack {
  position: absolute;
  top: 102px;
  left: 22px;
  z-index: 3;
  display: grid;
  gap: 8px;
}

.number-stack span {
  display: grid;
  width: 72px;
  height: 68px;
  place-items: center;
  border-radius: 18px;
  background: white;
  color: var(--blue);
  font-size: 24px;
  font-weight: 750;
  box-shadow: 0 12px 25px rgba(26, 74, 152, 0.1);
}

.number-stack span:first-child {
  background: var(--blue);
  color: white;
}

.hero-icon {
  position: absolute;
  right: 55px;
  bottom: 4px;
  z-index: 5;
  border: 12px solid rgba(255, 255, 255, 0.88);
  border-radius: 58px;
  box-shadow: 0 28px 60px rgba(17, 64, 137, 0.26);
}

.trust-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 50px rgba(38, 82, 151, 0.07);
  backdrop-filter: blur(18px);
}

.trust-strip div {
  display: grid;
  gap: 7px;
  padding: 24px;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-strip strong {
  font-size: 15px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.resource-section {
  width: min(1180px, calc(100% - 40px));
  margin: 120px auto 110px;
}

.section-heading {
  max-width: 680px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 52px);
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  color: var(--muted);
  line-height: 1.8;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.resource-card {
  min-height: 270px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.82));
  text-decoration: none;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(21, 94, 239, 0.25);
  box-shadow: 0 22px 48px rgba(38, 82, 151, 0.11);
}

.resource-card h3 {
  margin: 18px 0 10px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.resource-card > p:not(.eyebrow) {
  min-height: 88px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.resource-card span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 760;
}

.contact-card {
  background:
    radial-gradient(circle at 90% 5%, rgba(45, 187, 154, 0.2), transparent 10rem),
    linear-gradient(145deg, #f5fffc, #edf8ff);
}

.legal-shell {
  width: min(980px, calc(100% - 40px));
  margin: 74px auto 100px;
}

.legal-intro {
  max-width: 780px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line);
}

.legal-intro h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 74px);
  letter-spacing: -0.055em;
}

.legal-summary {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.75;
}

.updated {
  margin: 20px 0 0;
  color: #8290a4;
  font-size: 13px;
}

.legal-body {
  display: grid;
}

.legal-body > section {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.section-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.legal-body h2 {
  margin: -5px 0 13px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.legal-copy {
  color: #52647d;
  font-size: 16px;
  line-height: 1.9;
}

.legal-copy p {
  margin: 0 0 12px;
}

.legal-copy ul {
  margin: 8px 0 16px;
  padding-left: 1.3em;
}

.legal-copy a {
  color: var(--blue);
  text-underline-offset: 3px;
}

.legal-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 42px;
  padding: 25px 28px;
  border-radius: 20px;
  background: var(--ice);
}

.legal-contact p {
  margin: 0;
  font-weight: 720;
}

.legal-contact a {
  color: var(--blue);
  font-weight: 760;
}

footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 118px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: #78879a;
  font-size: 13px;
}

footer p {
  text-align: center;
}

footer > div:last-child {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
}

footer a {
  text-decoration: none;
}

.footer-brand {
  font-size: 15px;
}

@media (max-width: 860px) {
  .site-header {
    height: auto;
    min-height: 76px;
    padding: 14px 0;
  }

  nav {
    gap: 15px;
  }

  nav a {
    font-size: 13px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 68px 0 10px;
  }

  .hero-art {
    min-height: 470px;
  }

  .trust-strip,
  .resource-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .resource-card > p:not(.eyebrow) {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-header nav a:not(:last-child) {
    display: none;
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-art {
    min-height: 390px;
    transform: scale(0.8);
    transform-origin: top center;
    margin-bottom: -70px;
  }

  .photo-card {
    right: 2px;
  }

  .card-middle {
    right: 30px;
  }

  .card-front {
    right: 68px;
  }

  .number-stack {
    left: -10px;
  }

  .hero-icon {
    right: 2px;
  }

  .resource-section {
    margin: 90px auto 75px;
  }

  .legal-body > section {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .legal-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  footer {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 28px 0;
  }

  footer p {
    margin: 0;
    text-align: left;
  }

  footer > div:last-child {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
