@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg: #020810;
    --bg-alt: #060e1a;
    --surface: rgba(8, 18, 35, 0.6);
    --surface-hover: rgba(12, 28, 55, 0.7);
    --border: rgba(0, 180, 255, 0.08);
    --border-hi: rgba(0, 180, 255, 0.2);
    --primary: #00c8ff;
    --primary-dim: rgba(0, 200, 255, 0.15);
    --primary-glow: rgba(0, 200, 255, 0.5);
    --secondary: #0050dd;
    --accent: #ff2d6a;
    --text: #c8daf0;
    --text-bright: #eaf2ff;
    --text-dim: #5a7a9a;
    --font: 'Inter', -apple-system, sans-serif;
    --font-head: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --radius: 8px;
    --radius-lg: 14px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ═══ SCROLLBAR ═══ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00e0ff;
}

/* ═══ TYPOGRAPHY ═══ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--text-bright);
}

/* ═══ NAVBAR ═══ */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.35s ease;
    background: transparent;
}

nav.scrolled {
    background: rgba(2, 8, 16, 0.85);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    padding: 12px 40px;
}

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

.logo img {
    height: 36px;
    width: auto;
    filter: drop-shadow(0 0 6px var(--primary-glow));
}

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

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary) !important;
    color: #000 !important;
    padding: 7px 18px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    box-shadow: 0 0 18px var(--primary-glow);
    background: #fff !important;
}

.btn-primary::after {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.4rem;
    color: var(--primary);
    cursor: pointer;
}

/* ═══ BUTTONS ═══ */
.btn-glow {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    box-shadow: 0 0 20px var(--primary-dim);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 4px 30px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    border: 1px solid rgba(0, 200, 255, 0.3);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
}

/* ═══ HERO ═══ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
    filter: brightness(0.85) saturate(0.7);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 8, 16, 0.3) 0%, rgba(2, 8, 16, 0.7) 70%, var(--bg) 100%);
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 2.6rem;
    color: #fff;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    white-space: nowrap;
}

.hero p {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 36px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

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

/* ═══ GLITCH ═══ */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent);
    animation: g1 4s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--primary);
    animation: g2 4s infinite linear alternate-reverse;
}

@keyframes g1 {
    0% {
        clip-path: inset(80% 0 0 0)
    }

    5% {
        clip-path: inset(10% 0 85% 0)
    }

    10% {
        clip-path: inset(50% 0 30% 0)
    }

    15% {
        clip-path: inset(20% 0 60% 0)
    }

    20% {
        clip-path: inset(90% 0 0 0)
    }

    25% {
        clip-path: inset(0 0 95% 0)
    }

    30% {
        clip-path: inset(40% 0 50% 0)
    }

    35% {
        clip-path: inset(70% 0 15% 0)
    }

    40% {
        clip-path: inset(5% 0 90% 0)
    }

    45% {
        clip-path: inset(60% 0 25% 0)
    }

    50% {
        clip-path: inset(30% 0 55% 0)
    }

    55% {
        clip-path: inset(85% 0 5% 0)
    }

    60% {
        clip-path: inset(15% 0 75% 0)
    }

    65% {
        clip-path: inset(45% 0 40% 0)
    }

    70% {
        clip-path: inset(75% 0 10% 0)
    }

    75% {
        clip-path: inset(0 0 80% 0)
    }

    80% {
        clip-path: inset(55% 0 35% 0)
    }

    85% {
        clip-path: inset(25% 0 65% 0)
    }

    90% {
        clip-path: inset(95% 0 0 0)
    }

    95% {
        clip-path: inset(35% 0 45% 0)
    }

    100% {
        clip-path: inset(65% 0 20% 0)
    }
}

@keyframes g2 {
    0% {
        clip-path: inset(15% 0 70% 0)
    }

    5% {
        clip-path: inset(55% 0 30% 0)
    }

    10% {
        clip-path: inset(85% 0 5% 0)
    }

    15% {
        clip-path: inset(5% 0 90% 0)
    }

    20% {
        clip-path: inset(45% 0 40% 0)
    }

    25% {
        clip-path: inset(75% 0 10% 0)
    }

    30% {
        clip-path: inset(25% 0 60% 0)
    }

    35% {
        clip-path: inset(65% 0 20% 0)
    }

    40% {
        clip-path: inset(35% 0 50% 0)
    }

    45% {
        clip-path: inset(95% 0 0 0)
    }

    50% {
        clip-path: inset(10% 0 80% 0)
    }

    55% {
        clip-path: inset(50% 0 35% 0)
    }

    60% {
        clip-path: inset(80% 0 5% 0)
    }

    65% {
        clip-path: inset(20% 0 65% 0)
    }

    70% {
        clip-path: inset(60% 0 25% 0)
    }

    75% {
        clip-path: inset(40% 0 45% 0)
    }

    80% {
        clip-path: inset(0 0 85% 0)
    }

    85% {
        clip-path: inset(70% 0 15% 0)
    }

    90% {
        clip-path: inset(30% 0 55% 0)
    }

    95% {
        clip-path: inset(90% 0 0 0)
    }

    100% {
        clip-path: inset(50% 0 30% 0)
    }
}

