/* Specter Systems — Mobile-First Responsive CSS */
:root {
    --bg: #0a0a0f;
    --bg-elevated: #12121a;
    --surface: #1a1a25;
    --primary: #00ff88;
    --primary-dim: #00cc6a;
    --accent: #7c3aed;
    --danger: #ef4444;
    --warning: #f59e0b;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #2d2d3a;
    --radius: 12px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --glow: 0 0 20px rgba(0,255,136,0.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(10,10,15,0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}
.nav-logo { width: 32px; height: 32px; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}
.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.lang-switcher select {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 200;
    flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.85rem; color: var(--text-muted); }
.cookie-banner a { color: var(--primary); }
.cookie-banner button {
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
}
.cookie-banner button:first-of-type { background: var(--primary); color: var(--bg); }
.cookie-banner button:last-of-type { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }

/* Flash */
.flash-container {
    max-width: 900px;
    margin: 1rem auto;
    padding: 0 1rem;
}
.flash {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.flash-success { background: rgba(0,255,136,0.1); border: 1px solid var(--primary); color: var(--primary); }
.flash-danger { background: rgba(239,68,68,0.1); border: 1px solid var(--danger); color: var(--danger); }

/* Hero */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}
.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}
.hero-sub { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.hero-cta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Globe Animation */
.globe-container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.globe {
    width: 280px;
    height: 280px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateGlobe 20s linear infinite;
}
.globe-core {
    width: 140px;
    height: 140px;
    background: radial-gradient(circle at 30% 30%, var(--primary-dim), var(--accent));
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: var(--glow);
}
.ring {
    position: absolute;
    top: 50%; left: 50%;
    border: 2px solid rgba(0,255,136,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.ring-1 { width: 200px; height: 200px; animation: spin 10s linear infinite; }
.ring-2 { width: 240px; height: 240px; animation: spin 15s linear infinite reverse; border-color: rgba(124,58,237,0.2); }
.ring-3 { width: 280px; height: 280px; animation: spin 20s linear infinite; border-color: rgba(56,189,248,0.15); }
@keyframes rotateGlobe { 0% { transform: rotateY(0deg); } 100% { transform: rotateY(360deg); } }
@keyframes spin { 0% { transform: translate(-50%,-50%) rotate(0deg); } 100% { transform: translate(-50%,-50%) rotate(360deg); } }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-glow { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--bg); box-shadow: var(--glow); }
.btn-danger { background: var(--danger); color: white; }
.btn-block { width: 100%; }

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}
.feature-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.9rem; color: var(--text-muted); }

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(180deg, transparent, rgba(0,255,136,0.03));
}
.cta-section h2 { font-size: 2rem; margin-bottom: 0.5rem; }
.cta-section p { color: var(--text-muted); margin-bottom: 1.5rem; }

/* Page Header */
.page-header {
    text-align: center;
    padding: 3rem 1.5rem 1.5rem;
}
.page-header h1 { font-size: clamp(1.5rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-header p { color: var(--text-muted); }
.page-header.dark { background: var(--bg-elevated); border-bottom: 1px solid var(--border); }

/* Content Sections */
.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
}
.content-section p { margin-bottom: 1rem; }
.about-quote {
    font-size: 1.1rem;
    font-style: italic;
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    color: var(--primary);
    margin: 1.5rem 0;
}
.team-placeholder {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    align-items: start;
}
.pricing-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: relative;
}
.pricing-card.popular { border-color: var(--primary); box-shadow: var(--glow); }
.pricing-card.mega { border-color: var(--accent); }
.badge {
    position: absolute;
    top: -10px;
    right: 1rem;
    background: var(--primary);
    color: var(--bg);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}
.price {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.5rem 0;
}
.price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.feature-list { list-style: none; margin: 1rem 0; }
.feature-list li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.feature-list li:last-child { border-bottom: none; }

/* Big Fish */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.5rem;
}
.stat-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-num { font-size: 1.75rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.bigfish-hero { max-width: 900px; margin: 2rem auto; padding: 0 1.5rem; }
.hero-card {
    background: linear-gradient(135deg, var(--bg-elevated), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}
.card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,255,136,0.08), transparent 70%);
    pointer-events: none;
}
.hero-meta { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.tag {
    background: rgba(0,255,136,0.1);
    color: var(--primary);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0,255,136,0.2);
}
.hall-of-fame { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.case-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.case-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.case-date { font-size: 0.8rem; color: var(--text-muted); }
.case-sev { font-size: 0.8rem; color: var(--danger); font-weight: 700; }
.dossier-tease { font-size: 0.8rem; color: var(--primary); margin-top: 0.75rem; font-style: italic; }
.bigfish-cta { text-align: center; padding: 3rem 1.5rem; }
.delay-notice { font-size: 0.75rem; color: var(--text-muted); margin-top: 1rem; }

/* FAQ / How to Play */
.faq-section { max-width: 800px; margin: 0 auto; padding: 1.5rem; }
.faq-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}
.faq-item h3 {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 1.25rem 1rem; color: var(--text-muted); font-size: 0.9rem; }
.faq-toggle { transition: transform 0.2s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }

