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

:root {
    --dark-earth: #1A120E;
    --warm-charcoal: #2A1E18;
    --medium-brown: #3A2E24;
    --terracotta: #C4704A;
    --light-terracotta: #E8956A;
    --warm-cream: #F5E6D0;
    --golden-sand: #D4C4A8;
    --umber: #8A6A50;
}

html, body {
    width: 100%;
    height: 100%;
    background-color: var(--dark-earth);
    color: var(--golden-sand);
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1A120E 0%, #251916 50%, #1A120E 100%);
    z-index: -1;
}

/* Header */
.page-header {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 60px 40px;
    position: relative;
    z-index: 5;
}

.domain-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 52px;
    letter-spacing: 0.01em;
    color: var(--warm-cream);
    margin-bottom: 24px;
    animation: titleSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-divider {
    height: 2px;
    background: linear-gradient(90deg, var(--terracotta) 0%, var(--terracotta) 40%, transparent 100%);
    width: 100%;
    animation: dividerDraw 0.8s ease-out forwards;
}

@keyframes dividerDraw {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Grid Container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(auto-fit, minmax(200px, auto));
    gap: 0;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 60px;
    position: relative;
    z-index: 3;
}

/* Grid Blocks */
.grid-block {
    background-color: var(--warm-charcoal);
    border: 2px solid var(--terracotta);
    padding: 32px;
    position: relative;
    z-index: 2;
    animation: blockSlideIn 0.5s ease-out backwards;
    overflow: hidden;
}

.block-1 { animation-delay: 0.1s; grid-row: 1; }
.block-2 { animation-delay: 0.2s; grid-row: 2; margin-top: -20px; }
.block-3 { animation-delay: 0.3s; grid-row: 3; margin-top: -20px; }
.block-4 { animation-delay: 0.4s; grid-row: 4; margin-top: -20px; }
.block-5 { animation-delay: 0.5s; grid-row: 5; margin-top: -20px; }

@keyframes blockSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.grid-block:hover {
    background-color: var(--medium-brown);
    border-color: var(--light-terracotta);
    box-shadow: inset 0 0 20px rgba(232, 149, 106, 0.1);
}

.block-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--warm-cream);
    margin-bottom: 16px;
    letter-spacing: 0.01em;
}

.block-text {
    font-family: 'Crimson Text', serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--golden-sand);
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Counter Stats */
.counter-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(196, 112, 74, 0.2);
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.counter-stat:last-child {
    border-bottom: none;
}

.stat-label {
    color: var(--umber);
    text-transform: uppercase;
}

.stat-value {
    font-weight: 600;
    color: var(--terracotta);
    font-size: 16px;
}

.status-tag {
    display: inline-block;
    background: rgba(196, 112, 74, 0.15);
    color: var(--light-terracotta);
    padding: 4px 12px;
    border-radius: 2px;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Status Bubbles */
.status-bubble {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--terracotta);
    border-radius: 50%;
    background-color: var(--warm-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    animation: bubblePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
    cursor: pointer;
    transition: all 0.2s ease-out;
}

.bubble-1 { top: 20px; right: -20px; animation-delay: 0.3s; }
.bubble-2 { top: 240px; right: 40px; animation-delay: 0.4s; }
.bubble-3 { top: 500px; left: -20px; animation-delay: 0.5s; }
.bubble-4 { top: 700px; right: 60px; animation-delay: 0.6s; }
.bubble-5 { top: 950px; left: 30px; animation-delay: 0.7s; }

@keyframes bubblePop {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.status-bubble:hover {
    transform: scale(1.2);
    border-color: var(--light-terracotta);
    box-shadow: 0 0 15px rgba(196, 112, 74, 0.3);
}

.bubble-content {
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    font-size: 20px;
    color: var(--terracotta);
}

/* Botanical Accents */
.botanical-accent {
    position: absolute;
    opacity: 0;
    animation: marginaliaDrift 0.8s ease-out forwards;
}

.accent-1 {
    top: 60px;
    left: -60px;
    animation-delay: 0.6s;
}

.accent-2 {
    top: 400px;
    right: -40px;
    animation-delay: 0.7s;
}

.accent-3 {
    top: 650px;
    left: -50px;
    animation-delay: 0.8s;
}

.accent-4 {
    top: 950px;
    right: -50px;
    animation-delay: 0.9s;
}

@keyframes marginaliaDrift {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 0.3;
        transform: translateY(0);
    }
}

.botanical-accent svg {
    animation: accentSway 8s ease-in-out infinite;
}

@keyframes accentSway {
    0%, 100% {
        transform: rotateZ(-2deg);
    }
    50% {
        transform: rotateZ(2deg);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .page-header {
        padding: 40px 40px 30px;
    }

    .domain-title {
        font-size: 40px;
    }

    .grid-container {
        grid-template-columns: repeat(8, 1fr);
        padding: 30px 40px;
        gap: 12px;
    }

    .grid-block {
        grid-column: span 4 !important;
        margin-top: 0 !important;
    }

    .status-bubble {
        display: none;
    }

    .botanical-accent {
        display: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 30px 24px 20px;
    }

    .domain-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .grid-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 0;
    }

    .grid-block {
        grid-column: span 1 !important;
        border-left: none;
        border-right: none;
        margin: 0;
        padding: 24px;
    }

    .block-title {
        font-size: 18px;
    }

    .block-text {
        font-size: 15px;
    }

    .counter-stat {
        font-size: 12px;
        padding: 10px 0;
    }

    .stat-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 20px 16px 16px;
    }

    .domain-title {
        font-size: 24px;
    }

    .grid-container {
        padding: 16px;
    }

    .grid-block {
        padding: 16px;
    }

    .block-title {
        font-size: 16px;
    }

    .block-text {
        font-size: 14px;
    }
}
