/* conc.quest */
/* Colors: #00e5ff, #c8d6e5, #0a0f1c, #636e72, #ff1744, #141e30, #1a2744, #2a3a5a, #e0e8f0, #0d1526 */

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

body {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    background: #0a0f1c;
    color: #c8d6e5;
    overflow-x: hidden;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background: radial-gradient(ellipse at center, #141e30 0%, #0a0f1c 70%);
    position: relative;
}

.thread-viz {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.thread-line {
    position: absolute;
    height: 2px;
    background: #00e5ff;
    opacity: 0.15;
    animation: threadMove 4s linear infinite;
}

@keyframes threadMove {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200vw); }
}

.hero-title {
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 7rem);
    color: #e0e8f0;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

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

.hero-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    color: #636e72;
    margin-top: 16px;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 0.8s ease forwards;
}

.section {
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #0a0f1c;
}

.section-dark { background: #0d1526; }

.section-title {
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #e0e8f0;
    margin-bottom: 20px;
}

.section-text {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 17px;
    color: #636e72;
    max-width: 600px;
    margin-bottom: 40px;
}

/* Thread demo */
.thread-demo {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 500px;
}

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

.thread-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #636e72;
    width: 70px;
    flex-shrink: 0;
}

.thread-bar {
    height: 8px;
    border-radius: 4px;
    animation: threadGrow 3s ease-in-out infinite;
}

.t1 .thread-bar { background: #00e5ff; animation-delay: 0s; }
.t2 .thread-bar { background: #00e5ff; opacity: 0.6; animation-delay: 0.5s; }
.t3 .thread-bar { background: #00e5ff; opacity: 0.3; animation-delay: 1s; }

@keyframes threadGrow {
    0%, 100% { width: 30%; }
    50% { width: 80%; }
}

/* Pattern grid */
.pattern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 700px;
    width: 100%;
}

.pattern-card {
    border: 1px solid #1a2744;
    padding: 24px;
    text-align: left;
    transition: border-color 0.3s ease;
}

.pattern-card:hover { border-color: #00e5ff; }
.pattern-card h3 { font-size: 18px; color: #00e5ff; margin-bottom: 8px; }
.pattern-card p { font-size: 14px; color: #636e72; }

/* Race */
.race-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border: 1px solid #ff1744;
    background: rgba(255, 23, 68, 0.08);
}

.race-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #ff1744;
    animation: pulse 1.5s ease-in-out infinite;
}

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

.race-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    color: #ff1744;
    letter-spacing: 0.1em;
}

.site-footer {
    text-align: center;
    padding: 40px;
    background: #0a0f1c;
    color: #2a3a5a;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
}

@media (max-width: 768px) {
    .section { padding: 60px 24px; }
    .pattern-grid { grid-template-columns: 1fr; }
}
