/* Modern, visually appealing design with clean aesthetics */

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

:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --text: #1a1a1a;
    --text-light: #666;
    --bg: #ffffff;
    --bg-light: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border: #e1e8ed;
    --border-dark: #2d2d2d;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    font-size: 16px;
    overflow-x: hidden;
}

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

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Header */
header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
    margin-bottom: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
}

header .container {
    text-align: center;
}

.logo-badge {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: var(--gradient-hero);
    border-radius: 0 0 40px 40px;
    margin-bottom: 4rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.hero h2 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero .lead {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

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

.btn-secondary {
    background: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Hero Visual */
.hero-visual {
    animation: fadeInRight 0.8s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-snippet {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.code-header {
    background: #2d2d2d;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-header .dot:nth-child(2) {
    background: #ffbd2e;
}

.code-header .dot:nth-child(3) {
    background: #27c93f;
}

.code-header span:last-child {
    color: #b4b4b4;
    font-size: 0.85rem;
    margin-left: 0.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

/* Features */
.features {
    padding: 5rem 0;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Use Cases */
.use-cases {
    padding: 5rem 0;
    background: var(--bg-light);
    border-radius: 40px;
}

.use-case-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.use-case {
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    background: white;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px var(--shadow);
}

.use-case strong {
    display: block;
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.use-case p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Example Section */
.example {
    padding: 5rem 0;
}

.example-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.example-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.example-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.example-features {
    list-style: none;
}

.example-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    font-size: 1.05rem;
}

/* Code Styling */
.code-tabs {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #2d2d2d;
}

.tab {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #b4b4b4;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.example-code {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 0 0 12px 12px;
    overflow-x: auto;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

pre code {
    background: none;
    padding: 0;
    border: none;
}

code {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
}

/* Documentation Section */
.documentation {
    padding: 5rem 0;
    background: var(--bg-light);
}

.doc-content {
    max-width: 1000px;
    margin: 0 auto;
}

.doc-section {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px var(--shadow);
}

.doc-section h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.doc-section h4 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-section p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.doc-example {
    background: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.doc-example pre {
    margin: 0;
    border-radius: 0;
}

.doc-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.doc-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.doc-table thead {
    background: var(--gradient-primary);
    color: white;
}

.doc-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.doc-table td {
    padding: 1rem;
    border-top: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

.doc-table td code {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.doc-table tbody tr:hover {
    background: var(--bg-light);
}

.doc-notes {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.doc-notes li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(52, 152, 219, 0.05);
    border-left: 4px solid var(--primary);
    border-radius: 4px;
    color: var(--text);
    line-height: 1.6;
}

.doc-notes li strong {
    color: var(--primary-dark);
}

/* Installation Steps */
.installation {
    padding: 5rem 0;
    background: var(--gradient-hero);
    border-radius: 40px;
}

.install-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px var(--shadow);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.step-card:hover {
    transform: translateX(8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
}

.step-number {
    min-width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.step-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.step-description code {
    background: rgba(52, 152, 219, 0.1);
    color: var(--primary-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}

.step-card pre {
    background: var(--bg-dark);
    border-radius: 8px;
    margin: 0;
}

.step-card pre code {
    background: none;
    padding: 0;
}

/* Footer */
footer {
    margin-top: 5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-light);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    
    .example-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    pre {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    .step-card {
        flex-direction: column;
    }
    
    .doc-section {
        padding: 1.5rem;
    }
    
    .doc-table {
        font-size: 0.85rem;
    }
    
    .doc-table th,
    .doc-table td {
        padding: 0.75rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text: #e1e8ed;
        --text-light: #b4b4b4;
        --bg: #1a1a1a;
        --bg-light: #252525;
        --border: #2d2d2d;
        --shadow: rgba(0, 0, 0, 0.3);
    }
    
    body {
        background-color: var(--bg);
    }
    
    header {
        background-color: rgba(26, 26, 26, 0.9);
        border-bottom-color: var(--border);
    }
    
    .feature-card,
    .use-case,
    .step-card,
    .doc-section {
        background: var(--bg-light);
        border-color: var(--border);
    }
    
    .doc-table table {
        background: var(--bg-light);
    }
    
    .doc-table td {
        border-top-color: var(--border);
    }
    
    .doc-notes li {
        background: rgba(52, 152, 219, 0.1);
        border-left-color: var(--primary);
    }
    
    footer {
        border-top-color: var(--border);
    }
    
    .hero,
    .installation {
        background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    }
}
