/* ===========================================
   masugomi.com - Maximalist Media Critique
   Colors: #FFD0E0, #D0C8F0, #C0F0E0, #2A2030, #FFD700, #FFFFFF
   Fonts: Commissioner, Nunito, Share Tech Mono
   =========================================== */

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.65;
    color: #2A2030;
    background: #2A2030;
    overflow-x: hidden;
    position: relative;
}

/* Grain Overlay */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.1;
}

#grain-overlay svg {
    width: 100%;
    height: 100%;
}

/* Parallax Container */
#parallax-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    will-change: transform;
}

.parallax-shape {
    position: absolute;
}

/* Star Markers */
.star-marker {
    position: absolute;
    z-index: 10;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5));
    animation: star-pulse 2s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.1s;
}

.star-marker:hover {
    animation: star-flash 0.1s ease-out;
}

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

@keyframes star-flash {
    0% { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5)) brightness(1); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 1)) brightness(3); }
    100% { filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.5)) brightness(1); }
}

/* Hero star positions */
.star-hero-1 { top: 15%; left: 28%; animation-delay: 0s; }
.star-hero-2 { top: 60%; left: 65%; animation-delay: 0.4s; }
.star-hero-3 { top: 30%; right: 20%; animation-delay: 0.8s; }
.star-hero-4 { bottom: 25%; left: 45%; animation-delay: 1.2s; }
.star-hero-5 { top: 70%; right: 30%; animation-delay: 1.6s; }

/* Dashboard star positions */
.star-dash-1 { top: 10%; right: 8%; animation-delay: 0.3s; }
.star-dash-2 { bottom: 15%; left: 12%; animation-delay: 0.7s; }
.star-dash-3 { top: 50%; left: 50%; animation-delay: 1.1s; }

/* Footer star positions */
.star-footer-1 { top: 20%; left: 15%; animation-delay: 0.2s; }
.star-footer-2 { bottom: 30%; right: 10%; animation-delay: 0.6s; }
.star-footer-3 { top: 50%; right: 35%; animation-delay: 1.0s; }

/* HUD Panels */
.hud-panel {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 16px 20px;
    position: relative;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.hud-panel:hover {
    border-color: #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.hud-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8px;
}

.hud-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FFD700;
    display: inline-block;
}

.hud-status-dot.blink {
    animation: dot-blink 1.2s ease-in-out infinite;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.hud-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #2A2030;
    opacity: 0.8;
}

.hud-stat {
    margin-bottom: 6px;
}

.hud-stat-number {
    font-family: 'Share Tech Mono', monospace;
    font-size: 24px;
    font-weight: 400;
    color: #2A2030;
    display: block;
    line-height: 1.2;
}

.hud-stat-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #2A2030;
    opacity: 0.6;
    text-transform: lowercase;
}

/* Scroll Ticker in HUD */
.hud-scroll-ticker {
    margin-top: 8px;
    overflow: hidden;
    height: 18px;
}

.ticker-text {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #FFD700;
    letter-spacing: 3px;
    animation: ticker-scroll 3s step-end infinite;
}

@keyframes ticker-scroll {
    0% { opacity: 1; }
    80% { opacity: 1; }
    90% { opacity: 0; }
    100% { opacity: 1; }
}

/* ============== HERO SECTION ============== */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD0E0 0%, #D0C8F0 50%, #C0F0E0 100%);
    z-index: 0;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.logotype {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 10vw, 140px);
    color: #2A2030;
    letter-spacing: -2px;
    line-height: 1;
    text-shadow: 0 0 40px rgba(255, 215, 0, 0.3);
    position: relative;
}

.hero-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(14px, 2vw, 22px);
    color: #2A2030;
    opacity: 0.7;
    margin-top: 12px;
    letter-spacing: 2px;
}

/* Hero HUD Panels */
#hero .hud-panel {
    position: absolute;
    z-index: 4;
    max-width: 260px;
}

.hud-hero-1 { }
.hud-hero-2 { }
.hud-hero-3 { }
.hud-hero-4 { }
.hud-hero-5 { }

/* ============== CONTENT SECTIONS ============== */
.content-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
    background: linear-gradient(180deg, #D0C8F0 0%, #FFD0E0 50%, #C0F0E0 100%);
}

#dashboard {
    background: linear-gradient(160deg, #C0F0E0 0%, #D0C8F0 40%, #FFD0E0 100%);
}

#stars {
    background: linear-gradient(200deg, #FFD0E0 0%, #C0F0E0 50%, #D0C8F0 100%);
}

#ticker-section {
    background: linear-gradient(140deg, #D0C8F0 0%, #FFD0E0 60%, #C0F0E0 100%);
}

#machine {
    background: linear-gradient(180deg, #C0F0E0 0%, #FFD0E0 50%, #D0C8F0 100%);
}

