/* gamelicensor.com - Scandinavian Dashboard Design */
/* Palette */
:root {
    --bg-page: #f0f0f3;
    --bg-panel: #fafafe;
    --bg-dark: #2a2a30;
    --text-primary: #3a3a42;
    --text-secondary: #7a7a88;
    --border-muted: #d8d8de;
    --accent-teal: #3a8f85;
    --accent-amber: #c9a43e;
    --accent-rose: #a85c5c;
    --accent-lavender: #8b7fc7;
    --sidebar-dark: #1e1e24;
    --terminal-green: #6fca8d;
    --mono-dark: #a0a0ae;
    --label-color: #8a8a96;
    --sidebar-width: 64px;
    --sidebar-expanded: 240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.72;
    color: var(--text-primary);
    background: var(--bg-page);
    overflow-x: hidden;
}

/* Sidebar Rail */
.sidebar-rail {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-dark);
    z-index: 100;
    transition: width 300ms cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.sidebar-rail:hover {
    width: var(--sidebar-expanded);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 32px;
    gap: 8px;
}

.sidebar-glyph {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    color: var(--text-secondary);
    transition: color 200ms ease;
    text-decoration: none;
}

.sidebar-glyph:hover {
    color: #fafafe;
}

.sidebar-glyph.active {
    color: #fafafe;
}

.glyph-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.glyph-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: inherit;
    margin-left: 16px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 200ms ease 100ms;
}

.sidebar-rail:hover .glyph-label {
    opacity: 1;
}

.active-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    border-radius: 0 3px 3px 0;
    background: var(--accent-teal);
    opacity: 0;
    transition: opacity 200ms ease;
}

.sidebar-glyph.active .active-indicator {
    opacity: 1;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Signal Header */
.signal-header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    position: relative;
    overflow: hidden;
}

.signal-header-inner {
    text-align: center;
    position: relative;
}

.wordmark {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    display: inline-block;
}

.wordmark-letter {
    display: inline-block;
    opacity: 0;
    transform: translateX(8px);
    animation: letterReveal 0.4s ease forwards;
    animation-delay: calc(var(--delay) * 0.08s + 0.3s);
}

.wordmark-dot {
    color: var(--accent-teal);
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateX(8px);
    }
    60% {
        opacity: 1;
        transform: translateX(-2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.signal-tagline {
    font-family: 'Nunito Sans', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    margin-top: 20px;
    font-weight: 400;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 1.8s;
}

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

/* Glitch Band System */
.glitch-band {
    position: relative;
    overflow: hidden;
}

.glitch-band::before,
.glitch-band::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-lavender);
    opacity: 0;
    animation: glitchScan 8s infinite;
}

.glitch-band::before {
    top: 30%;
    animation-delay: 0s;
}

.glitch-band::after {
    top: 70%;
    background: var(--accent-teal);
    animation-delay: 0.15s;
}

@keyframes glitchScan {
    0%, 75%, 100% {
        opacity: 0;
        transform: translateX(0);
        clip-path: inset(0 0 0 0);
    }
    76% {
        opacity: 0.7;
        transform: translateX(-8px);
        clip-path: inset(0 0 0 0);
    }
    78% {
        opacity: 0.5;
        transform: translateX(4px);
    }
    80% {
        opacity: 0.8;
        transform: translateX(-3px);
    }
    82% {
        opacity: 0;
        transform: translateX(0);
    }
}

.glitch-band--hero {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    pointer-events: none;
}

.glitch-band--hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
}

/* Glitch Interlude */
.glitch-interlude {
    height: 80px;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.glitch-band--interlude {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glitch-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--label-color);
    letter-spacing: 0.1em;
    opacity: 0.4;
    animation: glitchTextFlicker 8s infinite;
}

@keyframes glitchTextFlicker {
    0%, 75%, 100% {
        opacity: 0.4;
        transform: translateX(0);
    }
    76% {
        opacity: 0.8;
        transform: translateX(-4px);
        color: var(--accent-lavender);
    }
    78% {
        opacity: 0.6;
        transform: translateX(2px);
        color: var(--accent-teal);
    }
    80% {
        opacity: 0.9;
        transform: translateX(-1px);
        color: var(--accent-rose);
    }
    82% {
        opacity: 0.4;
        transform: translateX(0);
        color: var(--label-color);
    }
}

/* Section Label */
.section-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--label-color);
    padding: 40px 40px 16px;
}

/* Dashboard Section */
.dashboard-section {
    padding: 0 40px 60px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}

/* Panels */
.panel {
    background: var(--bg-panel);
    border-radius: 16px;
    border: 1px solid var(--border-muted);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    padding: 32px;
    max-height: 400px;
    overflow: hidden;
}

