/* Reset & Variables */
:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --primary-light: #3385FF;
    --secondary: #00E5A0;
    --accent: #FF3D71;
    --dark: #0A0E27;
    --dark-surface: #141829;
    --dark-card: #1A1F3A;
    --gray: #8B92B0;
    --gray-light: #E5E7EB;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(139, 146, 176, 0.1);
    z-index: 1000;
    padding: 16px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.logo-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-link-github {
    color: var(--white) !important;
}

.btn-primary-small {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 102, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 160px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -300px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 229, 160, 0.1);
    border: 1px solid rgba(0, 229, 160, 0.3);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    font-size: 72px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gray);
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.7;
    animation: fadeInUp 1s ease;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 80px;
    animation: fadeInUp 1.2s ease;
}

.btn-primary, .btn-secondary, .btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(0, 102, 255, 0.4);
}

.btn-secondary {
    background: rgba(139, 146, 176, 0.1);
    color: var(--white);
    border: 2px solid rgba(139, 146, 176, 0.2);
}

.btn-secondary:hover {
    background: rgba(139, 146, 176, 0.2);
    border-color: rgba(139, 146, 176, 0.3);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    animation: fadeInUp 1.4s ease;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.hero-visual {
    max-width: 900px;
    margin: 80px auto 0;
    animation: fadeInUp 1.6s ease;
}

.code-window {
    background: var(--dark-surface);
    border: 2px solid rgba(139, 146, 176, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.code-window-header {
    background: rgba(139, 146, 176, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(139, 146, 176, 0.1);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray);
    opacity: 0.3;
}

.code-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--gray);
}

.code-window-body {
    padding: 32px;
    overflow-x: auto;
}

.code-window-body pre {
    margin: 0;
}

.code-window-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--white);
}

.code-comment {
    color: var(--gray);
}

.code-command {
    color: var(--secondary);
}

.code-flag {
    color: var(--primary);
}

.code-string {
    color: #FFB86C;
}

.code-success {
    color: var(--secondary);
}

.code-output {
    color: var(--primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.section-subtitle {
    font-size: 18px;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    background: var(--dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--dark-surface);
    border: 2px solid rgba(139, 146, 176, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    color: var(--white);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--white);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Quick Start Section */
.quickstart {
    background: var(--dark);
}

.quickstart-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 12px 32px;
    background: rgba(139, 146, 176, 0.1);
    border: 2px solid rgba(139, 146, 176, 0.1);
    border-radius: 12px;
    color: var(--gray);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Space Grotesk', sans-serif;
}

.tab-btn:hover {
    border-color: rgba(139, 146, 176, 0.3);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: transparent;
    color: var(--white);
}

.quickstart-content {
    max-width: 900px;
    margin: 0 auto;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.code-block {
    background: var(--dark-surface);
    border: 2px solid rgba(139, 146, 176, 0.1);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

.code-block-header {
    background: rgba(139, 146, 176, 0.05);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(139, 146, 176, 0.1);
}

.code-block-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--gray);
    font-weight: 600;
}

.copy-btn {
    background: rgba(139, 146, 176, 0.1);
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: rgba(0, 102, 255, 0.2);
    color: var(--primary);
}

.copy-btn.copied {
    background: rgba(0, 229, 160, 0.2);
    color: var(--secondary);
}

.code-block pre {
    padding: 24px;
    overflow-x: auto;
    margin: 0;
}

.code-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--white);
}

/* Demo Section */
.demo {
    background: var(--dark);
}

.demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.demo-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.demo-step {
    background: var(--dark-surface);
    border: 2px solid rgba(139, 146, 176, 0.1);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    gap: 32px;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.demo-step.active {
    opacity: 1;
    border-color: var(--primary);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray);
    margin-bottom: 24px;
}

.btn-demo {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.btn-demo:disabled {
    background: rgba(139, 146, 176, 0.1);
    color: var(--gray);
    cursor: not-allowed;
}

.demo-output {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 146, 176, 0.1);
    border-radius: 12px;
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--secondary);
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.demo-output.visible {
    display: block;
}

.demo-success {
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.1) 0%, rgba(0, 102, 255, 0.1) 100%);
    border: 2px solid rgba(0, 229, 160, 0.3);
    border-radius: 20px;
    padding: 60px;
    text-align: center;
    margin-top: 40px;
}

.demo-success svg {
    color: var(--secondary);
    margin-bottom: 24px;
}

.demo-success h3 {
    font-size: 32px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-success p {
    color: var(--gray);
    font-size: 18px;
}

/* Updates Section */
.updates {
    background: var(--dark);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.update-card {
    background: var(--dark-surface);
    border: 2px solid rgba(139, 146, 176, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s ease;
}

.update-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
}

.update-card.highlight {
    border-color: var(--accent);
}

.update-icon {
    font-size: 32px;
    margin-bottom: 24px;
}

.update-icon.critical {
    animation: pulse 2s ease-in-out infinite;
}

.update-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.update-card ul {
    list-style: none;
}

.update-card li {
    color: var(--gray);
    padding-left: 24px;
    margin-bottom: 12px;
    position: relative;
}

.update-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 229, 160, 0.1) 100%);
    border-top: 1px solid rgba(139, 146, 176, 0.1);
    border-bottom: 1px solid rgba(139, 146, 176, 0.1);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 48px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 20px;
    color: var(--gray);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--dark-surface);
    padding: 48px 0 24px;
    border-top: 1px solid rgba(139, 146, 176, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px;
    font-weight: 700;
}

