/* ================================================
   persona.quest — Muji Neon Honeycomb
   Palette:
     Near Black:    #1A1A1A
     Medium Grey:   #5A5A5A
     Neon Green:    #00E868
     Neon Blue:     #0088FF
     Zen White:     #FAFAFA
     Canvas White:  #F4F4F4
     Grid Line:     #E8E8E8
     Circuit Grey:  #E0E0E0
   Fonts:
     Inter (200-700) — headings, body
     Space Grotesk (500) — neon accent labels
   ================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.1vw, 1.05rem);
    line-height: 1.85;
    color: #5A5A5A;
    background-color: #F4F4F4;
    overflow-x: hidden;
    position: relative;
}

/* ================================================
   Tech Circuit Underlayer
   ================================================ */
#circuit-underlayer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* ================================================
   Shared Section Styles
   ================================================ */
section {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: clamp(200, calc(200 + 400 * (100vw - 320px) / 1280), 600);
    color: #1A1A1A;
    letter-spacing: -0.02em;
    margin-top: 12px;
    margin-bottom: 16px;
}

.section-desc {
    max-width: 560px;
    margin: 0 auto;
    color: #5A5A5A;
}

.neon-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #00E868;
    text-transform: uppercase;
    display: inline-block;
}

.neon-accent {
    color: #00E868;
}

.neon-blue-text {
    color: #0088FF;
}

/* ================================================
   Hero Section
   ================================================ */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.hero-content {
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 0.8s ease-out 0.3s forwards;
}

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

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: clamp(200, calc(200 + 400 * (100vw - 320px) / 1280), 600);
    color: #1A1A1A;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.neon-dot {
    color: #00E868;
}

.hero-subtitle {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    letter-spacing: 0.15em;
    color: #5A5A5A;
    margin-top: 20px;
    text-transform: uppercase;
}

/* ================================================
   Honeycomb Grid Section
   ================================================ */
#honeycomb-section {
    padding: 100px 24px 120px;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (min-width: 700px) {
    .hex-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.hex-cell {
    position: relative;
    aspect-ratio: 1 / 1.1547;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: #FAFAFA;
    border: 1px solid #E8E8E8;
    cursor: default;
    opacity: 0;
    transform: translateY(12px);
    transition: background-color 0.3s ease;
}

.hex-cell.visible {
    animation: bounceEnter 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bounceEnter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hex-cell:hover {
    background-color: #F4F4F4;
}

.hex-cell--accent {
    background-color: #FAFAFA;
}

.hex-cell--accent:hover {
    background-color: rgba(0, 232, 104, 0.04);
}

.hex-inner {
    position: absolute;
    top: 20%;
    left: 15%;
    right: 15%;
    bottom: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
}

.hex-illustration {
    width: 48px;
    height: 48px;
    margin-bottom: 4px;
}

.hex-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: #1A1A1A;
    text-transform: uppercase;
}

.hex-text {
    font-size: 0.65rem;
    line-height: 1.4;
    color: #5A5A5A;
    max-width: 140px;
}

/* ================================================
   Philosophy Section
   ================================================ */
#philosophy {
    padding: 100px 24px 120px;
    background-color: #FAFAFA;
}

.philosophy-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
    text-align: left;
}

@media (min-width: 700px) {
    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 48px;
    }
}

.philosophy-card {
    padding: 32px;
    background-color: #F4F4F4;
    border: 1px solid #E8E8E8;
    border-radius: 2px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease;
}

.philosophy-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.philosophy-card:hover {
    border-color: #00E868;
}

.card-number {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #00E868;
    margin-bottom: 16px;
}

.card-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 500;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.card-text {
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.75;
    color: #5A5A5A;
}

/* ================================================
   Metrics Section
   ================================================ */
#metrics {
    padding: 100px 24px 120px;
}

.metrics-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

@media (min-width: 700px) {
    .metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.metric-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.metric-value {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    color: #1A1A1A;
    line-height: 1;
}

.metric-label {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #5A5A5A;
    text-transform: uppercase;
}

/* ================================================
   Closing Section
   ================================================ */
#closing {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    position: relative;
}

.closing-content {
    position: relative;
    z-index: 1;
}

.closing-hex-decoration {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.closing-hex-svg {
    width: 120px;
    height: 120px;
    animation: hexRotate 20s linear infinite;
}

@keyframes hexRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.closing-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: clamp(200, calc(200 + 400 * (100vw - 320px) / 1280), 600);
    color: #1A1A1A;
    margin-bottom: 16px;
}

.closing-text {
    max-width: 480px;
    margin: 0 auto 32px;
    color: #5A5A5A;
}

.closing-label {
    color: #0088FF;
}

/* ================================================
   Responsive Adjustments
   ================================================ */
@media (max-width: 480px) {
    .hex-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hex-illustration {
        width: 32px;
        height: 32px;
    }

    .hex-text {
        display: none;
    }

    .hex-label {
        font-size: 0.6rem;
    }
}

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

/* ================================================
   Utility: Neon glow for accent hex cell
   ================================================ */
.hex-cell--accent .hex-label.neon-accent {
    text-shadow: 0 0 8px rgba(0, 232, 104, 0.3);
}
