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

body {
    background: #0d1117;
    color: #e0e0e0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
#site-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    background: rgba(13, 17, 23, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.glitch-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #e0e0e0;
    position: relative;
    display: inline-block;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.glitch-title::before {
    color: #ff0040;
    clip-path: inset(0 0 70% 0);
    transform: translateX(-3px);
}

.glitch-title::after {
    color: #00ffff;
    clip-path: inset(70% 0 0 0);
    transform: translateX(3px);
}

.glitch-title.glitch::before {
    animation: glitch-before 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glitch-title.glitch::after {
    animation: glitch-after 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes glitch-before {
    0%, 100% {
        clip-path: inset(0 0 70% 0);
        transform: translateX(-3px);
    }
    50% {
        clip-path: inset(0 0 40% 0);
        transform: translateX(-8px);
    }
}

@keyframes glitch-after {
    0%, 100% {
        clip-path: inset(70% 0 0 0);
        transform: translateX(3px);
    }
    50% {
        clip-path: inset(40% 0 0 0);
        transform: translateX(8px);
    }
}

/* Hero Section */
#hero {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glitch-block {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    background: repeating-linear-gradient(
        0deg,
        #00ffff 0px,
        #00ffff 2px,
        transparent 2px,
        transparent 6px
    );
    opacity: 0.15;
    animation: glitch-block-shift 4s infinite;
}

@keyframes glitch-block-shift {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}

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

.accent-cyan {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.hero-headline {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: #f8f8f8;
}

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #e0e0e0;
    max-width: 600px;
    opacity: 0.8;
}

/* Process Flow Section */
#process-flow {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #00ffff;
    border-left: 4px solid #00ffff;
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.flow-step {
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1.5rem;
    background: rgba(0, 255, 255, 0.03);
    position: relative;
    transition: all 300ms ease;
}

.flow-step:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.6);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 6rem);
    color: rgba(0, 255, 255, 0.15);
    display: block;
    margin-bottom: 0.5rem;
    line-height: 1;
    position: absolute;
    top: -0.5rem;
    right: 1rem;
    z-index: 1;
}

.flow-step h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #f8f8f8;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
}

.flow-step p {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #e0e0e0;
    opacity: 0.7;
    position: relative;
    z-index: 2;
}

.flow-step.glitch {
    animation: step-glitch 200ms ease;
}

@keyframes step-glitch {
    0%, 100% {
        transform: translateX(0);
        background: rgba(0, 255, 255, 0.03);
    }
    25% {
        transform: translateX(-4px);
        background: rgba(255, 0, 64, 0.05);
    }
    50% {
        transform: translateX(4px);
        background: rgba(0, 255, 255, 0.08);
    }
    75% {
        transform: translateX(-2px);
    }
}

/* Status Board - Terminal Style */
#status-board {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.status-terminal {
    background: #111111;
    border: 2px solid #00ffff;
    border-radius: 4px;
    padding: 1.5rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1), inset 0 0 20px rgba(0, 255, 255, 0.03);
}

.terminal-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 200ms ease;
    position: relative;
}

.terminal-line::before {
    content: '> ';
    color: #00ffff;
    opacity: 0.5;
}

.terminal-line.active {
    border-left-color: #2ea043;
    color: #2ea043;
}

.terminal-line.warning {
    border-left-color: #f8f8f8;
    color: #f8f8f8;
}

.terminal-line.error {
    border-left-color: #da3633;
    color: #da3633;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

.terminal-line.active .terminal-dot {
    background: #2ea043;
    box-shadow: 0 0 8px rgba(46, 160, 67, 0.8);
}

.terminal-line.warning .terminal-dot {
    background: #f8f8f8;
    box-shadow: 0 0 8px rgba(248, 248, 248, 0.5);
}

.terminal-line.error .terminal-dot {
    background: #ff0040;
    box-shadow: 0 0 8px rgba(255, 0, 64, 0.8);
}

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

.terminal-status {
    margin-left: auto;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

/* Footer */
#site-footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    margin-top: 3rem;
    background: rgba(13, 17, 23, 0.5);
}

.footer-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #e0e0e0;
}

.footer-tagline {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: #00ffff;
    margin-top: 0.25rem;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .flow-grid {
        grid-template-columns: 1fr;
    }

    #hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .glitch-block {
        top: 1rem;
        right: 1rem;
        width: 80px;
        height: 80px;
    }

    .step-num {
        font-size: clamp(2rem, 6vw, 4rem);
        top: 0;
        right: 0.5rem;
    }

    .terminal-line::before {
        display: none;
    }
}

@media (max-width: 480px) {
    #site-header {
        padding: 1.5rem;
    }

    .glitch-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .hero-headline {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    #process-flow,
    #status-board {
        padding: 2rem 1.5rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .flow-step {
        padding: 1rem;
    }

    .terminal-line {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }
}
