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

html, body {
    width: 100%;
    min-height: 100vh;
    background-color: #0A0618;
    font-family: 'Inter', sans-serif;
    color: #A0B0C8;
    overflow-x: hidden;
}

#cursor-glow {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 200, 0.08), transparent);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: left 0.1s ease-out, top 0.1s ease-out;
    left: -100px;
    top: -100px;
}

#grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-block {
    padding: 30px;
    position: relative;
    opacity: 0;
    transition: background-color 0.3s ease;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.grid-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 12px 0 0;
    border-color: transparent transparent transparent transparent;
    transition: border-color 0.2s ease;
}

.grid-block:hover::before {
    border-color: rgba(0, 255, 200, 0.2) transparent transparent transparent;
    border-width: 0 0 12px 12px;
    bottom: 0;
    top: auto;
    right: 0;
    left: auto;
}

.block-a {
    background-color: #1A0A28;
}

.block-b {
    background-color: #14082A;
}

.grid-block:hover {
    background-color: #221035;
}

.block-b:hover {
    background-color: #1C0E35;
}

.span-2 {
    grid-column: span 2;
}

.tall {
    grid-row: span 2;
}

#domain-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 48px;
    letter-spacing: 0.02em;
    color: #E0F0FF;
    margin-bottom: 12px;
}

#accent-bar {
    width: 0%;
    height: 4px;
    background: linear-gradient(135deg, #8A60FF, #00FFC8);
    margin-bottom: 16px;
    transition: width 0.6s ease-out;
}

#accent-bar.animate {
    width: 100%;
}

.data-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #00FFC8;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.body-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    color: #A0B0C8;
}

.data-readout {
    margin-top: 12px;
}

.data-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: #A0B0C8;
    line-height: 2;
}

.accent-text {
    color: #00FFC8;
}

.nature-schematic {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.nature-schematic.pulse {
    animation: pulse-opacity 3s infinite ease-in-out;
}

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

.svg-draw path,
.svg-draw circle,
.svg-draw ellipse,
.svg-draw line {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1.2s ease-out;
}

.svg-draw.drawn path,
.svg-draw.drawn circle,
.svg-draw.drawn ellipse,
.svg-draw.drawn line {
    stroke-dashoffset: 0;
}

@media (max-width: 768px) {
    #grid-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .span-2 {
        grid-column: span 1;
    }

    .tall {
        grid-row: span 1;
    }

    #domain-title {
        font-size: 26px;
    }

    .grid-block {
        clip-path: none;
    }

    #cursor-glow {
        display: none;
    }
}
