/* Glyphs info MCP - Product Website */
/* Color scheme: Personal site (ink black) + Glyphs (lime green) */

:root {
  /* Base colors (from personal site) */
  --bg: #1a1a1a;
  --text: #e8e6e0;
  --text-muted: #9ca3af;
  --border: rgba(248, 246, 240, 0.2);

  /* Accent colors (from Glyphs) */
  --accent: #9acd32;
  --accent-hover: #7ab82d;
  --accent-bg: #2d3a2d;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Font */
  --font-base: "IBM Plex Sans", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", Monaco, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.lang-switch {
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.85rem;
  min-width: 2.5rem;
  text-align: center;
}

/* Hero Section */
.hero {
  padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

/* Install Command */
.install-box {
  background: var(--accent-bg);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: var(--space-md) var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  max-width: 100%;
  overflow-x: auto;
}

.install-box code {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  white-space: nowrap;
}

.copy-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  color: var(--accent);
  background: rgba(154, 205, 50, 0.1);
}

.copy-btn.copied {
  color: var(--accent);
}

/* Buttons */
.btn-group {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

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

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Stats */
.stats {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Features Section */
.features {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
}

.section-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

.section-subtitle a {
  color: var(--accent);
}

.section-title + .modules-grid,
.section-title + .features-grid {
  margin-top: var(--space-xl);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--space-lg);
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
  transform: translateY(-2px);
}

.feature-icon {
  margin-bottom: var(--space-md);
  color: var(--accent);
  font-size: 2.5rem;
  line-height: 1;
}

.feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Installation Section */
.installation {
  padding: var(--space-xl) 0;
  background: rgba(255, 255, 255, 0.02);
}

.code-block {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--border);
}

.code-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.code-content {
  padding: var(--space-md);
  overflow-x: auto;
}

.code-content pre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.code-content .comment {
  color: var(--text-muted);
}

.code-content .string {
  color: var(--accent);
}

.code-content .key {
  color: #f8f6f0;
}

/* Modules Section */
.modules {
  padding: var(--space-xl) 0;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.module-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: var(--space-md);
  text-align: center;
  transition: all 0.2s ease;
}

.module-card:hover {
  border-color: var(--accent);
}

.module-icon {
  margin: 0 auto var(--space-sm);
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
}

.module-name {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.module-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

.copyright a:hover {
  color: var(--accent);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    padding: var(--space-sm) var(--space-md);
  }

  .nav-links {
    gap: var(--space-md);
  }

  .hero {
    padding: calc(60px + var(--space-lg)) var(--space-md) var(--space-lg);
    min-height: auto;
  }

  .install-box {
    flex-direction: column;
    text-align: center;
  }

  .stats {
    gap: var(--space-lg);
  }

  .container {
    padding: 0 var(--space-md);
  }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
