/* rtfm.codes — documentation included */
/* https://rtfm.codes */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-terminal: #0d1117;
  --text-primary: #00ff00;
  --text-secondary: #4ade80;
  --text-dim: #22c55e;
  --text-muted: #166534;
  --accent-green: #00ff00;
  --accent-green-dim: #22c55e;
  --border-color: #1a3a1a;
  --border-radius: 4px;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', monospace;
  --shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

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

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

/* Scanline effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.15),
    rgba(0, 0, 0, 0.15) 1px,
    transparent 1px,
    transparent 2px
  );
  z-index: 1000;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 500;
}

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

.logo .cursor {
  display: inline-block;
  width: 10px;
  height: 20px;
  background: var(--text-primary);
  animation: blink 1s step-end infinite;
}

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

nav {
  display: flex;
  gap: 24px;
}

nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

/* Hero Section */
.hero {
  padding: 80px 0;
  text-align: center;
}

.hero-logo {
  max-width: 500px;
  margin: 0 auto 32px;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.hero .tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.hero .subtagline {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Terminal Window */
.terminal-window {
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 20px;
  font-size: 0.9rem;
  line-height: 1.8;
}

.terminal-line {
  margin-bottom: 8px;
}

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

.terminal-command {
  color: var(--text-primary);
}

.terminal-output {
  color: var(--text-secondary);
  padding-left: 20px;
}

/* Products Grid */
.products-section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.section-title::before {
  content: "# ";
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  border-color: var(--text-primary);
  box-shadow: var(--shadow);
}

.product-card.coming-soon {
  opacity: 0.6;
}

.product-card.coming-soon:hover {
  border-color: var(--border-color);
  box-shadow: none;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.product-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius);
  object-fit: cover;
}

.product-name {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.product-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-available {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.badge-coming {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  margin-top: 60px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Product Page Styles */
.product-page {
  padding: 60px 0;
}

.product-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

.product-hero-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius);
}

.product-hero-content h1 {
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.product-hero-content .tagline {
  font-size: 1rem;
  color: var(--text-secondary);
}

/* Install Section */
.install-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 24px;
  margin-bottom: 48px;
}

.install-section h2 {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.install-section h2::before {
  content: "## ";
  color: var(--text-muted);
}

.install-command {
  display: flex;
  align-items: center;
  background: var(--bg-terminal);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.install-command code {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.install-command code::before {
  content: "$ ";
  color: var(--text-muted);
}

.copy-btn {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-left: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  color: var(--text-primary);
  background: rgba(0, 255, 0, 0.05);
}

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

/* Usage Section */
.usage-section {
  margin-bottom: 48px;
}

.usage-section h2 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.usage-section h2::before {
  content: "## ";
  color: var(--text-muted);
}

/* Links Section */
.links-section {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

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

.link-btn svg {
  width: 16px;
  height: 16px;
}

/* Coming Soon Page */
.coming-soon-page {
  padding: 120px 0;
  text-align: center;
}

.coming-soon-page h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.coming-soon-page p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.back-link:hover {
  color: var(--text-primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
  }
  
  .product-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .terminal-body {
    font-size: 0.8rem;
  }
}

/* ASCII Art styling */
.ascii-art {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  line-height: 1.2;
  color: var(--text-muted);
  white-space: pre;
  text-align: center;
  margin: 20px 0;
}


/* Login Banner */
.login-banner {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 8px 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ASCII Section Headers */
.ascii-header {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  text-align: center;
}

/* Product Stats */
.product-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Comparison Table */
.comparison-section {
  padding: 60px 0;
}

.comparison-table {
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.comparison-table th {
  background: var(--bg-terminal);
  font-weight: 500;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.comparison-table td {
  color: var(--text-secondary);
}

.comparison-table td a {
  color: var(--text-primary);
  text-decoration: none;
}

.comparison-table td a:hover {
  text-decoration: underline;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: rgba(0, 255, 0, 0.02);
}

/* Footer Right */
.footer-right {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.vim-hint {
  font-size: 0.65rem;
  opacity: 0.6;
}

/* Aurora Background Effect */
.hero {
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 255, 0, 0.03) 0%, transparent 50%);
  animation: aurora 15s ease-in-out infinite;
  z-index: -1;
}

@keyframes aurora {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

/* Version Badges */
.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Content Page Styles */
.content-page {
  padding: 60px 0;
}

.content-page h1 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 32px;
}

.content-page h2 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.content-block {
  max-width: 700px;
}

.content-block p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.content-block a {
  color: var(--text-primary);
  text-decoration: none;
}

.content-block a:hover {
  text-decoration: underline;
}
