* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Work Sans', sans-serif; background: #FBF7F0; color: #5C4E3E; line-height: 1.75; font-size: 15px; }
h1, h2 { font-family: 'Josefin Sans', sans-serif; font-weight: 200; letter-spacing: 0.12em; text-transform: uppercase; color: #3A2E22; }

.grid-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: 0; animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.pulse-dots { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.pulse-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #A8956E; opacity: 0.4; animation: pulseDot 2s ease-in-out infinite; }
.pulse-dot:nth-child(2) { animation-delay: 0.3s; }
.pulse-dot:nth-child(3) { animation-delay: 0.6s; }
.pulse-dot:nth-child(4) { animation-delay: 0.9s; }
.pulse-dot:nth-child(5) { animation-delay: 1.2s; }
.pulse-dot:nth-child(6) { animation-delay: 1.5s; }
.pulse-dot:nth-child(7) { animation-delay: 1.8s; }
.pulse-dot:nth-child(8) { animation-delay: 2.1s; }
.pulse-dot:nth-child(9) { animation-delay: 2.4s; }
.pulse-dot:nth-child(10) { animation-delay: 2.7s; }
.pulse-dot:nth-child(11) { animation-delay: 3.0s; }
.pulse-dot:nth-child(12) { animation-delay: 3.3s; }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 0.4; } 50% { transform: scale(1.4); opacity: 0.2; } }

.section { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; }
.section > * { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.section.visible > * { opacity: 1; transform: translateY(0); }

.vhs-text { text-shadow: 2px 0 #C4A882, -1px 0 #8B7355; }
.section.visible .vhs-text { animation: vhsIn 0.4s ease forwards; }
@keyframes vhsIn { from { text-shadow: 0 0 transparent, 0 0 transparent; } to { text-shadow: 2px 0 #C4A882, -1px 0 #8B7355; } }

.section-heading { font-size: 42px; margin-bottom: 16px; }
.section-sub { font-family: 'Work Sans', sans-serif; font-size: 16px; color: #5C4E3E; }
.section-desc { font-size: 16px; color: #5C4E3E; max-width: 560px; text-align: center; margin-bottom: 40px; }

.icon-cluster { position: absolute; z-index: 0; opacity: 0.15; }
.ambient-icon { animation: floatIcon 8s ease-in-out infinite; }
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.pulse-divider { width: 100%; height: 2px; background: #8B7355; position: relative; z-index: 1; opacity: 0.3; animation: pulseLine 3s ease-in-out infinite; }
@keyframes pulseLine { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.8; } }

.timeline { display: flex; gap: 32px; max-width: 800px; flex-wrap: wrap; justify-content: center; }
.timeline-item { flex: 1; min-width: 200px; text-align: center; padding: 24px; background: #F5EFE6; border: 1px solid #E8D8C4; }
.timeline-item p { font-size: 14px; color: #5C4E3E; margin-top: 8px; }
.timeline-icon { margin-bottom: 12px; }

.label { font-family: 'Josefin Sans', sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #A8956E; display: block; margin-bottom: 4px; }

.schema-diagram { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.schema-center { margin-bottom: 16px; }
.schema-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 600px; }
.schema-block { background: #F5EFE6; border: 1px solid #E8D8C4; padding: 16px; }
.schema-block code { font-family: 'Fira Code', monospace; font-size: 13px; color: #8B7355; display: block; margin-bottom: 6px; }
.schema-block p { font-size: 14px; color: #5C4E3E; }

.endpoint-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 800px; }
.endpoint-card { background: #F5EFE6; border: 1px solid #E8D8C4; padding: 20px; transition: border-color 0.3s ease; }
.endpoint-card:hover { border-color: #A8956E; }
.endpoint-card:hover svg { transform: scale(1.1); }
.endpoint-card svg { transition: transform 0.2s ease-out; margin-bottom: 8px; }
.endpoint-card code { font-family: 'Fira Code', monospace; font-size: 13px; color: #8B7355; display: block; margin-bottom: 6px; }
.endpoint-card p { font-size: 14px; color: #5C4E3E; }

.registry-log { max-width: 560px; width: 100%; }
.log-entry { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E8D8C4; align-items: baseline; }
.log-entry code { font-family: 'Fira Code', monospace; font-size: 13px; color: #8B7355; min-width: 120px; }
.log-entry span { font-size: 14px; color: #5C4E3E; }

.site-footer { display: flex; justify-content: space-between; padding: 24px 40px; border-top: 1px solid #E8D8C4; position: relative; z-index: 1; }

/* Palette: #C4A882 #A8956E #F5EFE6 #E8D8C4 */
@media (max-width: 768px) {
    .endpoint-grid { grid-template-columns: 1fr; }
    .schema-blocks { grid-template-columns: 1fr; }
    .timeline { flex-direction: column; }
    .section-heading { font-size: 28px; }
}