/* ═══ SECTIONS ═══ */
.section {
    padding: 90px 20px;
}

.dark-section {
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.section-title {
    font-size: 1.8rem;
    margin-bottom: 14px;
    color: var(--text-bright);
    text-align: center;
    position: relative;
    letter-spacing: 1px;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--primary);
    margin: 10px auto 0;
    box-shadow: 0 0 8px var(--primary-glow);
}

.section-subtitle {
    text-align: center;
    color: var(--text-dim);
    margin-bottom: 40px;
    font-size: 0.9rem;
}

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

/* ═══ GLASS PANEL ═══ */
.glass-panel {
    background: var(--surface);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.glass-panel:hover {
    border-color: var(--border-hi);
    background: var(--surface-hover);
    box-shadow: 0 8px 30px rgba(0, 200, 255, 0.05);
}

/* ═══ ABOUT ═══ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.about-text p {
    margin-bottom: 14px;
    font-size: 1rem;
    color: var(--text);
}

.about-image {
    position: relative;
    padding: 8px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
    position: relative;
    z-index: 2;
}

.img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
    filter: blur(50px);
    opacity: 0.4;
}

.screenshots-placeholder {
    margin-top: 50px;
}

.screenshots-placeholder h3 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--primary);
    font-size: 1rem;
    letter-spacing: 1px;
}

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

.placeholder-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.placeholder-box:hover {
    border-color: var(--primary);
}

.placeholder-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ═══ ECOSYSTEM ═══ */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.eco-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.eco-icon {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 14px;
}

.eco-card h3 {
    margin-bottom: 8px;
    color: var(--text-bright);
    font-size: 1.1rem;
}

.eco-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ═══ TIMELINE ═══ */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 8px var(--primary-glow);
}

.timeline-content {
    padding: 20px;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline-content p {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style-position: inside;
    color: var(--text-dim);
    font-size: 0.95rem;
}

.timeline-content ul li {
    margin-bottom: 3px;
}

/* ═══ CTA ═══ */
.cta-section {
    padding: 100px 20px;
    background: radial-gradient(ellipse at center, rgba(0, 80, 221, 0.12) 0%, var(--bg) 70%);
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 14px;
}

.cta-section p {
    font-size: 0.95rem;
    margin-bottom: 30px;
    color: var(--text-dim);
}

/* ═══ FOOTER ═══ */
footer {
    padding: 30px 20px;
    border-top: 1px solid var(--border);
    background: #010509;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo img {
    height: 24px;
    opacity: 0.6;
}

footer p {
    color: var(--text-dim);
    font-size: 0.75rem;
}

/* ═══ LIGHTBOX ═══ */
.clickable-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.clickable-img:hover {
    transform: scale(1.02);
}

#lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(2, 8, 16, 0.96);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    max-width: 90%;
    max-height: 85%;
    border-radius: var(--radius);
    box-shadow: 0 0 40px var(--primary-dim);
    border: 1px solid var(--border);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* ═══ DOCS LAYOUT ═══ */
.docs-layout {
    display: flex;
    gap: 30px;
    margin-top: 80px;
    min-height: calc(100vh - 160px);
}

.docs-sidebar {
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 100px);
    overflow-y: auto;
    padding-right: 16px;
    border-right: 1px solid var(--border);
}

.docs-sidebar::-webkit-scrollbar {
    width: 4px;
}

.docs-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-hi);
    border-radius: 2px;
}

.docs-sidebar h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.docs-sidebar ul {
    list-style: none;
    margin-bottom: 20px;
}

.docs-sidebar ul li {
    margin-bottom: 4px;
}

.docs-sidebar ul li a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    display: block;
    padding: 3px 0;
}

.docs-sidebar ul li a:hover,
.docs-sidebar ul li a.active {
    color: var(--text-bright);
}

.docs-main {
    flex-grow: 1;
    padding-bottom: 40px;
}

.docs-main section {
    margin-bottom: 40px;
}

.docs-main h2 {
    font-size: 1.5rem;
    color: var(--text-bright);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.docs-main h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 18px 0 8px 0;
}

.docs-main h4 {
    font-size: 1rem;
    color: var(--text-bright);
    margin: 14px 0 6px 0;
}

.docs-main p {
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.docs-main ul,
.docs-main ol {
    margin-left: 16px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.docs-main li {
    margin-bottom: 4px;
}

.docs-main code {
    background: rgba(0, 200, 255, 0.06);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.8rem;
}

.docs-main pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow-x: auto;
    margin-bottom: 14px;
}

.docs-main pre code {
    background: transparent;
    color: var(--text);
    padding: 0;
    font-size: 0.78rem;
}

.docs-main .glass-panel {
    padding: 16px;
    margin-bottom: 14px;
}

.docs-main .glass-panel h3,
.docs-main .glass-panel h4 {
    margin-top: 0;
}

.docs-main strong {
    color: var(--text-bright);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.8rem;
        white-space: normal;
    }

    .docs-layout {
        flex-direction: column;
    }

    .docs-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 16px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2, 8, 16, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 0;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .placeholder-grid {
        grid-template-columns: 1fr;
    }

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