:root {
    --primary-color: #00ffbd;
    --primary-hover: #00cc97;
    --bg-color: #050505;
    --card-bg: #111111;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --border-color: #333333;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 80px;
    --container-width: 1200px;
}

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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.app-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography & Utilities */
.highlight {
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(0, 255, 189, 0.3);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 189, 0.2);
}

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

.btn-secondary:hover {
    border-color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-outline:hover {
    text-decoration: underline;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 800;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.3s ease;
    z-index: 999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    margin-top: var(--nav-height);
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    padding: 0 5%;
    gap: 50px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 255, 189, 0.05) 0%, transparent 40%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(0, 255, 189, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 255, 189, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    border-left: 2px solid var(--primary-color);
    padding-left: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.code-block {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #d4d4d4;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 500px;
    min-height: 300px; /* Prevent layout shift */
    overflow: hidden;
}

/* Syntax Highlighting */
.token.comment { color: #6a9955; }
.token.keyword { color: #569cd6; }
.token.type { color: #4ec9b0; }
.token.function { color: #dcdcaa; }
.token.variable { color: #9cdcfe; }
.token.number { color: #b5cea8; }
.token.string { color: #ce9178; }
.token.operator { color: #d4d4d4; }
.token.property { color: #9cdcfe; }
.token.entity { color: #4ec9b0; }

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.2em;
    background-color: var(--primary-color);
    vertical-align: middle;
    animation: blink 1s step-end infinite;
    box-shadow: 0 0 8px var(--primary-color);
}

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

/* Typing Glow Effect */
@keyframes typingGlow {
    0% { text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color); color: #fff; }
    100% { text-shadow: none; }
}

.typing-char {
    animation: typingGlow 0.2s ease-out forwards;
}

.glowing-orb {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
}

/* Features Section */
.features {
    padding: 100px 5%;
    background-color: #080808;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.icon-box {
    font-size: 2rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

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

/* Ecosystem Section */
.ecosystem {
    padding: 100px 5%;
    border-top: 1px solid var(--border-color);
}

.ecosystem-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.ecosystem-text {
    flex: 1;
}

.ecosystem-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ecosystem-list {
    margin: 30px 0;
}

.ecosystem-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
}

.ecosystem-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.ecosystem-list strong {
    color: var(--text-color);
}

.ecosystem-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.tech-stack-visual {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.stack-layer {
    padding: 20px;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    background: rgba(0, 255, 189, 0.05);
    font-weight: 600;
}

.layer-1 { opacity: 1; }
.layer-2 { opacity: 0.8; }
.layer-3 { opacity: 0.6; }
.layer-4 { opacity: 0.4; }

/* CTA Section */
.cta-section {
    padding: 80px 5%;
    background: linear-gradient(180deg, var(--bg-color) 0%, #0d1a15 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

/* Footer */
footer {
    padding: 60px 5% 30px;
    background-color: #020202;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    max-width: var(--container-width);
    margin: 0 auto 60px;
}

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

.footer-brand .logo {
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

.link-group h4 {
    margin-bottom: 20px;
    color: var(--text-color);
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.link-group a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    color: #444;
    font-size: 0.85rem;
    padding-top: 30px;
    border-top: 1px solid #111;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-stats {
        justify-content: center;
        border-left: none;
        padding-left: 0;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .ecosystem-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-launch-btn {
        display: inline-block; /* Show only in mobile menu */
    }

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

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

    .footer-content {
        flex-direction: column;
    }
    
    .footer-links {
        gap: 40px;
        justify-content: space-between;
    }
}
