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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    text-align: center;
    padding: 3rem 1rem 1rem 1rem;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

h2 {
    color: #4a5568;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.technologies h2,
.guides h2 {
    margin-bottom: 0;
}

h3 {
    color: #2d3748;
    margin-bottom: 1rem;
}

h4 {
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.tabs {
    margin-top: 1.5rem;
}

.tab-buttons {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 2rem;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #718096;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #4a5568;
    background: #f7fafc;
}

.tab-button.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f7fafc;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

.platform-grid, .tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.platform-card, .tech-card {
    background: #f7fafc;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-card h4, .tech-card h4 {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
}

.platform-card:hover, .tech-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.platform-card:active {
    transform: translateY(0);
}

.tech-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.platform-card .tech-logo {
    margin-bottom: 0;
    margin-right: 1rem;
}

.platform-card:has(.tech-logo) {
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.tech-logo-large {
    height: 64px;
    width: auto;
    margin-bottom: 0;
}

.alfis-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: auto;
    padding: 1.5rem;
}

.tech-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alfis-logo {
    margin-bottom: 0;
}

.alfis-card h3 {
    margin: 0;
}

.yggdrasil-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: auto;
    padding: 1.5rem;
}


.tech-description {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
    text-align: center;
}

.intro p {
    font-size: 1.1rem;
    color: #4a5568;
}

.back-link {
    color: white;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 1;
    text-decoration: underline;
}

pre {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 1rem;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
}

code {
    white-space: pre;
}

footer {
    text-align: center;
    padding: 1rem 2rem 2rem 2rem;
    color: white;
    opacity: 0.8;
}

.toggle-on, .toggle-off {
    display: inline-block;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    position: relative;
    vertical-align: middle;
    margin-left: 8px;
}

.toggle-on {
    background-color: #4CAF50;
}

.toggle-off {
    background-color: #ccc;
}

.toggle-on::after, .toggle-off::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    transition: transform 0.3s ease;
}

.toggle-on::after {
    right: 2px;
}

.toggle-off::after {
    left: 2px;
}

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

    .platform-grid, .tech-grid {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-button {
        text-align: left;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e2e8f0;
        border-right: 3px solid transparent;
    }

    .tab-button.active {
        border-bottom-color: #e2e8f0;
        border-right-color: #667eea;
    }
}