@keyframes titleGlow {
  from { text-shadow: 0 0 40px rgba(0, 255, 136, 0.4), 0 0 80px rgba(0, 255, 136, 0.2); }
  to { text-shadow: 0 0 50px rgba(0, 255, 136, 0.5), 0 0 100px rgba(0, 255, 136, 0.3); }
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 255, 136, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0px, transparent 50px, rgba(0, 255, 136, 0.015) 51px),
    repeating-linear-gradient(90deg, transparent 0px, transparent 50px, rgba(0, 255, 136, 0.015) 51px);
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

section {
  margin-bottom: 48px;
}

section:last-child {
  margin-bottom: 24px;
}

.hero {
  text-align: center;
  padding: 20px 0 0;
}

.hero-content {
  margin-bottom: 40px;
}

.hero-brand {
  font-size: clamp(42px, 10vw, 64px);
  font-weight: 700;
  letter-spacing: 12px;
  color: var(--neon);
  margin-bottom: 16px;
  line-height: 1.1;
  animation: titleGlow 3s ease-in-out infinite alternate;
}

.hero-tagline {
  font-size: clamp(14px, 3vw, 18px);
  font-weight: 400;
  color: var(--text-dim);
  letter-spacing: 3px;
  margin-bottom: 12px;
  text-transform: none;
}

.hero-version {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
}

.hero-image-wrapper {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  background: var(--terminal-bg);
  border: 1px solid var(--border);
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(0, 255, 136, 0.05);
}

.window-dots {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(0, 255, 136, 0.06);
  border-bottom: 1px solid var(--border);
}

.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots span:nth-child(1) {
  background: #ff5f57;
}

.window-dots span:nth-child(2) {
  background: #febc2e;
}

.window-dots span:nth-child(3) {
  background: #28c840;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-image.loaded {
  opacity: 1;
}

.install-card {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(0, 255, 136, 0.05);
}

.install-header {
  padding: 10px 14px;
  background: rgba(0, 255, 136, 0.08);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.install-tabs {
  display: inline-flex;
  gap: 0;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.tab-icon {
  display: block;
}

.tab-text {
  display: none;
}

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--neon);
  transition: width 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-dim);
}

.tab-btn.active {
  color: var(--neon);
}

.tab-btn.active::after {
  width: 100%;
}

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

.copy-btn:hover {
  background: rgba(0, 255, 136, 0.15);
  color: var(--neon);
}

.copy-btn .icon-copy {
  display: block;
}

.copy-btn .icon-check {
  display: none;
}

.copy-btn.copied {
  background: rgba(0, 255, 136, 0.25);
  color: var(--neon);
  transform: scale(1.1);
}

.copy-btn.copied .icon-copy {
  display: none;
}

.copy-btn.copied .icon-check {
  display: block;
}

.install-body {
  background: var(--terminal-bg);
}

.command-block {
  display: none;
}

.command-block.active {
  display: block;
}

.command-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
}

.command-prompt {
  color: var(--neon);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.6;
  flex-shrink: 0;
  opacity: 0.7;
}

.command-text {
  font-family: "SF Mono", "Monaco", "Menlo", monospace;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  word-break: break-all;
  flex: 1;
}

.faq-container {
  background: var(--panel-strong);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(0, 255, 136, 0.05);
}

.faq-header {
  padding: 12px 14px;
  background: rgba(0, 255, 136, 0.08);
  border-bottom: 1px solid var(--border);
}

.faq-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s ease;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:hover {
  background: rgba(0, 255, 136, 0.03);
}

.faq-item.open {
  background: rgba(0, 255, 136, 0.05);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--neon);
}

.faq-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--neon-dim);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(90deg);
}

.faq-question-text {
  flex: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 150px;
}

.faq-answer p {
  padding: 0 14px 14px 46px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

.faq-answer a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.faq-answer a:hover {
  color: var(--neon);
}

.footer {
  position: relative;
  z-index: 1;
  padding: 32px 20px;
  border-top: 1px solid var(--border-subtle);
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--neon);
  background: rgba(0, 255, 136, 0.08);
}

.footer-link svg {
  transition: transform 0.2s ease;
}

.footer-link:hover svg {
  transform: scale(1.1);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--neon-dim);
}

::selection {
  background: rgba(0, 255, 136, 0.2);
  color: var(--text);
}

@media (min-width: 641px) {
  .tab-icon {
    display: none;
  }

  .tab-text {
    display: inline;
  }
}

@media (max-width: 640px) {
  main {
    padding: 60px 16px 32px;
  }

  section {
    margin-bottom: 40px;
  }

  .hero {
    padding: 10px 0 0;
  }

  .hero-brand {
    letter-spacing: 8px;
  }

  .hero-tagline {
    letter-spacing: 2px;
  }

  .hero-content {
    margin-bottom: 32px;
  }

  .window-dots {
    padding: 8px 10px;
    gap: 5px;
  }

  .window-dots span {
    width: 8px;
    height: 8px;
  }

  .install-header {
    padding: 8px 12px;
  }

  .install-tabs {
    flex-direction: row;
    gap: 4px;
  }

  .tab-btn {
    padding: 8px 12px;
  }

  .tab-btn::after {
    bottom: -8px;
  }

  .copy-btn {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }

  .command-content {
    padding: 12px;
  }

  .command-text {
    font-size: 11px;
  }

  .faq-header {
    padding: 10px 12px;
  }

  .faq-question {
    padding: 12px;
    gap: 10px;
    font-size: 12px;
  }

  .faq-answer p {
    padding: 0 12px 12px 36px;
    font-size: 11px;
  }

  .footer {
    padding: 24px 16px;
  }

  .footer-links {
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
