/* ============================================
   nonri.xyz — Holographic Retro-Futures Observatory
   Palette:
     Pale Ethereal:    #D0D8F0 (headings)
     Muted Blue:       #8898B8 (body text)
     Ethereal Blue:    #6080B0 (labels, scan lines)
     Holographic Pink: #E070A0 (accent)
     Holographic Green:#70E0B0 (accent)
     Deep Observatory: #0C1020 (background)
     Hex Cell:         #1A2038 (cell bg)
     Crystal Glow:     rgba(96,128,176,0.15)
   Fonts:
     Space Grotesk (display headings, labels)
     Inter (body)
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #0C1020;
    color: #8898B8;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.75;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ============================================
   Scan Line
   ============================================ */
.scan-line {
    position: fixed;
    top: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #6080B0;
    opacity: 0.2;
    z-index: 1000;
    pointer-events: none;
    animation: scanSweep 8s linear infinite;
    box-shadow: 0 0 8px rgba(96, 128, 176, 0.3), 0 0 20px rgba(96, 128, 176, 0.1);
}

@keyframes scanSweep {
    0% { top: -2px; opacity: 0; }
    5% { opacity: 0.25; }
    95% { opacity: 0.25; }
    100% { top: 100vh; opacity: 0; }
}

/* ============================================
   Parallax Background Decorations
   ============================================ */
.parallax-layer {
    position: relative;
    will-change: transform;
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hex-decoration {
    position: absolute;
    width: 120px;
    height: 104px;
    background: #1A2038;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    opacity: 0.15;
    box-shadow: inset 0 0 30px rgba(96, 128, 176, 0.15);
}

.hex-deco-1 { top: 5%; left: 3%; width: 80px; height: 69px; opacity: 0.1; }
.hex-deco-2 { top: 15%; right: 8%; width: 100px; height: 87px; opacity: 0.08; }
.hex-deco-3 { top: 35%; left: 12%; width: 60px; height: 52px; opacity: 0.12; }
.hex-deco-4 { top: 50%; right: 5%; width: 140px; height: 121px; opacity: 0.06; }
.hex-deco-5 { top: 65%; left: 2%; width: 90px; height: 78px; opacity: 0.1; }
.hex-deco-6 { top: 80%; right: 15%; width: 70px; height: 61px; opacity: 0.08; }
.hex-deco-7 { top: 25%; left: 70%; width: 50px; height: 43px; opacity: 0.1; }
.hex-deco-8 { top: 90%; left: 40%; width: 110px; height: 95px; opacity: 0.07; }

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    padding: 2rem;
}

.hero-hex-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.hex-cell--hero {
    width: 380px;
    height: 330px;
}

.hex-cell--hero:nth-child(2) {
    width: 320px;
    height: 277px;
    margin-top: -40px;
    transform: translateX(60px);
}

.hex-cell--hero:nth-child(3) {
    width: 200px;
    height: 173px;
    margin-top: -30px;
    transform: translateX(-80px);
}

/* Hero Title with holographic shimmer */
.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #D0D8F0;
    letter-spacing: 0.15em;
    text-align: center;
    position: relative;
    background: linear-gradient(
        90deg,
        #D0D8F0 0%,
        #E070A0 25%,
        #70E0B0 50%,
        #6080B0 75%,
        #D0D8F0 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holographicShimmer 6s ease-in-out infinite;
}

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

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: #8898B8;
    text-align: center;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

/* ============================================
   Hex Cell Base
   ============================================ */
.hex-cell {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: #1A2038;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.hex-cell::before {
    content: '';
    position: absolute;
    inset: 0;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    box-shadow: inset 0 0 30px rgba(96, 128, 176, 0.15);
    pointer-events: none;
    z-index: 1;
}

.hex-cell__inner {
    padding: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Hex cell glow variant */
.hex-cell--glow {
    box-shadow: inset 0 0 40px rgba(96, 128, 176, 0.2);
}

.hex-cell--subtle {
    background: rgba(26, 32, 56, 0.8);
}

.hex-cell--dim {
    background: rgba(26, 32, 56, 0.5);
}

/* Holographic prismatic border on hover */
.hex-cell--content {
    position: relative;
    overflow: visible;
}

.hex-cell--content::after {
    content: '';
    position: absolute;
    inset: -2px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(
        var(--prismatic-angle, 0deg),
        transparent 0%,
        #E070A0 20%,
        #70E0B0 40%,
        #6080B0 60%,
        #D0D8F0 80%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.hex-cell--content:hover::after {
    opacity: 0.6;
    animation: prismaticRotate 3s linear infinite;
}

@keyframes prismaticRotate {
    0% { --prismatic-angle: 0deg; }
    100% { --prismatic-angle: 360deg; }
}

/* Accent variants */
.hex-cell--accent-pink::before {
    box-shadow: inset 0 0 30px rgba(224, 112, 160, 0.15);
}

.hex-cell--accent-green::before {
    box-shadow: inset 0 0 30px rgba(112, 224, 176, 0.15);
}

/* ============================================
   Hex Grid Layout
   ============================================ */
.hex-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.hex-grid--offset {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

.hex-grid--offset .hex-cell:nth-child(n+4) {
    transform: translateX(calc(50% / 3));
}

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

.hex-cell--content {
    width: 100%;
    aspect-ratio: 1 / 0.866;
    min-height: 220px;
}

.hex-cell--wide {
    grid-column: span 2;
}

/* ============================================
   Typography
   ============================================ */
.hex-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    color: #6080B0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hex-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: #D0D8F0;
    line-height: 1.2;
}

.hex-body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.85rem, 1vw, 1rem);
    color: #8898B8;
    line-height: 1.75;
}

.hex-body--mono {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #6080B0;
}

/* ============================================
   Content Sections
   ============================================ */
.content-section {
    position: relative;
    z-index: 1;
    padding: 4rem 0;
}

.terminal-section {
    padding-bottom: 8rem;
}

/* ============================================
   Cell Materialize Animation
   ============================================ */
.hex-cell {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hex-cell--hero {
    opacity: 0;
    transform: scale(0.85);
}

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

.hex-cell--hero:nth-child(2).materialized {
    transform: scale(1) translateX(60px);
}

.hex-cell--hero:nth-child(3).materialized {
    transform: scale(1) translateX(-80px);
}

/* ============================================
   @property for prismatic angle
   ============================================ */
@property --prismatic-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .hex-grid,
    .hex-grid--offset,
    .hex-grid--compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .hex-cell--wide {
        grid-column: span 2;
    }

    .hex-grid--offset .hex-cell:nth-child(n+4) {
        transform: none;
    }
}

@media (max-width: 600px) {
    .hex-grid,
    .hex-grid--offset,
    .hex-grid--compact {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .hex-cell--hero {
        width: 280px;
        height: 243px;
    }

    .hex-cell--hero:nth-child(2) {
        width: 260px;
        height: 225px;
        transform: translateX(30px);
    }

    .hex-cell--hero:nth-child(2).materialized {
        transform: scale(1) translateX(30px);
    }

    .hex-cell--hero:nth-child(3) {
        width: 180px;
        height: 156px;
        transform: translateX(-40px);
    }

    .hex-cell--hero:nth-child(3).materialized {
        transform: scale(1) translateX(-40px);
    }

    .hex-cell--wide {
        grid-column: span 1;
    }

    .hex-cell--content {
        min-height: 180px;
    }

    .hex-cell__inner {
        padding: 1.5rem;
    }
}
