/* =============================================================================
   Landing Page Specific Styles
   ============================================================================= */

/* Landing Header */
.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(10, 10, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--pixel-border) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 100;
}

.landing-header::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.landing-header .logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.02em;
}

.landing-header .logo:hover {
  color: var(--primary);
}

.landing-header .logo:hover .logo-icon {
  box-shadow: 0 0 16px var(--primary-glow);
}

.landing-header .logo-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: var(--pixel-border) solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  transition: box-shadow 0.2s ease;
}

.landing-header nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.landing-header nav a {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.landing-header nav a:hover {
  color: var(--text);
  background: var(--bg-subtle);
  border-color: var(--border);
}

.landing-header .github-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.landing-header .github-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* =============================================================================
   Hero Section
   ============================================================================= */

.hero {
  padding: 12rem 2rem 6rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  opacity: 0.15;
  pointer-events: none;
}

.hero-badge {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: var(--pixel-border) solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-badge::before {
  content: '>';
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-badge span {
  color: var(--accent);
  font-weight: 600;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 1.5rem 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 40px var(--primary-glow);
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 2.5rem 0;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================================
   Buttons
   ============================================================================= */

.btn {
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: var(--pixel-border) solid;
}

.btn-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 0 20px var(--primary-glow);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--text-muted);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* =============================================================================
   Features Section
   ============================================================================= */

.features {
  padding: 4rem 2rem 6rem;
  max-width: 1100px;
  margin: 0 auto;
}

.features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.features-header h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}

.features-header h2::before {
  content: '// ';
  opacity: 0.5;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.feature-card {
  background: var(--bg-card);
  border: var(--pixel-border) solid var(--border);
  padding: 1.5rem;
  transition: all 0.15s ease;
  position: relative;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.feature-card:hover {
  border-color: var(--border-light);
  background: var(--bg-subtle);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-family: var(--font-mono);
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-mono);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card h3::before {
  content: '$ ';
  color: var(--primary);
  opacity: 0.6;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* =============================================================================
   Code Preview Section
   ============================================================================= */

.code-section {
  padding: 2rem 2rem 6rem;
  max-width: 750px;
  margin: 0 auto;
}

.code-block {
  background: var(--bg-card);
  border: var(--pixel-border) solid var(--border);
  overflow: hidden;
  position: relative;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.code-header {
  font-family: var(--font-mono);
  background: var(--bg);
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.code-dots {
  display: flex;
  gap: 6px;
}

.code-dot {
  width: 10px;
  height: 10px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.code-dot.red {
  background: var(--primary);
  border-color: var(--primary);
}

.code-dot.yellow {
  background: #eab308;
  border-color: #eab308;
}

.code-dot.green {
  background: var(--accent);
  border-color: var(--accent);
}

.code-content {
  padding: 1.5rem;
  overflow-x: auto;
}

.code-content pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  background: transparent;
  border: none;
  padding: 0;
}

.code-content pre::before {
  display: none;
}

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

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

.code-content .prompt {
  color: var(--primary);
}

/* =============================================================================
   Landing Footer
   ============================================================================= */

.landing-footer {
  padding: 2rem;
  text-align: center;
  border-top: var(--pixel-border) solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.landing-footer::before {
  content: '// END OF FILE';
  display: block;
  margin-bottom: 1rem;
  opacity: 0.3;
  letter-spacing: 0.1em;
}

.landing-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* =============================================================================
   ASCII Art Decoration
   ============================================================================= */

.ascii-decoration {
  font-family: var(--font-mono);
  color: var(--border);
  font-size: 0.6rem;
  line-height: 1.2;
  white-space: pre;
  text-align: center;
  margin: 2rem 0;
  opacity: 0.4;
}

/* =============================================================================
   Landing Page Responsive
   ============================================================================= */

@media (max-width: 768px) {
  .hero {
    padding: 10rem 1.5rem 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .landing-header {
    padding: 0 1rem;
  }

  .landing-header nav {
    gap: 0.5rem;
  }

  .code-content pre {
    font-size: 0.75rem;
  }
}
