/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --bg-tool: #0f1115;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --border: #30363d;
    --success: #4ade80;
    --danger: #ef4444;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================================
   2. NAVIGATION
   ========================================= */
nav {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: sticky;
    top: 0;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.04em;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background-color: transparent;
    border: 3px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
    animation: scan-pulse 4s infinite ease-in-out;
}

.toggle-container {
    background: #111;
    border: 1px solid var(--border);
    border-radius: 30px;
    padding: 4px;
    display: flex;
}

.toggle-btn {
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    color: white;
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

/* =========================================
   3. HERO SECTION
   ========================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    gap: 60px;
    width: 100%;
}

.content {
    flex: 1;
    max-width: 550px;
    z-index: 2;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

/* Forms */
.form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    padding: 6px;
    border-radius: 12px;
    display: flex;
    max-width: 420px;
    transition: border-color 0.2s;
    width: 100%;
}

.form-container:focus-within {
    border-color: var(--accent);
}

input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 16px;
    color: white;
    outline: none;
    font-size: 1rem;
    font-family: inherit;
    width: 100%;
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: inherit;
}

button:hover {
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-1px);
}

.ent-btn {
    display: inline-block; 
    background: white; 
    color: black; 
    padding: 12px 24px; 
    border-radius: 8px; 
    font-weight: 700; 
    text-decoration: none;
}

.safety-note {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.6;
}

.safety-icon {
    color: var(--success);
    font-size: 1rem;
    margin-right: 5px;
}

.success-msg {
    color: var(--success);
    margin-top: 15px;
    display: none;
    font-weight: 500;
    font-size: 0.9rem;
}

/* =========================================
   4. VISUALS (3D CONTAINERS)
   ========================================= */
.visual {
    flex: 1.2;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container,
.dashboard-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border), 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 40px -10px var(--accent-glow);
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
    background: #000;
    width: 100%;
    max-width: 650px;
}

.video-container:hover,
.dashboard-container:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0) scale(1.02);
    box-shadow: 0 0 0 1px var(--accent), 0 30px 60px -10px rgba(0, 0, 0, 0.9), 0 0 60px -10px var(--accent-glow);
}

video,
img {
    display: block;
    width: 100%;
    height: auto;
}

.live-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(4px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
    animation: scan-pulse 2s infinite;
}

.traffic-legend {
    margin-top: 30px;
    display: flex;
    gap: 25px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 24px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.t-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.t-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

/* =========================================
   5. NETWORK STATS BAR
   ========================================= */
.network-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.01);
    margin-top: 20px;
    padding: 30px 20px;
    text-align: center;
}

.network-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.network-stat {
    text-align: left;
}

.n-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.n-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: var(--font-mono);
}

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

/* =========================================
   6. FEATURES GRID
   ========================================= */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    width: 100%;
}

.feature-item h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.feature-item h3::before {
    content: '';
    display: block;
    width: 3px;
    height: 16px;
    background: var(--accent);
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =========================================
   7. LIVE TOOL CARD (DARK MODE)
   ========================================= */
.tool-section {
    padding: 20px;
    margin-bottom: 80px;
    position: relative;
    z-index: 10;
}

.tool-card {
    background: var(--bg-tool);
    max-width: 700px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    color: #ffffff;
}

.tool-header {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.tool-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.tool-header p {
    margin: 8px 0 0;
    opacity: 0.7;
    font-size: 0.95rem;
    color: #9ca3af;
}

.upload-area {
    padding: 40px;
}

.drop-zone {
    border: 2px dashed #30363d;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
}

.drop-zone:hover {
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
    transform: translateY(-2px);
}

/* SHIELD ICONS CLUSTER */
.shield-cluster {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.shield-icon {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.shield-icon.faded {
    opacity: 0.4;
    transform: scale(0.9);
}

.drop-zone:hover .shield-icon {
    transform: scale(1.1);
    opacity: 1;
}

.instruction-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
}

.instruction-sub {
    font-size: 0.9rem;
    color: #8b949e;
}

.paste-tip {
    display: inline-block;
    background: #21262d;
    color: #8b949e;
    border: 1px solid #30363d;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* SAMPLE BUTTON STYLES */
.sample-area {
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.sample-label {
    color: #8b949e;
    font-size: 0.9rem;
}

.sample-btn {
    background: #161b22;
    border: 1px solid #30363d;
    color: #e6edf3;
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.sample-btn:hover {
    border-color: var(--accent);
    background: #1f242c;
    transform: translateY(-1px);
}

.sample-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Results & Loading */
.loading-state,
.result-state {
    display: none;
    padding: 20px;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #30363d;
    border-top: 5px solid var(--accent);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

/* THUMBNAIL PREVIEW FOR RESULT */
.analyzed-thumb {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    margin: 0 auto 25px;
    display: block;
    border: 2px solid #30363d;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* RESULT ICON */
.result-shield-icon {
    height: 70px;
    width: auto;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.verdict-box {
    border: 1px solid;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.verdict-box.fake {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: #fca5a5;
}

.verdict-box.real {
    background: rgba(74, 222, 128, 0.1);
    border-color: var(--success);
    color: #86efac;
}

.big-status {
    font-size: 2rem;
    font-weight: 800;
    display: block;
    color: white;
    margin-bottom: 5px;
}

.btn-reset {
    background: white;
    color: black;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 20px;
    transition: transform 0.2s;
}

.btn-reset:hover {
    transform: scale(1.05);
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

/* =========================================
   9. ANIMATIONS
   ========================================= */
@keyframes scan-pulse {
    0% { box-shadow: 0 0 5px var(--accent-glow); opacity: 0.8; }
    50% { box-shadow: 0 0 20px var(--accent-glow); opacity: 1; }
    100% { box-shadow: 0 0 5px var(--accent-glow); opacity: 0.8; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   10. MEDIA QUERIES & HELPERS
   ========================================= */
.b2b-content { display: none; }
.b2c-content { display: block; }

@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding: 40px 24px;
        text-align: center;
    }

    h1 {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    .video-container,
    .dashboard-container {
        transform: none !important;
    }

    .traffic-legend {
        margin-top: 20px;
        padding: 8px 16px;
        gap: 15px;
    }

    .t-icon {
        width: 20px;
        height: 20px;
    }

    .features {
        display: flex;
        flex-direction: column;
        padding: 40px 24px;
        text-align: left;
    }

    .network-grid {
        gap: 30px;
    }

    nav {
        padding: 20px;
    }
    
    .sample-area {
        flex-direction: column;
    }
}