:root {
  color-scheme: dark;
  font-family: "Noto Sans TC", "Segoe UI", system-ui, sans-serif;
  background: #080b16;
  color: #e7eefc;
  line-height: 1.65;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(97, 110, 255, 0.2), transparent 28%),
    linear-gradient(180deg, #0f1529 0%, #080b16 100%);
}

.page-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-icon,
.footer-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.brand-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 0.88rem;
  color: #9cb4ff;
}

.site-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
}

.site-nav a {
  color: #d7e0ff;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e7eefc;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:last-child {
  margin-bottom: 0;
}

.hero-section {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 32px;
  align-items: center;
  padding-top: 40px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow,
.section-eyebrow {
  margin: 0 0 12px;
  color: #7ca9ff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
}

.hero-section h1,
.section-heading h2,
.highlight-copy h2,
.cta-card h2 {
  margin: 0;
  font-size: clamp(2rem, 2.7vw, 3.6rem);
  letter-spacing: -0.05em;
}

.hero-text,
.section-copy p,
.feature-card p,
.command-card p,
.highlight-item ul,
.cta-card p {
  color: #cad4ff;
  margin: 0;
  font-size: 1rem;
}

.hero-buttons,
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  font-weight: 600;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, #5f8bff, #7b61ff);
  box-shadow: 0 16px 36px rgba(106, 95, 255, 0.18);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card,
.feature-card,
.command-card,
.highlight-item,
.cta-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}

.hero-card p,
.hero-card li,
.highlight-item li {
  color: #c6d0ff;
}

.hero-card ul,
.highlight-item ul,
.command-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li,
.highlight-item li,
.command-card li {
  margin-bottom: 12px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.feature-grid,
.highlight-grid,
.command-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.command-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card h3,
.command-card h3,
.highlight-item h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #fff;
}

.highlight-item ul,
.command-card ul,
.usage-card ul {
  padding-left: 18px;
}

.highlight-item li,
.command-card li,
.usage-card li {
  margin-bottom: 10px;
}

.usage-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.usage-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}

.usage-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #fff;
}

.section-cta {
  padding: 40px 0;
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8d9cff;
  font-size: 0.95rem;
  padding-bottom: 40px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin: 0;
  color: #f8fbff;
}

.footer-note {
  max-width: 560px;
}

.footer-note p {
  margin: 4px 0;
}

@media (max-width: 980px) {
  .hero-section {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .command-grid,
  .highlight-grid,
  .usage-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 16px;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 16px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    width: 100%;
    margin-top: 12px;
  }

  .site-nav.active {
    max-height: 480px;
    opacity: 1;
  }

  .site-nav a {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    margin-bottom: 10px;
    font-size: 0.95rem;
  }

  .site-nav a:last-child {
    margin-bottom: 0;
  }

  .hero-section,
  .section,
  .footer {
    padding: 20px 0;
  }

  .hero-card,
  .feature-card,
  .command-card,
  .highlight-item,
  .cta-card {
    padding: 22px;
  }

  .hero-buttons,
  .button-group {
    flex-direction: column;
  }

  .hero-copy {
    max-width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-note {
    max-width: 100%;
    width: 100%;
    text-align: center;
  }
}
@media (min-width: 641px) {
  .nav-toggle {
    display: none !important;
  }
}
