/* Reset & Base */
:root {
    --bg-color: #0E0E0E;
    --text-main: #FFFFFF;
    --text-muted: #E0E0E0;
    --accent-cyan: #00E5FF;
    --accent-blue: #2979FF;
    --accent-glow: rgba(0, 229, 255, 0.4);
    --surface: #121212;
    --surface-border: #333333;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Account for fixed navbar */
}

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

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container.narrow {
    max-width: 800px;
}

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

.section-padding {
    padding: 8rem 0;
}

.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

.hidden {
    display: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(14, 14, 14, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    color: var(--accent-cyan);
    text-decoration: none;
}

.beta-tag {
    font-size: 0.7rem;
    background: rgba(0, 229, 255, 0.1);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.nav-cta {
    color: var(--accent-cyan) !important;
    font-weight: 600;
    border: 1px solid var(--accent-cyan);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s;
}

.nav-cta:hover {
    background: var(--accent-cyan);
    color: var(--bg-color) !important;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        background: rgba(14, 14, 14, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: right 0.3s ease;
        height: calc(100vh - 70px);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 4rem;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.full-width {
    width: 100%;
}

/* Comparison Grid */
.comparison-grid {
    display: grid;
    gap: 1px;
    background: var(--surface-border);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 3rem;
}

.comparison-header,
.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-color);
}

.comparison-header {
    background: var(--surface);
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.comparison-header div,
.comparison-row div {
    padding: 1.5rem;
}

.comparison-row div {
    color: var(--text-muted);
}

.comparison-row .good {
    color: var(--accent-cyan);
    font-weight: 500;
    background: rgba(0, 229, 255, 0.02);
}

.comparison-row .bad {
    opacity: 0.7;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* IDE Preview */
.preview-container {
    background: #1E1E1E;
    border-radius: 12px;
    border: 1px solid var(--surface-border);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.7);
    max-width: 1100px;
    margin: 0 auto;
}

.preview-header {
    background: #252526;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}

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

.red {
    background: #FF5F56;
}

.yellow {
    background: #FFBD2E;
}

.green {
    background: #27C93F;
}

.preview-title {
    margin-left: 1rem;
    font-size: 0.8rem;
    color: #999;
    font-family: var(--font-mono);
}

.preview-content-img {
    width: 100%;
    line-height: 0;
}

.ide-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Ecosystem Timeline */
.timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    gap: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--surface-border);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}

.timeline-marker {
    width: 50px;
    height: 50px;
    background: var(--surface);
    border: 2px solid var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-weight: bold;
    color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-list {
    list-style: none;
    text-align: left;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-radius: 8px;
    display: inline-block;
    width: 100%;
}

.timeline-list li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.2rem;
}

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

/* VS Table */
.vs-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.vs-col {
    background: var(--surface);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
}

.vs-col.highlight {
    border-color: var(--accent-cyan);
    background: rgba(0, 229, 255, 0.03);
}

.vs-col h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.5rem;
}

.vs-col ul {
    list-style: none;
}

.vs-col li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.vs-col li.cross::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #FF5F56;
}

.vs-col li.check::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* Features Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
}

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

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Chips */
.chip-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.chip {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Security */
.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.sec-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

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

.badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.badge {
    background: rgba(0, 255, 148, 0.1);
    color: #00FF94;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(0, 255, 148, 0.3);
}

/* Waitlist Form */
.waitlist-box {
    background: linear-gradient(180deg, var(--surface) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid var(--surface-border);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}

.form-grid input,
.form-grid select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--surface-border);
    padding: 1rem 1.2rem;
    border-radius: 12px;
    color: white;
    width: 100%;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-grid select option {
    background-color: #1a1a1a;
    color: white;
    padding: 10px;
}

.form-grid input:focus,
.form-grid select:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-note {
    font-size: 0.8rem;
    margin-top: 1rem;
    opacity: 0.6;
}

.success-message {
    margin-top: 1rem;
    color: var(--accent-cyan);
    font-weight: 600;
}

/* Coming Soon Box */
.coming-soon-box {
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, rgba(41, 121, 255, 0.05) 100%);
    border: 2px dashed var(--accent-cyan);
    padding: 3rem 2rem;
    border-radius: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.coming-soon-box h3 {
    color: var(--accent-cyan);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Demo Placeholder */
.video-placeholder {
    background: #000;
    border: 1px solid var(--surface-border);
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.play-button {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 0;
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.footer-brand h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.ip-notice {
    font-size: 0.75rem;
    margin-top: 1rem;
    opacity: 0.6;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--accent-cyan);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

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

.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* Focus States for Accessibility */
*:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.btn:focus,
input:focus,
select:focus,
a:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 20% 50%, rgba(0, 229, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(41, 121, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .timeline {
        flex-direction: column;
        gap: 0;
    }

    .timeline::before {
        width: 2px;
        height: 100%;
        left: 25px;
        top: 0;
    }

    .timeline-item {
        text-align: left;
        padding-left: 5rem;
        margin-bottom: 2rem;
    }

    .timeline-marker {
        position: absolute;
        left: 0;
    }

    .vs-table {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
    }

    .nav-links {
        gap: 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .badges {
        flex-wrap: wrap;
    }
}