/**
 * TIC Design System - Sections
 * Hero, demo sections, containers, and general layout
 */

/* ==========================================================================
   Container
   ========================================================================== */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ==========================================================================
   Main Content
   ========================================================================== */

/*
 * .site-main is intentionally minimal - no max-width or horizontal padding.
 * This allows full-bleed sections (hero, demo-section, etc.) to span the viewport.
 * Sections that need contained content use their own __inner wrappers with max-width.
 */
.site-main {
    /* No constraints - sections manage their own width */
    overflow-x: clip;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    text-align: center;
    padding: var(--space-12) var(--space-4) var(--space-8);
    max-width: 800px;
    margin: 0 auto;
}

/* Parallax Hero Variant - extends under header for seamless orbs */
.hero--parallax {
    position: relative;
    max-width: none;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Extend under header */
    margin-top: calc(-1 * var(--header-height, 80px));
    padding-top: var(--header-height, 80px);
}

.hero--parallax .hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-4);
}

.hero h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin: 0 0 var(--space-4);
    color: var(--text-primary);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-variation-settings: 'opsz' 32;
}

.hero__tagline {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin: 0 0 var(--space-8);
    line-height: var(--leading-relaxed);
}

/* Hero Badge */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.hero__badge-dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: var(--radius-full);
    animation: hero-badge-pulse 2s ease-in-out infinite;
}

@keyframes hero-badge-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: center;
}

@media (min-width: 576px) {
    .hero__actions {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-16) var(--space-8) var(--space-12);
    }

    .hero h1 {
        font-size: var(--text-5xl);
    }

    .hero__tagline {
        font-size: var(--text-xl);
    }
}

/* ==========================================================================
   Demo Section
   ========================================================================== */

.demo-section {
    padding: var(--space-8) var(--space-4) var(--space-12);
    transition: var(--transition-colors);
}

.demo-section--alt {
    background: var(--bg-tertiary);
}

@media (min-width: 768px) {
    .demo-section {
        padding: var(--space-12) var(--space-8) var(--space-16);
    }
}

.demo-section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-8);
}

.demo-section__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    margin: 0 0 var(--space-2);
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
}

.demo-section__subtitle {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin: 0;
    line-height: var(--leading-relaxed);
}

@media (min-width: 768px) {
    .demo-section__title {
        font-size: var(--text-3xl);
    }

    .demo-section__subtitle {
        font-size: var(--text-lg);
    }
}

.demo-section__frame {
    max-width: 1300px;
    margin: 0 auto;
}

.demo-section__cta {
    text-align: center;
    margin-top: var(--space-6);
}

/* ==========================================================================
   Features Grid
   ========================================================================== */

.features {
    display: grid;
    gap: var(--space-6);
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features {
        grid-template-columns: repeat(4, 1fr);
    }
}
