:root {
    --bg: #f4f4f4;
    --text-primary: #0e0c0d;
    --text-secondary: #808080;
    --button-bg: #808080;
    --button-text: #f4f4f4;
    --divider: #E0E0E0;
    --surface: #FAFAFA;
    --error: #BA1A1A;
    --link-color: #FF6B35;
    --link-hover: #E55A2B;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0e0c0d;
        --text-primary: #f4f4f4;
        --text-secondary: #808080;
        --button-bg: #404040;
        --button-text: #f4f4f4;
        --divider: #333333;
        --surface: #1A1A1A;
        --link-color: #FF8C5A;
        --link-hover: #FF6B35;
    }
}

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

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.container {
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.logo {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h1 {
    font-family: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.description p {
    margin-bottom: 1rem;
}

.description p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--link-color);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--link-hover);
}

a:visited {
    color: var(--link-color);
}

.text {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.text-secondary {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
}

.button {
    display: inline-block;
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
}

.button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.button:active {
    transform: scale(0.98);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@media (prefers-color-scheme: dark) {
    .spinner {
        border-color: rgba(255, 255, 255, 0.1);
        border-top-color: var(--text-primary);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.state {
    display: none;
}

.state.active {
    display: block;
}

.section {
    margin-bottom: 2rem;
}

.section:last-child {
    margin-bottom: 0;
}