.footer-section {
    background: linear-gradient(180deg, #D0C8F0 0%, #2A2030 100%);
}

.section-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(28px, 5vw, 64px);
    color: #2A2030;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.section-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(14px, 1.5vw, 20px);
    color: #2A2030;
    opacity: 0.6;
    margin-bottom: 40px;
}

/* ============== DASHBOARD GRID ============== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.dashboard-panel {
    position: relative;
}

.dashboard-bar {
    margin-top: 10px;
    height: 4px;
    background: rgba(42, 32, 48, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    width: 0%;
    background: #D0C8F0;
    border-radius: 2px;
    transition: width 2s ease-out;
}

.bar-fill-gold {
    background: #FFD700;
}

.bar-fill-pink {
    background: #FFD0E0;
}

/* ============== STARS GRID ============== */
.stars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.star-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.star-card:hover {
    border-color: #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.star-card-image {
    height: 140px;
    background: linear-gradient(135deg, rgba(255, 208, 224, 0.4), rgba(208, 200, 240, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.star-card-placeholder svg {
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.6));
}

.star-card-info {
    padding: 14px 16px;
}

.star-card-name {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #2A2030;
    display: block;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.star-card-metric {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #2A2030;
    display: block;
    opacity: 0.7;
    margin-bottom: 3px;
}

.star-card-metric .hud-stat-number {
    display: inline;
    font-size: 11px;
}

.star-card-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #FFD700;
    display: block;
    margin-top: 8px;
    letter-spacing: 2px;
}

/* ============== HEADLINE TICKER ============== */
.headline-ticker {
    overflow: hidden;
    background: rgba(42, 32, 48, 0.9);
    padding: 14px 0;
    margin: 40px 0;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.headline-ticker-track {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    animation: ticker-move 30s linear infinite;
    width: max-content;
}

@keyframes ticker-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.headline-item {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(14px, 2vw, 20px);
    color: #FFFFFF;
    letter-spacing: 1px;
}

.headline-divider {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ============== EDITORIAL PANELS ============== */
.editorial-panels {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 700px;
    margin: 0 auto;
}

.editorial-panel {
    position: relative;
}

.editorial-text {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(14px, 1vw, 17px);
    line-height: 1.65;
    color: #2A2030;
}

/* ============== MACHINE GRID ============== */
.machine-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 40px;
}

.machine-panel {
    text-align: center;
}

.machine-step {
    padding: 10px 0;
}

.machine-number {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: 48px;
    color: #FFD700;
    display: block;
    line-height: 1;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.machine-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    color: #2A2030;
    display: block;
    margin-top: 10px;
    line-height: 1.5;
}

.machine-counter {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(42, 32, 48, 0.9);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.machine-counter .hud-label {
    color: #FFFFFF;
    opacity: 0.7;
    display: block;
    margin-bottom: 10px;
}

.machine-live-counter {
    font-family: 'Share Tech Mono', monospace;
    font-size: 64px;
    color: #FFD700;
    display: block;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* ============== FOOTER ============== */
.footer-section {
    padding: 100px 0 60px;
    text-align: center;
}

.footer-logotype {
    font-family: 'Commissioner', sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 6vw, 80px);
    color: #FFFFFF;
    letter-spacing: -1px;
    opacity: 0.3;
}

.footer-tagline {
    font-family: 'Nunito', sans-serif;
    font-size: 20px;
    color: #D0C8F0;
    opacity: 0.5;
    margin-top: 8px;
    margin-bottom: 40px;
}

.footer-meta {
    max-width: 400px;
    margin: 0 auto 40px;
}

.footer-panel .hud-label {
    color: #FFFFFF;
}

.footer-panel .hud-stat-label {
    color: #FFFFFF;
    opacity: 0.5;
}

#time-spent,
#scroll-distance,
#attention-harvested {
    color: #FFD700;
    font-family: 'Share Tech Mono', monospace;
}

.footer-disclaimer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    color: #FFFFFF;
    opacity: 0.3;
    letter-spacing: 1px;
    margin-top: 40px;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
    .machine-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stars-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    #hero .hud-panel {
        max-width: 200px;
    }
}

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

    .stars-grid {
        grid-template-columns: 1fr;
    }

    #hero .hud-panel {
        max-width: 180px;
        padding: 10px 14px;
    }

    .hud-hero-5 {
        display: none;
    }

    .logotype {
        font-size: clamp(36px, 12vw, 80px);
    }

    .machine-live-counter {
        font-size: 40px;
    }

    .editorial-panel {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .machine-grid {
        grid-template-columns: 1fr;
    }

    #hero .hud-panel {
        max-width: 150px;
        font-size: 10px;
    }

    .hud-stat-number {
        font-size: 18px;
    }

    .hud-hero-3,
    .hud-hero-4 {
        display: none;
    }
}
