/* ==========================================================================
   ANOMALY TOOLS - MASTER STYLESHEET
   ========================================================================== */

/* COLOR PALETTE & VARIABLES */
:root {
    --bg-color: #12151c;
    --bg-darker: #080a0d;
    --blood-red: #c1121f;
    --blood-glow: rgba(193, 18, 31, 0.3);
    --text-main: #f0f3f8;
    --text-muted: #7c8594;
    --border-color: #1e2430;
    --nav-height: 80px;
}

/* RESET & GENERAL STYLES */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color); color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif; line-height: 1.6;
    overflow-x: hidden; padding-top: var(--nav-height); position: relative;
}

/* CRT STATIC NOISE & SCANLINES (NO IMAGES REQUIRED) */
.noise {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999; opacity: 0.04;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.95" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}
.scanlines {
    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%);
    background-size: 100% 4px; z-index: 9998; pointer-events: none; opacity: 0.4;
}

/* HEADER AND NAVIGATION */
header.top-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: var(--nav-height);
    background: rgba(8, 10, 13, 0.98); border-bottom: 1px solid var(--border-color);
    z-index: 1000; display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; backdrop-filter: blur(10px);
}
.nav-logo-container {
    display: flex; align-items: center; text-decoration: none; color: #fff;
    font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px;
    z-index: 1002; flex-shrink: 0; cursor: pointer;
}
.nav-logo { height: 48px; width: auto; margin-right: 12px; filter: drop-shadow(0 0 8px var(--blood-glow)); }
.menu-toggle { display: none; font-size: 2rem; color: #fff; cursor: pointer; z-index: 1002; margin-left: auto; }
.nav-links { list-style: none; display: flex; height: 100%; }
.nav-links li { margin-left: 2rem; position: relative; display: flex; align-items: center; height: 100%; }
.nav-links a {
    color: var(--text-main); text-decoration: none; font-weight: 700;
    text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px;
    transition: color 0.3s; padding: 1rem 0; cursor: pointer;
}
.nav-links a:hover { color: var(--blood-red); }

/* DROPDOWNS */
.dropdown { position: relative; }
.dropdown-menu {
    display: none; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%); background: var(--bg-darker);
    border: 1px solid var(--border-color); border-top: 3px solid var(--blood-red);
    min-width: 260px; list-style: none; padding: 0;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.8); z-index: 1001; margin-top: 0;
}
@media (min-width: 1025px) { .dropdown:hover .dropdown-menu { display: block; animation: dropdownFadeIn 0.2s ease-in-out; } }
.dropdown.active .dropdown-menu { display: block; animation: dropdownFadeIn 0.2s ease-in-out; }
@keyframes dropdownFadeIn { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.dropdown-menu li { margin-left: 0; width: 100%; height: auto; display: block; }
.dropdown-menu a { display: block; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color); font-size: 0.8rem; transition: all 0.2s ease; }
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu a:hover { background: rgba(193, 18, 31, 0.1); padding-left: 1.8rem; color: var(--blood-red); }

