:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #f0f0f5;
    --text-secondary: #9090a0;
    --purple: #a855f7;
    --purple-light: #c084fc;
    --pink: #818cf8;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --rust: #f97316;
    --green: #10b981;
    --border: #2a2a3a;
    --glow-purple: rgba(168, 85, 247, 0.4);
    --glow-pink: rgba(99, 102, 241, 0.3);
    --glow-cyan: rgba(34, 211, 238, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Animated background */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(168, 85, 247, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(99, 102, 241, 0.1), transparent),
        radial-gradient(ellipse 50% 30% at 50% 80%, rgba(34, 211, 238, 0.08), transparent);
    pointer-events: none;
    z-index: 0;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 0 20px var(--glow-purple);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

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

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

.github-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--glow-purple);
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--purple-light);
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, var(--green), var(--cyan));
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--glow-cyan);
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.vibe-badge .badge-icon {
    font-size: 1rem;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, var(--purple-light) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-subtitle strong {
    color: var(--cyan);
}

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

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    box-shadow: 0 0 30px var(--glow-purple);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px var(--glow-pink);
}

.btn-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: var(--purple-light);
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--purple);
    transform: translateY(-3px);
}

/* Terminal Preview */
.terminal-wrapper {
    max-width: 900px;
    margin: 70px auto 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow:
        0 0 60px rgba(168, 85, 247, 0.2),
        0 0 100px rgba(99, 102, 241, 0.1),
        0 30px 60px rgba(0, 0, 0, 0.5);
    background: var(--bg-secondary);
}

.terminal-header {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(168, 85, 247, 0.1));
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

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

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    flex: 1;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.terminal-body {
    background: var(--bg-secondary);
    padding: 28px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.9;
}

.terminal-line {
    display: flex;
    gap: 10px;
}

.terminal-prompt {
    color: var(--pink);
    font-weight: bold;
}

.terminal-cmd {
    color: var(--text-primary);
}

.terminal-cmd .flag {
    color: var(--cyan);
}

.terminal-cmd .value {
    color: var(--purple-light);
}

.terminal-output {
    color: var(--green);
    padding-left: 22px;
}

/* Features Section */
.features {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 36px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--blue), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.15);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-icon.purple {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(99, 102, 241, 0.2));
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}
.feature-icon.cyan {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(59, 130, 246, 0.2));
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}
.feature-icon.green {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 238, 0.2));
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}
.feature-icon.orange {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(99, 102, 241, 0.2));
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff, var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Architecture Section */
.architecture {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.03), transparent);
    z-index: 1;
}

.arch-diagram {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 50px;
    margin-top: 50px;
    overflow-x: auto;
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.1);
}

.arch-layer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.arch-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 28px;
    text-align: center;
    min-width: 140px;
    transition: all 0.3s;
}

.arch-box:hover {
    border-color: var(--purple);
    box-shadow: 0 0 20px var(--glow-purple);
    transform: translateY(-3px);
}

.arch-box.cli {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15));
    border-color: var(--purple);
    min-width: 320px;
    box-shadow: 0 0 30px var(--glow-purple);
}

.arch-box h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.arch-box .port {
    font-size: 0.8rem;
    color: var(--cyan);
    font-family: monospace;
}

.arch-connector {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    margin: 15px 0;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Components Table */
.components {
    position: relative;
    padding: 120px 0;
    z-index: 1;
}

.components-table {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-top: 50px;
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 18px 28px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(168, 85, 247, 0.1));
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--purple-light);
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(168, 85, 247, 0.05);
}

td code {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(99, 102, 241, 0.15));
    padding: 6px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--pink);
}

/* Quick Start */
.quickstart {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.03), transparent);
    z-index: 1;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 50px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.1);
}

.code-header {
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(34, 211, 238, 0.1));
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.code-filename {
    color: var(--cyan);
    font-size: 0.85rem;
    font-family: monospace;
    font-weight: 600;
}

.code-content {
    padding: 28px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 2;
    overflow-x: auto;
}

.code-content .comment {
    color: var(--text-secondary);
}

.code-content .cmd {
    color: var(--green);
}

/* Vibe Coded Section */
.vibe-section {
    position: relative;
    padding: 100px 0;
    z-index: 1;
}

.vibe-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(99, 102, 241, 0.1));
    border: 2px solid var(--purple);
    border-radius: 24px;
    padding: 60px;
    text-align: center;
    box-shadow: 0 0 60px var(--glow-purple);
    position: relative;
    overflow: hidden;
}

.vibe-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--purple), transparent 30%);
    animation: rotate 8s linear infinite;
    opacity: 0.1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.vibe-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: sparkle 2s ease-in-out infinite;
}

.vibe-card h3 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #fff, var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vibe-card > p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.vibe-card strong {
    color: var(--purple-light);
}

.vibe-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
}

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

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan), var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* Footer */
footer {
    position: relative;
    padding: 70px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(168, 85, 247, 0.05));
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 36px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--purple-light);
}

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

.footer-copy .rust-love {
    background: linear-gradient(135deg, var(--rust), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-copy .heart {
    color: var(--pink);
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

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

    .hero {
        padding: 120px 0 60px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .terminal-body {
        font-size: 0.75rem;
        padding: 20px;
    }

    .arch-layer {
        flex-direction: column;
        align-items: center;
    }

    .arch-box.cli {
        min-width: auto;
        width: 100%;
    }

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