/**
 * Sections CSS
 *
 * Section-specific styling for all page sections.
 *
 * @package Groupetto_2026
 */

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    position: relative;
    padding: 0 var(--space-xl);
    text-align: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: calc(var(--space-xl) + 3.5rem); /* reserve space for scroll hint */
}

@media (max-height: 500px) {
    .hero__scroll {
        display: none;
    }
}

.hero__title {
    font-size: var(--font-size-hero);
    margin-bottom: var(--space-xl);
    color: var(--color-text);
}

.hero__description {
    font-size: var(--font-size-xl);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    margin-inline: auto;
}

@media (min-width: 768px) {
    .hero__description {
        font-size: var(--font-size-2xl);
    }
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-2xl);
    background: var(--color-accent);
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-base);
}

.hero__cta:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(155, 81, 224, 0.4);
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.hero__scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(8px); opacity: 0.5; }
}

/* ==========================================================================
   Statement Section
   ========================================================================== */

.statement {
    padding: var(--space-5xl) var(--space-xl);
    display: flex;
    justify-content: center;
}

.statement.section-full {
    min-height: 50vh;
}

@media (min-width: 768px) {
    .statement.section-full {
        min-height: 100vh;
    }
}

.statement__text {
    font-size: var(--font-size-statement);
    text-align: center;
    line-height: 1.0;
    max-width: 1000px;
}

.statement__text .outline {
    color: transparent;
    -webkit-text-stroke: 1px #ffffff;
}

/* ==========================================================================
   Manifesto Section
   ========================================================================== */

.manifesto {
    padding: var(--space-4xl) var(--space-xl);
    display: flex;
    justify-content: center;
}

.manifesto.section-full {
//    min-height: 50vh;
}

@media (min-width: 768px) {
    .manifesto.section-full {
        min-height: 100vh;
    }
}

.manifesto__body {
    font-size: var(--font-size-xl);
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.manifesto__close {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .manifesto__body,
    .manifesto__close {
        font-size: var(--font-size-2xl);
    }
}

/* ==========================================================================
   Feature Sections
   ========================================================================== */

.feature {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .feature {
        grid-template-columns: 1fr 1fr;
    }
}

.feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-3xl) var(--space-xl);
    order: 1;
}

@media (min-width: 768px) {
    .feature__content {
        padding: var(--space-4xl);
    }

    .feature--reverse .feature__content {
        order: 2;
    }
}

.feature__label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.feature__title {
    font-size: var(--font-size-feature);
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.feature__description {
    font-size: var(--font-size-lg);
//    color: var(--color-text-light);
    max-width: 480px;
    line-height: 1.6;
}

.feature__visual {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 0;
}

@media (min-width: 768px) {
    .feature__visual {
        min-height: 100vh;
        order: 2;
    }

    .feature--reverse .feature__visual {
        order: 1;
    }
}

.feature__visual--purple {
    background-color: var(--color-primary);
}

.feature__visual--dark {
    background-color: var(--color-bg-elevated);
}

.feature__visual--gradient {
    background: var(--gradient-primary);
}

.feature__placeholder {
    width: 200px;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-2xl);
}

/* Image replaces placeholder: remove feature__visual--* class and placeholder div */
.feature__visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (min-width: 768px) {
    .feature__placeholder {
        width: 280px;
        height: 560px;
    }
}

/* ==========================================================================
   Stats Section
   ========================================================================== */

.stats {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
}

.stats__title {
    font-size: var(--font-size-statement);
    margin-bottom: var(--space-4xl);
}

.stats__grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

@media (min-width: 768px) {
    .stats__grid {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-4xl);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.stat-item__number {
    font-size: var(--font-size-5xl);
    line-height: 1;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .stat-item__number {
        font-size: var(--font-size-6xl);
    }
}

.stat-item__number .counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

.stat-item__label {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ==========================================================================
   Marquee / News Banner Section
   ========================================================================== */

.news-banner {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding-block: var(--space-md);
    overflow: hidden;
}

.news-banner__track {
    display: flex;
    width: max-content;
    animation: ticker 25s linear infinite;
}

.news-banner__track:hover {
    animation-play-state: paused;
}

.news-banner__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-inline: var(--space-xl);
    white-space: nowrap;
//    color: var(--color-text-light);
    font-family: var(--font-family-mono);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.news-banner__link {
//    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.news-banner__link:hover {
    color: var(--color-text);
}

/* ==========================================================================
   CTA / Download Section
   ========================================================================== */

.cta {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    background: var(--color-accent);
}

.cta__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2xl);
}

.cta__title {
    font-size: var(--font-size-statement);
}

.cta__button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-2xl);
    background-color: var(--color-text);
    color: var(--color-bg);
    border-radius: var(--border-radius-full);
    transition: all var(--transition-base);
}

.cta__button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta__button-icon {
    width: 28px;
    height: 28px;
}

.cta__button-text {
    text-align: left;
}

.cta__button-label {
    font-size: var(--font-size-xs);
    opacity: 0.7;
    display: block;
}

.cta__button-store {
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
}

.cta__subtext {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   App Preview Section
   ========================================================================== */

.app-preview {
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-4xl);
    background-color: var(--color-bg-elevated);
}

.app-preview__header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.app-preview__label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
}

.app-preview__title {
    font-size: var(--font-size-feature);
    color: var(--color-text);
}

/* Gallery: horizontal scroll on mobile, centered row on desktop */
.app-preview__gallery {
    display: flex;
    gap: var(--space-xl);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--space-xl) var(--space-xl);
}

.app-preview__gallery::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .app-preview__gallery {
        justify-content: center;
        overflow-x: visible;
        padding: 0 var(--space-2xl) var(--space-xl);
    }
}

.app-preview__phone {
    flex: 0 0 200px;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .app-preview__phone {
        flex: 0 0 240px;
    }
}

/* Screen: portrait phone ratio, ready for <img> */
.app-preview__screen {
    aspect-ratio: 9 / 19.5;
    background-color: var(--color-bg-card);
    border-radius: 2rem;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--color-border);
    overflow: hidden;
}

.app-preview__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

