/* genpatsu.io - Maximalist Bioluminescent Honeycomb */

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #E4E8EC;
    background: #0A1628;
    overflow-x: hidden;
}

.section {
    width: 100%;
    position: relative;
}

/* ========== BOKEH ========== */

.bokeh-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bokeh-dot {
    position: absolute;
    border-radius: 50%;
}

/* ========== REACTOR CORE HERO ========== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.hex-cluster {
    position: relative;
    width: 70vmin;
    height: 70vmin;
}

.hex {
    position: absolute;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hex-center {
    width: 40vmin;
    height: 40vmin;
    background: #122A3A;
    border: 1px solid rgba(74, 232, 140, 0.2);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.core-pulse {
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 8px rgba(74, 232, 140, 0.2); }
    50% { box-shadow: 0 0 16px rgba(106, 200, 232, 0.4); }
}

.hex-sat {
    width: 18vmin;
    height: 18vmin;
    background: #122A3A;
    opacity: 0;
    transition: opacity 400ms ease;
}

.hex-sat.visible { opacity: 1; }

.sat-1 { top: 2%; left: 50%; transform: translateX(-50%); }
.sat-2 { top: 18%; right: 5%; }
.sat-3 { bottom: 18%; right: 5%; }
.sat-4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.sat-5 { bottom: 18%; left: 5%; }
.sat-6 { top: 18%; left: 5%; }

.hex-content {
    padding: 1rem;
    z-index: 1;
}

.hero-title {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    letter-spacing: 0.02em;
    color: #E4E8EC;
    opacity: 0;
    transition: opacity 500ms ease;
}

.hero-title.visible { opacity: 1; }

.hero-subtitle {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
    color: #7A8898;
    margin-top: 0.5rem;
}

.sat-label {
    font-family: 'Overpass Mono', monospace;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: #7A8898;
    display: block;
    margin-bottom: 0.25rem;
}

.sat-data {
    font-family: 'Overpass Mono', monospace;
    font-weight: 600;
    font-size: 0.85rem;
    color: #4AE88C;
    display: block;
}

/* ========== HONEYCOMB GRID ========== */

.honeycomb-section {
    padding: 4rem 2rem;
    z-index: 1;
    position: relative;
}

.hex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 900px;
    margin: 0 auto;
}

.hex-cell {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #122A3A;
    aspect-ratio: 1 / 1.15;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 600ms cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 400ms ease;
}

.hex-cell.visible {
    transform: scale(1);
    opacity: 1;
}

.hex-cell:hover {
    box-shadow: 0 0 20px rgba(74, 232, 140, 0.3);
}

.risk-low { border: 1px solid rgba(74, 232, 140, 0.2); }
.risk-mid { border: 1px solid rgba(232, 168, 50, 0.3); }
.risk-high { border: 1px solid rgba(232, 72, 80, 0.3); }

.cell-title {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: 1.1rem;
    color: #E4E8EC;
    margin-bottom: 0.5rem;
}

.cell-body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #7A8898;
}

/* ========== BLOOM INTERLUDE ========== */

.bloom-section {
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: auto;
}

.bloom-svg {
    width: 100%;
    max-width: 600px;
    height: 300px;
}

.bloom-stem {
    transition: stroke-dashoffset 3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.bloom-stem.growing {
    stroke-dashoffset: 0;
}

.bloom-flower {
    transition: opacity 400ms ease, transform 400ms ease;
    transform-origin: center;
}

.bloom-flower.bloomed {
    opacity: 1;
}

/* ========== DEEP WATER FOOTER ========== */

.footer {
    background: #0A1628;
    padding: 4rem 2rem;
    position: relative;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-bokeh {
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.footer-brand {
    font-family: 'Righteous', cursive;
    font-weight: 400;
    font-size: 1.2rem;
    color: #E4E8EC;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: #7A8898;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 768px) {
    .hex-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hex-cluster {
        width: 90vmin;
        height: 90vmin;
    }

    .hex-sat {
        width: 15vmin;
        height: 15vmin;
    }
}
