:root {
    --bg: #050505;
    --neon-blue: #00f3ff;
    --neon-purple: #bc13fe;
    --warning: #ff3333;
    --text-main: #e0e0e0;
    --font-display: 'Syncopate', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    --grid-color: rgba(0, 243, 255, 0.03);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: crosshair;
    /* Artistic choice */
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-mono);
    min-height: 100vh;
    overflow-x: hidden;
    font-size: 16px;
}

canvas#bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

/* Grid Overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Scanner Line */
.scanner-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-blue), transparent);
    opacity: 0.3;
    animation: scan 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scan {
    0% {
        transform: translateY(-100vh);
    }

    100% {
        transform: translateY(200vh);
    }
}

/* Corner Decor */
.corner-decor {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--neon-blue);
    opacity: 0.5;
    z-index: 10;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Main Container */
.main-container {
    max-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-sub {
    font-size: 0.6rem;
    letter-spacing: 4px;
    color: var(--neon-purple);
    margin-bottom: 5px;
}

.glitch-logo {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: #fff;
    mix-blend-mode: difference;
}

/* Status Monitor */
.status-monitor {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 51, 51, 0.3);
    padding: 8px 16px;
    background: rgba(255, 51, 51, 0.05);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--warning);
    border-radius: 50%;
}

.warning-pulse {
    animation: warnPulse 1s infinite alternate;
}

@keyframes warnPulse {
    from {
        opacity: 0.4;
        box-shadow: 0 0 0 var(--warning);
    }

    to {
        opacity: 1;
        box-shadow: 0 0 10px var(--warning);
    }
}

.status-text {
    font-size: 0.7rem;
    color: var(--warning);
    letter-spacing: 1px;
}

/* Hero Section */
.art-hero {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 4rem;
}

.hero-wrapper {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.disclaimer-box {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border-left: 3px solid var(--warning);
    padding: 1rem;
    background: linear-gradient(90deg, rgba(255, 51, 51, 0.1), transparent);
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
}

.disclaimer-box p {
    font-size: 0.8rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    font-weight: 600;
}

/* Robust Left Alignment with Safety Margins */
/* Robust Left Alignment with Safety Margins */
.massive-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 6rem);
    /* Reduced by ~30% */
    line-height: 0.65;
    /* Drastically reduced to remove gap */
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Explicitly zero gap */
    perspective: 1000px;
    width: 100%;
    text-align: left;
    margin-left: -5px;
    padding-left: 0;
    margin-bottom: 2rem;
    /* Push description down */
}

.massive-title span {
    display: block;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s;
    margin: 0;
    /* Explicitly zero margins */
    padding: 0;
}

/* Static Indentation (Removed for Strict Alignment) */
.massive-title span.line-1 {
    margin-left: 0;
}

.massive-title span.line-2 {
    margin-left: 0;
}

.massive-title span.line-3 {
    margin-left: 0;
}

.massive-title span:hover {
    transform: translateX(20px);
    color: var(--neon-blue);
    -webkit-text-fill-color: var(--neon-blue);
}

.hero-description {
    margin-top: 3rem;
    /* Increased spacing */
    margin-left: auto;
    max-width: 400px;
    text-align: right;
}

.tags {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.tags span {
    border: 1px solid var(--neon-blue);
    padding: 4px 10px;
    font-size: 0.7rem;
    color: var(--neon-blue);
    opacity: 0.7;
}

/* Terminal Form */
.interface-form {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    /* Stack label and form vertically */
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.form-label {
    text-align: center;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-terminal {
    width: 100%;
    max-width: 600px;
    background: rgba(10, 10, 12, 0.85);
    border: 1px solid #333;
    padding: 2px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.glass-terminal::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, var(--neon-blue), transparent, var(--neon-purple));
    z-index: -1;
    opacity: 0.3;
}

.terminal-header {
    background: #111;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dots {
    display: flex;
    gap: 5px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.dots span:nth-child(1) {
    background: #ff5f56;
}

.dots span:nth-child(2) {
    background: #ffbd2e;
}

.dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-title {
    font-family: monospace;
    font-size: 0.8rem;
    color: #666;
}

#contactForm {
    padding: 2rem;
}

.field-group {
    margin-bottom: 2rem;
    position: relative;
}

.field-group label {
    display: block;
    font-size: 0.7rem;
    margin-bottom: 5px;
    color: var(--neon-blue);
    letter-spacing: 1px;
}

.field-group input,
.field-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 1px solid #333;
    padding: 10px;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.field-group input:focus,
.field-group textarea:focus {
    background: rgba(0, 243, 255, 0.05);
    border-bottom-color: var(--neon-blue);
}

.cyber-submit {
    width: 100%;
    padding: 1.5rem;
    background: var(--neon-blue);
    border: none;
    font-family: var(--font-display);
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.cyber-submit:hover {
    background: #fff;
    box-shadow: 0 0 30px var(--neon-blue);
}

.console-output {
    margin-top: 1rem;
    font-family: monospace;
    font-size: 0.8rem;
    color: #444;
    min-height: 20px;
}

/* Footer Matrix */
.footer-matrix {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #222;
    padding-top: 2rem;
    margin-top: auto;
}

.footer-matrix .col {
    display: flex;
    flex-direction: column;
}

.footer-matrix .right {
    text-align: right;
}

.dim {
    font-size: 0.6rem;
    color: #444;
    margin-bottom: 5px;
}

.footer-matrix a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .massive-title {
        font-size: 13vw;
        /* Huge on mobile */
        padding-left: 0;
        text-align: center;
        /* Center on mobile for safety, or stagger less? Let's stagger less */
        align-items: center;
        /* Center align items */
    }

    .massive-title span.line-1,
    .massive-title span.line-2,
    .massive-title span.line-3 {
        transform: none;
        /* Remove stagger on mobile to prevent overflow */
    }

    .hero-description {
        text-align: center;
        margin: 2rem auto;
    }

    .tags {
        justify-content: flex-start;
    }

    .glass-terminal {
        max-width: 100%;
    }

    header {
        flex-direction: column;
        gap: 1rem;
    }
}