: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);
    --green: #22C55E;
    --yellow: #EAB308;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color: transparent; }
@supports(padding: max(0px)) {
    body { padding-bottom: env(safe-area-inset-bottom); }
}

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;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    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); }
section[id] { scroll-margin-top: 80px; }

.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); }

.btn-login {
    display: flex; align-items: center; gap: 8px;
    background: #5865F2; color: #fff; text-decoration: none;
    padding: 8px 18px; border-radius: 10px; font-size: 14px;
    font-weight: 600; transition: all .25s;
}
.btn-login:hover { background: #4752C4; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(88,101,242,.3); }

.btn-dashboard {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--red), #B91C1C); color: #fff; text-decoration: none;
    padding: 8px 18px; border-radius: 10px; font-size: 14px;
    font-weight: 600; transition: all .25s;
}
.btn-dashboard:hover { 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: 6px; position: relative;
    width: 36px; height: 36px; align-items: center; justify-content: center;
}
.nav-mobile span {
    display: block; width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all .3s cubic-bezier(.4,0,.2,1);
    position: absolute;
}
.nav-mobile span:nth-child(1) { transform: translateY(-7px); }
.nav-mobile span:nth-child(2) { opacity: 1; }
.nav-mobile span:nth-child(3) { transform: translateY(7px); }
/* Animated X when open */
.nav-mobile.active span:nth-child(1) { transform: rotate(45deg); }
.nav-mobile.active span:nth-child(2) { opacity: 0; }
.nav-mobile.active span:nth-child(3) { transform: rotate(-45deg); }
.nav-links .mobile-actions { display: none; }
.nav-overlay { display: none; }

