:root {
    --primary-color: #f59e0b;
    --primary-hover: #fbbf24;
    --secondary-color: #fbbf24;
    --success-color: #3fb950;
    --warning-color: #d29922;
    --danger-color: #f85149;
    --dark-color: #0d1117;
    --darker-color: #010409;
    --light-color: #161b22;
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --card-bg-hover: #1b222c;
    --text-color: #c9d1d9;
    --text-secondary: #8b949e;
    --border-color: #30363d;
    --accent-tint: rgba(245, 158, 11, 0.08);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.5);
    --matrix-green: #f59e0b;
    --neon-cyan: #fbbf24;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-mono: 'SF Mono', 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

pre, code, kbd, samp {
    font-family: var(--font-mono);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--darker-color) 0%, var(--dark-color) 100%);
    color: var(--primary-color);
    padding: 20px 0;
    box-shadow: 0 1px 0 var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    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: 15px;
}

.logo i {
    font-size: 2.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.header-nav {
    display: flex;
    gap: 20px;
}

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
}

.nav-link:hover {
    background-color: rgba(245, 158, 11, 0.1);
    border-color: var(--primary-color);
    box-shadow: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--darker-color) 0%, #161b22 100%);
    color: var(--primary-color);
    padding: 60px 0;
    text-align: center;
    border-bottom: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.stat-item i {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Dashboard Section */
.dashboard {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
    background: rgba(245, 158, 11, 0.02);
}

.dashboard-card.featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(251, 191, 36, 0.05));
    border: 2px solid var(--primary-color);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(251, 191, 36, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 2px solid var(--primary-color);
    box-shadow: none;
}

.card-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.dashboard-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.dashboard-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.badge {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--primary-color);
}

.badge i {
    font-size: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--darker-color);
    font-weight: bold;
    border: 1px solid var(--primary-color);
    box-shadow: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    transform: translateX(5px);
    box-shadow: none;
}

/* Quick Start Section */
.quick-start {
    background: var(--darker-color);
    color: var(--primary-color);
    padding: 60px 0;
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
}

.quick-start h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
}

.quick-start-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.quick-start-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.code-block {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    position: relative;
    margin-bottom: 20px;
}

.code-block code {
    color: var(--primary-color);
    text-shadow: none;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: var(--darker-color);
    border: 1px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.copy-btn:hover {
    background: var(--secondary-color);
    box-shadow: none;
}

.note {
    background-color: rgba(91, 192, 222, 0.2);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.note i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.quick-start-features h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.quick-start-features ul {
    list-style: none;
}

.quick-start-features li {
    padding: 10px 0;
    font-size: 1.05rem;
}

.quick-start-features i {
    color: var(--success-color);
    margin-right: 10px;
}

/* Footer */
.footer {
    background-color: var(--darker-color);
    color: var(--text-color);
    padding: 40px 0 20px;
    border-top: 2px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--primary-color);
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.3s;
}

.footer-section a:hover {
    opacity: 1;
    text-decoration: underline;
    text-shadow: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .quick-start-content {
        grid-template-columns: 1fr;
    }

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

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

    .hero-stats {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        flex-direction: column;
        text-align: center;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

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

.dashboard-card {
    animation: fadeIn 0.5s ease-out;
}

.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }
.dashboard-card:nth-child(3) { animation-delay: 0.3s; }
.dashboard-card:nth-child(4) { animation-delay: 0.4s; }
.dashboard-card:nth-child(5) { animation-delay: 0.5s; }
.dashboard-card:nth-child(6) { animation-delay: 0.6s; }

/* ── Refined code blocks (override loud accent-colored code from inline styles) ──
   Code blocks read as calm neutral text on a subtle panel; amber is reserved
   for headings, links, and short inline code. Loaded before the per-page inline
   <style>, so !important is required to win. */
.content pre {
    border: 1px solid var(--border-color) !important;
    background: rgba(0, 0, 0, 0.35) !important;
    box-shadow: none !important;
}
.content pre code {
    color: var(--text-color) !important;
}
.content pre,
.content pre code {
    font-family: var(--font-mono) !important;
}