/* APP VIEWS ROUTING */
.app-view { display: none; animation: fadeInView 0.4s ease forwards; }
.app-view.active { display: block; }
@keyframes fadeInView { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* CONTAINER SETUP */
.container { max-width: 1200px; margin: 0 auto; padding: 3rem 2rem; position: relative; z-index: 10; }

/* HERO SECTION */
.hero { text-align: center; margin-bottom: 2rem; padding-top: 1rem; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: -1px; color: #fff; }
.glitch:hover { animation: textGlitch 0.2s infinite; }
@keyframes textGlitch {
    0% { text-shadow: 2px 0 var(--blood-red), -2px 0 #00ffff; transform: translate(1px, 1px); }
    20% { text-shadow: -2px 0 var(--blood-red), 2px 0 #00ffff; transform: translate(-1px, -1px); }
    40% { text-shadow: 2px 0 var(--blood-red), -2px 0 #00ffff; transform: translate(1px, -1px); }
    60% { text-shadow: -2px 0 var(--blood-red), 2px 0 #00ffff; transform: translate(-1px, 1px); }
    100% { text-shadow: 0 0 0; transform: translate(0); }
}
.hero-copy { font-size: 1.15rem; color: var(--text-muted); max-width: 820px; margin: 0 auto 2.5rem auto; }

/* EKG HEARTBEAT LINE */
.ekg-container { width: 100%; height: 60px; margin: 2rem 0 3rem 0; overflow: hidden; display: flex; justify-content: center; }
.ekg-line { width: 100%; max-width: 800px; height: 100%; }
.pulse { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: heartbeat 4s linear infinite; filter: drop-shadow(0 0 6px var(--blood-red)); }
@keyframes heartbeat { 0% { stroke-dashoffset: 1200; } 100% { stroke-dashoffset: -1200; } }

/* BENTO GRID */
.bento-flex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; margin-bottom: 4rem; }
.card {
    background: var(--bg-darker); border: 1px solid var(--border-color); padding: 2.2rem; display: flex; flex-direction: column;
    justify-content: space-between; text-decoration: none; color: inherit; transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1); cursor: pointer;
    flex: 1 1 calc(50% - 1.5rem); min-width: 300px;
}
.card-large { flex: 1 1 100%; }
.card h2 { font-size: 1.6rem; margin-bottom: 1rem; color: #fff; text-transform: uppercase; letter-spacing: -0.5px; transition: color 0.3s ease; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; line-height: 1.5; }
.card-hover-text { font-family: monospace; color: var(--border-color); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; transition: all 0.3s ease; }
.card:hover { border-color: var(--blood-red); transform: translateY(-5px); box-shadow: 0 12px 24px rgba(193, 18, 31, 0.15); }
.card:hover h2, .card:hover .card-hover-text { color: var(--blood-red); }

/* SPECIFIC TOOL VIEW HEADER */
.tool-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border-color); }
.btn-back { background: transparent; border: 1px solid var(--border-color); color: var(--text-main); padding: 0.5rem 1rem; cursor: pointer; font-family: inherit; font-size: 0.85rem; text-transform: uppercase; transition: 0.2s; text-decoration: none; }
.btn-back:hover { border-color: var(--blood-red); color: var(--blood-red); }
.tool-header h2, .tool-header h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff; text-transform: uppercase; letter-spacing: -1px; margin: 0;}

/* FORM & BUTTONS */
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 0.5rem; }
.input-control { width: 100%; background: var(--bg-color); border: 1px solid var(--border-color); padding: 1rem; color: #fff; font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
.input-control:focus { outline: none; border-color: var(--blood-red); }
.btn { display: inline-block; padding: 1rem 2rem; background: transparent; color: var(--blood-red); border: 1px solid var(--blood-red); font-family: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; cursor: pointer; transition: all 0.3s ease; text-decoration: none; text-align: center; }
.btn:hover { background: var(--blood-red); color: #fff; box-shadow: 0 0 15px var(--blood-glow); }
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.8rem; }

/* SLIDER CSS */
input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 24px; width: 24px; background: var(--blood-red); cursor: pointer; margin-top: -8px; box-shadow: 0 0 10px var(--blood-glow); border-radius: 50%; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; cursor: pointer; background: var(--border-color); border-radius: 4px; }

/* TOOL 1: ENTITY */
.identifier-step { display: none; }
.identifier-step.active { display: block; }
.option-btn { background: var(--bg-color); border: 1px solid var(--border-color); padding: 1.2rem; text-align: left; color: var(--text-main); font-family: inherit; font-size: 1rem; cursor: pointer; transition: all 0.2s ease; margin-bottom: 1rem; width: 100%; display: block; }
.option-btn:hover { border-color: var(--blood-red); background: rgba(193, 18, 31, 0.05); }

/* TOOL 2: EMF */
.calculator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.radar-box { background: var(--bg-color); border: 1px solid var(--border-color); padding: 2rem; text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center; border-radius: 4px; }
.radar-circle { width: 120px; height: 120px; border: 2px solid var(--border-color); border-radius: 50%; position: relative; margin-bottom: 1.5rem; display: flex; justify-content: center; align-items: center; }
.radar-sweep { position: absolute; width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 50%, rgba(193, 18, 31, 0.15) 100%); animation: sweep 4s linear infinite; }
@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.radar-value { font-size: 2rem; font-weight: 700; color: var(--blood-red); text-shadow: 0 0 10px var(--blood-glow); z-index: 10; }

