:root {
    --bg-base: #02040a;
    --bg-surface: #0a0d14;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-primary: #8b5cf6;
    --accent-secondary: #3b82f6;
    --neon-glow: rgba(139, 92, 246, 0.3);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Grid & SVG Flow */
.grid-bg {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(var(--border-color) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: -2;
    opacity: 0.3;
}

.flow-lines {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.animated-path {
    stroke-dasharray: 10 20;
    animation: dashFlow 30s linear infinite;
}
.animated-path.reverse {
    animation-direction: reverse;
}

@keyframes dashFlow {
    to { stroke-dashoffset: -1000; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(2, 4, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    background: var(--bg-surface);
}

.nav-item:hover {
    color: var(--text-main);
    border-color: var(--border-hover);
}

/* Hero Section */
.hero {
    padding: 10rem 2rem 5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.8rem;
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 2rem;
    color: #a78bfa;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 0 10px var(--neon-glow);
}

.indicator {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.accent-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3rem;
}

.hero-subtitle code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9em;
    color: var(--text-main);
}

/* Install Block */
.install-block {
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.5rem 0.5rem 1.2rem;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 3rem;
}

.cmd-line {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    display: flex;
    gap: 0.75rem;
}

.prompt { color: var(--accent-primary); }
.command { color: var(--text-main); }

.copy-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    transition: all 0.2s;
}

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

/* Bento Grid */
.bento-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 2rem 8rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
}

.bento-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.col-span-2 {
    grid-column: span 2;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 1.25rem;
}

.bento-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Bento Visuals */
.tech-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1.5rem;
}

.thread-line {
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    border-radius: 2px;
    width: 0%;
    animation: loadThread 2s infinite ease-out;
}
.thread-line:nth-child(1) { animation-delay: 0.1s; }
.thread-line:nth-child(2) { animation-delay: 0.4s; }
.thread-line:nth-child(3) { animation-delay: 0.2s; }
.thread-line:nth-child(4) { animation-delay: 0.6s; }

@keyframes loadThread {
    50% { width: 100%; opacity: 0.2; }
    100% { width: 100%; opacity: 0; }
}

.lang-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.ui-mockup {
    background: #000;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-surface);
    padding: 2rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

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

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

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



/* Buttons */
.btn-primary {
    background: var(--text-main);
    color: var(--bg-base);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .col-span-2 {
        grid-column: span 1;
    }
}
