/* --------------------
   DESIGN SYSTEM
-------------------- */
:root {
    --bg-dark: #090a0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-glass: rgba(15, 17, 26, 0.6);
    --border-glass: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.15);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6);
    
    --c-green: #10b981;
    --c-yellow: #f59e0b;
    --c-red: #ef4444;
    --c-blue: #38bdf8;
    --c-dim: #64748b;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------
   AMBIENT BACKGROUND
-------------------- */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.orb-1 { width: 600px; height: 600px; top: -150px; left: -100px; background: rgba(167, 139, 250, 0.25); }
.orb-2 { width: 500px; height: 500px; top: 20%; right: -150px; background: rgba(96, 165, 250, 0.2); animation-delay: -5s; }
.orb-3 { width: 700px; height: 700px; bottom: -200px; left: 20%; background: rgba(244, 114, 182, 0.15); animation-delay: -10s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -40px) scale(1.1); }
}

/* --------------------
   GLASSMORPHISM
-------------------- */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}

/* --------------------
   NAVBAR
-------------------- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 6%;
    z-index: 100;
}

.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.5px; display: flex; align-items: center; gap: 8px;}
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--text-primary); }

.btn-github {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    color: #fff !important;
    border: 1px solid var(--border-highlight);
    transition: all 0.3s ease !important;
}
.btn-github:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* --------------------
   HERO SECTION (SIDE-BY-SIDE)
-------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 6% 60px;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.badge {
    background: rgba(167, 139, 250, 0.15);
    color: #c4b5fd;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    border: 1px solid rgba(167, 139, 250, 0.3);
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.install-cmd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-glass);
    padding: 0 1rem 0 1.5rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    color: #a5b4fc;
    min-height: 3.5rem;
    flex: 1;
    min-width: 250px;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0.5rem;
}
.copy-btn:hover { opacity: 1; }

.social-proof {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.social-proof p { margin: 0; font-size: 0.85rem; color: var(--text-secondary); font-weight: 500;}
.avatars { display: flex; align-items: center; gap: 0.5rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #334155; border: 2px solid var(--bg-dark); margin-left: -12px;}
.avatar:first-child { margin-left: 0; background: linear-gradient(135deg, #f472b6, #3b82f6); }
.avatar:nth-child(2) { background: linear-gradient(135deg, #a78bfa, #10b981); }
.avatar:nth-child(3) { background: linear-gradient(135deg, #fbbf24, #ef4444); }
.avatars span { font-size: 0.85rem; color: var(--text-secondary); margin-left: 10px; }

/* --------------------
   TERMINAL MOCKUP
-------------------- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
}

/* Glowing shadow behind terminal */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--accent-gradient);
    filter: blur(100px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: -1;
}

.terminal {
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-highlight);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-glass);
}
.dots { display: flex; gap: 8px;}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title { font-size: 0.8rem; color: var(--text-secondary); font-weight: 500; }

.terminal-body {
    background: rgba(10, 11, 16, 0.8);
    padding: 1.2rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #e2e8f0;
    min-height: 280px;
    line-height: 1.4;
}

