:root {
  --bg: #08141f;
  --bg-alt: #0f2234;
  --panel: rgba(8, 20, 31, 0.72);
  --panel-strong: rgba(15, 34, 52, 0.9);
  --line: rgba(185, 214, 236, 0.18);
  --text: #f5f8fb;
  --text-soft: #bfd0de;
  --text-muted: #8aa3b5;
  --accent: #58e2c2;
  --accent-strong: #f8b84e;
  --danger: #ff8e8e;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(88, 226, 194, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(248, 184, 78, 0.16), transparent 26%),
    linear-gradient(180deg, #071019 0%, #0a1622 100%);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans TC", sans-serif;
  line-height: 1.55;
}

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

code,
.mono-flow {
  font-family: "Space Grotesk", monospace;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
}

.site-header,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  margin-bottom: 2.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  background: rgba(8, 20, 31, 0.48);
  box-shadow: var(--shadow);
}

.site-header-simple {
  justify-content: flex-start;
}

.brand-static {
  cursor: default;
}

.panel-inline-head {
  margin-bottom: 1rem;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #2ea1ff 100%);
  color: #042131;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-copy strong,
h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.brand-copy span:last-child {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav a {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
}

.site-nav a:hover,
.site-nav a.is-current {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

main {
  display: grid;
  gap: 1.4rem;
}

.hero,
.grid-panels,
.stats-grid {
  display: grid;
  gap: 1rem;
}

.hero {
  grid-template-columns: 1.6fr 0.95fr;
  align-items: stretch;
}

.hero.hero-minimal {
  grid-template-columns: 1fr;
}

.h-no-marg {
  margin: 0;
}

.hero-copy,
.hero-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2.2rem;
}

.hero-card,
.panel {
  padding: 1.5rem;
}

.hero h1,
.section-head h1 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.section-head h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero h2,
.panel h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.eyebrow,
.panel-label {
  margin: 0;
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.05rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #8cf1d2 100%);
  color: #032436;
}

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

.button.is-disabled,
.button[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}

.text-link {
  color: var(--accent);
  font-weight: 600;
}

.bullet-list,
.number-list,
.timeline {
  margin: 0;
  padding-left: 1.15rem;
}

.bullet-list li,
.number-list li {
  margin-top: 0.55rem;
  color: var(--text-soft);
}

.bullet-list li:first-child,
.number-list li:first-child {
  margin-top: 0;
}

.mono-flow {
  margin-top: 0.5rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-strong);
  overflow-x: auto;
}

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

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

.stat-card {
  background: var(--panel-strong);
}

.muted-note {
  color: var(--text-muted);
}

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.timeline-wide .timeline-item {
  grid-template-columns: 1.1fr 0.8fr 0.9fr;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.timeline-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.timeline-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 6.25rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chip-success {
  background: rgba(88, 226, 194, 0.14);
  color: var(--accent);
}

.chip-failure,
.chip-high {
  background: rgba(255, 142, 142, 0.15);
  color: var(--danger);
}

.chip-medium {
  background: rgba(248, 184, 78, 0.14);
  color: var(--accent-strong);
}

.chip-low {
  background: rgba(88, 226, 194, 0.14);
  color: var(--accent);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.tag-cloud span {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text-soft);
}

.empty-state {
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--text-muted);
}

@media (max-width: 960px) {
  .hero,
  .grid-panels,
  .stats-grid,
  .timeline-wide .timeline-item,
  .timeline-item,
  .section-head,
  .site-header {
    grid-template-columns: 1fr;
  }

  .site-header,
  .section-head {
    align-items: flex-start;
  }

  .timeline-item {
    gap: 0.6rem;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 1rem, 100%);
  }

  .hero-copy,
  .hero-card,
  .panel {
    padding: 1.15rem;
    border-radius: 22px;
  }

  .hero h1,
  .section-head h1 {
    line-height: 1.02;
  }

  .button {
    width: 100%;
  }
}
