:root {
    --bg-main: #000000;
    --text-main: #ffffff;
    --text-muted: #888888;
    --accent-1: #ffffff;
    --accent-2: #a1a1aa;
    --card-bg: #0a0a0a;
    --card-border: #222222;
}

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

body {
    font-family: 'Manrope', sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Background Glows */
.glow-bg, .glow-bg-2 {
    display: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--card-border);
}

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

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

.logo-img {
    height: 36px;
    display: block;
}

.brand-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-family: 'Outfit', sans-serif;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Buttons */
.btn {
    font-family: 'Outfit', sans-serif;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.btn-primary:hover {
    background: #e4e4e7;
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    background: #111111;
    border-color: #333333;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
    border-radius: 12px;
}

/* Typography Utilities */
.highlight {
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 180px 24px 120px;
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1.1;
}

.badge {
    font-family: 'Outfit', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--accent-2);
    border-radius: 999px;
    background: rgba(167, 139, 250, 0.1);
    color: var(--accent-2);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 28px;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-2);
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 540px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Code Window (Hero Visual) */
.hero-visual {
    flex: 0.9;
    perspective: 1200px;
    min-width: 0;
}

.code-window {
    background: #000000;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.code-window:hover {
    transform: rotateY(-2deg) rotateX(2deg) translateZ(20px);
}

.code-header {
    background: #0a0a0a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--card-border);
}

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

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

.dots span:nth-child(1) { background: #ff5f56; }
.dots span:nth-child(2) { background: #ffbd2e; }
.dots span:nth-child(3) { background: #27c93f; }

.code-title {
    margin: 0 auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    transform: translateX(-24px);
    letter-spacing: 0.05em;
}

.code-window pre {
    padding: 28px;
    margin: 0;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.code-window code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Features Section (Bento Box) */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 24px;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.15rem;
}

/* API Showcase (Replacing standard grid) */
.api-showcase {
    max-width: 1200px;
    margin: 120px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.api-block {
    display: flex;
    align-items: center;
    gap: 80px;
}

.api-block.reverse {
    flex-direction: row-reverse;
}

.api-meta {
    flex: 1;
}

.api-number {
    font-family: 'Fira Code', monospace;
    font-size: 3rem;
    color: #333333;
    font-weight: bold;
    display: block;
    margin-bottom: 16px;
    line-height: 1;
}

.api-meta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.api-meta p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.api-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.api-tags .tag {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    padding: 8px 16px;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 6px;
    color: #a1a1aa;
}

.api-code {
    flex: 1;
}

/* API Directory Tree */
.api-directory {
    max-width: 900px;
    margin: 120px auto;
    padding: 0 24px;
}

.directory-window {
    background: #000000;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    overflow: hidden;
}

.tree-content {
    padding: 32px;
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    line-height: 2;
    color: var(--text-main);
    overflow-x: auto;
    white-space: pre;
}

.tree-endpoint {
    color: #ffffff;
    font-weight: 500;
}

.tree-desc {
    color: var(--text-muted);
}

/* SVG Showcase Section */
.showcase {
    max-width: 1200px;
    margin: 100px auto;
    padding: 80px 24px;
    border-radius: 16px;
    background: #0a0a0a;
    border: 1px solid var(--card-border);
}

.showcase-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.showcase-text {
    flex: 1;
}

.showcase-text h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.showcase-text p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 32px;
}

.showcase-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.showcase-tags span {
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 165, 0, 0.2);
}

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

.svg-mockup {
    background: #000000;
    border: 1px solid var(--card-border);
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 100/80;
}

.diamond-grid {
    position: relative;
    width: 100%;
    height: 100%;
}

.diamond-grid svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
}

.mock-planet {
    position: absolute;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.mock-planet.center {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
}

/* Ecosystem / SDKs Section */
.ecosystem {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 24px;
    text-align: center;
}

.ecosystem-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 40px;
}

.eco-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s;
}

.eco-logo:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    transform: translateY(-3px);
}

.eco-install {
    margin-top: 40px;
}

.eco-install code {
    font-family: 'Fira Code', monospace;
    background: #000000;
    border: 1px solid var(--card-border);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #ffffff;
}

/* CTA Banner */
.cta-banner {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 80px 24px;
    background: #0a0a0a;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.cta-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.cta-banner p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.cta-banner p strong {
    color: #fff;
    font-weight: 600;
}

/* Footer */
.footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 24px 32px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo {
    height: 32px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
    border-top: 1px solid var(--card-border);
    padding-top: 32px;
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-subtitle {
        margin: 0 auto 40px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        width: 100%;
        max-width: 600px;
        margin-top: 40px;
    }
    
    .nav-links {
        display: none;
    }
    
    .api-showcase {
        gap: 80px;
    }
    
    .api-block, .api-block.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: left;
    }
    
    .api-directory {
        margin: 80px auto;
    }

    .tree-content {
        font-size: 0.85rem;
        padding: 20px;
    }

    .showcase-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .showcase-tags {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .nav-cta .btn-outline {
        display: none;
    }
    
    .nav-cta .btn-primary {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .logo-img {
        height: 28px;
    }

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

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .code-window pre {
        padding: 16px;
    }
    
    .api-block, .api-block.reverse {
        gap: 24px;
    }
    
    .showcase, .ecosystem, .cta-banner {
        padding: 40px 20px;
        margin-top: 60px;
    }

    .eco-install code {
        white-space: normal;
        word-break: break-all;
        font-size: 0.9rem;
        padding: 12px 16px;
        display: block;
    }

    .cta-banner::before {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .footer {
        padding: 40px 20px 24px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}