/* Landing Page - Section Styles */

main section {
    padding: 72px 0;
}

.features,
.getting-started {
    background: var(--color-surface);
}

.architecture,
.stats {
    background: var(--color-bg-alt);
}

.section-header {
    padding: 0 var(--content-padding) 2.5rem;
}

.section-header .container,
.section-content .container,
#docs .container {
    max-width: var(--max-width);
}

.section-header h2 {
    max-width: 900px;
    font-size: clamp(2.1rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-header p:not(.section-kicker) {
    max-width: 760px;
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    line-height: 1.75;
}

.section-content {
    padding: 0;
}

.section-title {
    margin-bottom: 2rem;
}

.features-grid,
.steps-grid,
.stats-grid {
    display: grid;
    gap: 1.25rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 2.25rem;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 1rem;
}

.feature-card,
.step-card,
.stat-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 0;
    box-shadow: none;
}

.feature-card,
.step-card {
    padding: 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover,
.step-card:hover {
    transform: translateY(-2px);
    border-color: var(--layer8d-border);
    box-shadow: none;
}

.feature-icon {
    display: none;
}

.feature-card h3,
.step-card h3,
.arch-title {
    color: var(--color-text);
    font-weight: 600;
}

.feature-card h3,
.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.85rem;
}

.feature-card p,
.step-card p {
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.components-section {
    margin-top: 1rem;
}

.category-header {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border);
}

.category-header:first-child {
    margin-top: 0;
}

.category-header h3 {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
}

.component-card {
    display: block;
    background: var(--color-bg);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    color: inherit;
}

.component-card-clickable {
    cursor: pointer;
    transition: background 0.2s, transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.component-card-clickable::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: var(--color-text);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.component-card-clickable:hover {
    background: var(--color-bg-alt);
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.component-card-clickable:hover::before {
    transform: scaleX(1);
}

.component-card-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.component-card-display {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 0.65rem;
}

.component-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.55;
    margin-bottom: 1rem;
}

.component-card-links {
    display: flex;
    gap: 1rem;
}

.component-card-primary,
.component-card-github {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    cursor: pointer;
}

.component-card-primary:hover,
.component-card-github:hover {
    color: var(--color-accent);
}

.arch-diagram {
    padding: 2rem;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
}

.arch-title {
    margin-bottom: 1.25rem;
    text-align: left;
    font-size: 1.2rem;
}

.arch-canvas {
    padding: 1.5rem;
    background: var(--layer8d-bg-light);
    border: 1px solid var(--color-border);
}

.arch-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

.step-card {
    position: relative;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    background: var(--color-text);
    color: var(--color-bg);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
}

.stats {
    color: var(--color-text);
}

.stat-item {
    padding: 1.5rem;
    text-align: left;
}

.stat-item h3 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.stat-item p {
    color: var(--color-text-secondary);
}