.panel--6col { grid-column: span 6; }
.panel--4col { grid-column: span 4; }
.panel--3col { grid-column: span 3; }
.panel--2col { grid-column: span 2; }

.panel-label {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--label-color);
    margin-bottom: 12px;
}

.panel-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.panel-body {
    font-size: clamp(0.9rem, 1vw, 1rem);
    line-height: 1.72;
    color: var(--text-secondary);
}

.panel-list {
    list-style: none;
    padding: 0;
}

.panel-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-muted);
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 16px;
}

.panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 2px;
    background: var(--accent-teal);
}

.panel-list li:last-child {
    border-bottom: none;
}

/* Panel Shapes (license overlap) */
.panel-shapes {
    display: flex;
    gap: 0;
    margin-top: 20px;
    position: relative;
    height: 60px;
}

.shape--rect {
    width: 80px;
    height: 50px;
    border-radius: 10px;
    opacity: 0.5;
    mix-blend-mode: multiply;
}

.shape--teal { background: var(--accent-teal); margin-right: -30px; }
.shape--amber { background: var(--accent-amber); margin-right: -30px; z-index: 1; }
.shape--rose { background: var(--accent-rose); z-index: 2; }

/* Bar Chart */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    width: 120px;
    flex-shrink: 0;
    text-align: right;
}

.bar-track {
    flex: 1;
    height: 24px;
    background: var(--bg-page);
    border-radius: 12px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    width: var(--bar-width);
    transition: width 1s ease;
}

.bar-fill--teal { background: var(--accent-teal); }
.bar-fill--lavender { background: var(--accent-lavender); }
.bar-fill--amber { background: var(--accent-amber); }
.bar-fill--rose { background: var(--accent-rose); }

.bar-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #fff;
    font-weight: 500;
}

/* Donut Chart */
.donut-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.donut-chart {
    width: 120px;
    height: 120px;
}

.donut-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: inline-block;
}

.legend-dot--teal { background: var(--accent-teal); }
.legend-dot--amber { background: var(--accent-amber); }
.legend-dot--rose { background: var(--accent-rose); }

/* Bezier Connector */
.bezier-connector {
    margin-top: 16px;
}

.bezier-svg {
    width: 100%;
    max-width: 180px;
}

.bezier-path {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.5s ease;
}

.bezier-path.animated {
    stroke-dashoffset: 0;
}

/* Reveal Panels */
.reveal-panel {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 500ms ease-out, transform 500ms ease-out;
}

.reveal-panel.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Cultural Lens Sections */
.cultural-lens {
    padding: 80px 40px;
}

.cultural-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.cultural-inner--reverse {
    direction: rtl;
}

.cultural-inner--reverse > * {
    direction: ltr;
}

.cultural-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cultural-svg {
    width: 100%;
    max-width: 280px;
}

.cultural-accent-bar {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    margin-bottom: 20px;
}

.cultural-accent-bar--amber { background: var(--accent-amber); }
.cultural-accent-bar--teal { background: var(--accent-teal); }
.cultural-accent-bar--rose { background: var(--accent-rose); }

.cultural-title {
    font-family: 'Nunito', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cultural-body {
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.72;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.cultural-body:last-child {
    margin-bottom: 0;
}

/* Footer Terminal */
.footer-terminal {
    background: var(--bg-dark);
    padding: 80px 40px;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.terminal-inner {
    width: 100%;
    max-width: 600px;
    background: #16161c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.terminal-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #222228;
    gap: 12px;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot--red { background: var(--accent-rose); }
.terminal-dot--yellow { background: var(--accent-amber); }
.terminal-dot--green { background: var(--terminal-green); }

.terminal-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #a0a0ae;
}

.terminal-body {
    padding: 24px;
    min-height: 220px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--terminal-green);
    line-height: 1.8;
}

.terminal-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.terminal-cursor {
    display: inline-block;
    animation: blink 0.8s step-end infinite;
    color: var(--terminal-green);
}

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

.footer-info {
    margin-top: 60px;
    text-align: center;
}

.footer-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    .panel--6col { grid-column: span 6; }
    .panel--4col { grid-column: span 6; }
}

@media (max-width: 768px) {
    .sidebar-rail {
        display: none;
    }
    .main-content {
        margin-left: 0;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }
    .panel--6col,
    .panel--4col,
    .panel--3col,
    .panel--2col {
        grid-column: span 1;
    }
    .dashboard-section {
        padding: 0 20px 40px;
    }
    .section-label {
        padding: 30px 20px 12px;
    }
    .cultural-inner,
    .cultural-inner--reverse {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .cultural-inner--reverse {
        direction: ltr;
    }
    .cultural-lens {
        padding: 60px 20px;
    }
    .footer-terminal {
        padding: 60px 20px;
    }
}
