:root {
  /* Color Palette: #FF6500, #1E3E62, #0B192C, #000000 */
  --bg-canvas: #000000;
  --bg-card: #0B192C;
  --bg-card-hover: #10243E;
  --bg-elevated: #152B47;
  --border-subtle: #1E3E62;
  --border-focus: #FF6500;
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #8496AC;

  --primary: #FF6500;
  --primary-hover: #FF8533;
  --primary-glow: rgba(255, 101, 0, 0.25);
  --primary-soft: rgba(255, 101, 0, 0.12);

  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #F59E0B;

  --code-bg: #040810;
  --header-bg: rgba(0, 0, 0, 0.88);
  --btn-bg: #0F2238;
  --btn-bg-hover: #173354;
  --btn-border: #1E3E62;
  --btn-text: #FFFFFF;

  --font-sans: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="light"] {
  --bg-canvas: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-elevated: #E2E8F0;
  --border-subtle: #CBD5E1;
  --border-focus: #E65100;
  --text-primary: #0B192C;
  --text-secondary: #334155;
  --text-muted: #64748B;

  --primary: #E65100;
  --primary-hover: #FF6D00;
  --primary-glow: rgba(230, 81, 0, 0.20);
  --primary-soft: rgba(230, 81, 0, 0.10);

  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.10);

  --code-bg: #F1F5F9;
  --header-bg: rgba(248, 250, 252, 0.92);
  --btn-bg: #E2E8F0;
  --btn-bg-hover: #CBD5E1;
  --btn-border: #CBD5E1;
  --btn-text: #0B192C;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.65;
  background-image: radial-gradient(ellipse 800px 300px at 50% 0%, rgba(255, 101, 0, 0.05), transparent 100%);
  background-repeat: no-repeat;
  background-position: top center;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

[data-theme="light"] body {
  background-image: radial-gradient(ellipse 800px 300px at 50% 0%, rgba(230, 81, 0, 0.04), transparent 100%);
}

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

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

