/* Element.io inspired styles */
:root {
    --primary-color: #0DBD8B;
    --primary-dark: #0A9B70;
    --secondary-color: #368BD6;
    --background-color: #f5f7fa;
    --card-background: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --border-color: #e2e8f0;
    --success-color: #48bb78;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem 3rem;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Matrix Info Section */
.matrix-info {
    max-width: 900px;
    margin: -2rem auto 0;
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 1;
}

.info-card {
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.info-card h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.info-card > p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.feature {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.feature strong {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

/* Main Content */
.setup-guide {
    flex: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    position: relative;
    z-index: 1;
}

.setup-section {
    background: var(--card-background);
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    overflow: hidden;
    display: none;
}

.setup-section.active {
    display: block;
}

.section-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-number {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 600;
}

.step-content {
    padding: 3rem 2rem;
}

/* Instruction Cards */
.instruction-card {
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 2rem;
}

.instruction-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.instruction-list {
    list-style: none;
    counter-reset: step-counter;
}

.instruction-list li {
    counter-increment: step-counter;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    border-left: 4px solid var(--primary-color);
}

.instruction-list li:last-child {
    margin-bottom: 0;
}

.step-icon {
    font-size: 1.5rem;
    min-width: 2rem;
    text-align: center;
}

.instruction-list li strong {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.instruction-list li p {
    color: var(--text-secondary);
    margin: 0;
}

code {
    background: #edf2f7;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.875rem;
    color: var(--primary-dark);
    font-weight: 500;
}

/* Privacy Notice */
.privacy-notice {
    margin-top: 2rem;
}

.privacy-card {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.privacy-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.privacy-card p {
    margin: 0;
    opacity: 0.95;
    font-size: 1rem;
}

/* Web Option */
.web-option {
    margin-top: 1rem;
}

.web-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    text-align: center;
}

.web-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.web-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

/* Platform Selection */
.platform-selector {
    text-align: center;
    margin-bottom: 3rem;
}

.platform-selector h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.platform-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.platform-btn {
    background: var(--card-background);
    border: 2px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.platform-btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.platform-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.platform-btn img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    object-position: center;
}

.platform-btn.active img {
    filter: brightness(0) invert(1);
}

.platform-btn span {
    font-weight: 500;
    font-size: 1rem;
}

/* Platform Instructions */
.platform-instructions {
    margin-top: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-download {
    background: var(--secondary-color);
    color: white;
    margin-top: 0.5rem;
}

.btn-download:hover {
    background: #2c5aa0;
}

.btn-next {
    background: var(--success-color);
    color: white;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 2rem;
}

.btn-next:hover {
    background: #38a169;
}

.btn-back {
    background: var(--text-secondary);
    color: white;
    margin-top: 2rem;
}

.btn-back:hover {
    background: #4a5568;
}

/* Links */
.link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--card-background);
    border-top: 1px solid var(--border-color);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .setup-guide {
        padding: 0 1rem 3rem;
        margin-top: -1rem;
    }

    .section-header {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .step-content {
        padding: 2rem 1rem;
    }

    .instruction-card {
        padding: 1.5rem;
    }

    .instruction-list li {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .platform-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .platform-btn {
        padding: 1rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .platform-buttons {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.125rem;
    }
}