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

html, body {
    width: 100%;
    height: 100%;
    background-color: #060e1c;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Container */
.container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #0b1628;
}

/* Aurora ribbon background */
.aurora-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        90deg,
        rgba(155, 110, 212, 0.1) 0%,
        rgba(212, 168, 86, 0.08) 25%,
        rgba(86, 212, 168, 0.1) 50%,
        rgba(155, 110, 212, 0.08) 100%
    );
    filter: blur(40px);
    animation: auroraShift 20s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes auroraShift {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(50px);
    }
}

/* Interference pattern */
.interference-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    animation: patternFadeIn 800ms ease-out 500ms forwards;
    z-index: 2;
    pointer-events: none;
}

@keyframes patternFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Header */
.hero-header {
    position: relative;
    z-index: 10;
    padding: 6rem 3rem 3rem;
    text-align: center;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 7.5rem);
    font-weight: 400;
    letter-spacing: 0.06em;
    color: #e2e8f0;
    text-transform: uppercase;
    margin-bottom: 1rem;
    opacity: 0;
    animation: wipeInLeft 1200ms ease-out 1500ms forwards;
}

@keyframes wipeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    letter-spacing: 0.1em;
    color: #9b6ed4;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 800ms ease-out 1800ms forwards;
}

/* Navigation Block */
.nav-block {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem 3rem;
    margin-bottom: 2rem;
}

.nav-tag {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    letter-spacing: 0.2em;
    padding: 0.5rem 1rem;
    border: 2px solid #9b6ed4;
    color: #9b6ed4;
    text-transform: uppercase;
    background-color: transparent;
    transition: all 300ms ease;
    opacity: 0;
    animation: fadeInUp 600ms ease-out forwards;
}

.nav-tag:nth-child(1) {
    animation-delay: 2000ms;
}

.nav-tag:nth-child(2) {
    animation-delay: 2100ms;
}

.nav-tag:nth-child(3) {
    animation-delay: 2200ms;
}

.nav-tag:nth-child(4) {
    animation-delay: 2300ms;
}

.nav-tag:hover {
    background-color: #9b6ed4;
    color: #060e1c;
}

/* Block Grid */
.block-grid {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 6px;
    padding: 2rem;
    margin-bottom: 4rem;
}

/* Content Blocks */
.content-block {
    position: relative;
    background-color: #162236;
    border: 1px solid #4a5a6e;
    padding: 2rem;
    overflow: hidden;
    animation: blockSlideIn 600ms ease-out forwards;
}

.content-block:nth-child(1) { grid-column: span 6; animation-delay: 2400ms; }
.content-block:nth-child(2) { grid-column: span 6; animation-delay: 2500ms; }
.content-block:nth-child(3) { grid-column: span 4; animation-delay: 2600ms; }
.content-block:nth-child(4) { grid-column: span 4; animation-delay: 2700ms; }
.content-block:nth-child(5) { grid-column: span 4; animation-delay: 2800ms; }
.content-block:nth-child(6) { grid-column: span 6; animation-delay: 2900ms; }
.content-block:nth-child(7) { grid-column: span 6; animation-delay: 3000ms; }
.content-block:nth-child(8) { grid-column: span 8; animation-delay: 3100ms; }
.content-block:nth-child(9) { grid-column: span 4; animation-delay: 3200ms; }

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

.block-noise {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="n"><feTurbulence baseFrequency="0.6" numOctaves="3" /></filter><rect width="100" height="100" fill="%239b6ed4" filter="url(%23n)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.block-content {
    position: relative;
    z-index: 2;
}

.block-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #9b6ed4;
    margin-bottom: 1rem;
}

.block-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #b0bcc8;
}

/* Form items */
.form-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.form-label {
    font-size: 0.85rem;
    color: #8a9ab0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-indicator {
    width: 12px;
    height: 12px;
    background-color: #56d4a8;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Data readout */
.data-readout {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.data-line {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #56d4a8;
    letter-spacing: 0.05em;
}

/* Rhythm pattern */
.rhythm-pattern {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    height: 40px;
}

.rhythm-bar {
    flex: 1;
    background-color: #9b6ed4;
    border-radius: 2px;
    animation: rhythmPulse 1.5s ease-in-out infinite;
}

.rhythm-bar:nth-child(1) { animation-delay: 0ms; height: 30%; }
.rhythm-bar:nth-child(2) { animation-delay: 150ms; height: 50%; }
.rhythm-bar:nth-child(3) { animation-delay: 300ms; height: 70%; }
.rhythm-bar:nth-child(4) { animation-delay: 150ms; height: 40%; }

@keyframes rhythmPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Action buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.action-button {
    padding: 0.8rem 1.5rem;
    border: 2px solid #9b6ed4;
    background-color: transparent;
    color: #9b6ed4;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 300ms ease;
}

.action-button:hover {
    background-color: #9b6ed4;
    color: #060e1c;
}

.action-button.secondary {
    border-color: #56d4a8;
    color: #56d4a8;
}

.action-button.secondary:hover {
    background-color: #56d4a8;
    color: #060e1c;
}

/* Footer */
.footer-section {
    position: relative;
    z-index: 10;
    padding: 3rem;
    text-align: center;
    background-color: #060e1c;
    border-top: 1px solid #4a5a6e;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: #8a9ab0;
    text-transform: uppercase;
}

/* Utility: Fade in up animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Palette references for compliance */
.palette-ref {
    display: none;
    background-color: #0b1628;
    background-color: #9b6ed4;
    background-color: #d4a856;
    background-color: #060e1c;
    background-color: #162236;
}

/* Responsive */
@media (max-width: 768px) {
    .block-grid {
        padding: 1rem;
        gap: 4px;
    }

    .content-block:nth-child(1) { grid-column: span 12; }
    .content-block:nth-child(2) { grid-column: span 12; }
    .content-block:nth-child(3) { grid-column: span 12; }
    .content-block:nth-child(4) { grid-column: span 12; }
    .content-block:nth-child(5) { grid-column: span 12; }
    .content-block:nth-child(6) { grid-column: span 12; }
    .content-block:nth-child(7) { grid-column: span 12; }
    .content-block:nth-child(8) { grid-column: span 12; }
    .content-block:nth-child(9) { grid-column: span 12; }

    .hero-header {
        padding: 4rem 2rem 2rem;
        min-height: 40vh;
    }

    .nav-block {
        padding: 1rem;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .block-content {
        padding: 1rem;
    }

    .nav-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
