/* luminous.quest — Warm holographic bento */
/* Colors: #1A0E05, #2A1608, #B89870, #FFB347, #E8A87C, #FFD700, #FF8C6B, #E8C8A0, #FF6B35 */
/* Fonts: Syne, Inter */

@property --holo-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: true;
}

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

html, body {
    height: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #1A0E05 0%, #2A1608 40%, #1A0E05 100%);
    color: #E8C8A0;
}

body {
    font-family: 'Inter', sans-serif;
    animation: holo-rotate 8s linear infinite;
    animation-play-state: paused;
}

body.active {
    animation-play-state: running;
}

@keyframes holo-rotate {
    from { --holo-angle: 0deg; }
    to { --holo-angle: 360deg; }
}

/* Foil texture overlay */
.foil-overlay {
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(255,179,71,0.04), transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(255,215,0,0.03), transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255,140,107,0.03), transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Bento Grid */
.bento-grid {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 16px;
    height: 100vh;
    max-width: 1100px;
    margin: 0 auto;
}

.cell {
    background-color: rgba(42, 22, 8, 0.5);
    border: 1px solid;
    border-image: linear-gradient(var(--holo-angle), #FF6B35, #FFB347, #FFD700, #FF8C6B) 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cell::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(var(--holo-angle), rgba(255,107,53,0.03), rgba(255,215,0,0.03), rgba(255,140,107,0.03));
    pointer-events: none;
}

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

/* Hero */
.cell-hero {
    grid-column: 1 / 3;
    grid-row: 1;
    padding: 20px;
}

.hero-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.9;
    background: linear-gradient(var(--holo-angle), #FF6B35, #FFB347, #FFD700, #FF8C6B);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: #B89870;
    text-transform: uppercase;
    margin-top: 8px;
}

/* Beacon */
.cell-beacon {
    grid-column: 3;
    grid-row: 1;
    gap: 16px;
}

.beacon-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid;
    border-color: #FFD700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: beacon-pulse 3s ease-in-out infinite;
}

.beacon-core {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700, #FFB347);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

@keyframes beacon-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255,215,0,0.2); }
    50% { box-shadow: 0 0 30px rgba(255,215,0,0.4); }
}

.cell-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    color: #B89870;
    text-transform: uppercase;
}

/* Manifest */
.cell-manifest {
    grid-column: 1;
    grid-row: 2;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    letter-spacing: 0.15em;
    background: linear-gradient(var(--holo-angle), #FFB347, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.body-copy {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    line-height: 1.8;
    color: #E8C8A0;
}

/* Spectrum */
.cell-spectrum {
    grid-column: 2 / 4;
    grid-row: 2;
    gap: 12px;
}

.spectrum-bar {
    display: flex;
    width: 100%;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.spectrum-segment {
    flex: 1;
}

/* Waypoints */
.cell-waypoint {
    gap: 8px;
}

.waypoint-num {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(var(--holo-angle), #FF6B35, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.waypoint-label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: #B89870;
}

/* Quote */
.quote-text {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    background: linear-gradient(var(--holo-angle), #E8A87C, #FFB347, #FFD700);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

/* Glow Orb */
.cell-glow {
    gap: 12px;
}

.glow-orb {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFB347, #FF8C6B);
    box-shadow: 0 0 40px rgba(255, 179, 71, 0.3), 0 0 80px rgba(255, 215, 0, 0.15);
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Data */
.cell-data {
    gap: 10px;
    align-items: stretch;
}

.data-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.data-label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    color: #B89870;
}

.data-value {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.65rem;
    color: #FFB347;
}

/* Responsive */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }

    .cell-hero {
        grid-column: 1 / 3;
    }

    .cell-beacon {
        grid-column: 1 / 3;
    }

    .cell-wide {
        grid-column: 1 / 3;
    }

    .hero-text {
        font-size: clamp(4rem, 20vw, 8rem);
    }
}
