/* Landing page styles. Standalone design — does not use unified-style.css.
   Uses lobby image background + softer scanlines (vs subpages which use
   stronger scanlines without an image). */

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

:root {
    --cyan:   #00d4ff;
    --amber:  #fbbf24;
    --rose:   #f472b6;
    --sky:    #60a5fa;
    --green:  #4ade80;
    --purple: #c084fc;
    --orange: #fb923c;
    --teal:   #2dd4bf;
}

/* ── Background layers ── */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 44px 20px 72px;
    font-family: 'Noto Sans SC', 'Segoe UI', system-ui, sans-serif;
    font-weight: 700;
    background: #060d1a;
    position: relative;
    overflow-x: hidden;
    color: #e2e8f0;
}

/* lobby background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: url('/assets/img/bg/lobby_overlook_contrast.webp') center center / cover;
    opacity: 0.22;
    z-index: 0;
}

/* nebula gradients + scanline texture */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 95% -5%,  rgba(0, 212, 255, 0.13), transparent 55%),
        radial-gradient(ellipse 65% 55% at -5% 105%, rgba(110, 40, 210, 0.11), transparent 55%),
        radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(2, 6, 20, 0.78) 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.045) 3px,
            rgba(0, 0, 0, 0.045) 4px
        );
    z-index: 0;
    pointer-events: none;
}

body > * { position: relative; z-index: 1; }

/* ── Header ── */
header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeDown 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-eyebrow {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 10.5px;
    letter-spacing: 4.5px;
    color: rgba(0, 212, 255, 0.45);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.title-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.title-bracket {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 2.2em;
    color: var(--cyan);
    opacity: 0.35;
    line-height: 1;
    user-select: none;
}

#project_title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 2.9em;
    color: #ffffff;
    letter-spacing: 6px;
    text-shadow:
        0 0 28px rgba(0, 212, 255, 0.65),
        0 0 70px rgba(0, 212, 255, 0.22),
        0 2px 10px rgba(0, 0, 0, 0.95);
    line-height: 1;
}

.title-sub {
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 10.5px;
    letter-spacing: 3px;
    color: rgba(148, 163, 184, 0.5);
    text-transform: uppercase;
    margin-bottom: 22px;
}

.qq-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 30px;
    border-radius: 3px;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-top-color: rgba(0, 212, 255, 0.38);
    color: rgba(0, 212, 255, 0.75);
    font-size: 13px;
    font-weight: 500;
    font-family: 'Noto Sans SC', sans-serif;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(0, 212, 255, 0.08);
}

.qq-btn:hover {
    background: rgba(0, 212, 255, 0.13);
    border-color: rgba(0, 212, 255, 0.48);
    color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 212, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ── Layout ── */
.container {
    width: 100%;
    max-width: 1380px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Shared card ── */
.card {
    background:
        repeating-linear-gradient(90deg,  rgba(0,212,255,0.018) 0, rgba(0,212,255,0.018) 1px, transparent 1px, transparent 44px),
        repeating-linear-gradient(0deg,   rgba(0,212,255,0.018) 0, rgba(0,212,255,0.018) 1px, transparent 1px, transparent 44px),
        linear-gradient(160deg, rgba(10, 22, 46, 0.93) 0%, rgba(5, 12, 28, 0.97) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-top-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.055),
        0 4px 20px rgba(0, 0, 0, 0.55),
        0 24px 72px rgba(0, 0, 0, 0.4);
}

/* ── Info bar ── */
.info-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.info-cell {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 148px;
    position: relative;
    overflow: hidden;
}

/* Colored top accent bar */
.info-cell::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    z-index: 2;
}

#network-time::before { background: linear-gradient(to right, transparent 0%, var(--amber) 40%, var(--amber) 60%, transparent 100%); }
#galatine::before     { background: linear-gradient(to right, transparent 0%, var(--rose)  40%, var(--rose)  60%, transparent 100%); }
#buf::before          { background: linear-gradient(to right, transparent 0%, var(--sky)   40%, var(--sky)   60%, transparent 100%); }

/* Subtle corner glow matching accent */
#network-time { box-shadow: inset 0 40px 60px -30px rgba(251, 191, 36,  0.07); }
#galatine     { box-shadow: inset 0 40px 60px -30px rgba(244, 114, 182, 0.07); }
#buf          { box-shadow: inset 0 40px 60px -30px rgba(96,  165, 250, 0.07); }

.info-cell + .info-cell {
    border-left: 1px solid rgba(255, 255, 255, 0.055);
}

.info-cell-inner {
    padding: 20px 24px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.info-cell h2 {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding-bottom: 12px;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

#network-time h2 { color: rgba(251, 191, 36,  0.7); }
#galatine     h2 { color: rgba(244, 114, 182, 0.7); }
#buf          h2 { color: rgba(96,  165, 250, 0.7); }

.info-val {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1.2;
}

#swatchTime {
    font-family: 'Share Tech Mono', monospace;
    font-size: 2.7em;
    color: var(--amber);
    letter-spacing: 2px;
    text-shadow: 0 0 28px rgba(251, 191, 36, 0.5);
    transition: color 0.6s ease, text-shadow 0.6s ease;
    animation: pulse-val 2.8s ease-in-out infinite;
}

#galatine-atp {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25em;
    color: #fde68a;
    text-align: center;
}

#buf-current {
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 0.98em;
    font-weight: 700;
    color: #93c5fd;
    text-align: center;
    line-height: 1.5;
}

