/* ===============================================
   GOPCA SUITE - REVOLUTIONARY AESTHETIC CSS
   No corporate design. Just raw truth.
   =============================================== */

/* Base Reset - Start from nothing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Root Variables - The color of revolution */
:root {
    --blood-red: #c41e3a;
    --dark-red: #8b0000;
    --black: #0a0a0a;
    --off-black: #1a1a1a;
    --gray: #2a2a2a;
    --off-white: #f5f5f0;
    --dirty-white: #e8e8e3;
    --font-mono: 'Courier New', Courier, monospace;
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Body - Dark as the void */
body {
    font-family: var(--font-mono);
    background-color: var(--black);
    color: var(--off-white);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Noise Overlay - Grungy texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255,255,255,.03) 2px,
            rgba(255,255,255,.03) 4px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 2px,
            rgba(196,30,58,.02) 2px,
            rgba(196,30,58,.02) 4px
        );
}

/* Container - Constrained chaos */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* ASCII Border */
.ascii-border {
    font-family: var(--font-mono);
    color: var(--blood-red);
    white-space: pre;
    font-size: clamp(8px, 1.5vw, 14px);
    line-height: 1.2;
    margin: 2rem 0;
    text-align: center;
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
    background: linear-gradient(180deg, var(--black) 0%, var(--off-black) 100%);
    border-bottom: 3px solid var(--blood-red);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto;
    gap: 1rem;
}

.hero-logo {
    width: 150px;
    height: 150px;
    margin: 0;
    filter: drop-shadow(0 0 20px rgba(196, 30, 58, 0.6));
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 150px;
    line-height: 150px;
    font-weight: 900;
    font-family: 'Space Grotesk', monospace;
    color: var(--primary-color);
    text-shadow: 
        2px 2px 0 var(--secondary-color),
        4px 4px 8px rgba(196, 30, 58, 0.4);
    letter-spacing: -0.05em;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Glitch Effect */
.glitch {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    color: var(--off-white);
    letter-spacing: 0.05em;
    text-shadow: 
        0.05em 0 0 rgba(196, 30, 58, .75),
        -0.025em -0.05em 0 rgba(196, 30, 58, .75),
        0.025em 0.05em 0 rgba(139, 0, 0, .75);
    animation: glitch 2s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 
            0.05em 0 0 rgba(196, 30, 58, .75),
            -0.025em -0.05em 0 rgba(196, 30, 58, .75),
            0.025em 0.05em 0 rgba(139, 0, 0, .75);
    }
    25% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(196, 30, 58, .75),
            0.025em 0.025em 0 rgba(139, 0, 0, .75),
            -0.05em -0.05em 0 rgba(196, 30, 58, .75);
    }
    50% {
        text-shadow: 
            0.025em 0.05em 0 rgba(196, 30, 58, .75),
            0.05em 0 0 rgba(139, 0, 0, .75),
            0 -0.05em 0 rgba(196, 30, 58, .75);
    }
}

.subtitle {
    font-size: 0.6em;
    color: var(--blood-red);
    display: block;
    margin-top: 0.5rem;
}

/* Hero Description */
.hero-description {
    font-size: 1.1rem;
    margin: 2rem auto;
    max-width: 600px;
    line-height: 1.8;
}

.highlight {
    color: var(--blood-red);
    font-weight: bold;
    letter-spacing: 0.1em;
}

/* Distressed Text */
.distressed-text {
    position: relative;
    filter: contrast(1.1);
}

.distressed-text::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 2px;
    color: var(--blood-red);
    opacity: 0.1;
}

/* CTA Buttons */
.cta-container {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button, .cta-button-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.cta-button {
    background: var(--blood-red);
    color: var(--off-white);
    border: 3px solid var(--blood-red);
}

.cta-button-secondary {
    background: transparent;
    color: var(--blood-red);
    border: 3px solid var(--blood-red);
}

.cta-button:hover {
    background: var(--dark-red);
    transform: scale(1.05) rotate(-1deg);
}

.cta-button-secondary:hover {
    background: var(--blood-red);
    color: var(--off-white);
    transform: scale(1.05) rotate(1deg);
}

/* Rough Border */
.rough-border {
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    position: relative;
}

.rough-border::before {
    content: "";
    position: absolute;
    inset: -2px;
    border: 2px solid var(--blood-red);
    border-radius: 225px 25px 255px 5px/25px 205px 25px 235px;
    opacity: 0.5;
    pointer-events: none;
}

/* Sections */
section {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--off-white);
}