/* Scroll Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.site-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  object-fit: contain;
}

.site-logo-link:hover .site-logo-title {
  color: var(--primary);
}

.site-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  font-family: inherit;
}

.nav-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-focus);
  background: var(--bg-card-hover);
}

.nav-github {
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.nav-github:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-moon { display: inline-block !important; }

.sys-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse-green 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.9); }
}

/* Container */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Hero Section — Fullscreen, Grand & Animated */
.hero {
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: 40px 0 28px;
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

/* Ambient glowing orbs & subtle technical matrix grid in Hero */
.hero::before {
  content: "";
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 960px;
  height: 520px;
  background: radial-gradient(ellipse 65% 50% at center, rgba(255, 101, 0, 0.16) 0%, rgba(30, 62, 98, 0.10) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
  animation: heroGlowPulse 7s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, rgba(255, 101, 0, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 101, 0, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

[data-theme="light"] .hero::before {
  background: radial-gradient(ellipse 65% 50% at center, rgba(230, 81, 0, 0.10) 0%, rgba(30, 62, 98, 0.05) 45%, transparent 75%);
}

[data-theme="light"] .hero::after {
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

@keyframes heroGlowPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.65;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.15);
    opacity: 1;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.hero h1 {
  font-size: clamp(3.2rem, 7.8vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--text-primary);
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 .highlight {
  color: var(--primary);
  background: linear-gradient(110deg, #FF6500 0%, #FF9944 30%, #FFF5ED 50%, #FF9944 70%, #FF6500 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: textShimmer 7s linear infinite;
  display: inline-block;
}

@keyframes textShimmer {
  0% {
    background-position: 250% 0;
  }
  100% {
    background-position: -250% 0;
  }
}

.hero-subtitle {
  font-size: clamp(1.18rem, 2.2vw, 1.45rem);
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 38px;
  line-height: 1.6;
  font-weight: 400;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 38px;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.btn-cta {
  padding: 13px 28px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  border: 1px solid transparent;
}

.btn-cta-primary {
  background: var(--primary);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 24px var(--primary-glow);
}

.btn-cta-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(255, 101, 0, 0.45);
  color: #000000;
}

.btn-cta-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-cta-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  color: var(--text-primary);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(30, 62, 98, 0.35);
}

/* Dynamic Platform Installer in Hero */
.hero-installer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.platform-switch-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.platform-pill-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 4px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.platform-pill-btn:hover {
  color: var(--text-primary);
}

.platform-pill-btn.active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(255, 101, 0, 0.35);
  font-weight: 600;
}

.hero-installer .code-box {
  background: var(--code-bg);
  border: 1px solid rgba(255, 101, 0, 0.32);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 101, 0, 0.08);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  padding: 13px 18px;
}

.hero-installer .code-box:hover {
  border-color: var(--primary);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 0 32px rgba(255, 101, 0, 0.2);
  transform: translateY(-1px);
}

/* Scroll indicator at the bottom of hero */
.hero-scroll-indicator {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.65s both;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-scroll-indicator:hover {
  color: var(--primary);
  transform: translateY(2px);
}

.scroll-mouse-icon {
  width: 18px;
  height: 28px;
  border: 2px solid var(--border-subtle);
  border-radius: 10px;
  position: relative;
  display: block;
}

.scroll-mouse-wheel {
  width: 3px;
  height: 5px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2.2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(11px);
  }
}

@keyframes heroFadeUp {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes heroFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero h1,
  .hero h1 .highlight,
  .hero-subtitle,
  .hero-actions,
  .hero-installer,
  .hero-scroll-indicator,
  .scroll-mouse-wheel {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

.code-box {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.code-box-content {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.code-box-content::-webkit-scrollbar { display: none; }

.copy-btn {
  background: var(--btn-bg);
  border: 1px solid var(--btn-border);
  color: var(--btn-text);
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-family: inherit;
}

.copy-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.copy-btn.copied {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

/* Section Common */
.section-spacer {
  padding-top: 96px;
  padding-bottom: 96px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Grid */
.core-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.side-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.feature-card-side {
  background: rgba(11, 25, 44, 0.65);
  border-style: dashed;
}

[data-theme="light"] .feature-card-side {
  background: #F8FAFC;
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feature-icon-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Terminal Showcase — Centered, Fixed Height, User Scrollable */
.terminal-wrapper {
  max-width: 860px;
  margin: 0 auto;
}

.terminal-window {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  font-family: var(--font-mono);
}

.terminal-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #FF5F56; }
.dot-yellow { background: #FFBD2E; }
.dot-green { background: #27C93F; }

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

.terminal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-replay-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.terminal-replay-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.terminal-body {
  padding: 20px 22px;
  height: 420px;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  scroll-behavior: smooth;
}

.terminal-line {
  margin-bottom: 5px;
  white-space: pre-wrap;
  word-break: break-all;
}

.term-prompt {
  color: var(--primary);
  font-weight: 700;
  user-select: none;
}

.term-cmd {
  color: #FFFFFF;
  font-weight: 600;
}

[data-theme="light"] .term-cmd {
  color: #0B192C;
}

.term-dim { color: var(--text-muted); }
.term-green { color: #34D399; font-weight: 600; }
.term-cyan { color: #38BDF8; }
.term-orange { color: #FB923C; }

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--primary);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Quick Installation — Wide, Expansive Command Cards */
.install-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.install-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.install-item-card:hover {
  border-color: var(--border-focus);
}

.install-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.install-item-header h3 {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
}

.platform-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Comparison Table */
.comparison-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto;
}

.comparison-table-scroll {
  overflow-x: auto;
  width: 100%;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 640px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  width: 32%;
}

.comparison-table th {
  background: var(--bg-elevated);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.comparison-table th.s0-col-head {
  background: rgba(255, 101, 0, 0.14);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.comparison-table td.s0-col-cell {
  background: rgba(255, 101, 0, 0.04);
  font-weight: 700;
}

.check-icon {
  color: var(--success);
  font-weight: 700;
}

.cross-icon {
  color: var(--text-muted);
  opacity: 0.5;
}

.partial-icon {
  color: var(--warning);
  font-weight: 700;
}

/* Footer — With Expanded Documentation Links */
footer.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 56px 24px 36px;
  background: var(--bg-canvas);
  margin-top: 50px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 36px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.footer-brand-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer-links-group {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.84rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 900px) {
  .core-features-grid {
    grid-template-columns: 1fr;
  }
  .side-features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header-inner {
    padding: 0 16px;
    gap: 8px;
  }

  .site-header-right {
    gap: 6px;
  }

  .site-logo-link {
    font-size: 1rem;
    gap: 8px;
  }

  .site-logo-link .logo-sub {
    display: none;
  }

  .nav-btn {
    padding: 6px 10px;
  }

  .github-repo-text {
    display: none;
  }

  .nav-github {
    padding: 6px 10px;
  }

  #themeToggleLabel {
    display: none;
  }

  .theme-toggle-btn {
    padding: 6px 10px;
  }

  .sys-pill {
    padding: 5px 9px;
    font-size: 0.72rem;
    gap: 6px;
  }

  .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .section-spacer {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero {
    padding: 40px 0 24px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .footer-top {
    flex-direction: column;
  }

  .footer-links-group {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .site-header-inner {
    padding: 0 12px;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .feature-card {
    padding: 22px 18px;
  }

  .install-item-card {
    padding: 16px 14px;
  }

  .terminal-body {
    padding: 14px 12px;
    font-size: 0.74rem;
    height: 380px;
    max-height: 380px;
  }

  .code-box {
    padding: 10px 12px;
    font-size: 0.78rem;
  }

  .copy-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
  }
}
