:root {
    --bg-dark: #18191e;
    /* Neural Dark Gray (Lighter than void black) */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #ffaa40;
    /* Lion Gold (Restored) */
    --accent-secondary: #9c40ff;
    /* Royal Purple (Restored) */

    --glass-bg: rgba(255, 255, 255, 0.08);
    /* Slightly more visible */
    --glass-border: rgba(255, 255, 255, 0.2);
    /* Sharper definition */
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Blobs */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.blob-one {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    animation: float 20s infinite alternate;
}

.blob-two {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 15, 0.5);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    /* rounded corners not needed for transparent icon */
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

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

.cta-small {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--text-primary) !important;
}

.cta-small:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 0 10%;
    gap: 4rem;
    padding-top: 80px;
    /* Nav height */
}

.hero-content {
    flex: 1;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.gradient-text {
    font-size: 3.5rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 0%, #a0a0b0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.sub-hero {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #ff8800);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 170, 64, 0.4);
    transition: transform 0.2s;
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat .number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
}

.stat .label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Code Window */
.code-window {
    width: 100%;
    max-width: 500px;
    background: rgba(30, 30, 35, 0.8);
    /* Neutral dark gray */
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    backdrop-filter: blur(20px);
}

.window-header {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-content .line {
    margin-bottom: 4px;
}

.keyword {
    color: #ff79c6;
}

.func {
    color: #8be9fd;
}

.comment {
    color: #6272a4;
}

.code {
    color: #f8f8f2;
}

.floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-secondary);
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(156, 64, 255, 0.4);
    font-weight: 600;
    font-size: 0.9rem;
    animation: float-badge 3s infinite ease-in-out;
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Features */
.features {
    padding: 5rem 10%;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.highlight {
    color: var(--accent-primary);
}

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

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s;
}

.glass-panel:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

p {
    color: var(--text-secondary);
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}



/* Documentation Styles */
.docs-container {
    display: flex;
    padding: 120px 5% 5rem;
    gap: 2rem;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

.docs-sidebar {
    width: 250px;
    flex-shrink: 0;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.docs-sidebar ul {
    list-style: none;
    padding: 0;
}

.docs-sidebar li {
    margin-bottom: 0.8rem;
}

.docs-sidebar a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.docs-sidebar a:hover {
    color: var(--accent-primary);
}

.docs-content {
    flex: 1;
    overflow: hidden;
    /* Prevents overflow from pre/code blocks */
}

.docs-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.docs-content h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    overflow-x: auto;
    margin: 1rem 0;
}

.code-block code {
    font-family: 'Fira Code', monospace;
    color: #e0e0e0;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.docs-table th,
.docs-table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.docs-table th {
    color: var(--accent-primary);
}

.docs-table code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: monospace;
}

/* How It Works */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.step-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -20px;
    right: -10px;
    line-height: 1;
}

.code-preview {
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: left;
    font-size: 0.85rem;
    font-family: 'Fira Code', monospace;
    color: #a0a0b0;
}

.code-preview code {
    display: block;
    margin-bottom: 2px;
}

.visual-preview {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 600;
}

/* Pricing */
.pricing {
    padding: 5rem 10%;
    margin-bottom: 5rem;
}

.pricing h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
    gap: 2rem;
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card.popular {
    background: rgba(40, 40, 45, 0.8);
    /* Neutral dark gray */
    border: 1px solid var(--accent-primary);
    box-shadow: 0 0 30px rgba(255, 170, 64, 0.1);
    /* Gold Glow */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--text-primary);
}

.price .period {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.features-list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-bottom: 2rem;
    flex: 1;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.badge-new {
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .glass-nav {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .links a {
        margin-left: 0;
        font-size: 0.9rem;
    }

    .cta-small {
        width: 100%;
        text-align: center;
        display: block;
        margin-top: 0.5rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 280px;
        /* Increased to account for taller mobile nav (Logo + Links + CTA + Gaps) */
        padding-bottom: 3rem;
    }

    .hero-stats {
        justify-content: center;
        margin-bottom: 2rem;
    }

    .code-window {
        margin-top: 0;
        width: 100%;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        padding: 0 10%;
    }

    .docs-container {
        flex-direction: column;
        padding-top: 280px;
        /* Matching Hero padding increase */
    }

    .docs-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 2rem;
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 1rem;
    }

    /* Fix Anchor Link Scrolling (Text Cutting) */
    section[id] {
        scroll-margin-top: 290px;
        /* Header height + buffer */
    }

    /** Responsive Tables: Stacked Card Layout */
    .table-responsive {
        width: 100%;
        margin-bottom: 1rem;
        overflow: visible;
        /* Disable scroll, we stack now */
    }

    .docs-table,
    .docs-table tbody,
    .docs-table tr,
    .docs-table td {
        display: block;
        width: 100%;
        min-width: 0;
        /* Reset min-width */
    }

    .docs-table thead {
        display: none;
        /* Hide headers on mobile */
    }

    .docs-table tr {
        margin-bottom: 1.5rem;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        padding: 1.2rem;
        background: rgba(255, 255, 255, 0.03);
    }

    .docs-table td {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        text-align: left;
        /* Align all text left */
        word-break: break-all;
        /* Force break for long config keys */
    }

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

    /* Style the first cell (Key/Name) distinctly */
    .docs-table td:first-child {
        font-weight: bold;
        color: var(--accent-primary);
        font-size: 1.1rem;
        padding-bottom: 0.8rem;
        word-break: break-all;
        /* Force break for the title */
    }
}

/* Screenshots Section */
.screenshots-section {
    padding: 6rem 5%;
    /* Reduced from 8rem */
    text-align: center;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.screenshot-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.screenshot-card img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--glass-border);
}

.screenshot-caption {
    padding: 1.5rem;
}

.screenshot-caption h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.screenshot-caption p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (min-width: 1024px) {
    .screenshot-card.featured {
        grid-column: 1 / -1;
    }
}

.screenshot-grid {
    /* Override grid to be single column if we just want stacking, 
       but keeping grid allows flexibility if user adds smaller items later. 
       For now, just ensuring featured spans full width. */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    /* Increase gap for better separation */
    margin-top: 4rem;
    max-width: 1000px;
    /* Constrain width for better look */
    margin-left: auto;
    margin-right: auto;
}

/* Use It Everywhere Layout */
.use-it-everywhere {
    padding: 2rem 5% 4rem;
    /* Reduced top padding */
    background: var(--bg-card);
}

.use-everywhere-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.everywhere-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.everywhere-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.everywhere-card.highlight-card {
    background: linear-gradient(145deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.everywhere-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.everywhere-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.everywhere-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.everywhere-card li {
    margin-bottom: 0.5rem;
}