.distressed {
    color: var(--blood-red);
    opacity: 0.8;
}

/* Features Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--off-black);
    padding: 2rem;
    border: 2px solid var(--gray);
    transition: all 0.3s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px) rotate(0.5deg);
    border-color: var(--blood-red);
    box-shadow: 0 10px 30px rgba(196, 30, 58, 0.3);
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    font-size: 2rem;
    color: var(--blood-red);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--off-white);
    letter-spacing: 0.05em;
}

.feature-image {
    width: 100%;
    height: auto;
    margin: 1rem 0;
    filter: contrast(1.1) grayscale(0.2);
    border: 1px solid var(--gray);
}

.feature-description {
    margin: 1rem 0;
    line-height: 1.6;
}

.feature-description strong {
    color: var(--blood-red);
    display: block;
    margin-bottom: 0.5rem;
}

.feature-list {
    list-style: none;
    margin-top: 1rem;
}

.feature-list li {
    padding: 0.3rem 0;
    color: var(--dirty-white);
}

/* Code Block */
.code-block {
    background: var(--black);
    border: 1px solid var(--gray);
    padding: 1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--off-white);
}

.comment {
    color: var(--blood-red);
    opacity: 0.8;
}

/* Quick Start Steps */
.steps-container {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background: var(--off-black);
    padding: 2rem;
    border: 2px solid var(--gray);
    position: relative;
    transition: all 0.3s;
}

.step:hover {
    border-color: var(--blood-red);
    transform: translateX(5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--blood-red);
    color: var(--off-white);
    padding: 0.3rem 1rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--off-white);
    letter-spacing: 0.05em;
}

.inline-link {
    color: var(--blood-red);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.inline-link:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.inline-code {
    background: var(--black);
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--gray);
    font-family: var(--font-mono);
    display: inline-block;
    margin-top: 0.5rem;
}

.revolution-text {
    color: var(--blood-red);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Philosophy Section */
.philosophy {
    background: linear-gradient(180deg, var(--off-black) 0%, var(--black) 100%);
    border-top: 2px solid var(--blood-red);
    border-bottom: 2px solid var(--blood-red);
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.manifesto-item {
    padding: 1.5rem;
    background: var(--black);
    border-left: 4px solid var(--blood-red);
    transition: all 0.3s;
}

.manifesto-item:hover {
    transform: translateX(10px);
    background: var(--off-black);
}

.manifesto-item h3 {
    color: var(--off-white);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.manifesto-item p {
    color: var(--dirty-white);
    line-height: 1.6;
}

/* Documentation Section */
.documentation {
    background: var(--black);
}

.doc-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.doc-link {
    display: block;
    padding: 1.5rem;
    background: var(--off-black);
    border: 2px solid var(--gray);
    color: var(--off-white);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
    font-weight: bold;
}

.doc-link:hover {
    background: var(--gray);
    border-color: var(--blood-red);
    transform: rotate(-2deg) scale(1.05);
}

/* Footer */
.footer {
    background: var(--black);
    padding: 3rem 0;
    border-top: 3px solid var(--blood-red);
    text-align: center;
}

.ascii-divider {
    color: var(--blood-red);
    font-family: var(--font-mono);
    white-space: pre;
    overflow: hidden;
    opacity: 0.5;
    font-size: clamp(8px, 2vw, 12px);
    line-height: 1;
}

.footer-text {
    margin: 2rem 0;
    line-height: 1.8;
}

.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--blood-red);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(196, 30, 58, 0.5);
}

.separator {
    color: var(--gray);
    margin: 0 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-container {
        gap: 0.5rem;
    }
    
    .hero-logo {
        width: 100px;
        height: 100px;
    }
    
    .logo-text {
        font-size: 100px;
        line-height: 100px;
    }
    
    .ascii-border {
        font-size: 8px;
        overflow-x: auto;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-container {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button, .cta-button-secondary {
        width: 100%;
        max-width: 300px;
    }
}

/* Print Styles - For the manifestos */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .noise-overlay {
        display: none;
    }
    
    .glitch {
        animation: none;
        text-shadow: none;
    }
}