:root {
    --bg-dark: #0f1115;
    --bg-card: #181b21;
    --primary: #6366f1;
    --secondary: #60a5fa;
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --gradient: linear-gradient(135deg, #6366f1 0%, #60a5fa 100%);
    --glass: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 17, 21, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    /* Crop square background to circle */
    background: #000;
    /* Ensure no white gaps if blend fails */
    mix-blend-mode: screen;
    /* Keep transparency attempt */
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8)) brightness(1.3);
    animation: pulse-glow 4s infinite ease-in-out;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8)) brightness(1.3);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px rgba(99, 102, 241, 1)) brightness(1.5);
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.8)) brightness(1.3);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--text-white);
}

.github-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass);
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--text-white) !important;
    transition: background 0.3s !important;
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    padding-top: 80px;
    gap: 2rem;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 40%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
}

.cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.install-cmd {
    background: var(--bg-card);
    padding: 10px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.install-cmd code {
    color: var(--text-gray);
    font-family: 'Courier New', monospace;
}

.copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.copy-btn:hover {
    opacity: 1;
}

/* Hero Visual (Browser Mockup) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.browser-mockup {
    background: var(--bg-card);
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.browser-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ef4444;
}

.yellow {
    background: #f59e0b;
}

.green {
    background: #10b981;
}

.url-bar {
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-gray);
    flex: 1;
    margin-left: 12px;
    text-align: center;
}

.browser-body {
    padding: 24px;
    position: relative;
    min-height: 300px;
    font-family: 'Courier New', monospace;
}

.ai-cursor {
    position: absolute;
    top: 40%;
    left: 60%;
    color: var(--secondary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: cursorMove 3s infinite ease-in-out;
}

.cursor-pointer {
    font-size: 24px;
    transform: rotate(-15deg);
}

.cursor-label {
    background: var(--secondary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    margin-left: 10px;
}

@keyframes cursorMove {
    0% {
        top: 40%;
        left: 60%;
    }

    50% {
        top: 60%;
        left: 40%;
    }

    100% {
        top: 40%;
        left: 60%;
    }
}

.code-snippet {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.comment {
    color: #6b7280;
}

.keyword {
    color: var(--secondary);
}

.string {
    color: #10b981;
}

/* Features */
.features {
    padding: 5rem 5%;
    text-align: center;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Steps */
.steps {
    padding: 5rem 5%;
    background: rgba(255, 255, 255, 0.02);
}

.steps h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.step-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    z-index: 2;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.step-line {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 25px;
}

/* Footer */
footer {
    padding: 4rem 5%;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-col p {
    color: var(--text-gray);
    max-width: 300px;
}

.footer-col a {
    display: block;
    color: var(--text-gray);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    color: #4b5563;
    font-size: 0.875rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .cta-group {
        justify-content: center;
    }

    .step-container {
        flex-direction: column;
        gap: 2rem;
    }

    .step-line {
        display: none;
    }

    .navbar {
        padding: 1rem 5%;
    }

    .nav-links {
        display: none;
        /* Simple MVP: hide links on mobile */
    }
}