/* =============================================================================
 * OMNIUI LANDING PAGE STYLES
 * Layout and structure only - all colours/typography from OmniUI tokens
 * ============================================================================= */

/* Body uses OmniUI defaults */
body {
    font-family: var(--omni-font-sans);
    background: var(--omni-color-background);
    color: var(--omni-color-text);
    line-height: 1.6;
}

/* =============================================================================
 * LANDING PAGE UTILITIES
 * ============================================================================= */

/* Feature lists inside cards */
.landing-feature-list {
    margin: 0;
    padding-left: 1.5rem;
    color: var(--omni-color-text-muted);
}

/* Centered content wrapper */
.landing-centered {
    text-align: center;
    margin-top: var(--omni-space-6);
}

/* Muted text helper */
.landing-muted {
    color: var(--omni-color-text-muted);
}

/* Stack diagram container */
.landing-stack {
    max-width: 600px;
    margin: var(--omni-space-6) auto;
}

.landing-stack-items {
    display: flex;
    flex-direction: column;
    gap: var(--omni-space-3);
}

/* Example comparison grid */
.landing-example-grid {
    margin-top: var(--omni-space-6);
}

.landing-example-grid h4 {
    margin-bottom: var(--omni-space-3);
}

/* Small note text */
.landing-note {
    margin-top: var(--omni-space-6);
    color: var(--omni-color-text-muted);
    font-size: var(--omni-text-sm);
}

/* =============================================================================
 * LAYOUT - Page sections
 * ============================================================================= */
.section {
    padding: var(--omni-space-16) var(--omni-space-6);
    max-width: 900px;
    margin: 0 auto;
}

.section-alt {
    background: var(--omni-color-surface-alt);
    max-width: 100%;
}

.section-alt > h2,
.section-alt > p,
.section-alt > .omni-grid-2,
.section-alt > .omni-grid-3,
.section-alt > .omni-code-block {
    max-width: 900px;
    margin-inline: auto;
}

.section h2 {
    font-size: var(--omni-text-3xl);
    font-weight: var(--omni-font-semibold);
    margin-bottom: var(--omni-space-4);
}

.section > p {
    color: var(--omni-color-text-muted);
    margin-bottom: var(--omni-space-6);
}

/* =============================================================================
 * CODE BLOCKS
 * ============================================================================= */
.omni-code-block {
    margin-bottom: var(--omni-space-6);
}

/* =============================================================================
 * COMPONENT TIERS
 * ============================================================================= */
.tier {
    margin-bottom: var(--omni-space-10);
}

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

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

.tier > p {
    color: var(--omni-color-text-muted);
    margin-bottom: var(--omni-space-4);
}

.component-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--omni-space-2);
}

/* =============================================================================
 * RESPONSIVE
 * ============================================================================= */
@media (max-width: 640px) {
    .section {
        padding: var(--omni-space-12) var(--omni-space-4);
    }
}

/* =============================================================================
 * THEME TOGGLE
 * ============================================================================= */
.theme-toggle {
    position: fixed;
    bottom: var(--omni-space-4);
    right: var(--omni-space-4);
    z-index: 1000;
    box-shadow: var(--omni-shadow-lg);
}

/* Show sun in light mode, moon in dark mode */
.theme-icon-dark { display: none; }
[data-color-mode="dark"] .theme-icon-light { display: none; }
[data-color-mode="dark"] .theme-icon-dark { display: block; }