.typewriter-line {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.prompt { color: #f472b6; font-weight: bold;}
.folder { color: #38bdf8; font-weight: bold; margin-right: 8px; margin-left: 8px;}

/* Typing Animation */
.typing {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #fff;
    animation: typing 2.5s steps(40, end), blink-caret .75s step-end infinite;
    animation-fill-mode: forwards;
}

@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink-caret { from, to { border-color: transparent } 50% { border-color: #fff; } }

.terminal-output p { 
    margin: 0; 
    padding: 0.15rem 0; 
    opacity: 0; 
}
.c-green { color: var(--c-green); }
.c-yellow { color: var(--c-yellow); }
.c-blue { color: var(--c-blue); }
.c-dim { color: var(--c-dim); }
.font-bold { font-weight: bold; }

/* Delay sequence for terminal output */
.fade-in { animation: fadeIn 0.1s forwards; }
.d-1 { animation-delay: 2.8s; }
.d-2 { animation-delay: 3s; }
.d-3 { animation-delay: 3.2s; color: var(--c-dim);}
.d-4 { animation-delay: 3.5s; }
.d-5 { animation-delay: 4.2s; }
.d-6 { animation-delay: 4.8s; }
.d-7 { animation-delay: 5.0s; color: var(--c-dim);}
.d-8 { animation-delay: 5.2s; }
.d-9 { animation-delay: 5.5s; }
.d-10 { animation-delay: 5.7s; color: var(--c-dim);}
.d-11 { animation-delay: 6s; }

@keyframes fadeIn { to { opacity: 1; } }

/* --------------------
   FEATURES
-------------------- */
.features-section {
    padding: 6rem 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title h2 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.section-title p { color: var(--text-secondary); margin-top: 1rem; font-size: 1.1rem; }

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

.feature-card {
    padding: 2.5rem;
    border-radius: 16px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
}
.icon-blue { background: rgba(59, 130, 246, 0.15); border-color: rgba(59, 130, 246, 0.3); }
.icon-purple { background: rgba(167, 139, 250, 0.15); border-color: rgba(167, 139, 250, 0.3); }
.icon-orange { background: rgba(249, 115, 22, 0.15); border-color: rgba(249, 115, 22, 0.3); }
.icon-green { background: rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }

.feature-card h3 { font-size: 1.25rem; margin-bottom: 1rem; font-weight: 700; }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* --------------------
   FOOTER
-------------------- */
.footer {
    border-top: 1px solid var(--border-glass);
    padding: 3rem 6%;
    margin-top: 4rem;
    background: rgba(0,0,0,0.3);
}
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer p { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }

/* --------------------
   MCP SECTION
-------------------- */
.mcp-section {
    padding: 6rem 6%;
    max-width: 1400px;
    margin: 0 auto;
}
.mcp-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-top: 3rem;
    align-items: start;
}
.mcp-config {
    padding: 2rem;
    border-radius: 16px;
    font-family: 'JetBrains Mono', monospace;
}
.mcp-config-title {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}
.mcp-config pre {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #a5f3fc;
}
.mcp-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--c-green);
    font-family: 'Inter', sans-serif;
}
.mcp-tools { display: flex; flex-direction: column; gap: 1.2rem; }
.mcp-category {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    transition: border-color 0.2s;
}
.mcp-category:hover { border-color: var(--border-highlight); }
.cat-icon { font-size: 1.5rem; flex-shrink: 0; }
.mcp-category strong { display: block; margin-bottom: 0.4rem; font-size: 0.95rem; }
.mcp-category code { font-size: 0.78rem; color: var(--c-blue); font-family: 'JetBrains Mono', monospace; line-height: 1.6; }
.mcp-examples { margin-top: 2.5rem; text-align: center; }
.examples-title { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9rem; }
.example-chips { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.chip {
    padding: 0.5rem 1.2rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--c-blue);
    font-style: italic;
    transition: all 0.2s;
}
.chip:hover { background: rgba(96, 165, 250, 0.2); border-color: rgba(96, 165, 250, 0.4); }

/* --------------------
   HOW IT WORKS
-------------------- */
.how-section {
    padding: 5rem 6%;
    max-width: 1400px;
    margin: 0 auto;
}
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.step {
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    position: relative;
}
.step-num {
    width: 48px; height: 48px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
    margin: 0 auto 1rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.75rem; }
.step code { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--c-blue); background: rgba(56,189,248,0.1); padding: 0.4rem 0.8rem; border-radius: 6px; display: block; margin-bottom: 0.5rem; }
.step p { color: var(--text-secondary); font-size: 0.85rem; }

/* Responsiveness */
@media (max-width: 1024px) {
    .hero { flex-direction: column; text-align: center; padding-top: 100px; gap: 3rem; }
    .hero-content { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
    .cta-group { justify-content: center; }
    .hero-visual { max-width: 700px; }
    .mcp-layout { grid-template-columns: 1fr; }
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-links a:not(.btn-github) { display: none; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
    .steps { grid-template-columns: 1fr; }
}

