/* senggack.net — glassmorphism frosted saas */

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

/* ── Base ── */
body {
    background: linear-gradient(135deg, #E8E0F8 0%, #D0E0F8 50%, #E8E0F8 100%);
    background-attachment: fixed;
    color: #475569;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Frost Panels ── */
.frost-panel {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 2rem;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.frost-panel:hover {
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.08);
}

/* ── Section Headings ── */
.section-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    color: #1E293B;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.section-sub {
    text-align: center;
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Gradient Divider ── */
.gradient-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.2), transparent);
    max-width: 400px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════
   HERO — The Signal
   ══════════════════════════════════════════ */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 4rem;
    min-height: 60vh;
}

.hero-panel {
    max-width: 560px;
    width: 100%;
    text-align: center;
    padding: 3rem 2.5rem;
}

.hero-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    color: #A78BFA;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.hero-hangul {
    font-size: 0.85rem;
    color: #A78BFA;
}

.headline {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3rem);
    color: #1E293B;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.hero-sub {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-filled {
    display: inline-block;
    background: #7C3AED;
    color: #FFFFFF;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-filled:hover {
    background: #6D28D9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-outline {
    display: inline-block;
    border: 1.5px solid #7C3AED;
    color: #7C3AED;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.08);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════
   THOUGHT MAP — The Map
   ══════════════════════════════════════════ */
.thought-map {
    max-width: 740px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.map-container {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin-top: 1rem;
}

.map-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.node-line {
    stroke: rgba(167, 139, 250, 0.3);
    stroke-width: 1.5;
    transition: stroke 0.4s ease, stroke-width 0.4s ease;
}

.thought-node {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.thought-node:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
    border-color: rgba(167, 139, 250, 0.5);
}

.thought-node.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: #A78BFA;
    box-shadow: 0 0 24px rgba(124, 58, 237, 0.2);
}

.node-label {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 0.7rem;
    color: #1E293B;
    text-align: center;
    line-height: 1.2;
    pointer-events: none;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(167, 139, 250, 0.3);
    animation: pulse-ring 3s ease-out infinite;
    pointer-events: none;
    opacity: 0;
}

.thought-node:hover .node-pulse,
.thought-node.active .node-pulse {
    opacity: 1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════
   ACTIVE THREADS — The Exchange
   ══════════════════════════════════════════ */
.threads {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.thread-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.thread-card {
    padding: 1.75rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.thread-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.thread-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1E293B;
    margin-bottom: 0.6rem;
    line-height: 1.35;
}

.thread-excerpt {
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.thread-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-badge {
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.75rem;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
}

.thread-time {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: 0.75rem;
    color: #A78BFA;
}

/* ══════════════════════════════════════════
   NETWORK STATS — The Pulse
   ══════════════════════════════════════════ */
.stats {
    max-width: 740px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-panel {
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease;
}

.stat-panel:hover {
    transform: translateY(-3px);
}

.stat-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #1E293B;
    margin-bottom: 0.35rem;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
}

/* ══════════════════════════════════════════
   FOOTER — The Pulse (continued)
   ══════════════════════════════════════════ */
.footer {
    max-width: 740px;
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
    text-align: center;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1E293B;
    margin-bottom: 1.25rem;
    margin-top: 2rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
}

.flink {
    font-size: 0.85rem;
    color: #7C3AED;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.flink:hover {
    color: #6D28D9;
}

.footer-mark {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.4rem;
    color: #A78BFA;
    margin-bottom: 0.75rem;
    opacity: 0.7;
}

.footer-copy {
    font-size: 0.72rem;
    color: #A78BFA;
}

/* ══════════════════════════════════════════
   ANIMATIONS — Scroll reveal
   ══════════════════════════════════════════ */
.hero,
.thought-map,
.threads,
.stats,
.footer {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero.visible,
.thought-map.visible,
.threads.visible,
.stats.visible,
.footer.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger thread cards */
.thread-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.threads.visible .thread-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.threads.visible .thread-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.threads.visible .thread-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Stagger stat panels */
.stat-panel {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stats.visible .stat-panel:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.stats.visible .stat-panel:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

.stats.visible .stat-panel:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

/* Node stagger */
.thought-node {
    opacity: 0;
    transition: opacity 0.5s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.thought-map.visible .thought-node[data-node="0"] { opacity: 1; transition-delay: 0.15s; }
.thought-map.visible .thought-node[data-node="1"] { opacity: 1; transition-delay: 0.3s; }
.thought-map.visible .thought-node[data-node="2"] { opacity: 1; transition-delay: 0.45s; }
.thought-map.visible .thought-node[data-node="3"] { opacity: 1; transition-delay: 0.6s; }
.thought-map.visible .thought-node[data-node="4"] { opacity: 1; transition-delay: 0.75s; }
.thought-map.visible .thought-node[data-node="5"] { opacity: 1; transition-delay: 0.9s; }

/* SVG line animation */
.node-line {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1.2s ease, stroke 0.4s ease, stroke-width 0.4s ease;
}

.thought-map.visible .node-line {
    stroke-dashoffset: 0;
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 768px) {
    .thread-grid {
        grid-template-columns: 1fr;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 4rem 1.5rem 3rem;
        min-height: auto;
    }
    .hero-panel {
        padding: 2rem 1.5rem;
    }
    .headline {
        font-size: 1.8rem;
    }
    .section-heading {
        font-size: 1.6rem;
    }
    .thought-map,
    .threads,
    .stats {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    .btn-filled,
    .btn-outline {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
    .thought-node {
        width: 64px;
        height: 64px;
    }
    .node-label {
        font-size: 0.6rem;
    }
    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}
