/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

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

/* Header and Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Simplified hero background - removed complex SVG pattern for better performance */

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tagline {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.badges {
    margin-bottom: 40px;
}

.badges img {
    margin: 0 5px;
    height: 20px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #667eea;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Problem-Solution Section */
.problem-solution {
    padding: 80px 0;
    background: #f8f9fa;
}

.problem-solution .grid {
    align-items: stretch;
}

@media (min-width: 769px) {
    .problem-solution .card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    align-items: start;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.card h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.card p {
    margin-bottom: 15px;
    color: #555;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

code {
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    color: #d73a49;
    font-size: 0.9em;
}

/* Install Section */
.install {
    padding: 80px 0;
    background: white;
}

.install h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

@media (max-width: 768px) {
    .install-methods {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .install-card {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
}

.install-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.install-card.recommended {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea10, #764ba210);
}

.install-card h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3rem;
}

.code-block {
    position: relative;
    background: #2d3748;
    color: #e2e8f0;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    overflow-x: auto;
}

.code-block code {
    background: none;
    color: #e2e8f0;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.copy-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.code-block:hover .copy-btn {
    background: #4a5568;
    opacity: 1;
}

.copy-btn:hover {
    background: #2d3748;
    opacity: 1;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

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

.feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature p {
    color: #666;
}

/* Usage Section */
.usage {
    padding: 80px 0;
    background: white;
}

.usage h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.usage-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.step-number {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.step-content ul {
    list-style: none;
    padding-left: 0;
}

.step-content li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: #555;
}

.step-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.step-content .code-block {
    width: 100%;
    margin: 15px 0;
}

/* Use Cases Section */
.use-cases {
    padding: 80px 0;
    background: #f8f9fa;
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.use-cases .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .use-cases .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-case {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.use-case h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.use-case ul {
    list-style: none;
    padding-left: 0;
    flex: 1;
}

.use-case li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: #555;
}

.use-case li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

/* Example Section */
.example {
    padding: 80px 0;
    background: white;
}

.example h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.terminal {
    background: #1a202c;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 800px;
    margin: 0 auto 30px;
}

.terminal-header {
    background: #2d3748;
    padding: 15px 20px;
    border-bottom: 1px solid #4a5568;
}

.terminal-title {
    color: #e2e8f0;
    font-weight: 600;
}

.terminal-content {
    padding: 25px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    overflow-x: auto;
}

.terminal-line {
    color: #e2e8f0;
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: nowrap;
}

.terminal-line:first-child {
    color: #81c784;
}

/* Comment lines in terminal - less prominent than commands */
.terminal-line.comment {
    color: #94a3b8 !important;
    opacity: 0.8;
}

.example-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
}

/* Requirements Section */
.requirements {
    padding: 80px 0;
    background: #f8f9fa;
}

.requirements h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2c3e50;
}

.requirements-list {
    max-width: 600px;
    margin: 0 auto;
}

.requirement {
    background: white;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.requirement strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.requirement ul {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.requirement li {
    padding: 5px 0;
    position: relative;
    padding-left: 20px;
    color: #555;
}

.requirement li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #667eea;
}

/* Footer */
footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

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

.footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    color: white;
}

.footer-text {
    color: #bdc3c7;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(102, 126, 234, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.back-to-top.visible {
    opacity: 0.8;
    visibility: visible;
}

.back-to-top:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .step-content {
        width: 100%;
        flex: none;
        text-align: left;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    section {
        padding: 50px 0 !important;
    }
    
    .card {
        padding: 25px;
    }
    
    .install-card {
        padding: 15px;
    }
    
    .code-block code {
        overflow-x: auto;
        display: block;
        white-space: nowrap;
    }
    
    
    .step-content .code-block {
        text-align: left;
        margin: 15px 0;
        width: 100%;
        box-sizing: border-box;
        min-width: 0;
    }
    
    .step-content ul,
    .step-content li {
        text-align: left;
    }
    
    .terminal-content {
        overflow-x: auto;
    }
    
    .terminal-line {
        white-space: nowrap;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}
}