:root {
    --red: #DC2626;
    --red-dark: #991B1B;
    --red-glow: #EF4444;
    --red-dim: #7F1D1D;
    --bg-0: #050505;
    --bg-1: #0A0A0A;
    --bg-2: #111111;
    --bg-3: #1A1A1A;
    --bg-card: #0F0F0F;
    --text: #F5F5F5;
    --text-dim: #A3A3A3;
    --text-muted: #525252;
    --border: #262626;
    --glass: rgba(15,15,15,.7);
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--bg-0);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-image:
        linear-gradient(rgba(220,38,38,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220,38,38,.03) 1px, transparent 1px);
    background-size: 60px 60px;
}
body.ar {
    font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    direction: rtl;
}
body.en { direction: ltr; }
body.en .lang-ar { display: none; }
body.ar .lang-en { display: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.text-red { color: var(--red); }

.icon {
    width: 28px; height: 28px; flex-shrink: 0;
    fill: none; stroke: currentColor;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    color: var(--red);
}
.stat-icon .icon, .about-icon .icon { width: 32px; height: 32px; }
.fraud-icon .icon { width: 26px; height: 26px; }
.verify-icon .icon { width: 40px; height: 40px; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }

/* ── NAV ───────────────────────────────────────── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(5,5,5,.8);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid rgba(255,255,255,.05);
    transition: background .3s;
}
nav.scrolled { background: rgba(5,5,5,.95); }
.nav-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--text); font-weight: 800;
    font-size: 18px; letter-spacing: 2px;
}
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
    text-decoration: none; color: var(--text-dim); font-size: 14px;
    font-weight: 500; transition: color .2s; letter-spacing: .3px;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-lang {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-dim); padding: 6px 14px; border-radius: 8px;
    font-size: 13px; cursor: pointer; font-family: 'Noto Kufi Arabic', 'Inter', sans-serif;
    transition: all .2s;
}
.btn-lang:hover { border-color: var(--red); color: var(--text); }

.btn-join {
    display: flex; align-items: center; gap: 8px;
    background: var(--red); color: #fff; text-decoration: none;
    padding: 8px 18px; border-radius: 10px; font-size: 14px;
    font-weight: 600; transition: all .25s;
}
.btn-join:hover { background: var(--red-glow); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(220,38,38,.3); }

.nav-mobile {
    display: none; flex-direction: column; gap: 5px; background: none;
    border: none; cursor: pointer; padding: 4px;
}
.nav-mobile span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── HERO ──────────────────────────────────────── */
#hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
#scannerCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: radial-gradient(ellipse at 50% 80%, rgba(220,38,38,.1) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 20%, rgba(153,27,27,.06) 0%, transparent 50%),
                linear-gradient(180deg, rgba(5,5,5,.2) 0%, rgba(5,5,5,.92) 100%);
}
.hero-content {
    position: relative; z-index: 2; text-align: center;
    max-width: 800px; padding: 0 24px;
}
.hero-badge {
    display: inline-block; padding: 6px 20px; border-radius: 100px;
    border: 1px solid var(--red-dim); color: var(--red-glow);
    font-size: 13px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; margin-bottom: 28px;
    background: rgba(220,38,38,.06);
}
.hero-title {
    font-size: clamp(40px, 7vw, 80px); font-weight: 900;
    line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px;
}
.hero-sub {
    font-size: 18px; color: var(--text-dim); max-width: 600px;
    margin: 0 auto 40px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--red); color: #fff; text-decoration: none;
    padding: 14px 32px; border-radius: 14px; font-size: 16px;
    font-weight: 700; transition: all .3s; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--red-glow); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(220,38,38,.35); }
.btn-primary.btn-large { padding: 18px 40px; font-size: 18px; border-radius: 16px; }

.btn-outline {
    display: inline-flex; align-items: center; gap: 10px;
    background: transparent; color: var(--text); text-decoration: none;
    padding: 14px 32px; border-radius: 14px; font-size: 16px;
    font-weight: 600; border: 1px solid var(--border); transition: all .3s;
}
.btn-outline:hover { border-color: var(--red); color: var(--red-glow); }

/* ── STATS ─────────────────────────────────────── */
#stats {
    position: relative; z-index: 2; margin-top: -60px; padding-bottom: 60px;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 28px 24px; text-align: center;
    transition: all .3s;
}
.stat-card:hover { border-color: var(--red-dark); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(220,38,38,.12); }
.stat-card::before {
    content: ''; position: absolute; inset: -1px; border-radius: 16px; z-index: -1;
    background: linear-gradient(135deg, transparent 40%, rgba(220,38,38,.1) 100%);
    opacity: 0; transition: opacity .3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card { position: relative; }
.stat-icon { font-size: 28px; margin-bottom: 12px; }
.stat-number { font-size: 42px; font-weight: 900; color: var(--text); letter-spacing: -1px; }
.stat-label { font-size: 14px; color: var(--text-dim); margin-top: 4px; font-weight: 500; }

/* ── SECTIONS COMMON ───────────────────────────── */
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
    display: inline-block; padding: 4px 16px; border-radius: 100px;
    border: 1px solid var(--border); color: var(--text-muted);
    font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 16px;
}
.section-header h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 800; letter-spacing: -1px; }