.affiliate-box { margin-top: 2rem; padding: 1.5rem; border: 1px dashed var(--text-muted); background: rgba(0,0,0,0.3); border-radius: 8px; width: 100%; box-sizing: border-box; }
.affiliate-box h4 { color: #ffb703; text-transform: uppercase; margin-bottom: 0.5rem; font-size: 1rem; }
.affiliate-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.affiliate-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* TOOL 3: TONES */
.audio-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.audio-card { background: var(--bg-darker); border: 1px solid var(--border-color); padding: 2rem; text-align: center; display: flex; flex-direction: column; justify-content: space-between; }
.audio-card h4 { color: #fff; text-transform: uppercase; font-size: 1.1rem; margin-bottom: 1rem; }

/* TOOL 4: SPIRIT BOX */
.spirit-container { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.spirit-box-display { flex: 2; min-width: 280px; background: #000; border: 1px solid var(--border-color); height: 250px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; overflow: hidden; }
.spirit-log-container { flex: 1; min-width: 250px; background: #050608; border: 1px solid var(--border-color); height: 250px; padding: 1rem; display: flex; flex-direction: column; }
.spirit-log-container h4 { color: var(--blood-red); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 0.5rem; }
.spirit-log { flex-grow: 1; overflow-y: auto; font-family: monospace; font-size: 0.85rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.3rem; }
.spirit-log span { color: #fff; }
.spirit-word { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; color: #fff; text-shadow: 0 0 20px var(--blood-red); text-transform: uppercase; z-index: 10; letter-spacing: 2px; }
.spirit-frequency { position: absolute; bottom: 1rem; font-family: monospace; color: var(--blood-red); font-size: 0.9rem; z-index: 10; }

/* SECTION: VIDEOS & BLOG */
.content-section { margin-top: 5rem; border-top: 1px solid var(--border-color); padding-top: 4rem; }
.section-header { margin-bottom: 2.5rem; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; }
.section-header h2 { font-size: 2.2rem; color: #fff; text-transform: uppercase; letter-spacing: -1px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.video-card { background: var(--bg-darker); border: 1px solid var(--border-color); overflow: hidden; transition: border-color 0.3s; text-decoration: none; display: block; position: relative; }
.video-card:hover { border-color: var(--blood-red); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; background: #000; }
.video-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.video-card:hover .video-wrapper img { opacity: 1; }
.play-btn-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(193, 18, 31, 0.9); width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: transform 0.3s; }
.play-btn-overlay::after { content: ''; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; border-left: 15px solid #fff; margin-left: 5px; }
.video-card:hover .play-btn-overlay { transform: translate(-50%, -50%) scale(1.1); }
.video-info { padding: 1.2rem; }
.video-info h4 { font-size: 1rem; color: #fff; margin-bottom: 0.5rem; line-height: 1.4; }
.video-info p { font-size: 0.8rem; color: var(--blood-red); text-transform: uppercase; font-weight: bold; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: var(--bg-darker); border: 1px solid var(--border-color); padding: 2rem; transition: transform 0.3s, border-color 0.3s; text-decoration: none; display: block; }
.blog-card:hover { transform: translateY(-5px); border-color: var(--blood-red); }
.blog-card span { font-size: 0.8rem; color: var(--blood-red); font-family: monospace; text-transform: uppercase; }
.blog-card h4 { color: #fff; font-size: 1.3rem; margin: 0.8rem 0; line-height: 1.4; }
.blog-card p { color: var(--text-muted); font-size: 0.9rem; }

/* FOOTER */
.site-footer { background: var(--bg-darker); border-top: 1px solid var(--border-color); padding: 5rem 2rem 3rem 2rem; margin-top: 5rem; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 4rem; }
.footer-col { flex: 1; min-width: 200px; }
.footer-col h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul a { color: var(--text-muted); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
.footer-col ul a:hover { color: var(--blood-red); }
.footer-col ul a.btn:hover { color: #fff !important; }
.footer-bottom { max-width: 1200px; margin: 0 auto; border-top: 1px solid var(--border-color); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; color: var(--text-muted); font-size: 0.9rem; gap: 1rem; }

/* IS IT REAL CHECKLIST PAGE STYLES */
.intro-copy { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 3rem; max-width: 800px; }
.checklist-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; align-items: start; }
.category-box { background: var(--bg-darker); border: 1px solid var(--border-color); padding: 2rem; margin-bottom: 2rem; border-radius: 8px; }
.category-box h3 { color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.5rem; }
.category-box h3::before { content: ''; width: 12px; height: 12px; background: var(--blood-red); display: inline-block; border-radius: 2px; }
.checkbox-wrapper { display: flex; align-items: flex-start; margin-bottom: 1.2rem; cursor: pointer; position: relative; padding-left: 35px; }
.checkbox-wrapper input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 2px; left: 0; height: 22px; width: 22px; background-color: var(--bg-color); border: 1px solid var(--text-muted); border-radius: 4px; transition: all 0.2s; }
.checkbox-wrapper:hover input ~ .checkmark { border-color: var(--blood-red); }
.checkbox-wrapper input:checked ~ .checkmark { background-color: var(--blood-red); border-color: var(--blood-red); box-shadow: 0 0 10px var(--blood-glow); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-wrapper input:checked ~ .checkmark:after { display: block; }
.checkbox-wrapper .checkmark:after { left: 7px; top: 3px; width: 5px; height: 10px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.checkbox-content { display: flex; flex-direction: column; }
.check-title { color: var(--text-main); font-weight: 600; font-size: 1.05rem; }
.check-desc { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.2rem; line-height: 1.4; }
.score-panel { background: #030405; border: 1px solid var(--border-color); padding: 2.5rem; position: sticky; top: 100px; text-align: center; border-radius: 12px; box-shadow: inset 0 0 40px rgba(0,0,0,0.8); }
.score-panel h4 { text-transform: uppercase; color: var(--text-muted); letter-spacing: 1px; font-size: 0.9rem; margin-bottom: 1.5rem; }
.debunk-meter { position: relative; width: 180px; height: 180px; margin: 0 auto 1.5rem auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: conic-gradient(var(--blood-red) 0%, var(--bg-color) 0%); transition: background 0.5s ease; border: 4px solid var(--bg-darker); box-shadow: 0 0 20px rgba(0,0,0,0.5); }
.debunk-meter-inner { width: 140px; height: 140px; background: #030405; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.debunk-percentage { font-size: 2.5rem; font-weight: 700; color: #fff; line-height: 1; }
.debunk-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-top: 0.5rem; }
#verdict-text { font-size: 1.1rem; font-weight: 700; color: var(--blood-red); margin-top: 1rem; line-height: 1.4; }

/* MOBILE MEDIA QUERIES */
@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: var(--nav-height); left: 0; width: 100%;
        background: rgba(8, 10, 13, 0.98); border-bottom: 1px solid var(--border-color);
        padding: 1rem 0; height: auto;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 0; width: 100%; display: block; }
    .nav-links a { padding: 1rem 2rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; }
    .dropdown-menu { position: static; transform: none; min-width: 100%; border: none; border-left: 3px solid var(--blood-red); background: #050608; box-shadow: none; display: none; }
    .dropdown-menu a { padding-left: 3rem; }
    .checklist-grid { grid-template-columns: 1fr; }
    .score-panel { position: static; margin-bottom: 2rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
    .tool-header h2, .tool-header h1 { font-size: 1.5rem; }
}