.footer-brand p {
    color: var(--gray);
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-column a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 146, 176, 0.1);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 14px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(139, 146, 176, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 56px;
    }
    
    .section-title {
        font-size: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 32px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-step {
        flex-direction: column;
    }
    
    .updates-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Interactive Playground Section */
.playground {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-surface) 100%);
}

.playground-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 40px;
    margin: 60px 0;
}

.playground-card {
    background: var(--dark-card);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid rgba(139, 146, 176, 0.1);
    transition: all 0.3s ease;
}

.playground-card:hover {
    border-color: rgba(0, 102, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.1);
    transform: translateY(-4px);
}

.playground-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.playground-header h3 {
    font-size: 24px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playground-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.playground-link:hover {
    color: var(--primary-light);
}

.playground-description {
    margin-bottom: 24px;
}

.playground-description p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 16px;
}

.playground-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.code-preview {
    background: rgba(10, 14, 39, 0.6);
    border: 1px solid rgba(139, 146, 176, 0.1);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
}

.code-preview pre {
    margin: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
}

.code-preview code {
    color: var(--gray-light);
}

/* Documentation Links */
.docs-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 60px;
}

.doc-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--dark-card);
    border: 1px solid rgba(139, 146, 176, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    transition: all 0.3s ease;
}

.doc-link:hover {
    border-color: rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.05);
    transform: translateY(-2px);
}

.doc-link.primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: var(--white);
}

.doc-link.primary:hover {
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
}

.doc-icon {
    font-size: 24px;
}

/* Responsive Playground */
@media (max-width: 1024px) {
    .playground-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .playground {
        padding: 80px 0;
    }

    .playground-card {
        padding: 24px;
    }

    .playground-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .code-preview {
        padding: 16px;
    }

    .code-preview pre {
        font-size: 12px;
    }

    .docs-links {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   v0.7.0 Feature Cards (NEW badges)
   ============================================ */

.feature-card-new {
    position: relative;
    border: 1px solid rgba(0, 229, 160, 0.25);
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.05), rgba(0, 102, 255, 0.05));
}

.feature-card-new:hover {
    border-color: rgba(0, 229, 160, 0.5);
    box-shadow: 0 8px 32px rgba(0, 229, 160, 0.15);
}

.feature-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    margin-bottom: 8px;
}

.feature-icon-soul {
    background: linear-gradient(135deg, rgba(0, 229, 160, 0.15), rgba(0, 102, 255, 0.15));
}

.feature-icon-soul svg {
    stroke: var(--secondary);
}

/* ============================================
   Sandbox Section
   ============================================ */

.sandbox {
    padding: 100px 0;
    background: var(--dark);
}

.sandbox-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.sandbox-tab-btn {
    padding: 10px 24px;
    border: 1px solid rgba(139, 146, 176, 0.2);
    border-radius: 8px;
    background: transparent;
    color: var(--gray);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sandbox-tab-btn:hover {
    border-color: var(--primary-light);
    color: var(--white);
}

.sandbox-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: transparent;
    color: var(--white);
    font-weight: 600;
}

.sandbox-panels {
    max-width: 800px;
    margin: 0 auto;
}

.sandbox-panel {
    display: none;
}

.sandbox-panel.active {
    display: block;
}

/* ============================================
   API Endpoints Reference
   ============================================ */

.api-endpoints-ref {
    margin-top: 48px;
    padding: 32px;
    border-radius: 16px;
    background: var(--dark-card);
    border: 1px solid rgba(139, 146, 176, 0.1);
}

.api-endpoints-ref h3 {
    font-size: 20px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--white);
}

.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.endpoint-group h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary);
    margin-bottom: 12px;
}

.endpoint-group code {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--gray);
    padding: 4px 0;
    border-bottom: 1px solid rgba(139, 146, 176, 0.08);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.endpoint-group code:last-child {
    border-bottom: none;
}

/* ============================================
   Blog Teaser
   ============================================ */

.updates-blog-teaser {
    margin-top: 32px;
    text-align: center;
}

.blog-teaser-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--dark-card);
    border: 1px solid rgba(139, 146, 176, 0.15);
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.blog-teaser-link:hover {
    border-color: var(--primary-light);
    background: var(--dark-surface);
    transform: translateY(-2px);
}

.blog-teaser-tag {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--primary);
    color: var(--white);
}

.blog-teaser-text {
    color: var(--gray-light);
}

.blog-teaser-link svg {
    stroke: var(--secondary);
    transition: transform 0.3s ease;
}

.blog-teaser-link:hover svg {
    transform: translateX(4px);
}

/* ============================================
   Responsive: Sandbox & Endpoints
   ============================================ */

@media (max-width: 768px) {
    .sandbox {
        padding: 80px 0;
    }

    .sandbox-tabs {
        flex-wrap: wrap;
    }

    .sandbox-tab-btn {
        flex: 1;
        min-width: 100px;
        text-align: center;
    }

    .endpoints-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .api-endpoints-ref {
        padding: 20px;
    }

    .blog-teaser-link {
        flex-direction: column;
        text-align: center;
    }
}