/* ── ABOUT ─────────────────────────────────────── */
#about { padding: 100px 0; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.about-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 36px; transition: all .35s;
}
.about-card:hover { border-color: var(--red-dark); transform: translateY(-4px); }
.about-icon { font-size: 32px; margin-bottom: 16px; }
.about-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.about-card p { font-size: 15px; color: var(--text-dim); line-height: 1.7; }

/* ── FRAUD TYPES ───────────────────────────────── */
#fraud-types { padding: 100px 0; background: var(--bg-1); }
.fraud-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fraud-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 16px; padding: 32px; transition: all .35s;
    opacity: 0; transform: translateY(30px);
}
.fraud-card.visible { opacity: 1; transform: translateY(0); }
.fraud-card:hover { border-color: var(--red-dark); }
.fraud-icon { font-size: 28px; margin-bottom: 12px; }
.fraud-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.fraud-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-bottom: 12px; }
.fraud-example {
    font-size: 13px; color: var(--text-muted); padding: 10px 14px;
    background: rgba(220,38,38,.04); border-radius: 8px;
    border-left: 2px solid var(--red-dark); line-height: 1.6;
}
body.ar .fraud-example { border-left: none; border-right: 2px solid var(--red-dark); }

/* ── ANALYSES ──────────────────────────────────── */
#analyses { padding: 100px 0; background: var(--bg-1); }
.analysis-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; padding: 40px; overflow: hidden;
}
.analysis-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.analysis-badge {
    padding: 4px 14px; border-radius: 6px; font-size: 11px;
    font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
}
.analysis-badge.danger { background: rgba(220,38,38,.15); color: var(--red-glow); border: 1px solid var(--red-dim); }
.analysis-badge.warning { background: rgba(245,158,11,.12); color: #F59E0B; border: 1px solid rgba(245,158,11,.3); }
.analysis-date { font-size: 13px; color: var(--text-muted); }
.analysis-card > h3 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.analysis-summary { font-size: 15px; color: var(--text-dim); line-height: 1.7; margin-bottom: 32px; }

.analysis-steps { display: flex; flex-direction: column; gap: 28px; }
.a-step {
    padding: 24px; border-radius: 16px;
    border: 1px solid var(--border); background: rgba(0,0,0,.2);
}
.a-step-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.a-step-num {
    font-size: 22px; font-weight: 900; color: var(--red-dark);
    font-variant-numeric: tabular-nums; flex-shrink: 0; min-width: 32px;
}
.a-step h4 { font-size: 16px; font-weight: 700; }
.a-step > p { font-size: 14px; color: var(--text-dim); line-height: 1.7; margin-bottom: 14px; }
.a-step > p:last-child { margin-bottom: 0; }

.terminal {
    border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
    background: #0C0C0C; font-family: 'Courier New', 'Consolas', monospace;
}
.terminal-bar {
    display: flex; gap: 6px; padding: 10px 14px;
    background: #1A1A1A; border-bottom: 1px solid var(--border);
}
.terminal-bar span {
    width: 10px; height: 10px; border-radius: 50%;
}
.terminal-bar span:nth-child(1) { background: #EF4444; }
.terminal-bar span:nth-child(2) { background: #F59E0B; }
.terminal-bar span:nth-child(3) { background: #22C55E; }
.terminal pre {
    padding: 16px 20px; margin: 0; font-size: 13px; line-height: 1.7;
    color: #A3A3A3; overflow-x: auto; white-space: pre-wrap; word-break: break-all;
    direction: ltr; text-align: left;
}
.terminal pre code { font-family: inherit; }
.hl-red { color: var(--red-glow); font-weight: 700; }

.verdict-box {
    padding: 20px 24px; border-radius: 12px; font-size: 15px;
    line-height: 1.7;
}
.verdict-box.danger {
    background: rgba(220,38,38,.08); border: 1px solid var(--red-dim);
    color: var(--text);
}
.verdict-box.warning {
    background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.25);
    color: var(--text);
}

/* ── MALWARE LAB ───────────────────────────────── */
#malware-lab { padding: 100px 0; }
.lab-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
#three-container {
    width: 100%; aspect-ratio: 1; min-height: 360px; border-radius: 24px;
    overflow: hidden; border: 1px solid var(--border);
    background: var(--bg-card);
    box-shadow: 0 0 80px rgba(220,38,38,.08), inset 0 0 40px rgba(0,0,0,.3);
}
.lab-steps { display: flex; flex-direction: column; gap: 28px; }
.lab-step {
    padding: 24px; border-radius: 16px; border: 1px solid var(--border);
    background: var(--bg-card); transition: all .3s; position: relative;
    padding-left: 80px;
}
body.ar .lab-step { padding-left: 24px; padding-right: 80px; }
.lab-step:hover { border-color: var(--red-dark); }
.step-num {
    position: absolute; left: 24px; top: 24px;
    font-size: 28px; font-weight: 900; color: var(--red-dark);
    font-variant-numeric: tabular-nums;
}
body.ar .step-num { left: auto; right: 24px; }
.lab-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.lab-step p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

.asm-ticker {
    margin-top: 40px; padding: 16px 24px; border-radius: 12px;
    background: var(--bg-card); border: 1px solid var(--border);
    font-family: 'Courier New', monospace; font-size: 13px;
    color: var(--red); overflow: hidden; white-space: nowrap;
    letter-spacing: 1px;
}

/* ── VERIFY ────────────────────────────────────── */
#verify { padding: 100px 0; background: var(--bg-1); }
.verify-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 28px; }
.verify-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 20px; padding: 36px;
}
.verify-icon { font-size: 36px; margin-bottom: 16px; }
.verify-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 16px; }
.verify-card ol { padding-left: 20px; }
body.ar .verify-card ol { padding-left: 0; padding-right: 20px; }
.verify-card li { font-size: 15px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.6; }
.verify-card code {
    background: rgba(220,38,38,.1); color: var(--red-glow);
    padding: 2px 8px; border-radius: 4px; font-size: 13px;
}
.verify-card kbd {
    background: var(--bg-3); border: 1px solid var(--border);
    padding: 2px 8px; border-radius: 4px; font-size: 12px;
    font-weight: 600;
}
.verify-note {
    background: rgba(220,38,38,.05); border: 1px solid var(--red-dim);
    border-radius: 12px; padding: 20px 24px; font-size: 14px;
    color: var(--text-dim); line-height: 1.7;
}

