/* nonri.org - Aurora-Gradient Premium Aesthetic */
/* Palette: #6040B0 purple, #30A090 teal, #40C870 green, #0A0818 night, #F0EEF0 white, #C06090 pink, #A0A0B0 gray */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: clamp(15px, 1vw, 17px);
    line-height: 1.8;
    color: #F0EEF0;
    background-color: #0A0818;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: 0.01em;
}

h1 {
    font-size: clamp(28px, 3.5vw, 52px);
}

h2 {
    font-size: clamp(24px, 2.8vw, 42px);
    margin-bottom: 24px;
}

.label-text {
    font-weight: 300;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #A0A0B0;
    display: block;
    margin-bottom: 12px;
}

.content-column {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Monogram Navigation */
#monogram-nav {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 1000;
}

#monogram-btn {
    background: rgba(10, 8, 24, 0.6);
    border: 1px solid rgba(240, 238, 240, 0.15);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#monogram-btn:hover {
    border-color: rgba(96, 64, 176, 0.6);
    box-shadow: 0 0 20px rgba(96, 64, 176, 0.3);
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 8, 24, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    gap: 28px;
    text-align: center;
}

.nav-link {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 3vw, 40px);
    letter-spacing: 0.01em;
    color: #F0EEF0;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-link:hover {
    color: #30A090;
    text-shadow: 0 0 30px rgba(48, 160, 144, 0.4);
}

/* Aurora Entrance */
.aurora-entrance {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.aurora-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        #6040B0 0%,
        #30A090 25%,
        #40C870 50%,
        #6040B0 75%,
        #30A090 100%
    );
    background-size: 400% 400%;
    animation: auroraShift 20s ease infinite;
    opacity: 0.35;
}

@keyframes auroraShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
    100% { background-position: 0% 50%; }
}

.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
}

.star-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #F0EEF0;
    border-radius: 50%;
    opacity: 0;
    animation: starFadeIn 0.6s ease forwards;
    box-shadow: 0 0 4px rgba(240, 238, 240, 0.6);
}

@keyframes starFadeIn {
    to { opacity: 1; }
}

.entrance-content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: contentFadeIn 0.8s ease 0.3s forwards;
}

@keyframes contentFadeIn {
    to { opacity: 1; }
}

.domain-title {
    font-size: clamp(36px, 5vw, 72px);
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #F0EEF0;
    text-shadow: 0 0 40px rgba(96, 64, 176, 0.4), 0 0 80px rgba(48, 160, 144, 0.2);
    margin-bottom: 16px;
}

.entrance-tagline {
    margin-bottom: 0;
}

.nature-silhouettes {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    animation: silhouetteRise 0.6s ease 0.5s forwards;
}

@keyframes silhouetteRise {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nature-svg {
    display: block;
    width: 100%;
    height: 200px;
}

/* Mission Panels Section */
.mission-section {
    padding: 120px 0;
    position: relative;
}

.mission-panel {
    background: rgba(240, 238, 240, 0.03);
    border-left: 2px solid transparent;
    border-image: linear-gradient(180deg, #6040B0, #30A090, #40C870) 1;
    padding: 48px 40px;
    margin-bottom: 80px;
    opacity: 0.5;
    transition: opacity 0.4s ease, box-shadow 0.3s ease;
    position: relative;
}

.mission-panel::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, #6040B0, #30A090, #40C870, #C06090, #6040B0);
    background-size: 100% 300%;
    animation: borderAuroraShift 8s linear infinite;
}

@keyframes borderAuroraShift {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 100%; }
}

.mission-panel.visible {
    opacity: 1;
}

.mission-panel:hover {
    box-shadow: 0 0 40px rgba(96, 64, 176, 0.15), 0 0 80px rgba(48, 160, 144, 0.08);
}

.mission-panel:last-child {
    margin-bottom: 0;
}

.mission-panel p {
    color: #A0A0B0;
    max-width: 600px;
}

/* Statistics */
.stats-row {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-number {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 4vw, 64px);
    color: #F0EEF0;
    line-height: 1.1;
    transition: transform 0.3s ease;
    display: inline;
}

.stat-suffix {
    font-family: 'Jost', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 4vw, 64px);
    color: #F0EEF0;
    line-height: 1.1;
    display: inline;
}

.stat-item:hover .stat-number {
    transform: scale(1.05);
}

.stat-item .label-text {
    margin-bottom: 0;
    margin-top: 4px;
}

/* Nature Story Sections */
.nature-story {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.nature-story-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.nature-landscape {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nature-story-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    padding-bottom: 80px;
}

.nature-story-content h2 {
    margin-top: 8px;
}

.nature-story-content p {
    color: #A0A0B0;
    margin-bottom: 20px;
}

.nature-story-content p:last-child {
    margin-bottom: 0;
}

.nature-story:hover .nature-landscape {
    filter: drop-shadow(0 0 30px rgba(48, 160, 144, 0.1));
}

/* Constellation Footer */
.constellation-footer {
    position: relative;
    padding: 120px 0 40px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.constellation-bg {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.constellation-svg {
    width: 100%;
    height: auto;
}

.constellation-star {
    transition: r 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 0px rgba(240, 238, 240, 0));
}

.constellation-star:hover {
    r: 5;
    filter: drop-shadow(0 0 8px rgba(240, 238, 240, 0.8));
}

#constellation-lines {
    transition: opacity 0.8s ease;
}

#constellation-lines.visible {
    opacity: 0.4;
}

#constellation-labels {
    transition: opacity 0.6s ease;
}

#constellation-labels.visible {
    opacity: 1;
}

.constellation-content {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.constellation-content p {
    color: #A0A0B0;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(240, 238, 240, 0.08);
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.footer-bottom .label-text {
    margin-bottom: 0;
    color: #A0A0B0;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-row {
        gap: 32px;
    }

    .mission-panel {
        padding: 32px 24px;
        margin-bottom: 48px;
    }

    #monogram-nav {
        top: 16px;
        left: 16px;
    }

    .constellation-bg {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .stats-row {
        flex-direction: column;
        gap: 24px;
    }
}
