/* turingtest.club - Block Puzzle Laboratory */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --coral: #F06058;
    --dark-ink: #1A1A28;
    --blue-mid: #4A68A8;
    --pure-white: #FFFFFF;
    --cool-white: #F8F8FC;
    --yellow: #F8C840;
    --bright-blue: #4888E8;
    --grid-line: #E0E0E8;
    --body-text: #3A3A48;
    --success-green: #48C878;
}

body {
    background: var(--cool-white);
    color: var(--dark-ink);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.75;
    font-weight: 400;
    overflow-x: hidden;
}

/* Grid Background */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(224,224,232,0.05) 59px, rgba(224,224,232,0.05) 60px),
        repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(224,224,232,0.05) 59px, rgba(224,224,232,0.05) 60px);
}

/* Menu */
.menu-icon {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 100;
    width: 32px;
    height: 32px;
    background: var(--pure-white);
    border: 1px solid var(--grid-line);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0;
}
.menu-icon span {
    width: 16px;
    height: 2px;
    background: var(--dark-ink);
    border-radius: 1px;
    transition: transform 0.3s ease;
}
.menu-icon.active span:nth-child(1) { transform: rotate(45deg) translate(3px, 4px); }
.menu-icon.active span:nth-child(2) { opacity: 0; }
.menu-icon.active span:nth-child(3) { transform: rotate(-45deg) translate(3px, -4px); }

.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(26, 26, 40, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.menu-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.menu-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: var(--pure-white);
    text-decoration: none;
    transition: color 0.2s ease;
}
.menu-link:hover {
    color: var(--coral);
}

/* Content Sections */
.content-section {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 2rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}
.section-text { flex: 1; }

/* Drop Title Animation */
.drop-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 400;
    color: var(--dark-ink);
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5em;
}
.drop-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(-40px);
    animation: dropIn 0.4s ease forwards;
}
.drop-word:nth-child(2) { animation-delay: 0.2s; }
.drop-word:nth-child(3) { animation-delay: 0.4s; }
@keyframes dropIn {
    to { opacity: 1; transform: translateY(0); }
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--dark-ink);
    margin-bottom: 1rem;
}
.section-body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--body-text);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.code-note {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--blue-mid);
    letter-spacing: 0.04em;
}

/* Isometric Cubes */
.iso-blocks {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    padding-top: 1rem;
}
.iso-cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform: rotateX(55deg) rotateZ(-45deg);
    transform-style: preserve-3d;
    opacity: 0;
    animation: blockPop 0.3s ease forwards;
}
.iso-cube:nth-child(2) { animation-delay: 0.1s; }
.iso-cube:nth-child(3) { animation-delay: 0.2s; }
.iso-cube:nth-child(4) { animation-delay: 0.3s; }
.iso-cube.small { width: 40px; height: 40px; }

.cube-red { background: var(--coral); box-shadow: 8px 8px 0 rgba(240,96,88,0.5), 0 8px 0 rgba(240,96,88,0.3); }
.cube-blue { background: var(--bright-blue); box-shadow: 8px 8px 0 rgba(72,136,232,0.5), 0 8px 0 rgba(72,136,232,0.3); }
.cube-yellow { background: var(--yellow); box-shadow: 8px 8px 0 rgba(248,200,64,0.5), 0 8px 0 rgba(248,200,64,0.3); }
@keyframes blockPop {
    from { opacity: 0; transform: rotateX(55deg) rotateZ(-45deg) scale(0); }
    to { opacity: 1; transform: rotateX(55deg) rotateZ(-45deg) scale(1); }
}

/* Test Diagram */
.test-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--pure-white);
    border: 1px solid var(--grid-line);
    border-radius: 8px;
}
.diagram-node {
    text-align: center;
}
.node-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--blue-mid);
    display: block;
    margin-bottom: 0.5rem;
}
.node-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.25rem;
    color: var(--pure-white);
}
.judge .node-icon { background: var(--yellow); color: var(--dark-ink); }
.human .node-icon { background: var(--bright-blue); }
.machine .node-icon { background: var(--coral); }

.diagram-lines {
    display: flex;
    gap: 4rem;
}
.diagram-line {
    width: 2px;
    height: 30px;
    background: var(--grid-line);
}
.diagram-pair {
    display: flex;
    gap: 3rem;
}

/* Chat Bubbles */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.chat-bubble {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    max-width: 80%;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-bubble.visible {
    opacity: 1;
    transform: translateY(0);
}
.bubble-human {
    background: rgba(72, 136, 232, 0.1);
    border: 1px solid rgba(72, 136, 232, 0.2);
    align-self: flex-start;
}
.bubble-machine {
    background: rgba(240, 96, 88, 0.1);
    border: 1px solid rgba(240, 96, 88, 0.2);
    align-self: flex-end;
}
.bubble-judge {
    background: rgba(248, 200, 64, 0.1);
    border: 1px solid rgba(248, 200, 64, 0.2);
    align-self: center;
}
.chat-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.7rem;
    color: var(--blue-mid);
    display: block;
    margin-bottom: 0.25rem;
}
.chat-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.875rem;
    color: var(--body-text);
    line-height: 1.6;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 2rem;
}
.footer-text {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--blue-mid);
    letter-spacing: 0.04em;
}

/* Responsive */
@media (max-width: 768px) {
    .content-section { flex-direction: column; }
    .iso-blocks { flex-direction: row; }
    .chat-bubble { max-width: 95%; }
}
