/* blockchain.day */
/* Colors: #e8dcc8, #3a3a5a, #1a1a2e, #c8a97e, #0a0a12, #2a2a4a, #5a5a7a, #8a7a5a, #f0e8d8, #d4b88a */
/* Fonts: Cormorant Garamond, IBM Plex Mono, Space Grotesk */

*, *::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.8;
    background: #0a0a12;
    color: #e8dcc8;
    overflow-x: hidden;
}

.chain-bg {
    position: fixed;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, #3a3a5a 10%, #3a3a5a 90%, transparent);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

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

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3rem, 10vw, 7rem);
    color: #c8a97e;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeIn 2s ease forwards;
}

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

.hero-sub {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 15px;
    color: #5a5a7a;
    margin-top: 20px;
    max-width: 500px;
    opacity: 0;
    animation: fadeIn 1.5s 1s ease forwards;
}

.section {
    min-height: 80vh;
    padding: 100px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    background: #0a0a12;
}

.section-alt {
    background: #1a1a2e;
}

.block-marker {
    width: 12px;
    height: 12px;
    background: #c8a97e;
    transform: rotate(45deg);
    margin-bottom: 40px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.block-marker.visible {
    opacity: 1;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #e8dcc8;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-text {
    font-weight: 400;
    font-size: 17px;
    color: #8a7a5a;
    max-width: 600px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.section-text.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Block visual */
.block-visual, .pending-block {
    margin-top: 20px;
}

.block-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 40px;
    border: 1px solid #3a3a5a;
    background: rgba(26, 26, 46, 0.8);
    gap: 8px;
}

.block-box.pending {
    border-color: #c8a97e;
    border-style: dashed;
    animation: pulse 2s ease-in-out infinite;
}

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

.block-hash {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: #c8a97e;
}

.block-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    color: #5a5a7a;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Node grid */
.node-grid {
    display: grid;
    grid-template-columns: repeat(3, 40px);
    gap: 16px;
    margin-top: 20px;
}

.node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #3a3a5a;
    background: transparent;
    transition: background 0.5s ease, border-color 0.5s ease;
}

.node.active {
    background: rgba(200, 169, 126, 0.3);
    border-color: #c8a97e;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 40px;
    color: #3a3a5a;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    border-top: 1px solid #1a1a2e;
    position: relative;
    z-index: 1;
    background: #0a0a12;
}

@media (max-width: 768px) {
    .section { padding: 60px 24px; }
}
