/* --- Lokilines Cyber-Brutalist Theme --- */
:root {
    --bg: #050505;
    --grid: #111;
    --primary: #00ff9d; /* Cyber Green */
    --primary-dim: rgba(0, 255, 157, 0.1);
    --secondary: #ff0055; /* Glitch Red */
    --accent: #ffd700; /* Gold */
    --text: #ffffff;
    --gray: #333;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-mono); /* Default to mono for that tech feel */
    overflow-x: hidden;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAA5OTkAAABMTExERERmZmYzMzMyMjJ4Fk2eAAAACHRSTlMAMwA3M3MzM3Oz46AAAAAzSURBVDjLY2AYBbQGAAiYAAGmgAAowAAIgAAMgAAIgAAMgAAIgAAMgAAIgAAowAAI0AAAoiQCfd7vCFAAAAAASUVORK5CYII=');
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid var(--gray);
    position: relative;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(5px);
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--primary);
}

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

/* --- Buttons --- */
.cyber-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
    box-shadow: 4px 4px 0px var(--primary-dim);
}

.cyber-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 4px 4px 0px var(--text);
    transform: translate(-2px, -2px);
}

.cyber-btn.big {
    font-size: 1.2rem;
    padding: 20px 40px;
    border-width: 2px;
}

.cyber-btn.small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-text {
    flex: 1;
    z-index: 2;
    max-width: 600px;
}

.glitch-wrapper {
    position: relative;
    margin-bottom: 20px;
}

h1.glitch {
    font-family: var(--font-heading);
    font-size: 5rem;
    line-height: 0.9;
    margin: 0;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
}

.layer2 {
    color: var(--text); /* Can be transparent/outline */
    -webkit-text-stroke: 2px var(--text);
    color: transparent;
}

.hero-sub {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    line-height: 1.5;
    color: #aaa;
    margin-bottom: 40px;
    max-width: 90%;
}

.highlight {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.cta-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.users-count {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
}

/* --- Hero Visual (Mockup) --- */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.browser-window {
    width: 600px;
    height: 450px;
    background: #111;
    border: 1px solid var(--gray);
    box-shadow: -20px 20px 0px rgba(20,20,20,0.5);
    display: flex;
    flex-direction: column;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s;
}

.browser-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.browser-bar {
    height: 30px;
    background: #222;
    border-bottom: 1px solid var(--gray);
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 10px;
}

.dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #444;
    margin-right: 4px;
}

.url-bar {
    flex: 1;
    background: #000;
    height: 20px;
    border-radius: 4px;
    color: #555;
    font-size: 10px;
    display: flex;
    align-items: center;
    padding-left: 10px;
}

.browser-content {
    flex: 1;
    display: flex;
    position: relative;
    background: #0a0a0a;
}

.chat-area {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background-image: radial-gradient(#1a1a1a 1px, transparent 1px);
    background-size: 20px 20px;
}

.chat-msg {
    padding: 10px 15px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    max-width: 70%;
}

.chat-msg.received {
    background: #222;
    align-self: flex-start;
    border-left: 3px solid #444;
}

.chat-msg.sent {
    background: #06402b;
    align-self: flex-end;
    border-right: 3px solid #00ff9d;
    text-align: right;
}

.ghost-typing {
    font-size: 10px;
    color: var(--primary);
    opacity: 0.7;
    margin-left: 10px;
}

/* Sidebar Overlay Mockup */
.loki-sidebar {
    width: 240px;
    background: #000;
    border-left: 1px solid var(--primary);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 20px rgba(0,0,0,0.5);
}

.sidebar-header {
    background: var(--primary);
    color: #000;
    padding: 10px;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
}

.sidebar-controls {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group label {
    display: block;
    font-size: 9px;
    color: #666;
    margin-bottom: 4px;
}

.fake-input {
    background: #111;
    border: 1px solid #333;
    padding: 8px;
    font-size: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.highlight-input {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 215, 0, 0.05);
}

.fake-select {
    background: #111;
    border: 1px solid #333;
    padding: 8px;
    font-size: 10px;
    color: #fff;
}

.generate-btn {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    margin-top: 10px;
    cursor: pointer;
}

/* --- Features Strip --- */
.features-strip {
    border-top: 1px solid var(--gray);
    border-bottom: 1px solid var(--gray);
    padding: 30px 0;
    display: flex;
    justify-content: space-around;
    background: #0a0a0a;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.f-icon { font-size: 1.5rem; }
.f-text { font-weight: 700; letter-spacing: 1px; font-size: 0.9rem; }

/* --- Showcase Section --- */
.showcase {
    padding: 100px 5%;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #888;
    margin-bottom: 60px;
}

.grid-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.neo-card {
    background: #000;
    border: 1px solid var(--gray);
    position: relative;
}

.neo-card::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    border: 1px solid var(--gray);
    z-index: -1;
}

.neo-card:hover {
    border-color: var(--primary);
}

.neo-card.gold-border:hover {
    border-color: var(--accent);
}

.card-header {
    background: #111;
    padding: 15px;
    border-bottom: 1px solid var(--gray);
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.card-body {
    padding: 20px;
}

.input-display {
    margin-bottom: 15px;
}

.input-display label {
    display: block;
    font-size: 0.7rem;
    color: #555;
    margin-bottom: 5px;
}

.input-display p {
    font-size: 0.9rem;
    margin: 0;
}

.neon-text { color: var(--primary); }
.gold-text { color: var(--accent); }

.result-display {
    margin-top: 20px;
    padding: 15px;
    background: #111;
    border-left: 2px solid var(--primary);
    font-family: 'Inter', sans-serif;
    font-style: italic;
    font-size: 0.95rem;
}

/* --- Footer --- */
.cyber-footer {
    border-top: 1px solid var(--gray);
}

.marquee {
    background: var(--primary);
    color: #000;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-weight: 700;
    font-size: 0.8rem;
}

.footer-main {
    padding: 80px 0;
    text-align: center;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMDUwNTA1Ii8+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxMTEiLz4KPC9zdmc+');
}

.footer-main h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .logo {
        font-size: 20px;
    }

    .hero { 
        flex-direction: column; 
        padding-top: 40px; 
        padding-bottom: 60px;
        text-align: center;
        min-height: auto;
    }
    
    .hero-text {
        max-width: 100%;
    }

    h1.glitch { 
        font-size: 13vw; /* Responsive font size based on viewport width */
        white-space: nowrap;
    }

    .hero-sub { 
        margin: 0 auto 30px; 
        font-size: 1rem;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
    }

    .cyber-btn.big {
        width: 100%;
        padding: 15px 20px;
        font-size: 1rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .hero-visual { 
        display: none; /* Keep hidden as per previous, or show simpler version */ 
    }
    
    .features-strip {
        flex-wrap: wrap;
        gap: 20px;
        padding: 20px;
    }
    
    .feature-item {
        width: 45%;
        justify-content: center;
        font-size: 0.8rem;
    }

    .showcase {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 20px;
    }
}