/* ============================================
   sora.garden - Minimalist Chrome Observatory
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    color: #1A1A22;
    background-color: #E8E8F0;
    overflow-x: hidden;
}

/* --- Sidebar --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 240px;
    height: 100vh;
    background-color: #1A1A22;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
}

.sidebar-logo {
    margin-bottom: 3rem;
}

.logo-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    color: #E8E8F0;
    display: block;
    text-transform: uppercase;
}

.logo-dot {
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    color: #7080A0;
    display: block;
    margin-top: 0.15rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-link {
    font-family: 'Karla', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: #C0C0D0;
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover {
    background: rgba(112, 128, 160, 0.15);
    color: #E8E8F0;
    transform: scale(1.03);
}

.nav-link.active {
    color: #B8A898;
    background: rgba(184, 168, 152, 0.1);
}

/* --- Elastic Hover --- */
.elastic-hover {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.elastic-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.elastic-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(26, 26, 34, 0.12);
}

/* --- Main Content --- */
.main-content {
    margin-left: 240px;
    min-height: 100vh;
}

/* --- Sections --- */
.section {
    padding: 5vh 4vw;
    position: relative;
}

/* --- Hero --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.generative-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-gen {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(192, 192, 208, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(112, 128, 160, 0.2) 0%, transparent 40%),
        conic-gradient(from 180deg at 50% 50%, rgba(216, 216, 224, 0.15) 0deg, transparent 60deg, rgba(192, 192, 208, 0.1) 120deg, transparent 180deg, rgba(232, 232, 240, 0.12) 240deg, transparent 300deg, rgba(216, 216, 224, 0.15) 360deg);
    background-blend-mode: overlay;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 10vw, 8rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
}

.hero-subtitle {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    color: #7080A0;
    margin-top: 0.75rem;
}

/* --- Chrome Text Effect --- */
.chrome-text {
    background: linear-gradient(180deg, #E8E8F0 0%, #7080A0 50%, #E8E8F0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Zigzag Border --- */
.zigzag-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 12px;
    background: repeating-linear-gradient(
        135deg,
        #C0C0D0 0px,
        #C0C0D0 2px,
        transparent 2px,
        transparent 8px
    );
    opacity: 0.4;
}

/* --- Chevron Divider --- */
.chevron-divider {
    width: 100%;
    height: 8px;
    margin-left: 240px;
    background: repeating-linear-gradient(
        45deg,
        transparent 0px,
        transparent 4px,
        #C0C0D0 4px,
        #C0C0D0 5px,
        transparent 5px,
        transparent 9px
    );
    opacity: 0.25;
}

/* --- Content Card --- */
.content-card {
    max-width: 720px;
    background: #D8D8E0;
    padding: 2.5rem;
    border-radius: 4px;
    position: relative;
}

/* --- Halftone Background --- */
.halftone-bg {
    background-image:
        radial-gradient(circle, #C0C0D0 0.5px, transparent 0.5px);
    background-size: 8px 8px;
    background-color: #D8D8E0;
}

/* --- Crosshatch Background --- */
.crosshatch-bg {
    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 6px,
            rgba(192, 192, 208, 0.04) 6px,
            rgba(192, 192, 208, 0.04) 7px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 6px,
            rgba(192, 192, 208, 0.04) 6px,
            rgba(192, 192, 208, 0.04) 7px
        );
    background-color: #D8D8E0;
}

/* --- Section Heading --- */
.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.section-text {
    font-family: 'Karla', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #1A1A22;
    margin-bottom: 1rem;
}

/* --- Generative Band --- */
.generative-band {
    width: 100%;
    height: 120px;
    margin-bottom: 2rem;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(112, 128, 160, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(184, 168, 152, 0.2) 0%, transparent 40%),
        conic-gradient(from 90deg at 50% 50%, rgba(192, 192, 208, 0.2) 0deg, transparent 90deg, rgba(216, 216, 224, 0.15) 180deg, transparent 270deg);
    background-blend-mode: overlay;
    border-radius: 4px;
}

/* --- Crosshatch Divider --- */
.crosshatch-divider {
    width: 100%;
    height: 6px;
    margin-left: 240px;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(192, 192, 208, 0.3) 3px, rgba(192, 192, 208, 0.3) 4px),
        repeating-linear-gradient(-45deg, transparent, transparent 3px, rgba(192, 192, 208, 0.3) 3px, rgba(192, 192, 208, 0.3) 4px);
}

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

.retro-frame {
    padding: 3rem 4rem;
    border: 2px solid #C0C0D0;
    position: relative;
}

.retro-frame::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px solid #C0C0D0;
    opacity: 0.4;
}

.closing-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.closing-text {
    font-family: 'Karla', sans-serif;
    font-size: 0.95rem;
    color: #7080A0;
    margin-top: 0.5rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        padding: 1rem;
        gap: 1rem;
    }

    .sidebar-logo { margin-bottom: 0; }

    .logo-text { font-size: 1.5rem; }

    .sidebar-nav {
        flex-direction: row;
        gap: 0.5rem;
    }

    .main-content { margin-left: 0; }

    .chevron-divider,
    .crosshatch-divider { margin-left: 0; }

    .section { padding: 3rem 1.5rem; }

    .content-card { padding: 1.5rem; }
}
