:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --primary-color: #0f0;
    --secondary-color: #ff003c;
    --card-bg: #111;
    --font-mono: 'JetBrains Mono', monospace;
    --font-display: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Grid Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 1000;
}

/* Typography & Glitch Effect */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
}

.glitch {
    font-size: 4rem;
    font-weight: 900;
    position: relative;
    color: var(--text-color);
    letter-spacing: 4px;
    margin-bottom: 3rem;
    /* Increased global spacing */
}

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

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--secondary-color);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--primary-color);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(13px, 9999px, 86px, 0);
    }

    100% {
        clip: rect(74px, 9999px, 17px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(109px, 9999px, 83px, 0);
    }

    100% {
        clip: rect(13px, 9999px, 96px, 0);
    }
}

/* Header */
header {
    padding: 20px;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.highlight {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    /* Restore 100vh to push content below fold */
    display: flex;
    align-items: flex-start;
    /* Align top (preserve reduced gap) */
    justify-content: center;
    text-align: center;
    padding: 100px 20px 60px;
    /* Keep reduced top padding */
    border-bottom: 1px solid #222;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-subtext {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 4rem;
    /* Increased global spacing */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-right: auto;
}

/* Hero Logo */
.hero-logo-container {
    margin-bottom: 0.5rem;
    display: inline-block;
    position: relative;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 255, 0, 0.2);
}

.hero-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 20px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 255, 0, 0.1);
        border-color: var(--primary-color);
    }

    100% {
        box-shadow: 0 0 60px rgba(0, 255, 0, 0.6), inset 0 0 20px rgba(0, 255, 0, 0.3);
        border-color: #fff;
    }
}

/* Terminal Box */
.terminal-box {
    background: #000;
    border: 1px solid #333;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto 3rem;
    text-align: left;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.1);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.terminal-content {
    padding: 20px;
    color: #ccc;
    font-size: 0.9rem;
}

.terminal-content span.green {
    color: var(--primary-color);
}

.typing {
    border-right: 2px solid var(--primary-color);
    width: max-content;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color)
    }
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 20px var(--primary-color);
}

.cta-button.is-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Features */
.features {
    padding: 100px 20px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--secondary-color);
    text-shadow: 0 0 10px rgba(255, 0, 60, 0.5);
}

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

.card {
    background: var(--card-bg);
    padding: 2rem;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    color: #888;
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #222;
    color: #555;
}

.disclaimer {
    font-size: 0.8rem;
    margin-top: 10px;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {

    /* Navigation Stack */
    header {
        position: relative;
        /* Unstick header on mobile if content is tall, or keep absolute but ensure visibility */
        background: rgba(5, 5, 5, 0.9);
        /* Add background for readability */
        backdrop-filter: blur(10px);
    }

    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 1rem;
    }

    /* Typography Adjustments */
    .glitch {
        font-size: 2rem;
        /* Smaller font for mobile */
        letter-spacing: 2px;
        margin-bottom: 2.5rem;
        /* Increased mobile spacing */
    }

    .glitch::before,
    .glitch::after {
        display: none;
        /* Disable complex glitch layers on mobile for performance/cleanliness, or keep them if desired. Let's keep them but adjusted. */
    }

    /* Re-enabling glitch with adjusted clip if needed, or simple fallback */
    .glitch::before {
        display: block;
        clip: rect(24px, 250px, 90px, 0);
        /* Adjusted clip width rough estimate */
    }

    .glitch::after {
        display: block;
        clip: rect(85px, 250px, 140px, 0);
    }

    .hero-subtext {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 10px;
    }

    /* Terminal and Hero Layout */
    .hero {
        padding-top: 20px;
        /* Reduced specific mobile padding */
        padding-bottom: 50px;
        align-items: flex-start;
        /* Align top slightly */
    }

    .terminal-box {
        width: 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .terminal-content {
        padding: 15px;
        font-size: 0.8rem;
    }

    /* Buttons */
    .cta-group .cta-button {
        width: 100%;
        text-align: center;
        padding: 1rem 1rem;
    }

    /* Features */
    .features {
        padding: 60px 20px;
    }

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }
}

/* Info Card */
.info-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid #333;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    border-radius: 8px;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.icon-pulse {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.info-card h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.info-card p {
    color: #aaa;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.highlight-text {
    color: var(--secondary-color);
    font-weight: 400;
}

.status-bar {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
}

.status-bar .label {
    color: #888;
}

.status-bar .status-text {
    color: var(--primary-color);
    font-weight: 900;
}

.blink {
    animation: blink-anim 1s step-end infinite;
}

@keyframes blink-anim {
    50% {
        opacity: 0;
    }
}

/* Mobile Tweaks for Card */
@media (max-width: 768px) {
    .info-card {
        padding: 2rem 1rem;
    }

    .info-card h3 {
        font-size: 1.5rem;
    }
}

/* SEO Content / Docs */
.seo-content {
    background: #080808;
    padding: 60px 20px;
    border-top: 1px solid #222;
}

.doc-file {
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-mono);
    color: #888;
}

.doc-file h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 3rem;
    border-bottom: 2px solid #222;
    padding-bottom: 1rem;
    display: inline-block;
}

.doc-block {
    margin-bottom: 2.5rem;
}

.doc-block h3 {
    color: #eee;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: var(--font-display);
}

.doc-block p {
    line-height: 1.8;
    margin-bottom: 1rem;
}

.doc-block li {
    list-style: square;
    margin-left: 20px;
    color: #aaa;
    margin-bottom: 0.5rem;
}

.doc-block mark {
    background: rgba(0, 255, 0, 0.1);
    color: var(--primary-color);
    padding: 2px 5px;
}
