:root {
  --primary-color: #00d2ff;
  --secondary-color: #3a7bd5;
  --bg-dark: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-gold: #fbbf24;
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Gradients */
.bg-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 0% 0%, rgba(0, 210, 255, 0.15), transparent 40%),
              radial-gradient(circle at 100% 100%, rgba(58, 123, 213, 0.15), transparent 40%);
  z-index: -1;
}

/* Header & Hero */
header {
  padding: 4rem 0 2rem;
  text-align: center;
}

h1 {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 9999px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.4);
}

/* Feature Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: 1rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 210, 255, 0.4);
}

.card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

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

/* Source Viewer Section */
.source-viewer {
  margin: 4rem 0;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  height: 700px;
}

.file-list {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow-y: auto;
  padding: 1rem;
}

.file-item {
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.file-item.active {
  background: rgba(0, 210, 255, 0.15);
  color: var(--primary-color);
  font-weight: 500;
}

.code-container {
  background: #1e293b;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.code-header {
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filename-display {
  font-size: 0.875rem;
  font-family: 'Fira Code', monospace;
  color: var(--text-muted);
}

.btn-copy {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.2s;
}

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

.code-content {
  flex-grow: 1;
  overflow: auto;
  padding: 1.5rem;
  margin: 0;
  font-family: 'Fira Code', 'Cascadia Code', Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e2e8f0;
}

/* Footer */
footer {
  text-align: center;
  padding: 4rem 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

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

.animate-fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .source-viewer {
    grid-template-columns: 1fr;
    height: auto;
  }
  .file-list {
    height: 300px;
  }
  .code-container {
    height: 500px;
  }
}

/* Markdown Styling */
.markdown-body {
  color: #e2e8f0;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
}

.markdown-body h1, 
.markdown-body h2, 
.markdown-body h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: var(--primary-color);
}

.markdown-body h1 { font-size: 1.75rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.5rem; }
.markdown-body h2 { font-size: 1.5rem; border-bottom: 1px solid var(--glass-border); padding-bottom: 0.3rem; }
.markdown-body h3 { font-size: 1.25rem; }

.markdown-body p, 
.markdown-body ul, 
.markdown-body ol {
  margin-bottom: 1rem;
}

.markdown-body ul, 
.markdown-body ol {
  padding-left: 1.5rem;
}

.markdown-body li {
  margin-bottom: 0.25rem;
}

.markdown-body code {
  font-family: 'Fira Code', monospace;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.4rem;
  border-radius: 0.3rem;
  font-size: 0.9em;
}

.markdown-body pre {
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 0.5rem;
  overflow: auto;
  margin-bottom: 1rem;
  border: 1px solid var(--glass-border);
}

.markdown-body pre code {
  background: transparent;
  padding: 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.markdown-body th, 
.markdown-body td {
  border: 1px solid var(--glass-border);
  padding: 0.75rem;
  text-align: left;
}

.markdown-body th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary-color);
}

.markdown-body blockquote {
  border-left: 4px solid var(--primary-color);
  background: rgba(0, 210, 255, 0.05);
  padding: 0.5rem 1rem;
  margin: 1rem 0;
  border-radius: 0 0.5rem 0.5rem 0;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 2rem 0;
}

/* GitHub Alert Style (Simple) */
.markdown-body blockquote > p:first-child strong {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