/* ── 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(3, 1fr); gap: 16px;
    max-width: 720px; margin: 0 auto;
}
.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);
}

/* ── INVESTIGATION STORIES ─────────────────────── */
.investigations-grid { display: flex; flex-direction: column; gap: 48px; }
.investigation-story {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 24px; overflow: hidden;
    transition: border-color .3s;
}
.investigation-story:hover { border-color: var(--red-dim); }
.story-header {
    padding: 32px 40px 24px; display: flex; align-items: center; gap: 16px;
    border-bottom: 1px solid var(--border);
}
.story-icon {
    width: 52px; height: 52px; border-radius: 16px; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.story-icon.scam { background: rgba(220,38,38,.12); color: var(--red); }
.story-icon.exploit { background: rgba(168,85,247,.12); color: #C084FC; }
.story-meta { flex: 1; }
.story-meta h3 { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.story-meta .story-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.story-tag {
    padding: 3px 10px; border-radius: 6px; font-size: 10px;
    font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
}
.story-tag.scam { background: rgba(220,38,38,.12); color: var(--red-glow); border: 1px solid var(--red-dim); }
.story-tag.social { background: rgba(59,130,246,.1); color: #60A5FA; border: 1px solid rgba(59,130,246,.25); }
.story-tag.oauth { background: rgba(168,85,247,.1); color: #C084FC; border: 1px solid rgba(168,85,247,.25); }
.story-tag.ai { background: rgba(245,158,11,.1); color: #FBBF24; border: 1px solid rgba(245,158,11,.25); }

.story-body { padding: 32px 40px; }
.story-timeline {
    position: relative; display: flex; flex-direction: column; gap: 0;
    padding-right: 28px;
}
.story-timeline::before {
    content: ''; position: absolute; right: 8px; top: 28px; bottom: 28px;
    width: 2px; background: linear-gradient(to bottom, var(--red-dim), var(--border), var(--red-dim));
    border-radius: 2px;
}
.timeline-node {
    position: relative; padding: 20px 24px 20px 0; opacity: 0;
    animation: fadeSlideRight .5s ease forwards;
}
.timeline-node:nth-child(1) { animation-delay: .1s; }
.timeline-node:nth-child(2) { animation-delay: .2s; }
.timeline-node:nth-child(3) { animation-delay: .3s; }
.timeline-node:nth-child(4) { animation-delay: .4s; }
.timeline-node:nth-child(5) { animation-delay: .5s; }
.timeline-node:nth-child(6) { animation-delay: .6s; }
.timeline-node:nth-child(7) { animation-delay: .7s; }
.timeline-dot {
    position: absolute; right: -28px; top: 26px; width: 18px; height: 18px;
    border-radius: 50%; border: 3px solid var(--bg-card); z-index: 1;
}
.timeline-dot.red { background: var(--red); box-shadow: 0 0 12px rgba(220,38,38,.5); }
.timeline-dot.blue { background: #3B82F6; box-shadow: 0 0 12px rgba(59,130,246,.4); }
.timeline-dot.yellow { background: #F59E0B; box-shadow: 0 0 12px rgba(245,158,11,.4); }
.timeline-dot.purple { background: #A855F7; box-shadow: 0 0 12px rgba(168,85,247,.4); }
.timeline-dot.green { background: #22C55E; box-shadow: 0 0 12px rgba(34,197,94,.4); }

.node-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; margin-bottom: 8px;
}
.node-label.danger { color: var(--red-glow); }
.node-label.info { color: #60A5FA; }
.node-label.warn { color: #FBBF24; }
.node-label.tip { color: #22C55E; }

.node-content {
    background: rgba(0,0,0,.25); border: 1px solid var(--border);
    border-radius: 14px; padding: 18px 20px;
    font-size: 14px; color: var(--text-dim); line-height: 1.8;
}
.node-content strong { color: var(--text); font-weight: 700; }
.node-content .chat-bubble {
    display: inline-block; background: rgba(88,101,242,.1); border: 1px solid rgba(88,101,242,.2);
    padding: 6px 14px; border-radius: 12px 12px 4px 12px; margin: 6px 0;
    font-size: 13px; color: #8B9DFF; font-style: italic;
}
.node-content .chat-bubble.victim {
    background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.2);
    color: #6EE7B7; border-radius: 12px 12px 12px 4px;
}

.story-verdict {
    margin-top: 24px; padding: 24px; border-radius: 16px;
    display: flex; align-items: flex-start; gap: 14px;
}
.story-verdict.danger {
    background: rgba(220,38,38,.06); border: 1px solid var(--red-dim);
}
.story-verdict.warning {
    background: rgba(245,158,11,.06); border: 1px solid rgba(245,158,11,.2);
}
.story-verdict.tip {
    background: rgba(34,197,94,.06); border: 1px solid rgba(34,197,94,.2);
}
.verdict-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0;
}
.verdict-icon.danger { background: rgba(220,38,38,.15); color: var(--red); }
.verdict-icon.tip { background: rgba(34,197,94,.15); color: #22C55E; }
.verdict-text { font-size: 14px; line-height: 1.7; color: var(--text-dim); }
.verdict-text strong { color: var(--text); }
.verdict-text .tip-list { margin-top: 8px; padding: 0; list-style: none; }
.verdict-text .tip-list li {
    padding: 4px 0; padding-right: 20px; position: relative; font-size: 13px;
}
.verdict-text .tip-list li::before {
    content: '✓'; position: absolute; right: 0; color: #22C55E; font-weight: 700;
}

@keyframes fadeSlideRight {
    from { opacity: 0; transform: translateX(-16px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 768px) {
    .investigation-story { border-radius: 16px; }
    .story-header { padding: 20px 16px 16px; flex-direction: column; text-align: center; gap: 12px; }
    .story-icon { width: 44px; height: 44px; border-radius: 12px; }
    .story-icon svg { width: 22px; height: 22px; }
    .story-body { padding: 16px 14px; }
    .story-timeline { padding-right: 20px; }
    .story-timeline::before { right: 5px; }
    .timeline-node { padding: 14px 16px 14px 0; }
    .timeline-dot { right: -20px; width: 14px; height: 14px; border-width: 2px; }
    .story-meta h3 { font-size: 15px; }
    .story-meta .story-tags { justify-content: center; gap: 5px; }
    .story-tag { font-size: 8px; padding: 2px 7px; letter-spacing: .5px; }
    .node-label { font-size: 9px; margin-bottom: 6px; }
    .node-content { padding: 14px 16px; font-size: 13px; line-height: 1.7; border-radius: 12px; }
    .node-content .chat-bubble { font-size: 12px; padding: 5px 11px; }
    .node-content .terminal { margin-top: 8px; }
    .node-content .terminal pre { font-size: 10px; padding: 10px 12px; line-height: 1.5; }
    .story-verdict { padding: 16px; border-radius: 12px; gap: 10px; margin-top: 16px; }
    .verdict-icon { width: 30px; height: 30px; border-radius: 8px; }
    .verdict-icon svg { width: 14px; height: 14px; }
    .verdict-text { font-size: 12px; line-height: 1.6; }
    .verdict-text strong { font-size: 13px; }
    .verdict-text .tip-list li { font-size: 12px; padding-right: 16px; }
    .investigations-grid { gap: 24px; }
}
@media (max-width: 480px) {
    .story-header { padding: 16px 12px 14px; }
    .story-body { padding: 12px 10px; }
    .story-timeline { padding-right: 18px; }
    .story-meta h3 { font-size: 14px; }
    .node-content { padding: 12px 14px; font-size: 12px; }
    .story-verdict { padding: 14px 12px; }
}

/* ── 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 HIERARCHY ────────────────────────────── */
#team { padding: 100px 0; background: var(--bg-1); }
.team-hierarchy { max-width: 900px; margin: 0 auto; }

.team-row { display: flex; justify-content: center; gap: 40px; }
.team-row-ceo { margin-bottom: 0; }
.team-row-leads { margin-bottom: 0; }
.team-row-staff { margin-top: 0; }

.team-member {
    text-align: center; padding: 28px 20px; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: all .35s; max-width: 320px; flex: 1;
}
.team-member:hover { border-color: var(--red-dark); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(220,38,38,.1); }
.team-member.ceo { max-width: 380px; border-color: rgba(168,85,247,.3); }
.team-member.ceo:hover { border-color: rgba(168,85,247,.6); box-shadow: 0 16px 48px rgba(168,85,247,.12); }

.team-avatar-ring {
    width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px;
    padding: 3px; display: flex; align-items: center; justify-content: center;
}
.ceo-ring { background: linear-gradient(135deg, #A855F7, #7C3AED); }
.lead-ring { background: linear-gradient(135deg, var(--red), #B91C1C); }
.staff-ring { background: linear-gradient(135deg, #525252, #404040); }

.team-avatar {
    width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--bg-0);
}

.team-member h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; letter-spacing: .5px; }

.team-role {
    display: inline-block; padding: 3px 14px; border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: .5px; margin-bottom: 12px;
}
.ceo-role { background: rgba(168,85,247,.12); color: #C084FC; border: 1px solid rgba(168,85,247,.25); }
.lead-role { background: rgba(220,38,38,.1); color: var(--red-glow); border: 1px solid var(--red-dim); }
.staff-role { background: rgba(255,255,255,.05); color: var(--text-dim); border: 1px solid var(--border); }

.team-desc { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

/* Connectors */
.team-connectors {
    display: flex; justify-content: center; align-items: stretch;
    height: 40px; position: relative;
}
.connector-line {
    position: absolute;
    background: var(--border);
}
.connector-line.center-down {
    width: 2px; height: 40px; left: 50%; transform: translateX(-50%);
}
.connector-line.center-left {
    height: 2px; width: calc(50% - 80px); top: 50%; right: 50%;
}
.connector-line.center-right {
    height: 2px; width: calc(50% - 80px); top: 50%; left: 50%;
}
.connector-line.left-down {
    width: 2px; height: 40px; left: 25%; transform: translateX(-50%);
}
.connector-line.right-down {
    width: 2px; height: 40px; left: 75%; transform: translateX(-50%);
}

.btn-outline.btn-large { padding: 18px 40px; font-size: 18px; border-radius: 16px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── 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 — hide desktop actions, show hamburger */
    .nav-actions { display: none; }
    .nav-mobile { display: flex; z-index: 1001; }

    /* Nav — fullscreen centered overlay */
    .nav-links {
        display: flex !important; position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        width: 100vw; height: 100vh; height: 100dvh;
        background: rgba(5,5,5,.97); backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column; align-items: center; justify-content: center;
        gap: 6px; z-index: 999; overflow-y: auto;
        opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .35s ease, visibility .35s ease;
    }
    .nav-links.open { opacity: 1; visibility: visible; pointer-events: auto; }
    .nav-links > a {
        font-size: 22px; font-weight: 700; padding: 14px 24px;
        border-radius: 12px; border-bottom: none;
        transition: background .2s, color .2s;
        opacity: 0; transform: translateY(16px);
        text-align: center;
    }
    .nav-links.open > a {
        opacity: 1; transform: translateY(0);
        transition: opacity .4s ease, transform .4s ease, background .2s;
    }
    .nav-links.open > a:nth-child(1) { transition-delay: .05s; }
    .nav-links.open > a:nth-child(2) { transition-delay: .1s; }
    .nav-links.open > a:nth-child(3) { transition-delay: .15s; }
    .nav-links.open > a:nth-child(4) { transition-delay: .2s; }
    .nav-links.open > a:nth-child(5) { transition-delay: .25s; }
    .nav-links.open > a:nth-child(6) { transition-delay: .3s; }
    .nav-links > a:hover, .nav-links > a:active {
        background: rgba(220,38,38,.08); color: var(--red-glow);
    }
    /* Action buttons inside mobile menu */
    .nav-links .mobile-actions {
        display: flex; flex-direction: column; gap: 10px;
        margin-top: 24px; padding-top: 24px; width: 220px;
        border-top: 1px solid var(--border);
    }
    .nav-links .mobile-actions a, .nav-links .mobile-actions button {
        width: 100%; text-align: center; justify-content: center;
        padding: 14px 20px; border-radius: 12px; font-size: 15px;
    }

    /* Container */
    .container { padding: 0 16px; }

    /* Hero */
    .hero-content { padding: 0 16px; }
    .hero-sub { font-size: 15px; margin-bottom: 28px; }
    .hero-btns { gap: 10px; }
    .btn-primary { padding: 12px 24px; font-size: 14px; border-radius: 12px; }
    .btn-outline { padding: 12px 24px; font-size: 14px; border-radius: 12px; }
    .btn-primary.btn-large { padding: 14px 28px; font-size: 15px; }
    .btn-outline.btn-large { padding: 14px 28px; font-size: 15px; }

    /* Stats */
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .stat-card { padding: 18px 10px; border-radius: 12px; }
    .stat-number { font-size: 28px; }
    .stat-label { font-size: 11px; }
    .stat-icon .icon { width: 24px; height: 24px; }
    #stats { margin-top: -40px; padding-bottom: 40px; }

    /* Sections */
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 26px; letter-spacing: -.5px; }
    .section-tag { font-size: 10px; padding: 3px 12px; }
    #about, #fraud-types, #analyses, #malware-lab, #team, #cta, #get-api { padding: 60px 0; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 12px; }
    .about-card { padding: 24px 20px; border-radius: 14px; }
    .about-card h3 { font-size: 17px; }
    .about-card p { font-size: 13px; }

    /* Fraud types */
    .fraud-grid { grid-template-columns: 1fr; gap: 12px; }
    .fraud-card { padding: 22px 18px; border-radius: 14px; }
    .fraud-card h3 { font-size: 15px; }
    .fraud-card p { font-size: 13px; }
    .fraud-example { font-size: 12px; padding: 8px 12px; }

    /* Verify */
    .verify-grid { grid-template-columns: 1fr; }

    /* Team */
    .team-row { flex-direction: column; align-items: center; gap: 16px; }
    .team-member { max-width: 100% !important; }
    .team-connectors { height: 24px; }
    .connector-line.center-left, .connector-line.center-right { display: none; }
    .connector-line.left-down { left: 50%; }
    .connector-line.right-down { left: 50%; }

    /* CTA */
    .cta-inner { padding: 48px 20px; border-radius: 20px; }
    .cta-inner p { font-size: 14px; }
    .cta-buttons { flex-direction: column; align-items: center; gap: 10px; }

    /* Footer */
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
    footer { padding: 24px 0; }

    /* Lab */
    .lab-step { padding: 20px 16px 20px 60px; border-radius: 12px; }
    body.ar .lab-step { padding-left: 16px; padding-right: 60px; }
    .step-num { font-size: 22px; left: 16px; top: 18px; }
    body.ar .step-num { right: 16px; }
    .lab-step h3 { font-size: 15px; }
    .lab-step p { font-size: 13px; }
    .asm-ticker { padding: 12px 16px; font-size: 11px; border-radius: 10px; margin-top: 24px; }
    #three-container { min-height: 260px; border-radius: 16px; }

    /* Verify */
    .verify-card { padding: 24px 18px; border-radius: 14px; }
    .verify-card h3 { font-size: 17px; }
    .verify-card li { font-size: 13px; }
    .verify-note { padding: 14px 16px; font-size: 13px; border-radius: 10px; }

    /* Policy */
    .policy-item { padding: 16px 18px; font-size: 13px; gap: 12px; border-radius: 10px; }
    .policy-x, .policy-check { font-size: 16px; }

    /* Terminal global mobile */
    .terminal { border-radius: 10px; }
    .terminal pre { font-size: 11px; padding: 12px 14px; line-height: 1.6; }
    .terminal-bar { padding: 8px 12px; }
    .terminal-bar span { width: 8px; height: 8px; }

    /* Team mobile */
    .team-member { padding: 22px 16px; border-radius: 16px; }
    .team-avatar-ring { width: 72px; height: 72px; margin-bottom: 12px; }
    .team-member h3 { font-size: 16px; }
    .team-desc { font-size: 12px; }
    .team-role { font-size: 10px; padding: 2px 12px; }

    /* API on index */
    .api-tagline { font-size: 14px; }
    .api-feat { padding: 16px; border-radius: 12px; gap: 10px; }
    .api-feat div { font-size: 12px; }
    .api-sub-title { font-size: 15px; }
    .api-step-num { width: 34px; height: 34px; font-size: 13px; }
    .api-step-body h4 { font-size: 14px; }
    .api-step-body p { font-size: 12px; }
    .api-endpoint-header { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
    .api-endpoint-body { padding: 14px; }
    .api-endpoint-body h4 { font-size: 13px; }
    .api-endpoint-body p { font-size: 12px; }
    .api-cta .btn-primary { font-size: 14px; padding: 12px 24px; }
}

@media (max-width: 480px) {
    /* Ultra-small phone tweaks */
    .container { padding: 0 12px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .stat-card { padding: 16px 8px; }
    .stat-number { font-size: 24px; }
    .stat-label { font-size: 10px; }
    .hero-title { letter-spacing: -1px; }
    .hero-badge { font-size: 11px; padding: 5px 14px; }
    .hero-sub { font-size: 14px; }
    .section-header h2 { font-size: 22px; }
    .section-tag { font-size: 9px; }
    #about, #fraud-types, #analyses, #malware-lab, #team, #cta, #get-api { padding: 48px 0; }

    /* Nav */
    .nav-inner { padding: 0 12px; height: 56px; }
    .nav-logo { font-size: 15px; letter-spacing: 1px; }
    .nav-logo img { width: 28px; height: 28px; }
    .btn-join, .btn-login, .btn-dashboard { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
    .nav-links { padding: 70px 24px 32px; }

    /* Fraud cards */
    .fraud-card { padding: 18px 14px; }
    .fraud-icon .icon { width: 22px; height: 22px; }
    .fraud-card h3 { font-size: 14px; }
    .fraud-card p { font-size: 12px; }
    .fraud-example { font-size: 11px; }

    /* About */
    .about-card { padding: 20px 16px; border-radius: 12px; }
    .about-card h3 { font-size: 15px; }
    .about-card p { font-size: 12px; }

    /* Verify */
    .verify-card { padding: 20px 14px; border-radius: 12px; }
    .verify-card h3 { font-size: 15px; }
    .verify-card li { font-size: 12px; }

    /* Team */
    .team-member { padding: 18px 14px; border-radius: 14px; }
    .team-avatar-ring { width: 64px; height: 64px; }
    .team-member h3 { font-size: 15px; }

    /* CTA */
    .cta-inner { padding: 36px 16px; border-radius: 16px; }
    .cta-inner h2 { font-size: 20px; }
    .cta-inner p { font-size: 13px; }
    .btn-primary.btn-large, .btn-outline.btn-large { padding: 12px 24px; font-size: 14px; width: 100%; justify-content: center; }

    /* Lab */
    .lab-step { padding: 16px 12px 16px 50px; }
    body.ar .lab-step { padding-left: 12px; padding-right: 50px; }
    .step-num { font-size: 18px; left: 12px; top: 14px; }
    body.ar .step-num { right: 12px; }

    /* API */
    .api-feat { padding: 14px; }
    .api-feat div { font-size: 11px; }
    .api-step { gap: 12px; }
    .api-step-num { width: 30px; height: 30px; font-size: 12px; }

    /* Footer */
    .footer-brand { font-size: 14px; }
    footer p { font-size: 11px; }
}

/* ── 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; }

/* ── GET API SECTION ──────────────────────────────── */
#get-api { padding: 80px 0 40px; }
#get-api .section-header { margin-bottom: 40px; }

.api-intro { margin-bottom: 48px; }
.api-tagline { font-size: 18px; color: var(--text-dim); text-align: center; margin-bottom: 32px; line-height: 1.7; }

.api-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.api-feat {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; padding: 20px;
    transition: border-color .2s;
}
.api-feat:hover { border-color: rgba(220,38,38,.3); }
.api-feat svg { flex-shrink: 0; margin-top: 2px; }
.api-feat div { font-size: 13px; color: var(--text-dim); line-height: 1.7; }
.api-feat strong { color: var(--text); font-size: 14px; }

.api-sub-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 18px; font-weight: 800; margin-bottom: 20px;
    padding-bottom: 12px; border-bottom: 1px solid var(--border);
}

.api-steps-section, .api-ref-section, .api-code-section, .api-security-section { margin-bottom: 48px; }

.api-steps { display: flex; flex-direction: column; gap: 0; position: relative; }
.api-steps::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--border); }
[dir="rtl"] .api-steps::before { left: auto; right: 20px; }
.api-step { display: flex; gap: 18px; padding-bottom: 28px; position: relative; }
.api-step:last-child { padding-bottom: 0; }
.api-step-num {
    width: 42px; height: 42px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-0); border: 2px solid var(--red);
    border-radius: 50%; font-size: 16px; font-weight: 800;
    color: var(--red); z-index: 1;
}
.api-step-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.api-step-body p { font-size: 13px; color: var(--text-dim); line-height: 1.7; }

.api-endpoint-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 14px; overflow: hidden; margin-bottom: 16px;
}
.api-endpoint-header {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px; background: var(--bg-2);
    border-bottom: 1px solid var(--border);
}
.api-method {
    background: rgba(34,197,94,.15); color: #22C55E;
    padding: 4px 12px; border-radius: 6px;
    font-size: 11px; font-weight: 800; letter-spacing: 1px;
}
.api-method.err {
    background: rgba(220,38,38,.15); color: var(--red-glow);
}
.api-url {
    font-family: 'Inter', monospace; font-size: 13px;
    color: var(--text-dim); direction: ltr; text-align: left;
}
.api-endpoint-body { padding: 20px; }
.api-endpoint-body h4 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.api-endpoint-body p { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.7; }

.api-param-table { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 12px; }
.api-param-row { display: grid; grid-template-columns: 120px 80px 1fr; padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,.03); }
.api-param-row:last-child { border-bottom: none; }
.api-param-row.header {
    background: var(--bg-2); font-weight: 700; font-size: 10px;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px;
}
.api-param-row code { color: var(--red-glow); font-size: 12px; }
.api-param-row span:last-child { color: var(--text-dim); }

.api-terminal { border: 1px solid var(--border) !important; margin-top: 8px; }
.api-terminal pre { font-size: 12px !important; line-height: 1.7 !important; }
.hl-dim { color: var(--text-muted); }

.api-code-tabs { display: flex; gap: 4px; margin-bottom: 0; }
.api-tab {
    padding: 8px 20px; border: 1px solid var(--border);
    background: var(--bg-2); color: var(--text-dim);
    font-size: 12px; font-weight: 700; cursor: pointer;
    border-radius: 8px 8px 0 0; border-bottom: none;
    font-family: inherit; transition: .2s;
}
.api-tab.active { background: var(--bg-card); color: var(--red-glow); border-color: var(--red-dark); border-bottom: 1px solid var(--bg-card); }
.api-tab:hover { color: var(--text); }

.api-code-block .terminal { border-radius: 0 8px 8px 8px !important; }

.api-security-grid { display: flex; flex-direction: column; gap: 10px; }
.api-sec-item {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: 10px;
    font-size: 13px; color: var(--text-dim);
}
.api-sec-item svg { flex-shrink: 0; }

.api-cta { text-align: center; padding: 32px 0 0; }
.api-cta .btn-primary { font-size: 15px; padding: 14px 32px; }

@media (max-width: 768px) {
    .api-features-grid { grid-template-columns: 1fr; gap: 12px; }
    .api-param-row { grid-template-columns: 90px 60px 1fr; font-size: 11px; padding: 8px 10px; }
    .api-param-table { border-radius: 8px; }
    .api-endpoint-header { flex-direction: column; align-items: flex-start; gap: 6px; }
    .api-code-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .api-tab { padding: 6px 14px; font-size: 11px; }
    .api-steps-section, .api-ref-section, .api-code-section, .api-security-section { margin-bottom: 32px; }
    .api-sec-item { padding: 10px 12px; font-size: 12px; border-radius: 8px; }
    .api-terminal pre { font-size: 10px !important; line-height: 1.5 !important; }
}
@media (max-width: 480px) {
    .api-param-row { grid-template-columns: 70px 50px 1fr; font-size: 10px; padding: 6px 8px; }
    .api-method { font-size: 9px; padding: 3px 8px; }
    .api-url { font-size: 11px; }
}