.info-note {
    font-size: 11px;
    font-weight: 400;
    color: rgba(148, 163, 184, 0.5);
    text-align: center;
    padding-top: 8px;
    letter-spacing: 0.3px;
    font-family: 'Share Tech Mono', monospace;
}

#buf-next { color: rgba(147, 197, 253, 0.65); }

/* ── Nav panel ── */
.nav-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.nav-col:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.055);
}

.nav-cat {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    transition: background 0.18s ease;
    position: relative;
}

.nav-col .nav-cat:last-child { border-bottom: none; }

/* Permanent subtle left bar + bright on hover */
.nav-cat::before {
    content: '';
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 2px;
    border-radius: 0 2px 2px 0;
    opacity: 0.18;
    transition: opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.nav-cat:hover {
    background: rgba(255, 255, 255, 0.018);
}

.nav-cat:hover::before {
    opacity: 1;
    top: 0;
    bottom: 0;
}

/* Category accent colors */
.nav-col:first-child .nav-cat:nth-child(1)::before  { background: var(--amber); }
.nav-col:first-child .nav-cat:nth-child(2)::before  { background: var(--green); }
.nav-col:first-child .nav-cat:nth-child(3)::before  { background: var(--purple); }
.nav-col:first-child .nav-cat:nth-child(4)::before  { background: var(--sky); }
.nav-col:last-child  .nav-cat:nth-child(1)::before  { background: var(--cyan); }
.nav-col:last-child  .nav-cat:nth-child(2)::before  { background: var(--rose); }
.nav-col:last-child  .nav-cat:nth-child(3)::before  { background: var(--orange); }

.nav-cat h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.nav-cat h3::before {
    content: '◆';
    font-size: 8px;
    opacity: 0.85;
}

.nav-col:first-child .nav-cat:nth-child(1) h3 { color: var(--amber); }
.nav-col:first-child .nav-cat:nth-child(2) h3 { color: var(--green); }
.nav-col:first-child .nav-cat:nth-child(3) h3 { color: var(--purple); }
.nav-col:first-child .nav-cat:nth-child(4) h3 { color: var(--sky); }
.nav-col:last-child  .nav-cat:nth-child(1) h3 { color: var(--cyan); }
.nav-col:last-child  .nav-cat:nth-child(2) h3 { color: var(--rose); }
.nav-col:last-child  .nav-cat:nth-child(3) h3 { color: var(--orange); }

.tag-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-links a {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12.5px;
    color: #e2e8f0;
    font-family: 'Noto Sans SC', sans-serif;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.tag-links a:hover {
    background: rgba(0, 212, 255, 0.09);
    border-color: rgba(0, 212, 255, 0.28);
    color: #cef6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.15);
}

/* ── Footer ── */
footer {
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: 'Share Tech Mono', monospace;
    font-weight: 400;
    font-size: 10.5px;
    color: rgba(51, 65, 85, 0.7);
    letter-spacing: 1.5px;
    animation: fadeUp 0.7s 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

footer::before,
footer::after {
    content: '';
    width: 56px;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(51, 65, 85, 0.4));
}

footer::after {
    background: linear-gradient(to left, transparent, rgba(51, 65, 85, 0.4));
}

/* ── Animations ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-22px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse-val {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.82; }
}

.info-bar  { animation: fadeUp 0.75s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both; }
.nav-panel { animation: fadeUp 0.75s 0.26s cubic-bezier(0.16, 1, 0.3, 1) both; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .info-bar { grid-template-columns: 1fr; }
    .info-cell + .info-cell {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.055);
    }
    .nav-panel { grid-template-columns: 1fr; }
    .nav-col:first-child {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    }
}

@media (max-width: 600px) {
    #project_title { font-size: 1.85em; letter-spacing: 3px; }
    body { padding: 24px 12px 48px; }
    .container { gap: 12px; }
    .title-bracket { font-size: 1.5em; }
    .title-sub { letter-spacing: 1.5px; }
}
