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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background: #09090b;
    overflow-x: hidden;
}

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

/* Hero Section */
.hero {
    position: relative;
    /* Reduced min-height to fix excessive spacing */
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Added subtle pattern to fix "floating in void" */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    /* Increased size significantly for visual impact */
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    /* Add text shadow for depth */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gradient-text {
    /* Enhanced gradient with more vibrant colors */
    background: linear-gradient(135deg, #a78bfa 0%, #f472b6 50%, #f87171 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Add subtle animation */
    background-size: 200% 200%;
    animation: gradient-flow 5s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: #d4d4d8; /* Lighter text for better contrast */
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem; /* Larger buttons */
    border-radius: 2rem; /* Pill shape for modern look */
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

/* How It Works Section */
.how-it-works {
    /* Reduced padding drastically */
    padding: 4rem 0;
    background: linear-gradient(180deg, #09090b 0%, #18181b 100%);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    /* Reduced margin-bottom */
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.workflow-diagram {
    max-width: 900px;
    /* Reduced margin-bottom */
    margin: 0 auto 2.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    /* Add subtle glow */
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.workflow-diagram img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Reduced gap */
    gap: 1rem;
    align-items: flex-start; /* Better alignment */
    /* Add subtle connector line */
    position: relative;
}

.step {
    text-align: center;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 50px; /* Slightly smaller */
    height: 50px;
    border-radius: 50%;
    background: #09090b; /* Dark bg */
    border: 2px solid #8b5cf6; /* Border instead of solid fill */
    color: #8b5cf6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.step:hover .step-number {
    background: #8b5cf6;
    color: white;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #fafafa;
}

.step p {
    color: #a1a1aa;
    font-size: 0.95rem;
}

.step-arrow {
    font-size: 2rem;
    color: #52525b;
    text-align: center;
    display: none;
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    }
    
    .step-arrow {
        display: block;
    }
}

/* Features Section */
.features {
    /* Reduced padding drastically */
    padding: 4rem 0;
    background: #09090b;
}

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

.feature-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 40%);
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.feature-card:hover {
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fafafa;
}

.feature-card p {
    color: #a1a1aa;
    line-height: 1.7;
}

.feature-screenshot {
    margin-top: 2rem;
    border-radius: 1rem;
    /* Fix small screenshot issue */
    width: 110%; /* Slight bleed for dynamic look */
    margin-left: -5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-screenshot {
    transform: scale(1.02);
}

.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* Code Example Section */
.code-example {
    /* Reduced padding drastically */
    padding: 4rem 0;
    background: linear-gradient(180deg, #09090b 0%, #18181b 100%);
}

.code-block {
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    overflow-x: auto;
    max-width: 800px;
    margin: 0 auto;
}

.code-block pre {
    margin: 0;
}

.code-block code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #e4e4e7;
}

.code-comment {
    color: #71717a;
}

.code-export,
.code-keyword {
    color: #c084fc;
}

.code-property {
    color: #60a5fa;
}

.code-string {
    color: #34d399;
}

/* Installation Section */
.installation {
    /* Reduced padding drastically */
    padding: 4rem 0;
    background: #09090b;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.install-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #fafafa;
}

.command-block {
    background: #0a0a0f;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.command-block code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #34d399;
    flex: 1;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
}

.terminal-example {
    max-width: 900px;
    margin: 3rem auto;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.terminal-example img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.5rem;
}

.docs-link {
    text-align: center;
    margin-top: 3rem;
}

.docs-link a {
    color: #8b5cf6;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.docs-link a:hover {
    color: #a78bfa;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: #0a0a0f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.footer-links a {
    color: #a1a1aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #e4e4e7;
}

.footer-credits {
    color: #71717a;
}

.footer-credits a {
    color: #8b5cf6;
    text-decoration: none;
}

.footer-credits a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero {
        min-height: 90vh;
    }
    
    .how-it-works,
    .features,
    .code-example,
    .installation {
        padding: 5rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .feature-grid,
    .install-steps {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .code-block {
        padding: 1.5rem;
    }
    
    .code-block code {
        font-size: 0.8rem;
    }
    
    .command-block {
        flex-direction: column;
        align-items: stretch;
    }
    
    .copy-btn {
        width: 100%;
    }
}
