/* Discraft — Layout */

/* Header / Nav */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
}

.site-header .logo {
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}
.site-header .logo span {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.site-nav a {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}
.site-nav a:hover, .site-nav a.active {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.site-nav .nav-divider {
    width: 1px;
    height: 20px;
    background: var(--border-default);
    margin: 0 var(--space-2);
}

/* Language Switcher */
.lang-switch {
    font-size: var(--text-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}
.lang-switch button {
    background: none;
    color: var(--text-muted);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}
.lang-switch button:hover {
    color: var(--text-primary);
}
.lang-switch button.active {
    color: var(--text-accent);
}

/* Main content */
.site-main {
    padding-top: var(--header-height);
    min-height: 100vh;
}

/* Page container */
.container {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Hero section */
.hero {
    text-align: center;
    padding: var(--space-24) 0 var(--space-16);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .subtitle {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto var(--space-8);
    line-height: var(--leading-relaxed);
}

.hero-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
}

/* Steps section */
.steps-section {
    padding: var(--space-16) 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.step-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-8) var(--space-6);
    position: relative;
    transition: all var(--transition-base);
}
.step-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.step-number {
    font-size: var(--text-4xl);
    font-weight: var(--weight-bold);
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
}

.step-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.step-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

/* Developer section */
.dev-section {
    padding: var(--space-16) 0;
    text-align: center;
}

.dev-section h2 {
    margin-bottom: var(--space-3);
}

.dev-section .dev-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.dev-section pre {
    max-width: 600px;
    margin: 0 auto;
    text-align: start;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--space-8) 0;
    margin-top: var(--space-16);
}

.footer-content {
    max-width: var(--max-content);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-left {
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.footer-left a {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: var(--space-4);
}
.footer-links a {
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--transition-fast);
}
.footer-links a:hover {
    color: var(--text-primary);
}

/* Error page */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}
.error-page h1 {
    font-size: 6rem;
    color: var(--text-muted);
    font-weight: var(--weight-bold);
}
.error-page p {
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: var(--text-3xl);
    }
    .hero .subtitle {
        font-size: var(--text-base);
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .site-header {
        padding: 0 var(--space-4);
    }
    .container {
        padding: 0 var(--space-4);
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
