:root {
    --bg-base: #030811;
    --bg-grid: #0a1526;
    --accent-cyan: #00e5ff;
    --accent-blue: #0077ff;
    --accent-green: #39ff14;
    --silver-light: #e2e8f0;
    --silver-mid: #94a3b8;
    --silver-dark: #475569;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-highlight: rgba(255, 255, 255, 0.3);
    --gloss-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 49%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.4) 100%);
    --slide-offset: 0px;
    --container-max-width: 1400px;
}

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

body {
    background-color: var(--bg-base);
    background-image:
        linear-gradient(0deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 50% 0%, #0f2540 0%, transparent 60%);
    background-size: 24px 24px, 24px 24px, 100% 100%;
    background-attachment: fixed;
    color: var(--silver-light);
    font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
}

/* Y2K Scanline Overlay - Fixed to prevent scrollbar issues */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 9999;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Glassmorphism & Metallic Y2K Panels */
.panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-left: 1px solid var(--glass-highlight);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 15px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
}

/* Glossy Buttons */
.btn {
    display: inline-block;
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 49%, #020617 50%, #0f172a 100%);
    border: 1px solid var(--silver-dark);
    border-top: 1px solid var(--silver-mid);
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    padding: 10px 24px;
    border-radius: 20px;
    cursor: pointer;
    text-decoration: none;
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 4px 10px rgba(0, 0, 0, 0.6);
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Space Grotesk', sans-serif;
    text-align: center;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 20px 20px 0 0;
    pointer-events: none;
}

.btn:hover {
    background: linear-gradient(180deg, #2dd4bf 0%, #0d9488 49%, #0f766e 50%, #115e59 100%);
    color: #fff;
    border-color: var(--accent-cyan);
    text-shadow: 0 0 10px #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 20px rgba(0, 229, 255, 0.4);
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.glow-text {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-blue);
}

/* Layout Sections */
header {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.05), transparent);
}

/* Hero Section */
#hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, var(--silver-mid) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p.tagline {
    font-size: 20px;
    color: var(--accent-cyan);
    margin-bottom: 15px;
    font-weight: bold;
}

.hero-content p.desc {
    font-size: 16px;
    color: var(--silver-mid);
    margin-bottom: 30px;
    max-width: 90%;
}

/* Slider Control */
.slider-control-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 2rem;
    max-width: 400px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 
        inset 0 1px 10px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.3);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.slider-control-container .code-line {
    color: #a6accd;
    line-height: 1.4;
    text-align: left;
}

.slider-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--silver-mid);
    font-family: 'Syncopate', sans-serif;
}

.moonwalk-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
    position: relative;
}

.moonwalk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 12px;
    border-radius: 6px;
    background: var(--silver-light);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

.moonwalk-slider::-webkit-slider-thumb:hover {
    background: #ffffff;
    transform: scaleY(1.2);
}

/* Terminal Window */
.terminal-wrapper {
    position: relative;
    perspective: 1000px;
    min-width: 0;
}

.terminal {
    background: #000;
    border: 2px solid var(--silver-dark);
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 229, 255, 0.1);
    overflow: hidden;
    transform: translateX(var(--slide-offset)) rotateY(-5deg);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
    max-width: 100%;
}

.terminal-header {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #000;
}

.term-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: inset -2px -2px 4px rgba(0, 0, 0, 0.4);
}

.term-btn.r {
    background: #ff5f56;
}

.term-btn.y {
    background: #ffbd2e;
}

.term-btn.g {
    background: #27c93f;
}

.term-title {
    margin-left: 15px;
    color: var(--silver-mid);
    font-size: 12px;
    font-family: monospace;
}

.terminal-body {
    padding: 20px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #a6accd;
    line-height: 1.5;
    overflow-x: auto;
}

.keyword {
    color: #89ddff;
}

.string {
    color: #c3e88d;
}

.function {
    color: #82aaff;
}

.comment {
    color: #676e95;
    font-style: italic;
}

/* Marquee Section */
.marquee-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
    position: relative;
    z-index: 5;
    margin-bottom: 40px;
}

.marquee-container {
    display: flex;
    width: 200%;
    animation: moonwalk-glide 25s linear infinite;
}

.marquee-content {
    display: flex;
    justify-content: space-around;
    width: 50%;
    font-family: 'Syncopate', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.15);
}

.marquee-contentspan {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
    cursor: default;
}

.marquee-content span:hover {
    color: var(--silver-light);
}

@keyframes moonwalk-glide {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* High Density Grid Sections */
.section-title {
    text-align: center;
    font-size: 32px;
    margin: 60px 0 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    margin: 10px auto 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 229, 255, 0.15), inset 0 1px 15px rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0, 229, 255, 0.3);
}

.feature-card h3 {
    font-size: 18px;
    color: var(--silver-light);
}

.feature-card p {
    color: var(--silver-mid);
    font-size: 13px;
}

/* Execution Model & Quickstart */
.split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 10px;
    border: 1px solid var(--silver-dark);
    text-align: left;
}

.data-table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
}

.interactive-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: -1px;
    position: relative;
    z-index: 10;
}

.tab {
    padding: 8px 16px;
    background: var(--bg-grid);
    border: 1px solid var(--silver-dark);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--silver-mid);
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

.tab.active {
    background: #000;
    color: var(--accent-cyan);
    border-top: 2px solid var(--accent-cyan);
}

/* Downloads Page Styles */
.download-list {
    list-style: none;
    margin-top: 30px;
}

.download-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
}

.download-item:last-child {
    border-bottom: none;
}

.download-item a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

.download-item a:hover {
    color: #fff;
    text-shadow: 0 0 8px var(--accent-cyan);
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    color: var(--silver-dark);
    font-size: 12px;
}

/* Mobile & Tablet Breakpoints */

@media (max-width: 900px) {
    #hero,
    .split-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-content {
        text-align: center;
    }

    .hero-content p.desc {
        margin: 0 auto 30px;
    }

    .slider-control-container {
        margin: 2rem auto;
    }

    .hero-btns {
        justify-content: center;
    }

    .terminal {
        height: auto !important; /* Fixed terminal collapse issue */
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    header {
        flex-direction: column;
        gap: 15px;
        padding: 15px 0;
        align-items: center;
    }

    header nav {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    header nav .btn {
        padding: 10px 15px !important;
        font-size: 12px !important;
        flex: 1 1 auto;
        text-align: center;
    }

    .logo img {
        height: 60px !important;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .hero-content p.desc {
        font-size: 14px;
        max-width: 100%;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .hero-btns .btn {
        text-align: center;
        width: 100%;
    }

    .terminal-wrapper {
        perspective: none;
        margin-top: 30px;
    }

    .terminal {
        transform: none !important;
        width: 100%;
    }

    .section-title {
        font-size: 24px;
        margin: 40px 0 20px;
    }

    .slider-control-container {
        margin: 1.5rem auto;
        max-width: 340px;
        width: 100%;
        padding: 16px 20px;
    }

    .marquee-content {
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .marquee-container {
        animation: moonwalk-glide 40s linear infinite;
    }

    .grid-3 {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .terminal-body {
        padding: 15px;
        font-size: 11px;
    }

    .split-section {
        gap: 20px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .download-item {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        text-align: center;
        padding: 15px 10px;
        font-size: 14px;
    }

    .panel {
        padding: 20px;
        margin-top: 20px;
    }

    h1 {
        font-size: 24px !important;
    }

    footer {
        padding: 30px 0;
    }
}
