:root {
  --bg: #f4f8fc;
  --bg-soft: #eaf2fb;
  --surface: #ffffff;
  --surface-strong: #f8fbff;
  --ink: #0f172a;
  --muted: #4f5f73;
  --line: #d6e2f1;
  --brand: #0d8ca4;
  --brand-strong: #06677a;
  --brand-ink: #053544;
  --accent: #ff7a45;
  --accent-ink: #7f2f12;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-mid: 0 16px 40px rgba(15, 23, 42, 0.12);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --max-width: 1180px;
  --ease: 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans TC", "PingFang TC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% -5%, rgba(13, 140, 164, 0.18), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(255, 122, 69, 0.14), transparent 30%),
    var(--bg);
  line-height: 1.65;
}

h1,
h2,
h3,
.brand-mark {
  font-family: "Space Grotesk", "Plus Jakarta Sans", "Noto Sans TC", sans-serif;
  letter-spacing: -0.02em;
  margin: 0;
}

p {
  margin: 0;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(244, 248, 252, 0.82);
  border-bottom: 1px solid rgba(214, 226, 241, 0.9);
}

.announcement-bar,
.nav-shell,
.section,
.site-footer {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.announcement-bar {
  padding: 0.7rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.2rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--ease);
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--brand);
  color: #fff;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0 1.05rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(120deg, var(--brand-ink), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0.5rem 0.82rem;
  border-radius: 999px;
  transition: all var(--ease);
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--surface);
}

.site-nav .nav-cta {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.site-nav .nav-cta:hover {
  background: var(--brand-ink);
  color: #fff;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
}

.menu-toggle span + span {
  margin-top: 6px;
}

.section {
  padding: clamp(3.6rem, 6vw, 6rem) 0;
}

.section-soft {
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  background: linear-gradient(160deg, rgba(234, 242, 251, 0.4), rgba(255, 255, 255, 0.7));
}

.section-head {
  max-width: 780px;
}

.eyebrow {
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.95rem;
}

.section-head h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.95rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}

.section-head p {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

.hero {
  padding-top: clamp(3.5rem, 7vw, 6.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.1rem, 5.2vw, 4.25rem);
  line-height: 1.05;
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.2rem);
}

.hero-actions {
  margin-top: 1.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--brand), #43b8cc);
  box-shadow: 0 12px 22px rgba(13, 140, 164, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 26px rgba(13, 140, 164, 0.35);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-stats {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.hero-stats article {
  padding: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.stat-value {
  font-size: 1.18rem;
  font-weight: 800;
  margin-bottom: 0.2rem;
}

.stat-label {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.hero-visual {
  min-height: 470px;
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 30% 20%, rgba(67, 184, 204, 0.7), transparent 46%),
    radial-gradient(circle at 78% 24%, rgba(255, 122, 69, 0.45), transparent 37%),
    linear-gradient(145deg, #dceeff, #f9fdff 60%);
  border: 1px solid rgba(214, 226, 241, 0.9);
  box-shadow: var(--shadow-mid);
  overflow: hidden;
}

.halo {
  position: absolute;
  inset: 14% 16%;
  border-radius: 999px;
  border: 1px solid rgba(6, 103, 122, 0.2);
  animation: pulseRing 4s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  width: min(260px, 72%);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(6px);
  animation: bob 5s ease-in-out infinite;
}

.floating-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.floating-card p {
  color: var(--muted);
  font-size: 0.85rem;
}

.card-1 {
  top: 12%;
  left: 8%;
}

.card-2 {
  right: 8%;
  top: 38%;
  animation-delay: 0.8s;
}

.card-3 {
  left: 16%;
  bottom: 10%;
  animation-delay: 1.5s;
}

.pillar-grid {
  margin-top: 2.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}

.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(13, 140, 164, 0.35);
}

.pillar-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  border-radius: 999px;
  background: rgba(13, 140, 164, 0.12);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.95rem;
}

.pillar h3 {
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}

.pillar p {
  color: var(--muted);
  font-size: 0.95rem;
}

.audience-cloud {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.audience-cloud span,
.training-lanes span {
  padding: 0.62rem 0.92rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 2rem;
}

.tab-btn {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
  padding: 0.8rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--ease);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.scenario-panels {
  margin-top: 1rem;
}

.scenario-panel {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.scenario-panel:not(.active) {
  display: none;
}

.scenario-panel img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.scenario-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 0.45rem;
}

.scenario-panel p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.scenario-panel ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--brand-ink);
}

.standards-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.standard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  transition: transform var(--ease), box-shadow var(--ease);
}

.standard-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.standard-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
}

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

.training-lanes {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.news-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem;
  min-height: 195px;
  transition: transform var(--ease), box-shadow var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.news-card time {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-ink);
  background: rgba(255, 122, 69, 0.13);
  border-radius: 999px;
  padding: 0.28rem 0.62rem;
  margin-bottom: 0.65rem;
}

.news-card h3 {
  font-size: 1.06rem;
  margin-bottom: 0.45rem;
}

.news-card p {
  color: var(--muted);
  font-size: 0.93rem;
}

.cta-section {
  padding-bottom: clamp(4.2rem, 7vw, 6.4rem);
}

.cta-panel {
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 20% 30%, rgba(67, 184, 204, 0.22), transparent 36%),
    radial-gradient(circle at 80% 70%, rgba(255, 122, 69, 0.2), transparent 30%),
    var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-mid);
  padding: clamp(1.4rem, 4vw, 3.2rem);
}

.cta-panel h2 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  max-width: 900px;
}

.cta-panel p {
  max-width: 760px;
  color: var(--muted);
}

.site-footer {
  padding: 2rem 0 2.2rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
}

.footer-brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.footer-heading {
  font-size: 0.8rem;
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  padding: 0.2rem 0;
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: var(--ink);
}

.footer-meta {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.55;
  }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 390px;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.55rem);
    padding: 0.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-mid);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav .nav-cta {
    text-align: center;
  }

  .scenario-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scenario-panel {
    grid-template-columns: 1fr;
  }

  .scenario-panel img {
    height: 210px;
  }
}

@media (max-width: 680px) {
  .announcement-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-text {
    display: none;
  }

  .hero-stats,
  .standards-grid,
  .news-grid,
  .footer-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .scenario-tabs {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 330px;
  }

  .card-2,
  .card-3 {
    left: 8%;
    right: auto;
  }

  .card-2 {
    top: 44%;
  }

  .card-3 {
    bottom: 8%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