/* ── POLICY ────────────────────────────────────── */
#policy { padding: 100px 0; }
.policy-grid { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.policy-item {
    display: flex; align-items: center; gap: 16px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; padding: 20px 24px; font-size: 15px;
    color: var(--text-dim); transition: all .3s;
}
.policy-item:hover { border-color: var(--red-dark); }
.policy-x { color: var(--red); font-size: 20px; font-weight: 700; flex-shrink: 0; }
.policy-check { color: #22C55E; font-size: 20px; font-weight: 700; flex-shrink: 0; }

/* ── TEAM ──────────────────────────────────────── */
#team { padding: 100px 0; background: var(--bg-1); }
.team-content {
    text-align: center; max-width: 700px; margin: 0 auto;
}
.team-logo {
    width: 100px; height: 100px; border-radius: 24px;
    margin-bottom: 24px; border: 2px solid var(--border);
}
.team-content p { font-size: 16px; color: var(--text-dim); line-height: 1.8; }

/* ── CTA ───────────────────────────────────────── */
#cta { padding: 100px 0; }
.cta-inner {
    text-align: center; padding: 80px 40px; border-radius: 28px;
    background: radial-gradient(ellipse at 50% 100%, rgba(220,38,38,.12) 0%, var(--bg-card) 70%);
    border: 1px solid var(--border);
}
.cta-inner h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta-inner p { font-size: 16px; color: var(--text-dim); margin-bottom: 32px; }

/* ── FOOTER ────────────────────────────────────── */
footer {
    padding: 32px 0; border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 16px; letter-spacing: 2px;
}
.footer-brand img { width: 28px; height: 28px; border-radius: 6px; }
footer p { font-size: 13px; color: var(--text-muted); }

/* ── RESPONSIVE ────────────────────────────────── */
@media (max-width: 1024px) {
    .fraud-grid { grid-template-columns: repeat(2, 1fr); }
    .lab-layout { grid-template-columns: 1fr; }
    #three-container { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: rgba(5,5,5,.98); backdrop-filter: blur(20px); flex-direction: column; padding: 20px 24px; gap: 16px; border-bottom: 1px solid var(--border); }
    .nav-links.open { display: flex; }
    .nav-mobile { display: flex; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .fraud-grid { grid-template-columns: 1fr; }
    .verify-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    .btn-lang { display: none; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 20px 16px; }
    .stat-number { font-size: 32px; }
    .hero-title { letter-spacing: -1px; }
}

/* ── ANIMATIONS ────────────────────────────────── */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
.hero-badge { animation: fadeUp .6s ease both; animation-delay: .2s; }
.hero-title { animation: fadeUp .6s ease both; animation-delay: .4s; }
.hero-sub { animation: fadeUp .6s ease both; animation-delay: .6s; }
.hero-btns { animation: fadeUp .6s ease both; animation-delay: .8s; }

@keyframes pulse { 0%,100% { opacity: .6; } 50% { opacity: 1; } }
.asm-ticker { animation: pulse 2s ease infinite; }