/* Contact */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
}
.contact-form-wrapper { background: var(--bg-elevated); border-radius: var(--radius); padding: 1.5rem; border: 1px solid var(--border); }
.contact-form label { display: block; margin: 0.75rem 0 0.25rem; font-size: 0.85rem; color: var(--text-muted); }
.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.9rem;
}
.contact-form button { margin-top: 1rem; }
.contact-info h3 { margin-top: 1rem; font-size: 1rem; }
.contact-info p { color: var(--text-muted); font-size: 0.9rem; }
.edit-notice { color: var(--warning); font-size: 0.8rem; margin-top: 1rem; }

/* Auth */
.auth-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 1.5rem;
}
.auth-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    text-align: center;
}
.auth-logo { width: 64px; height: 64px; margin-bottom: 1rem; }
.auth-card h1 { margin-bottom: 1rem; font-size: 1.5rem; }
.auth-card input {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
}
.auth-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 1rem; }

/* Dashboard */
.dashboard-header { padding: 1.5rem; max-width: 1200px; margin: 0 auto; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
}
.stat-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
}
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.action-bar {
    display: flex;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 1.5rem;
    flex-wrap: wrap;
}
.btn-panic {
    animation: pulse 2s infinite;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}
.panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.panel h3 { margin-bottom: 0.75rem; font-size: 1rem; }
.ghost-list { list-style: none; }
.ghost-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; display: flex; justify-content: space-between; }
.status-badge { background: rgba(0,255,136,0.1); color: var(--primary); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.75rem; }
.threat-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.threat-table th { text-align: left; padding: 0.5rem; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.threat-table td { padding: 0.5rem; border-bottom: 1px solid var(--border); }
.sev-critical { color: var(--danger); font-weight: 700; }
.sev-high { color: var(--warning); font-weight: 700; }
.sev-medium { color: #fbbf24; }
.sev-low { color: var(--text-muted); }

/* Status Page */
.status-hero { text-align: center; padding: 3rem 1.5rem; }
.status-indicator {
    width: 20px; height: 20px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.5rem;
}
.status-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-dot.green { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.status-metrics { max-width: 600px; margin: 0 auto; padding: 1.5rem; }
.metric-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.metric-val { font-weight: 700; color: var(--primary); }

/* Modal */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
    padding: 1rem;
}
.modal-content {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
}
.modal-close { position: absolute; top: 1rem; right: 1rem; font-size: 1.5rem; cursor: pointer; color: var(--text-muted); }
.modal-content h2 { margin-bottom: 1rem; }
.modal-content p { margin-bottom: 0.75rem; color: var(--text-muted); font-size: 0.9rem; }

/* Welcome Page */
.welcome-page { text-align: center; padding: 3rem 1.5rem; max-width: 700px; margin: 0 auto; }
.welcome-steps { margin: 2rem 0; }
.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
}
.step-num {
    width: 36px; height: 36px;
    background: var(--primary);
    color: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

/* Legal Pages */
.legal-page h2 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; color: var(--primary); }
.legal-page ul { margin-left: 1.25rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.edit-banner {
    background: rgba(245,158,11,0.1);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 0.75rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.cookie-table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.85rem; }
.cookie-table th, .cookie-table td { padding: 0.5rem; border: 1px solid var(--border); text-align: left; }
.cookie-table th { background: var(--surface); }

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem 1rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}
.footer-grid h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer-grid a { display: block; color: var(--text-muted); text-decoration: none; font-size: 0.85rem; margin-bottom: 0.3rem; }
.footer-grid a:hover { color: var(--primary); }
.footer-grid p { font-size: 0.85rem; color: var(--text-muted); }
.footer-bottom {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Placeholders */
.placeholder-box {
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    color: var(--text-muted);
}
.upload-zone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

/* Mobile */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
        gap: 0.75rem;
    }
    .nav-links.open { display: flex; }
    .hero { grid-template-columns: 1fr; text-align: center; padding: 2rem 1rem; }
    .globe { width: 200px; height: 200px; }
    .contact-section { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
