/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2025 SWE Agent */
/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/* 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: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.logo .tagline {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
}

.logo .enterprise-tagline {
    color: #ffd700;
    font-size: 0.8rem;
    font-weight: 500;
    display: block;
    margin-top: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

nav a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Main content */
main {
    padding: 0;
    min-height: calc(100vh - 200px);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 4rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: white;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: 4rem 0;
}

section:nth-child(even) {
    background-color: #f8f9fa;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
}

/* Code blocks - default dark theme for installation section */
.installation-section .code-block {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.installation-section .code-block code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Getting started section code blocks */
.getting-started-section .code-block {
    background-color: #2d3748;
    color: #e2e8f0;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    margin: 1rem 0;
    overflow-x: auto;
}

.getting-started-section .code-block code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Installation Section */
.installation-section {
    text-align: center;
    color: #2c3e50;
}

.installation-section h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
}

/* Getting Started Section */
.getting-started-section {
    background-color: #f8f9fa;
    color: #2c3e50;
}

.getting-started-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.getting-started-section p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.command-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.command-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Capabilities Section */
.capabilities-section {
    background-color: white;
}

.capability-group {
    margin-bottom: 3rem;
}

.capability-group h3 {
    font-size: 1.75rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
}

.capability-group ul {
    list-style: none;
    padding-left: 1rem;
}

.capability-group li {
    padding: 0.5rem 0;
    position: relative;
    font-size: 1.1rem;
    color: #555;
}

.capability-group li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

.btn-highlight {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.btn-highlight:hover {
    background: linear-gradient(135deg, #ee5a24 0%, #d63031 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 36, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section {
        padding: 2rem 0;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .feature-card {
        padding: 1.5rem;
    }
}

/* Advantages Section */
.advantages-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.advantages-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.advantages-intro p {
    font-size: 1.2rem;
    color: #495057;
    font-weight: 500;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.advantage-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.advantage-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.advantage-card.highlight {
    border: 2px solid #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.advantage-card.highlight::before {
    content: "★ REAL EXAMPLE";
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-bottom-left-radius: 0.5rem;
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.advantage-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    text-align: center;
}

.advantage-card p {
    color: #666;
    margin-bottom: 1.5rem;
    text-align: center;
}

.advantage-details ul {
    list-style: none;
    padding: 0;
}

.advantage-details li {
    padding: 0.5rem 0;
    position: relative;
    color: #555;
    padding-left: 1.5rem;
}

.advantage-details li:before {
    content: "→";
    color: #667eea;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.code-example {
    margin-top: 1.5rem;
    text-align: center;
}

.example-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-bottom: 1rem;
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin: 0;
}

.security-highlight {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.security-highlight p {
    margin: 0;
    color: #856404;
    font-weight: 500;
    text-align: left;
}

/* Comparison Table */
.comparison-table {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    margin-top: 3rem;
}

.comparison-table h3 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    text-align: center;
}

.comparison-table td {
    text-align: center;
    font-weight: 500;
}

.comparison-table tr:hover {
    background-color: #f8f9fa;
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

/* Responsive design for advantages section */
/* Code block styling */
.code-block {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.code-block:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.code-block code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', monospace;
    font-size: 1.1rem;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Open source banner styling */
.open-source-banner {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 500px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: gentle-pulse 3s ease-in-out infinite;
}

.open-source-banner p {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes gentle-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    }
}

/* Hero section code block specific styling */
.hero .code-block {
    max-width: 400px;
    margin: 2rem auto;
    position: relative;
}

.hero .code-block::before {
    content: '$ ';
    opacity: 0.7;
    font-weight: normal;
}

@media (max-width: 768px) {
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .advantage-card {
        padding: 1.5rem;
    }
    
    .comparison-table {
        padding: 1rem;
        overflow-x: auto;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .hero .code-block {
        max-width: 300px;
        padding: 0.75rem 1rem;
    }
    
    .code-block code {
        font-size: 1rem;
    }
    
    .open-source-banner {
        max-width: 320px;
        padding: 0.6rem 1rem;
        margin: 1rem auto;
    }
    
    .open-source-banner p {
        font-size: 0.9rem;
    }
    
    .logo .enterprise-tagline {
        font-size: 0.7rem;
        margin-top: 0.2rem;
    }
}