:root {
    --bg-color: #0b0f19;
    --card-bg: rgba(18, 26, 43, 0.75);
    --border-color: rgba(0, 255, 204, 0.2);
    --accent-cyan: #00ffcc;
    --accent-amber: #ffb703;
    --text-main: #e0e6ed;
    --text-dim: #8b9bb4;
    --glow-cyan: 0 0 15px rgba(0, 255, 204, 0.3);
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(0, 255, 204, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 183, 3, 0.04) 0%, transparent 40%);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > header {
    border-bottom: 1px solid var(--border-color);
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
}

.brand {
    font-family: var(--font-code);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: var(--glow-cyan);
}

.brand-logo {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 8px;
    filter: drop-shadow(0 0 6px rgba(0, 255, 204, 0.4));
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.8rem;
    align-items: center;
}

nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

nav a:hover {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.btn-cta {
    background: linear-gradient(135deg, rgba(0,255,204,0.15), rgba(0,255,204,0.05));
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-amber {
    border-color: var(--accent-amber);
    color: var(--accent-amber);
}
.btn-amber:hover, .btn-amber.active {
    background: var(--accent-amber);
    color: var(--bg-color);
    box-shadow: 0 0 15px rgba(255, 183, 3, 0.3);
}

.btn-cta:hover, .btn-cta.active {
    background: var(--accent-cyan);
    color: var(--bg-color);
    box-shadow: var(--glow-cyan);
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
}

main {
    flex: 1;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
    font-family: var(--font-code);
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
}

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

th {
    font-family: var(--font-code);
    color: var(--accent-amber);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

tr:hover td {
    background: rgba(0, 255, 204, 0.03);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-code);
    font-weight: 600;
    white-space: nowrap;
}

.badge-human {
    background: rgba(0, 255, 204, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.badge-ai {
    background: rgba(255, 183, 3, 0.15);
    color: var(--accent-amber);
    border: 1px solid rgba(255, 183, 3, 0.3);
}

/* Code highlight styling */
pre {
    background: #060911 !important;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
    font-family: var(--font-code);
    font-size: 0.9rem;
    margin: 1rem 0;
}

:not(pre) > code {
    font-family: var(--font-code);
    color: var(--accent-cyan);
}

pre code {
    font-family: var(--font-code);
    color: var(--text-main);
}

/* Pygments Syntax Highlighting Theme */
.codehilite { background: #060911; }
.codehilite .hll { background-color: #222738; }
.codehilite .c, .codehilite .ch, .codehilite .cd, .codehilite .cm, .codehilite .c1, .codehilite .cs { color: #6272a4; font-style: italic; } /* Comment */
.codehilite .k, .codehilite .kc, .codehilite .kd, .codehilite .kn, .codehilite .kp, .codehilite .kr, .codehilite .kt { color: #ff79c6; font-weight: 600; } /* Keyword */
.codehilite .s, .codehilite .sa, .codehilite .sb, .codehilite .sc, .codehilite .dl, .codehilite .sd, .codehilite .s2, .codehilite .se, .codehilite .sh, .codehilite .si, .codehilite .sx, .codehilite .sr, .codehilite .s1, .codehilite .ss { color: #f1fa8c; } /* String */
.codehilite .m, .codehilite .mb, .codehilite .mf, .codehilite .mh, .codehilite .mi, .codehilite .il, .codehilite .mo { color: #bd93f9; } /* Number */
.codehilite .na, .codehilite .nb, .codehilite .nc, .codehilite .no, .codehilite .nd, .codehilite .ni, .codehilite .ne, .codehilite .nf, .codehilite .nl, .codehilite .nn, .codehilite .nt, .codehilite .nv, .codehilite .vc, .codehilite .vg, .codehilite .vi { color: #50fa7b; } /* Name / Function / Class */
.codehilite .o, .codehilite .ow { color: #ff79c6; } /* Operator */
.codehilite .p { color: var(--text-main); } /* Punctuation */

input[type="email"], input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(6, 9, 17, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-code);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    outline: none;
}

input[type="email"]:focus, input[type="text"]:focus {
    border-color: var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

/* UTILITY CLASSES */

/* Typography */
.font-code { font-family: var(--font-code); }
.text-cyan { color: var(--accent-cyan); }
.text-amber { color: var(--accent-amber); }
.text-dim { color: var(--text-dim); }
.text-main { color: var(--text-main); }
.glow-cyan { text-shadow: var(--glow-cyan); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-white { color: #fff; }

/* Font Sizes */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.85rem; }
.text-base { font-size: 0.95rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.3rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 2rem; }
.text-hero { font-size: 2.8rem; }

/* Font Weights & Spacing */
.font-bold { font-weight: 600; }
.font-bold-800 { font-weight: 800; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.02em; }
.tracking-wider { letter-spacing: 2px; }
.tracking-widest { letter-spacing: 0.12em; }

/* Flexbox */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }

/* Margins */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.8rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }

/* Paddings */
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.pb-6 { padding-bottom: 1.5rem; }

/* Utility Layouts & Misc */
.block { display: block; }
.inline-block { display: inline-block; }
.max-w-md { max-width: 650px; }
.max-w-lg { max-width: 700px; }
.min-h-80vh { min-height: 80vh; }
.align-middle { vertical-align: middle; }
.w-full { width: 100%; }
.no-underline { text-decoration: none; }
.cursor-pointer { cursor: pointer; }
.leading-tight { line-height: 1.2; }
.leading-loose { line-height: 1.8; }
.overflow-hidden { overflow: hidden; }
.whitespace-nowrap { white-space: nowrap; }
.opacity-0 { opacity: 0; }

/* Theme Helpers */
.bg-dark { background: #060911; }
.bg-darker { background: #05070a; }
.bg-panel { background: #0b0e14; }
.bg-header { background: rgba(255,255,255,0.04); }
.bg-card-light { background: rgba(15, 18, 26, 0.6); }
.bg-white-5 { background: rgba(255,255,255,0.05); }
.border-solid { border: 1px solid var(--border-color); }
.border-b { border-bottom: 1px solid var(--border-color); }
.border-light { border: 1px solid rgba(255, 255, 255, 0.1); }
.border-b-light { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.border-none { border: none !important; }
.bg-transparent { background: transparent !important; }
.rounded { border-radius: 4px; }
.rounded-lg { border-radius: 8px; }
.rounded-xl { border-radius: 12px; }
.shadow-lg { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }
.text-muted { color: #a3b8cc; }

/* Components */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(124, 245, 196, 0.1);
    border: 1px solid rgba(124, 245, 196, 0.3);
    border-radius: 20px;
    color: var(--accent-cyan);
    font-family: var(--font-code);
    font-size: 0.85rem;
}
.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: var(--glow-cyan);
}
.faq-item {
    background: rgba(6, 9, 17, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.2rem;
}
.btn-solid-cyan {
    background: var(--accent-cyan);
    color: #080a0f;
    font-weight: 700;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}
.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* Specific Component / Form Styling */
.alert-success {
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
}
.btn-danger {
    border-color: #ff4757;
    color: #ff4757;
}
.btn-danger:hover, .btn-danger.active {
    background: #ff4757;
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.3);
}
.btn-xs {
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
}
.logo-glow {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 16px rgba(0, 255, 204, 0.5));
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Markdown Blog Body Styles */
.blog-body a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}
.blog-body a:hover {
    color: #50fa7b;
    text-decoration: underline;
    text-shadow: var(--glow-cyan);
}
.blog-body hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}
.blog-body ul, 
.blog-body ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}
.blog-body li {
    margin-bottom: 0.5rem;
}
.blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}
.blog-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
}

/* Table Responsiveness */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(12px);
        padding: 1.5rem 0;
        border-bottom: 1px solid var(--border-color);
        gap: 1.2rem;
        align-items: stretch;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 0.5rem 0;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }

    .text-hero {
        font-size: 2.2rem;
    }

    .card.py-16.px-8 {
        padding: 2.5rem 1rem;
    }
}
