/* ============================================
   soning.stream - Glitch Broadcast Station
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    color: #F0F0F0;
    background-color: #0A0A0A;
    overflow-x: hidden;
}

/* --- Sections (full-bleed) --- */
.section {
    width: 100vw;
    padding: 2rem;
    position: relative;
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.nature-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 700;
    color: #F0F0F0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
    text-align: center;
    line-height: 1;
}

/* --- Glitch Effect --- */
.glitch-title {
    position: relative;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    text-align: center;
}

.glitch-title::before {
    color: #FFFFFF;
    z-index: -1;
}

.glitch-title::after {
    color: #6A6A6A;
    z-index: -1;
}

@keyframes glitchBurst1 {
    0% { clip-path: inset(20% 0 60% 0); opacity: 0.8; transform: translateX(-2px); }
    33% { clip-path: inset(50% 0 20% 0); opacity: 0.8; transform: translateX(2px); }
    66% { clip-path: inset(10% 0 70% 0); opacity: 0.8; transform: translateX(-1px); }
    100% { clip-path: inset(0); opacity: 0; transform: translateX(0); }
}

@keyframes glitchBurst2 {
    0% { clip-path: inset(60% 0 10% 0); opacity: 0.6; transform: translateX(2px); }
    33% { clip-path: inset(30% 0 40% 0); opacity: 0.6; transform: translateX(-2px); }
    66% { clip-path: inset(70% 0 5% 0); opacity: 0.6; transform: translateX(1px); }
    100% { clip-path: inset(0); opacity: 0; transform: translateX(0); }
}

.glitch-title.glitching::before {
    animation: glitchBurst1 50ms steps(3) forwards;
}

.glitch-title.glitching::after {
    animation: glitchBurst2 50ms steps(3) forwards;
}

/* --- Icon Section --- */
.icon-section {
    background-color: #1A1A1A;
    padding: 4rem 2rem;
}

.icon-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 100%;
    gap: 1rem;
    flex-wrap: wrap;
}

.icon-row-small {
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
}

.icon {
    width: 80px;
    height: 80px;
}

.icon-small {
    width: 50px;
    height: 50px;
}

.icon-label {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    color: #6A6A6A;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- Hover Lift --- */
.hover-lift {
    transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
    cursor: default;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* --- Glitch Band --- */
.glitch-band {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent 10%, #C0C0C0 30%, transparent 50%, #F0F0F0 70%, transparent 90%);
}

/* --- Text Section --- */
.text-section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.branch-overlay {
    opacity: 0.6;
}

.section-heading {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    color: #F0F0F0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.section-text {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #C0C0C0;
    max-width: 700px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

/* --- Glitch Separator --- */
.glitch-separator {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6A6A6A 20%, transparent 40%, #C0C0C0 60%, transparent 80%);
    margin: 1.5rem 0;
}

/* --- Closing Section --- */
.closing-section {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 2rem;
}

.leaf-convergence {
    width: 200px;
    height: 60px;
    margin-bottom: 2rem;
}

.closing-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: #F0F0F0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .icon-row {
        justify-content: center;
    }

    .icon-container {
        padding: 1rem;
    }

    .icon {
        width: 60px;
        height: 60px;
    }

    .section {
        padding: 1.5rem;
    }

    .text-section {
        padding: 4rem 1.5rem;
    }
}
