:root {
    --bg-dark: #06060c;
    --bg-surface: rgba(20, 20, 30, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --color-primary: #00F0FF;
    --color-secondary: #7B2CBF;
    --color-accent: #FF007F;
    
    --text-main: #FFFFFF;
    --text-muted: #A0A0B0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
}

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

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

/* Background Gradients */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -200px;
    border-radius: 50%;
    z-index: -1;
    filter: blur(50px);
}

.glow-bg-alt {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    top: 20%;
    right: -200px;
    left: auto;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #00A3FF);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(123, 44, 191, 0.2);
    color: var(--text-main);
    border: 1px solid rgba(123, 44, 191, 0.5);
}

.btn-secondary:hover {
    background: rgba(123, 44, 191, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(6, 6, 12, 0.8);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--text-muted);
    font-weight: 400;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12rem 2rem 6rem;
    display: flex;
    align-items: center;
    gap: 4rem;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
}

.image-wrapper {
    padding: 10px;
    position: relative;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.image-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image {
    width: 100%;
    border-radius: 8px;
    display: block;
}

.floating-badge {
    position: absolute;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 20%;
    left: -20px;
}

.badge-2 {
    bottom: 30%;
    right: -20px;
    animation-delay: 2s;
}

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

.dot.green { background: #00FF66; box-shadow: 0 0 10px #00FF66; }
.dot.cyan { background: var(--color-primary); box-shadow: 0 0 10px var(--color-primary); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Features */
.features {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

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

.feature-card {
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: default;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(123, 44, 191, 0.2));
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

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

/* Console Section */
.console-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.console-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 2rem 0;
}

.console-content {
    flex: 1;
}

.console-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.console-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.console-visual {
    flex: 1.2;
}

.console-container.reverse {
    flex-direction: row-reverse;
}

@media (max-width: 992px) {
    .console-container.reverse {
        flex-direction: column;
    }
    .console-container {
        flex-direction: column;
    }
}

/* Documentation Layout */
.docs-layout {
    max-width: 1400px;
    margin: 8rem auto 4rem;
    padding: 0 2rem;
    display: flex;
    gap: 2rem;
    min-height: calc(100vh - 12rem);
}

.docs-sidebar {
    width: 280px;
    padding: 2rem;
    position: sticky;
    top: 8rem;
    height: fit-content;
}

.docs-nav {
    list-style: none;
}

.docs-nav li {
    margin-bottom: 0.5rem;
}

.docs-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    display: block;
    padding: 0.6rem 1rem;
    border-radius: 6px;
}

.docs-nav a:hover, .docs-nav a.active {
    color: var(--color-primary);
    background: rgba(0, 240, 255, 0.05);
}

.docs-content {
    flex: 1;
    padding: 3rem;
}

.docs-section {
    margin-bottom: 4rem;
}

.docs-section h1, .docs-section h2 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.docs-section h1 {
    font-size: 2.5rem;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.docs-section h2 {
    font-size: 1.8rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.docs-section p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.docs-section ul {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.docs-section li {
    margin-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .docs-layout {
        flex-direction: column;
    }
    .docs-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }
}


/* Demo Section */
.demo-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.demo-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem;
    overflow: hidden;
    position: relative;
}

.demo-container::before {
    content: '';
    position: absolute;
    right: -100px;
    top: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 0;
    pointer-events: none;
}

.demo-content {
    flex: 1;
    z-index: 1;
}

.demo-content h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.demo-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.demo-list {
    list-style: none;
}

.demo-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
}

.demo-list span {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.demo-terminal {
    flex: 1;
    background: #0D0D12;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    z-index: 1;
}

.terminal-header {
    background: #1A1A24;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #2A2A35;
}

.btn-mac {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.btn-mac.red { background: #FF5F56; }
.btn-mac.yellow { background: #FFBD2E; }
.btn-mac.green { background: #27C93F; }

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: #666;
    font-size: 0.8rem;
    font-family: var(--font-body);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #A0A0B0;
    line-height: 1.5;
    overflow-x: auto;
}

.terminal-body .cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.code-keyword { color: #FF7B72; }
.code-string { color: #A5D6FF; }
.code-url { color: #79C0FF; }
.code-param { color: #D2A8FF; }

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--text-muted);
    font-weight: 400;
}

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

/* Responsive */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }
    
    .demo-container {
        flex-direction: column;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .demo-terminal {
        width: 100%;
    }
}
