:root {
  --bg: #f7f6f1;
  --ink: #181c20;
  --muted: #626b73;
  --line: #d9d5cb;
  --panel: #ffffff;
  --panel-2: #ece9df;
  --blue: #255b7f;
  --green: #38685a;
  --red: #8f4a3c;
  --shadow: 0 24px 60px rgba(24, 28, 32, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans TC", system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 56px);
  border-bottom: 1px solid rgba(24, 28, 32, 0.12);
  background: rgba(247, 246, 241, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 13px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: "Outfit", sans-serif;
  font-size: 18px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100dvh - 80px);
  padding: 72px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "Outfit", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 14ch;
  margin-bottom: 24px;
  font-family: "Outfit", "Noto Sans TC", sans-serif;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.02;
  text-wrap: balance;
}

.lead {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.8;
  text-wrap: pretty;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 700;
  transition: transform 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--ink);
  color: var(--bg);
}

.btn.secondary {
  background: transparent;
}

.system-map {
  position: relative;
  display: grid;
  gap: 16px;
  min-height: 480px;
  margin: 0;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.map-core,
.map-lane {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  border-radius: 6px;
  padding: 20px;
}

.map-core {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.map-core span,
.map-lane span,
.card-code,
.domain,
.capability-list span {
  font-family: "Outfit", sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.map-core strong,
.map-lane strong {
  margin-top: 8px;
  font-size: 24px;
}

.map-lane {
  border: 1px solid var(--line);
  background: var(--panel-2);
}

.map-lane.legal {
  border-left: 8px solid var(--blue);
}

.map-lane.edu {
  border-left: 8px solid var(--red);
}

.map-lane.reg {
  border-left: 8px solid var(--green);
}

.brand-section,
.platform-section,
.contact-section {
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.section-heading h2,
.platform-copy h2,
.contact-section h2 {
  margin-bottom: 0;
  font-family: "Outfit", "Noto Sans TC", sans-serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  text-wrap: balance;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brand-card,
.capability-list div,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 38px rgba(24, 28, 32, 0.08);
}

.brand-card {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  padding: 24px;
}

.brand-card.featured {
  background: var(--ink);
  color: var(--bg);
}

.brand-card.featured p,
.brand-card.featured li,
.brand-card.featured .domain {
  color: rgba(247, 246, 241, 0.72);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 52px;
}

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

.brand-card h3 {
  margin-bottom: 18px;
  font-family: "Outfit", "Noto Sans TC", sans-serif;
  font-size: 32px;
  line-height: 1.1;
}

.brand-card h3 em {
  display: block;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
}

.brand-card p,
.platform-copy p,
.contact-section p {
  color: var(--muted);
  line-height: 1.8;
  text-wrap: pretty;
}

.brand-card ul {
  margin: 20px 0 28px;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.9;
}

.brand-card a {
  margin-top: auto;
  border-top: 1px solid currentColor;
  padding-top: 18px;
  font-weight: 700;
}

.platform-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 40px;
  align-items: start;
}

.capability-list {
  display: grid;
  gap: 14px;
}

.capability-list div {
  padding: 22px;
}

.capability-list span {
  color: var(--blue);
}

.capability-list strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 20px;
}

.capability-list p {
  margin-bottom: 0;
}

.contact-section {
  margin-bottom: 60px;
  padding: clamp(32px, 5vw, 56px);
}

.contact-section p {
  max-width: 720px;
  margin-bottom: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

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

  .hero,
  .platform-section,
  .section-heading,
  .brand-grid {
    grid-template-columns: 1fr;
  }

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

  .brand-card {
    min-height: auto;
  }

  .card-top {
    margin-bottom: 28px;
  }
}

@media (max-width: 620px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .section-shell {
    width: min(100% - 28px, 1180px);
  }

  .system-map {
    min-height: auto;
    padding: 16px;
  }

  h1 {
    max-width: 10ch;
    font-size: 44px;
    line-height: 1.04;
  }

  .map-core,
  .map-lane {
    min-height: 78px;
  }
}

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

  .btn {
    transition: none;
  }
}
