/* Index/Homepage CSS */

main {
    padding-top: 64px;
    position: relative;
    z-index: 1;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Hero */
.hero {
    min-height: 85vh;
    padding: 8rem 3rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    max-width: 800px;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 5rem;
}

.btn-large {
    padding: 0.9rem 1.75rem;
    font-size: 0.95rem;
    border-radius: 10px;
}

.btn-large.btn-primary {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-large.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

/* Terminal preview */
.terminal-preview {
    width: 100%;
    max-width: 700px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 50px rgba(0,0,0,0.3),
        0 0 100px var(--accent-glow);
}

.terminal-header {
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.terminal-header span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
}

.terminal-header span:first-child { background: #ff5f57; }
.terminal-header span:nth-child(2) { background: #febc2e; }
.terminal-header span:nth-child(3) { background: #28c840; }

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.9;
}

.terminal-body .comment {
    color: var(--text-dim);
}

.terminal-body .key {
    color: var(--purple);
}

.terminal-body .value {
    color: var(--text);
}

.terminal-body .prompt {
    color: var(--accent);
}

.terminal-body .cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Features */
.features {
    padding: 6rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: var(--font-mono);
    color: white;
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Articles/Sessions */
.articles {
    padding: 4rem 3rem 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.section-link {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

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

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.article-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.article-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.15), rgba(168, 85, 247, 0.15));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    flex-shrink: 0;
}

.article-content {
    flex: 1;
}

.article-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.author-link-text[data-author-link] {
    cursor: pointer;
    transition: color 0.2s;
}

.author-link-text[data-author-link]:hover {
    color: var(--accent);
}

.article-arrow {
    color: var(--text-dim);
    transition: all 0.2s;
}

.article-card:hover .article-arrow {
    color: var(--accent);
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero, .features, .articles {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }

    .article-card {
        flex-direction: column;
        text-align: center;
    }

    .article-arrow {
        display: none;
    }
}
