:root {
    --bg: #050505;
    --card-bg: rgba(15, 17, 21, 0.7);
    --border: #30363d;
    --border-active: #58a6ff;
    
    --accent: #2f81f7;
    --accent-glow: rgba(47, 129, 247, 0.4);
    --danger: #da3633;
    --danger-glow: rgba(218, 54, 51, 0.4);
    --success: #238636;
    
    --text: #c9d1d9;
    --text-muted: #8b949e;
    
    --font-main: 'JetBrains Mono', monospace;
    --font-display: 'Share Tech Mono', monospace;
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    margin: 0; padding: 20px; 
    min-height: 100vh;
    overflow-x: hidden;
}

.background-grid {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    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: 30px 30px;
    z-index: -1;
    pointer-events: none;
}

.vignette {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, transparent 50%, #000 150%);
    z-index: -1; pointer-events: none;
}

.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
    background-size: 100% 4px;
    z-index: 100; pointer-events: none; opacity: 0.6;
}

.container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

header { text-align: center; margin-bottom: 50px; margin-top: 20px; }

.subtitle { color: var(--text-muted); font-size: 0.9rem; letter-spacing: 1px; margin-top: 10px; }
.separator { color: var(--accent); margin: 0 10px; }

.main-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 25px; border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}

.card-header {
    font-family: var(--font-display);
    font-size: 1.1rem; color: var(--accent);
    margin-bottom: 25px; letter-spacing: 1px;
    display: flex; align-items: center; gap: 10px;
}
.header-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }

.input-group { margin-bottom: 20px; }
label {
    display: block; font-size: 0.7rem; color: var(--text-muted);
    margin-bottom: 8px; font-weight: bold; letter-spacing: 0.5px;
}

input[type="text"] {
    width: 100%; background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
    border-left: 2px solid var(--border);
    color: white; padding: 12px 15px;
    font-family: var(--font-main); font-size: 0.9rem;
    outline: none; transition: 0.3s ease;
    border-radius: 0 4px 4px 0;
}

input:focus {
    border-color: var(--accent);
    border-left-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
    background: rgba(47, 129, 247, 0.05);
}

::placeholder { color: #444; }

button { font-family: var(--font-display); text-transform: uppercase; }

.primary-btn {
    width: 100%; padding: 16px; font-size: 1rem; font-weight: bold;
    border: none; cursor: pointer; position: relative; overflow: hidden;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s; letter-spacing: 2px;
    background: var(--accent); color: #000;
}
.primary-btn:hover { background: white; box-shadow: 0 0 20px var(--accent); }

.results-mockup {
    background: #0d1117; border-radius: 6px; padding: 16px;
    margin-bottom: 20px; border: 1px solid var(--border);
    min-height: 150px;
}

.email-list { display: flex; flex-direction: column; gap: 10px; }

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    margin-top: 50px;
    font-style: italic;
}

.email-item {
    background: #161b22;
    border: 1px solid var(--border);
    padding: 12px 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: #e6edf3;
    transition: 0.2s ease;
}

.email-item i { color: var(--accent); font-size: 1.1rem; }

.console-wrapper { border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.console-header {
    background: #161b22; color: var(--text-muted); padding: 5px 10px;
    font-size: 0.7rem; border-bottom: 1px solid var(--border);
}
.status-console {
    background: #0d1117; padding: 15px; height: 150px; overflow-y: auto;
    font-family: var(--font-main); font-size: 0.8rem; line-height: 1.6;
}
.log-entry { margin-bottom: 4px; border-left: 2px solid transparent; padding-left: 5px; }
.log-entry.success { border-left-color: var(--success); color: #7ee787; }
.log-entry.error { border-left-color: var(--danger); color: #ff7b72; }
.log-entry.warn { border-left-color: #d29922; color: #e3b341; }
.log-entry.system { color: var(--text-muted); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.site-nav {
    position: sticky;
    top: 0;
    z-index: 900;
    margin: -20px -20px 40px;
    background: rgba(0, 0, 0, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    flex-wrap: wrap;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.nav-brand {
    font-size: 1.35rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: var(--text);
    text-decoration: none;
    text-shadow: 0 0 10px var(--accent-glow);
    white-space: nowrap;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}
.nav-brand:hover {
    color: #fff;
    text-shadow: 0 0 16px var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    transition: width 0.25s ease;
}
.nav-link:hover { color: var(--accent); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--accent); }
.nav-link.active::after { width: 100%; }

.nav-discord {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    border: 1px solid #1f2329;
    border-radius: 4px;
    color: #94a3b8;
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.nav-discord:hover {
    border-color: #5865F2;
    color: #5865F2;
    box-shadow: 0 0 16px rgba(88, 101, 242, 0.25), inset 0 0 16px rgba(88, 101, 242, 0.05);
}

.nav-github {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: transparent;
    margin-left: auto;
    border: 1px solid #1f2329;
    border-radius: 4px;
    color: #94a3b8;
    text-decoration: none;
    margin-right: -20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: none;
    white-space: nowrap;
    transition: all 0.25s ease;
}
.nav-github:hover {
    border-color: #3b3b3b;
    color: #b9b9b9;
    box-shadow: 0 0 16px rgba(66, 66, 66, 0.25), inset 0 0 16px rgba(88, 101, 242, 0.05);
}

@media (max-width: 600px) {
    .nav-inner {
        justify-content: center;
        gap: 16px;
        padding: 14px 20px;
    }
    .nav-left {
        justify-content: center;
        gap: 14px 22px;
    }
    .nav-links { gap: 22px; }
    .nav-github { margin-left: 0; }
}
