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

:root {
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --secondary: #8B5CF6;
    --success: #10B981;
    --background: #0F172A;
    --surface: #1E293B;
    --surface-light: #334155;
    --text: #F1F5F9;
    --text-muted: #94A3B8;
    --border: #334155;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
              0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--background) 0%, #1a1f35 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header */
.header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.logo {
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

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

.header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.4);
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card:last-of-type p {
    margin-bottom: 0;
}

/* Features List */
.features-list {
    list-style: none;
    display: grid;
    gap: 1.5rem;
}

.features-list li {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.features-list .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.features-list strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.features-list p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Architecture */
.architecture {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 0;
}

.arch-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.arch-icon {
    width: 60px;
    height: 60px;
    background: var(--surface-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid var(--primary);
}

.arch-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.arch-arrow {
    font-size: 1.5rem;
    color: var(--primary);
}

/* Info Card */
.info-card {
    background: linear-gradient(135deg, var(--surface) 0%, #2a3548 100%);
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-family: 'Courier New', monospace;
    color: var(--primary);
    font-weight: 600;
}

/* Steps List */
.steps-list {
    list-style: none;
    counter-reset: steps;
}

.steps-list li {
    counter-increment: steps;
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.steps-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Code */
code {
    background: var(--background);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-meta {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem 0.75rem;
    }

    .card {
        padding: 1.5rem;
    }

    .architecture {
        flex-direction: column;
    }

    .arch-arrow {
        transform: rotate(90deg);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
