/* senggack.net - Frutiger-Aero Thinking Dashboard */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --neural-blue: #E8F0FF;
    --frosted-panel: rgba(255,255,255,0.7);
    --synapse-orange: #E67E22;
    --thought-teal: #1ABC9C;
    --neuron-purple: #8E44AD;
    --glass-edge: rgba(255,255,255,0.3);
    --deep-navy: #1A1A2E;
    --muted-slate: #7A8A9A;
}
body {
    background: var(--neural-blue);
    color: var(--deep-navy);
    font-family: 'Commissioner', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    position: relative;
}

/* Circuit Background */
.circuit-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    background-image:
        linear-gradient(90deg, var(--deep-navy) 1px, transparent 1px),
        linear-gradient(var(--deep-navy) 1px, transparent 1px);
    background-size: 80px 80px;
}

/* Hero */
#hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 1rem;
    position: relative;
    z-index: 1;
}
.widget-hero {
    max-width: 400px;
    text-align: center;
    margin: 0 auto;
    padding: 2.5rem;
}
.hero-hangul {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--deep-navy);
}
.hero-domain {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--synapse-orange);
    margin-top: 0.25rem;
}
.hero-subtitle {
    font-size: 0.95rem;
    color: var(--muted-slate);
    margin-top: 0.25rem;
}

/* Dashboard */
#dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem 3rem;
    position: relative;
    z-index: 1;
}

/* Neural Paths */
.neural-paths {
    width: 100%;
    height: 60px;
    margin-bottom: 1rem;
}
.neural-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawNeural 2s ease forwards;
}
.neural-line:nth-child(1) { animation-delay: 0.5s; }
.neural-line:nth-child(2) { animation-delay: 0.8s; }
.neural-line:nth-child(3) { animation-delay: 1.1s; }
@keyframes drawNeural {
    to { stroke-dashoffset: 0; }
}

/* Widget Grid */
.widget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.widget {
    background: var(--frosted-panel);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-edge);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}
.widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,26,46,0.06);
}
.w-2x1 { grid-column: span 2; }
.w-1x2 { grid-row: span 2; }
.widget-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--thought-teal);
    display: block;
    margin-bottom: 0.5rem;
}
.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
}
.widget-body {
    font-size: 0.9rem;
    color: var(--muted-slate);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.widget-body:last-child { margin-bottom: 0; }

/* Thought Stream Widget */
.widget-stream .stream-container {
    height: 180px;
    overflow: hidden;
    margin-top: 0.5rem;
}
.stream-scroll {
    animation: streamFlow 20s linear infinite;
}
@keyframes streamFlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}
.stream-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(26,26,46,0.06);
    font-size: 0.9rem;
    color: var(--deep-navy);
}

/* Section animation */
.section {
    opacity: 0;
    transform: translateY(15px) scale(0.98);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}
.footer-text {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--muted-slate);
}

/* Responsive */
@media (max-width: 900px) {
    .widget-grid { grid-template-columns: repeat(2, 1fr); }
    .w-2x1 { grid-column: span 2; }
}
@media (max-width: 500px) {
    .widget-grid { grid-template-columns: 1fr; }
    .w-2x1 { grid-column: span 1; }
}
